Загрузка...

Learn kali Linux In under 20 Minutes

#linux #kali #hacking #pentest
Learn kali Linux In under 20 Minutes

Before we begin our journey through the wonderful world of Linux Basics for
Hackers, I want to introduce a few terms that should clarify some concepts
discussed later in this chapter.
Kali Kali Linux is a distribution of Linux specifically designed for
penetration testing. It has hundreds of tools preinstalled, saving you the
hours it would take to download and install them yourself. I will be using
the latest version of Kali at the time of this writing: Kali 2020.3

BINARIES: This term refers to files that can be executed, similar to
executables in Windows. Binaries generally reside in the usrbin or usr/sbin
directory and include utilities such as ps, cat, ls, and cd

Case sensitivity Unlike Windows, Linux is case sensitive. This means
that Desktop is different from desktop, which is different from DeskTop.

DIRECTORY :This is the same as a folder in Windows. A directory provides
a way of organizing files, usually in a hierarchical manner.

SCRIPT : This is a series of commands run in an interpretive environment
that converts each line to source code. Many hacking tools are simply
scripts. Scripts can be run with the bash interpreter or any of the other
scripting language interpreters, such as Python, Perl, or Ruby. Python is
currently the most popular interpreter among hackers.

SHELL : This is an environment and interpreter for running commands in
Linux. The most widely used shell is bash, which stands for Bourne-again
shell, but other popular shells include the C shell and Z shell. I will be
using the bash shell exclusively in this book.

TERMINAL : This is a command line interface (CLI).
With those basics behind us, we will attempt to methodically develop the
essential Linux skills you’ll need to become a hacker or penetration tester. In
this first chapter, I’ll walk you through getting started with Kali Linux.

Basic Commands in Linux
To begin, let’s look at some basic commands that will help you get up and
running in List

hanging Directories with cd

To change directories from the terminal, use the change directory command,
cd. For example, here’s how to change to the /etc directory used to store
configuration files: kali cd /etc
Getting Help
Nearly every command, application, or utility has a dedicated help file in
Linux that provides guidance for its use. For instance, if I needed help using
the best wireless cracking tool, aircrack-ng, I could simply type the aircrackng command followed by the --help command: kali aircrack-ng --help
Note the double dash here. The convention in Linux is to use a double dash
(--) before word options, such as help, and a single dash (-) before singleletter options, such as –h

Referencing Manual Pages with man
In addition to the help switch, most commands and applications have a
manual (man) page with more information, such as a description and
synopsis of the command or application.
Searching with locate
Probably the easiest command to use is locate. Followed by a keyword
denoting what it is you want to find, this command will go through your
entire filesystem and locate every occurrence of that word.
To look for aircrack-ng, for example, enter the following: kali locate
aircrack-ng
Finding Binaries with whereis
If you’re looking for a binary file, you can use the whereis command to locate
it. This command returns not only the location of the binary but also its
source and man page if they are available. Here’s an example: kali whereis
aircrack-ng
aircarck-ng: usrbin/aircarck-ng usrshare/man/man1/aircarck-ng.1.gz In this
case, whereis returned just the aircrack-ng binaries and man page, rather than
every occurrence of the word aircrack-ng.
Performing More Powerful Searches with find

The find command is the most powerful and flexible of the searching
utilities. It is capable of beginning your search in any designated directory
and looking for a number of different parameters, including, of course, the
filename but also the date of creation or modification, the owner, the group,
permissions, and the size.

Here’s the basic syntax for find: find directory options expression So,
if I wanted to search for a file with the name apache2 (the open source web
server) starting in the root directory, I would enter the following: kali find
/➊ -type f➋ -name apache2➌
First I state the directory in which to start the search, in this case / ➊.
Then I specify which type of file to search for, in this case f for an ordinary
file ➋. Last, I give the name of the file I’m searching for, in this case apache2
➌.
other options like creating directories and removing them are also covered in this topic

Видео Learn kali Linux In under 20 Minutes канала HANO MEDIA
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять