This is a Getting started with Kali linux guide. In this PPT we have touched various steps, which are required to setup your machine before proceeding further. We have covered topics like HTB (Hack the Box), Installation of Python, Installation of Kali Linux, How to install Terminator & How to install Tmux
2. Introduction
In this presentation we will understand:
• How to install Kali Linux.
• Assign an IP address.
• Shutdown the System.
• Install Terminator
• Introduction to Centos and setting up the web server.
• Introduction to Python.
• Getting started with Hack the Box.
2
3. Download
Use below link to download the required Kali Linux image.
https://www.kali.org/downloads/
We need to download an ISO Image.
3
4. Import the Image & Login
• Opt for Graphic Install
• Check for Python version on Kali.
4
5. Assign the IP Address
ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up.
route add default gw 192.168.1.1.
5
8. Introduction to TMUX / Terminator
• System administrators often need to work on multiple consoles and thus they appreciate the
ability to switch from one to another in a snap with a quick keyboard shortcut or mouse click.
• Terminator is easy to install and it does exactly what it's supposed to do - it can split terminal
windows both horizontally and vertically, according to user's requirements. It also allows to keep
multiple tabs opened in case splitting one window is not enough.
8
18. Python Installation
• Download Link: https://www.python.org/downloads/
• You can install Python either on Linux or Windows Operating system.
18
19. Python Installation
• View Version
• Python 2 and Python 3, both are installed on the Kali operating
system. If we run a program using #python <prog>.py, the code is
executed in python 2. If we want to execute the same in python 3
than use syntax - # python3 <prog>.py
19
21. Setup VPN on hack-the-box (1 of 3)
• Step 1: Login into Hack the box account & download the connection pack into Kali
Linux. Check out for cross under connected section.
21
22. Setup VPN on hack-the-box (2 of 3)
• Download the file and run the file as shown below.
22
23. Setup VPN on hack-the-box (3 of 3)
• Verify your connectivity.
23
25. HTB Benefits
• Hello All,
• We are excited to announce our support to (ISC)2 and becoming an official (ISC)2
CPE Submitter.
• This partnership is in line with our education strategy and we believe that it will
greatly benefit our community to demonstrate, prove and enhance their (ISC)2
certifications through their engagement and practice on Hack The Box.
• CPE Credits submission will be available to our VIP members. Our VIP members
can obtain credits, by completing Hack The Box Machines, Challenges, Endgames
and Pro Labs. In order to start tracking your activity and automatically get your
credits, you need to enable this option through your account settings.
• https://www.hackthebox.eu/press/view/8
25
27. Import exploit
• In many situations we need to import exploit from internet into
metasploit.
• This guide will help you with the exploit.
27
28. Import exploit
• We cannot directly use an exploit from exploit.db with msfconsole.
• We need to import it.
28
29. Step 1 of 3
• Copy the exploit downloaded from internet or from exploit.db in below file location.
/usr/share/metasploit-framework/modules/exploits
• Based on the nature of exploit, create a folder and place the exploit as shown below.
29
30. Step 2 of 3
• Place the exploit and ensure there are no space and quit the msfconsole.
30
32. • Hackbar with Cyber-Fox – This bar will be useful when performing
SQL injection attacks.
32
33. Hackbar with Cyber-fox
• Install cyberfox using below link and follow the steps:
https://sourceforge.net/projects/cyberfox/files/Beta/Browser/Linux/
•
• Remove Firefox, from your kali
https://installlion.com/kali/kali/main/f/firefox-esr/uninstall/index.html
33
36. WHY ?
• Within one terminal window you can open multiple windows and
split-views
• tmux keeps these windows and panes in a session. You can exit a
session at any point. This is called “detaching”. tmux will keep this
session alive until you kill the tmux server (e.g. when you reboot).
This is incredibly useful because at any later point in time you can pick
that session up exactly from where you left it by simply “attaching” to
that session.
36
37. Tmux installation
• It is pre-installed in your kali
• You can install it on your ubuntu or mac os using below commands
sudo apt-get install tmux for ubuntu || brew install tmux for MAC
• Tmux configuration is placed inside .tmux.conf file, which is a hidden file. We
strongly recommend you to create your new tmux.conf file and place it in the
root directory.
• Vi /root/.tmux.conf and use the configuration from below link, provided by
ippsec.
https://gist.github.com/AvasDream/47f13a510e543009a50c8241276afc24
37
39. Tmux Operations
• Create a new session
• Create a new terminal: [ctrl + a] + c (new terminal) and to kill the terminal =
prefix (ctrl+a)+ x
39
40. Tmux Operations - Moves
• Move 1: Swapping between the terminal 0 & 1= [ctrl + a] +0 || [ctrl + a] + 1
• Move 2: You might end up in a scenario, where you accidently closed a window. Using tmux, you
can reconnect and process will begin, from exact point where you left.
• View Tmux sessions
• Attach to specific
• Detach = Close or prefix + d
40
41. Tmux Operations - Moves
• Move 3: Delete the terminals: Right now we have two terminals, we can close the
terminal by typing > exit or ctrl + d
• Move 4: Within a single screen create split screens
• vertical split : Prefix + %
• Horizontal split : Prefix + “
41
42. Tmux Operations - Moves
• Move 5: Moving between the screens cannot happen by clicking the mouse
cursor in the terminal. Use Prefix + arrow sign ( <-- ) .
• Move 6: To create random distribution between the shapes of the terminal use
Prefix + Space Bar.
• Move 7: To increase the width of the window use prefix + ctrl + arrow sign ( <--
).
• Move 8: Kill a specific terminal window : Prefix + x (same as killing the bigger
terminal window)
42
43. Tmux Operations - Moves
• Move 9: Edit mode Scroll up and down : Prefix + [
Exit edit mode: Enter
• Move 10: Search in the document: Prefix + ? (search up) Or Prefix / (search down)
and press ‘n’ for next highlighted value.
Note: This is important to search for keywords like password in the dump file.
43