How to install Kali linux In a USB drive (Hack as you go )


How to install Kali linux In a USB drive (Hack as you go )
Today you will be learning how to install kali linux in a usb drive so you can just plug into any machine for example library , school computers or any laptops .Alter the bios settings and reboot it . You will be having kali linux without disturbing the current operating system or Leaving too much trails . Most of the Black hats as well as penetration testers (Black box testers) like us use USB drives because it makes us getting away without any suspicion. However each usb drive has a specific UID which is embedded in each device . While you plug it in , Windows operating system will make a note of date , month , year and time . I will teach you how to delete them later in a different tutorial these are certain things you need to be aware off .


Requirements :
4 GB pendrive or a memory card
ISO image of kali linux downloaded from https://www.kali.org/downloads/
HashMyFiles v2.15 download from http://www.nirsoft.net/utils/hash_my_files.html
Win32 Disk image for windows .
DD default command in linux and OSX

For windows Users


Step 1

Please check the hash values matching or not using the HashMyFiles v2.15
We do this to check whether content you downloaded is not altered by any means .

Step 2

Plug your USB thumb drive.

Step 3

Downlaod win32 disk imager , it’s a portable executable so you will have screen like the below image .







Step 4

Browse and point to the location where the kali linux iso is downloaded , Under the device to your top right corner select the USB you need ISO to be imaged. Make sure the usb device is already been formatted and there no valuable contents over there . Clikc on write.




Step 5

Be patient and wait for the winimager to say “ WRITE SUCESSFUL “ .
Safely eject the pendrive using the safely remove hardware icon to your right bottom of the reason .Do not unplug the pendrive because you risk corrupting the pendrive and losing data.

Step 6

Reboot and Check your laptop or pc manual and find the Bios key , change the primary boot to USB drive


Step 7
After making the changes , save the settings and reboot the computer . You will have kali linux up and running .


Let the Hack begin

For Linux users


We will be using dd command to create a bootable kali linux usb drive . DD is a command line utility found in unix and linux environment. The DD command is use to convert and copy the files .
You need to be logged in a super user or SUDO command to use this utility.

Step 1 :
Make sure your USB thumb drive is not plugged in
And type this command in the terminal

sudo fdisk –l

It displays all  the partitons and storage devices connected to your computer. Make a note of all the partitions and storage devices . This is to make sure you don’t alter or delete any of your necessary volumes.

Step 2 :

Plug in your USB drive and run the same command

Sudo fdisk –l

It displays a  the pendrive which you plugged in few minutes back . make a note of the disk identifier it looks like 0x73876a9c
And the “/dev/sdb” (Which is your pendrive)

Step 3 :

Type this command in the terminal

 dd if=kali-linux-1.1.0a-i386.iso of=/dev/sdb bs=512k
                           
kali-linux-1.1.0a-i386.iso this is the image name of the kali linux I have downloaded  and bs=512k  is the block size  parameter which I have given . Default block size parameter is 512 and I don’t suggest you increasing the values since it might make your usb unusable.

Step 4 :

Wait patiently for it to finsh writing , it took me 17 minutes to finish it
This will be the output

5823+1 records in
5823+1 records out
3053371392 bytes (3.1 GB) copied, 746.211 s, 4.1 MB/s


Step 7 :

Hurray ! you did it . Now lets reboot and change the bios settings
Description: http://www.lostwindowspassword.com/images/bios/usb_bios_6.gif

Reboot and Check your laptop or pc manual and find the Bios key , change the primary boot to USB drive


Step 8 :
After making the changes , save the settings and reboot the computer . You will have kali linux up and running .


Let the Hack begin


For  MAC Users


We will br making use of diskutil and dd command in Mac os X . Im using Yosemite . It still works with other versions as well .make sure you are logged in as Administrator or you need the sudo password.

Step 1 :
Don’t plug in your USB drive and press command and Space , type terminal open it . Type in this command

Diskutil list

You will be having a out put like this
Lawways-MacBook-Pro:~ lawway$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                         120.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           *120.1 GB   disk1
                                 Logical Volume on disk0s2
                                 E6EB5770-BFEA-432C-BBC1-AFF6D4AF63AF
                                 Unlocked Encrypted

Make a note of all these somewhere in text edit .

Step 2 :
Plug in your USB drive and type in the same command

Diskutil list

You  will be getting a output like this

Lawways-MacBook-Pro:~ lawway$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                         120.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           *120.1 GB   disk1
                                 Logical Volume on disk0s2
                                 E6EB5770-BFEA-432C-BBC1-AFF6D4AF63AF
                                 Unlocked Encrypted
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *1.0 TB     disk2
   1:               Windows_NTFS My Passport             790.5 GB  

Here I can see external hard drive names as /dev/disk2.
Im going to use this for usb booting.

Step 3:

Type this command

sudo dd if= kali-linux-1.1.0a-i386.iso of=/dev/disk2 bs=1m

Step 4 :

It will take time like 20 – 30 minutes . It will not show any output until its completed Please be patient for it to complete.

You will get a output like this

2911+1 records in
2911+1 records out
3053371392 bytes transferred in 2151.132182 secs (1419425 bytes/sec)

Hurray !
Its time to reboot and press the function key till it gets you to the boot screen , where you can select the drive to boot and press live boot in kali linux.
Let the hack begin !






No comments:

Post a Comment

Information About You