قالب وردپرس درنا توس
Home / Tips and Tricks / Top 10 Things To Do After Installing Kali Linux «Null Byte :: WonderHowTo

Top 10 Things To Do After Installing Kali Linux «Null Byte :: WonderHowTo



Kali Linux, by default, probably has not all you need to get you through the daily penetration test with ease. With some tips, tricks and applications, we can quickly start using Kali as a professional white hat.

Most Linux distributions are highly customizable. This allows your penetration test distribution to be adjusted a bit scary. With a few commands, we can automate tasks, install our favorite software, create additional user accounts, configure anonymity software properly, and optimize our interactions with terminals. There are only a few things we can do to improve our interactions with the operating system.

first Install Git

Git is an open software version control. It can be used to share and edit code in common, but is usually referred to as Null Byte as the primary copying tool (or "cloning") code lists found on GitHub. Git is a must have penetration tester tools that want to expand their tool kit beyond what is available in standard Kali repositories.

Git can be installed with the command below apt-get .

  apt-get install git 

2. Configure Bash Aliases

Bash aliases are great for creating custom command line shortcuts. For example, we can forward the command ls to automatically use our favorite arguments. Below is an example of a normal ls output.

  ls

androidbins.txt folder-pictures.png smtp.cracked text-x-generic.png
bogus_gmail.creds folder.png smtp.list windows-10
dumpzilla-b3075d1960874ce82ea76a5be9f58602afb61c39 pack-x-generic.png text-x-generic.ico "Windows 10 icons" 

Here's again after creating an ls alias.

  ls

total 220K
-rw ------- 1 root rot 15K Aug 24 2015 folder-pictures.png
-rw ------- 1 root root 8.7K Aug 24 2015 folder.png
-rw ------- 1 root root 11K Aug 24 2015 package-x-generic.png
-rw ------- 1 root root 5.5K Sep 3 2015 text-x-generic.png
drwxr-xr-x 12 root rot 4.0K May 31 00:44 & # 39; Windows 10 icons & # 39; /
drwxr-xr-x 18 root root 4.0K May 31 00:44 Windows-10 /
-rwxr-x --- 1 rot rot 103K 31 may 00:49 text-x-generic.ico *
drwxr-xr-x 5 rot rot 4.0K June 11 21:57 dumpzilla-b3075d1960874ce82ea76a5be9f58602afb61c39 /
-rw-r - r-- 1 rot rot 52 jul 5 18:13 bogus_gmail.creds
-rw-r - r-- 1 rot rot 15K jul 5 18:28 smtp.list
-rw-r - r-- 1 rotroten 181 Jul 5 18:43 smtp.cracked
-rw-r - r-- 1 rot rot 23K July 23 18:18 androidbins.txt
drwxr-xr-x 5 rotrot 4.0K July 23 19:22 ./
drwxr-xr-x 23 root root 4.0K Aug 9 04:25 ../

We get a much more verbal production. The command ls now now uses -l -a -t -h and -r arguments automatically. All these arguments will instruct ls to use the listing format ( -l ), list all ( -a ) files – including hidden files – and print file sizes in human readable format ( -h ) format (e.g., 1K, 234M, 5G).

My alias also sorts the output by change time ( -t ), and vice versa ( -r ), the order is shown in the list of recently modified files at the bottom of the terminal. This collection of arguments is my personal ls preference, but yours may be different.

To create alias, open /root/.bash_aliases with nano or your favorite text editor. Add the following line to create an alias.

  alias ls = & l; ls --color = always -rthla & # 39; 

We can also go a little further and add more complex features to the .bash_aliases file. Below is a simple example of a feature designed to keep Kali completely up to date.

  function apt updater {
apt-get update &&
apt-get dist-upgrade -vy &&
apt-get autoremove -y &&
apt-get autoclean &&
apt-clean &&&
reboot
} 

After saving changes to the .bash_aliases file, open a new terminal for the changes to take effect. Running the newly created apt-update feature will call a series of apt-get commands that automatically update and maintain your system. Ampersands ( && ) ensures that the function does not proceed to the following command if an earlier command fails.

  apt-updater 

More about Bash alias, check Kodys "Set Up a MacOS Wi-Fi Package Recording" article.

3rd Create a new low privileged user

Many programs like the Chrome browser and Tor Browser should never be opened or used as a root user. Such applications are highly dependent on low states to provide some degree of security. It may be useful for some users to create a low-privileged user account for such activities.

This term is described in more detail in Takhion's " Lock Down Kali Linux for Safe Desktop Use" article so be sure to check it for help.

4th Installing a Terminal Multiplexer

A multiplexer is a tile terminal emulator that allows us to open multiple terminal sessions in a single window. The biggest advantage of this is being able to see all of our open terminal sessions at the same time and do not store the windows on top of each other. Below is a multiplexer example.

There are many remarkable multiplexers. Tilix, seen in the above screenshot, is an open and reliable alternative. Options include tmux and screen.

Tilix is ​​available in Kalis APT archive and can be installed with the command below.

  apt-get install tilix

Reading package lists ... Done
Build dependency trees
Reading government information ... Ready
The following additional packages will be installed:
libgtkd-3-0 libphobos2-ldc-shared78 libvted-3-0 tilix-common
Suggested Packages:
python nautilus
The following new packages will be installed:
libgtkd-3-0 libphobos2-ldc-shared78 libvted-3-0 tilix tilix-common
0 upgraded, 5 newly installed, 0 to delete and 466 not upgraded.
Need to get 10.7 MB archive.
After this operation, 49.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y 

Recommended on Amazon: "Linux Command Line: A Complete Introduction" by William E. Shotts Jr.

5th Install Your Favorite Capture Tools

Some versions of Kali are aimed at minimalist Pentecostors who prefer not having hundreds of hacking tools preinstalled. This means we must manually install our favorite tools. The types of tools we use vary depending on our skills and competencies, but below are some popular hacking tools.

These tools can be installed with the command below.

  apt-get install maltego metasploit-framework burpsuite wireshark aircrack-ng hydra nmap beef-xss nikto

Reading package lists ... Done
Build dependency trees
Reading government information ... Ready
hydra is already the latest version (8.6-1kali1).

The following new packages will be installed:
beef-xss binfmt-support burpsuite fixes fonts-droid-fallback fonts-lato
fonts-non-mono ghostscript gsfonts imagemagick imagemagick-6-common
imagemagick-6.q16 jarwrapper java-wrappers javascript-common libc-ares2
libcupsfilters1 libcupsimage2 libdjvulibre-text libdjvulibre21 libdouble-conversion1
libfftw3-double3 libgmp-dev libgmpxx4ldbl libgs9 libgs9-common libhttp-parser2.8
libijs-0.35 libilmbase23 libjbig2dec0 libjs-jquery libjs-jquery-easing
libjs-jquery-fancybox libjs-jquery-mousewheel libjs-jquery-ui libjs-source
libjs-uglify libjxr tool libjxr0 liblqr-1-0 liblua5.2-0 libmagickcore-6.q16-6
libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libnetpbm10 libnl-route-3-200
libopenexr23 libpaper-utils libpaper1 libpcre2-16-0 libqt5core5a libqt5dbus5
libqt5gui5 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediagsttools5
libqt5multimediawidgets5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5
libqt5widgets5 libruby2.5 libsbc1 libsmi2ldbl libspandsp2 libssh-gcrypt-4 libuv1
libwhisker2-perl libwireshark-data libwireshark11 libwiretap8 libwmf0.2-7
libwscodecs2 libwsutil9 libxcb-icccm4 libxcb-image0 libxcb-keyword1 libxcb-randr0
libxcb-render-util0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libyaml-0-2
maltego netpbm nikto nodejs nodejs-doc openjdk-8-jr openjdk-8-jre-headless
qt5-gtk platform sign qttranslations5-l10n rake ruby ​​ruby ​​addressable ruby-ansi
ruby-atom ruby-buftok ruby-celluloid ruby-celluloid-io ruby-daemon
ruby data object rubin data object-mysql ruby ​​data object-postgres
rubin-data object-sqlite3 ruby-dev ruby-did-you-mean ruby-diff-lcs rubin-dm kernel
ruby-dm-do adapter ruby-dm-migrations rubin-dm serializer ruby-dm sqlite adapter
rubin-docile rubin-domain name rubin-em-websocket ruby-equalizer ruby-erubis
ruby-event machine ruby-execs ruby-faraday ruby-geoip ruby-hitimes ruby-http
ruby-http cookie ruby-http-form-data ruby-http-parser.rb ruby-json ruby-librex
rubin-mime ruby-liby8 rubin-memoizable ruby-mime types-data rubin minitest
ruby-mojo-magick ruby-msfrpc client ruby-msgpack ruby-multi-json ruby ​​multipart mail
ruby-ruby-net-telnet ruby-nio4r ruby-oj ruby-parseconfig ruby-power-assert
ruby-public-suffix ruby-qr4r ruby-rack rubin-rack protection rubin-ref ruby-rqrcode
Ruby-Rspec Expectations Ruby-Rspec Support Rubin Ruby Rubin-Simple-Oauth
rubin-simplecov rubin-simplecov-html rubin-sinatra rubin-sqlite3 ruby-term ansicolor
Rubin Test Unit Rubin-Therubyrs Rubin-Thread-Safe Rubin-Tilt Ruby-Timer Rubin Cans
ruby-twitter ruby-uglifier ruby-unf ruby-unf-ext ruby-xmlrpc ruby-zip ruby2.5
ruby2.5-dev ruby2.5-doc rubygems integration thin wireshark wireshark-common
wireshark-qt zip
The following packages will be upgraded:
aircrack-ng libcups2 libnl-3-200 libnl-genl-3-200 libxkbcommon0 metasploit framework
nmap nmap-usual
8 upgraded, 182 newly installed, 0 to delete and 458 not upgraded.
Need to get 381 MB archive.
After this operation, 616 MB of additional disk space will be used.
Do you want to continue? [Y/n] y 

6. Install the latest version of Tor

Tor is available in Kalis repositories, but anonymity software should be purchased directly from the source (torproject.org). In addition, the Kalis version of Tor is not reliably maintained or updated. This means we could lack critical stability and security updates.

Add Tor Project Store to your APT list.

  echo & debit deb https://deb.torproject.org/torproject.org stretch head
deb src src / dev / it to your APT keychain. 

  wget -0- & # 39; https: //pgp.mit.edu/pks/lookup? Op = get & search = 0xA3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 & # 39; | sudo apt-key add -

- https://pgp.mit.edu/pks/lookup?op=get&search=0xA3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Solution pgp.mit.edu (pgp.mit.edu) ... 18.9.60.141
Connect to pgp.mit.edu (pgp.mit.edu) | 18.9.60.141 |: 443 ... connected.
HTTP request sent, waiting for reply ... 200 OK
Length: 47255 (46K) [text/html]
Save to: "STDOUT"

- 100% [==================================================>] 46.15K 72.0KB / s in 0.6s

- (72.0 KB / s) - written to stdout [47255/47255]

OK 

You will see the "OK" output when the sign key has been added to your keychain. Then update APT using the command below apt-get.

  apt-get update

Hit: 1 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease
Get: 2 https://deb.torproject.org/torproject.org stretch InRelease [4,965 B]
Get: 4 https://deb.torproject.org/torproject.org stretch / main Sources [1,169 B]
Get: 5 https://deb.torproject.org/torproject.org stretch / main amd64 Package [2,400 B]
Hit: 3 http://archive-3.kali.org/kali kali-rolling InRelease
Fetched 8,534 B in 8s (1,091 B / s)
Reading Package Lists ... Done 

Install Tor with the command below, and you're done.

  apt-get install tor deb.torproject.org key ring

Reading package lists ... Done
Build dependency trees
Reading government information ... Ready
Suggested Packages:
mixmaster torbrowser launcher socat tor-arm apparmor-utils obfs4proxy
The following new packages will be installed:
deb.torproject.org keyring
The following packages will be upgraded:
tor 

7. Configure File Sharing with Syncthing

Syncthing, created by Jakob Borg is an option for the Dropbox option, which is a platform, private, lightweight file. As a penetration test, transfer of keystroke logs, screenshots, webcam cameras and sensitive pass files between virtual private servers and local Kali machines can be a frustrating task. Syncthing makes sure file sharing completely painless.

I've covered the Syncthing installation and configuration in a previous article. Readers should refer to it for a detailed step-by-step guide.

8th Install a code editor

Atom is a free, open source, functional and highly customizable text editor. Its features include the ability to share real-time code, intuitive encoding of autocompletion and the ability to install packages that further enhance Atom's versatility. Other remarkable text editors include Geany and Gedit.

To install Atom, go to their website and download the latest Debian installer. Then open a terminal and install the necessary dependencies using the apt-get command.

  apt-get install gvfs gvfs common gvfs daemon gvfs-libs gconf service gconf2 gconf2-usual gvfs-bin psmisc

Reading package lists ... Done
Build dependency trees
Reading government information ... Ready
Correct dependencies ... Ready
The following new packages will be installed:
gconf service (3.2.6-4.1)
gconf2 (3.2.6-4.1)
gconf2-common (3.2.6-4.1)
gvfs-bin (1.36.2-1)
libgconf-2-4 (3.2.6-4.1)
psmisc (23.1-1 + bl)
The following packages will be upgraded:
gvfs (1.36.1-1 => 1.36.2-1)
gvfs common (1.36.1-1 => 1.36.2-1)
gvfs daemon (1.36.1-1 => 1.36.2-1)
gvfs-libs (1.36.1-1 => 1.36.2-1)
4 upgraded, 6 newly installed, 0 to delete and 462 not upgraded.
1 not fully installed or removed.
Need to get 3,317KB archives.
After this operation, 8 909 kB extra disk space will be used.
Do you want to continue?