Python : Introduction to ethical hacking in Python – Introduction to Kali Linux – Part 1

Hi all,

Today in this article we are going to start a new series on ethical hacking by Python and Kali Linux. Today we are going to see what is kali Linux and we are going to download it on VirtualBox

What is kali Linux?

Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security. It is a open source operating system mainly used for hacking.

Home of Kali Linux, an Advanced Penetration Testing Linux distribution used for Penetration Testing, Ethical Hacking and network security assessments.

So we can use it for free and even contribute for its development.

It is a bit slower.

Virtual box

VirtualBox is free software that allows you to virtualize the x86 computer architecture. It functions as a hypervisor, generating a virtual machine in which the user may run another operating system. 

Step-by-Step Instructions for Installing Kali Linux in a VirtualBox on windows

Step 1: Download VirtualBox from Oracle’s official website –

https://www.virtualbox.org/wiki/Downloads

fig : 1 Virtual box official website
fig : 1 Virtual box official website

Step 2: Simply double-click the downloaded installer to install VirtualBox.

Step 3: Start VirtualBox

fig : 2 virtual box
fig : 2 virtual box

Step 4: Now we will download the kali Linux from its official website – https://www.kali.org/get-kali/#kali-installer-images

fig : 3 Kali Linux installer
fig : 3 Kali Linux installer

You can download kali Linux installer as per your system requirements 64-bit or 32-bit

Step 5: After downloading we will open our virtual box and click on the preferences

fig : 4 preferences in virtual box
fig : 4 preferences in virtual box

Step 6: Then we will click on extensions and plus button

fig : 5 virtual box extensions
fig : 5 virtual box extensions

When clicked on plus button we need to add the virtual box extension pack which is installed with virtual box

fig : 6 adding extension package file
fig : 6 adding extension package file

When selected extension package file click on open and then install it. After installing the extension it will be added and then we have to click on ok

fig : 7 extension added
fig : 7 extension added

Step 7: After clicking on OK the click on the new button. As we are setting up virtual box

fig : 8 new button to setting up virtual box
fig : 8 new button to setting up virtual box

Now we are going to give the name of our operating system which we want to install

fig : 9 giving the name of our operating system which we want to install
fig : 9 giving the name of our operating system which we want to install

Then click on next and select the memory size

fig : 10 memory size
fig : 10 memory size

Click on next and select the hard disk or we can also create virtual hard disk

fig : 11 hard disk
fig : 11 hard disk

Click on the create and choose the hard disk file type

fig : 12 Hard disk file type
fig : 12 Hard disk file type

Click on the next. Storage on physical hard disk

fig : 13 storage on physical hard disk
fig : 13 storage on physical hard disk

Click on next and select the file location and size

fig : 14 file location and size
fig : 14 file location and size

After choosing file location and size click on create and then it will start creating medium storage unit

fig : 15 creating medium storage unit
fig : 15 creating medium storage unit

After creating we have completed the setup of virtual box

Step 8 : Click on the settings

fig : 16 settings
fig : 16 settings

Now click on advanced

fig : 17 advanced
fig : 17 advanced

Then we will select shared clipboard dropdown to bidirectional

fig : 18 shared clipboard dropdown to bidirectional
fig : 18 shared clipboard dropdown to bidirectional

And set drag and drop dropdown to bidirectional

fig : 19 drag and drop dropdown to bidirectional

Then go to processor in system and select 2 CPU’s and Execution cap to 100%

fig : 20 processor in system
fig : 20 processor in system

Go to storage and click on empty to select disk file. Then click on the choose file

fig : 21 Choose a disk file
fig : 21 Choose a disk file

After clicking on choose file select the kali Linux installer iso file that we have downloaded first

fig : 21 select kali Linux installer file
fig : 21 select kali Linux installer file

After opening click on ok

fig : 22 kali Linux file opened
fig : 22 kali Linux file opened

After clicking on ok click on start

fig : click on start
fig : click on start

Then click on graphical install and press enter

fig : 23 graphical install
fig : 23 graphical install

Then select the language and click on continue

fig : 24 select language
fig : 24 select language

Select our location and click on continue

fig : 25 location
fig : 25 location

Then configure the keyboard and click on continue

fig : 26 configure keyboard
fig : 26 configure keyboard

After few seconds it will configure the network

fig : 27 configure the network
fig : 27 configure the network

After configuration of network it will ask for host name. Give the host name and click on continue

fig : 28 hostname
fig : 28 hostname

Then it will ask for domain name. Its optional and then click on continue

fig : 29 domain name
fig : 29 domain name

Now we have to give our username

fig : 30 username
fig : 30 username

After giving the user name we have to setup the password and then click on continue

fig : 31 password
fig : 31 password

Then it will configure the clock, we have to select our time zone . After the configuration of clock it will start partition disks it will take time to load

fig : 32 Partition disks
fig : 32 Partition disks

Finishing partitioning

fig : 33 Finishing partitioning
fig : 33 Finishing partitioning

Write changes to disk

fig : 34 changes to partition disks
fig : 34 changes to partition disks

Then it will start installing base system

fig : 35 installing the base system
fig : 35 installing the base system

After installing base system it will configure the package manager. After configuration of package manager it will select and install

fig : 36 select and install
fig : 36 select and install

If you get an error in installing

fig : 37 Installation setup failed

Click here – https://knowledge-junction.in/2022/10/23/kali-linux-resolving-error-while-installation-an-installation-step-failed/

After solving the error

Install grub boot loader

fig : 38 grub boot loader
fig : 38 grub boot loader

Install grub boot loader in primary device

fig : 39 Install grub boot loader in primary device
fig : 39 Install grub boot loader in primary device

Then click on continue and it will start installing.

Finishing installation

fig : 40 finish installing
fig : 40 finish installing

Installation completed

fig : 41 installation completed
fig : 41 installation completed

Now click on the continue

Then again it finish the installing

fig : 42 finish the installation
fig : 42 finish the installation

Then after 10 seconds kali Linux will be starting

fig : 43 kali Linux starting
fig : 43 kali Linux starting

Then you have to give your username and password which you have set while installing

fig : 44 logging screen
fig : 44 logging screen

After logging you can see the kali Linux screen

fig : 45 kali Linux
fig : 45 kali Linux

Congratulations 🎊 after so much hard work you have finally installed the kali Linux

In next article we will learn ethical hacking with Python and kali Linux

Thank you for reading 📖

Have a nice day!!

You may also like...

2 Responses

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: