Showing posts with label Backtrack. Show all posts

Learn How TO Hack Wifi

how to hack a wifi pasword | How to crack a wifi password

 let us start with the Wi-FI cracking. But before starting the tutorial let me give you a small introduction to what Wi-Fi hacking is and what are the security protocols associated with it.
In a secured wireless connected the data on internet is sent via encrypted packets. These packets are secured with network keys.

There are basically 2 types of security keys :
WEP( Wireless Encryption Protocol) : This is the most basic form of encryption. This has become an unsafe option as it is vulnerable and can be cracked with relative ease. Although this is the case many people still use this encryption.
WPA( Wi-FI Protected Access) : This is the most secure wireless encryption. Cracking of such network requires use of a wordlist with common passwords. This is sort of brute force attack. This is virtually uncrackable if the network is secured with a strong password
So lets begin the actual Wifi Hacking tutorial!
In order to crack wi-fi password, you require the following things :

1) A Desktop or Laptop having a Wireless Adapter
2) Backtrack 
3) Brain! ( The most important part)
These are the things you require now let us proceed with the steps to crack wifi passwords easily.
1) Open Backtrack & Open Terminal In It.
2) Type airmon-ng and hit Enter. You will have a screen like this, note down the name of interface, in our case the the name is wlan0.
How to hack a wifi password
3) Now type ifconfig wlan0 down and hit enter.
This command will disable your wireless adapter, we are doing this in order to change yourMAC address.
3) Now type ifconfig wlan0 hw ether 00:11:22:33:44:55 and hit enter.
This command will change your MAC address to 00:11:22:33:44:55 in order to hide your identity.
4) Now type airmon-ng start wlan0 and hit enter.
This will start the network adapter in monitor mode. Note down the new interface name, it could be eth0  or mon0 or something like that.
How to hack wifi passwords easily
The above command has started our network adapter in monitor mode as mon0,  note down this name.
5) After this type airmon-ng mon0 and hit enter
Replace the mon0 with interface name you discovered in step 4. This command will show you the list of available networks. Press Ctrl+C to stop the airmon to search for more networds. Copy the BSSID of the wireless network which you want to hack.
How to crack wifi passwords easily
 In the above screenshot there is a list of available networks, Choose 1 network and note the BSSID andchannel of it.
6) Type airodump-ng -c channelno –bssid BSSIDN1 mon0 -w filename and hit enter.
Replace channelno and BSSIDN1 with the data from step 5. Replace the mon0 with network interface name from step 4. In place of filename write anyname and do remember that. Better use filename itself.
This command will begin capturing the packets from the network. You need to capture more and more packets in order to crack the wifi password. This packet capturing is a slow process.
7) To make the packet capturing faster, we will use another command. Open a new shell, don’t close the previous shell. In new shell type aireplay-ng -1 0 -a BSSIDN1 -h 00:11:22:33:44:55 mon0 and hit enter.
Replace the BSSIDN1 with the data from step 5 and mon0 from step 4. This command will boost the data capturing process.
The -1 tells the program the specific attack we wish to use which in this case is fake authentication with the access point. The 0 cites the delay between attacks, -a is the MAC address of the target access point, -h is your wireless adapters MAC address and the command ends with the your wireless adapters device name.
8) Now wait for few mins, let the DATA in the other console reach a count of 5000.
crack wifi passwords easily
 The data in above screenshot is 1, wait for that to reach 5000.
9) After it reaches 5000, open another console and type aircrack-ng filename-01.cap and hit enter.
Replace the filename with the name you used in step 6. Add -01.cap to it. .cap is the extension of file having captured data packets.
After typing this command, aircrack will start trying to crack the Wi-FI password. If the encryption used is WEP, it will surely crack the password within few minutes.
In case of WPA use the following command instead of the above aircrack-ng -w /pentest/wireless/aircrack-ng/test/password.lst -b BSSIDN1 filename-01.cap
Replace BSSIDN1 and filename with data you used. /pentest/wireless/aircrack-ng/test/password.lst is the address of a file having wordlist of popular passwords. In case of WPA aircrack will try to brute force the password. As I explained above that to crack WPA you need a file having passwords to crack the encryption. If you are lucky enough and the networkowner is not smart enough, you will get the password.

How TO Install Backtrack

Download the Backtrack 5 ISO

Setting up a Virtual Machine

A virtual machine (VM) is the software implementation of a physical computer. In other words, it’s having another computer on your current computer. If you have never used a virtual machine it is a good time to start. VMs are excellent when it comes to practice labs which we will get to in another section.
To start, you’re going to need to get VM software. There are many out there, but I will list a few popular ones.
  1. VMware Workstation 9 (Windows/Linux) – $249.00 USD
  2. VMware Player (Windows/Linux)  – Free
  3. VirtualBox (Windows/Mac/Linux) – Free
Whichever VM software you go with, make sure it has a way to network with other VMs. If you don’t want to spend the money, go with VirtualBox. If you plan to get serious with penetration testing, you might want to consider getting a VMware Workstation license. It is full of useful tools and goodies such as sharing VMs and remote access and easy to work with.
I will be use VMware Workstation, but these programs are very similar in function. You shouldn’t have trouble following along if you are using something else.
After everything is installed and running, click “Create new virtual machine”.
VM Install 1
Next you’re going to select “Installer disc image file” then browse for the backtrack 5 ISO.
Vm Install 2
Select the operating system as linux, and the version as Ubuntu.
VM Install 3
Give the virtual machine a name such as “Backtrack 5 R3” and select a location for where you want to save the virtual machine files.
VM Install 4
When asked how much you want the virtual disk drive to be, you want at least 25 GB. This will be the most demanding requirement of Backtrack 5. I went and used 40 GB for my virtual machine. Although the backtrack-linux wiki says you need at least 20 GB, I found you will run out of space by the time you install updates or any other software. Then, you will have the option of storing the virtual disk as a single file, or split into multiple files. Creating a virtual disk as a single file will allocate all of the space right away. Splitting into multiple files means the drive files will grow as you need them. So if your hard drive space is limited on your host system, go with multiple files. If you have a massive drive, and not worried about space, go with a single file.
VM Install 5
And that’s it! The virtual machine is ready to go. I left mine at 1 GB of ram, if you are limited of memory, you can change this in the virtual machine settings. The recommended minimum memory is 512 MB, however you can try lower if you need to.
VM Install 6
Power on the virtual machine and you will be ready to install Backtrack.

Installing Backtrack 5

If you are installing on a hard drive, you will need to burn the Backtrack 5 ISO on to a DVD or a USB Drive. For directions on installing to a USB Drive, see here (link).
First turn on your machine, then insert your DVD or USB Drive. Then press the key that allows you to select your boot drive. You may have to go into the bios to enable this. Most often, F12 will work. Select either your DVD drive, or your USB Drive to boot from it. You should see a screen like this:
VM Install 7
After a few moments, you will see Backtrack Live CD menu. Press enter on Backtrack Text – Default Boot Text Mode.
VM Install 8
Wait about 10 seconds, and you will come to Backtrack shell console. Type the command “startx” to load the GUI.
VM Install 9
After another few moments, you will come to the desktop of Backtrack. Double click on the “Install Backtrack” to begin the install process.
BT Install 1
After you select your time zone, and language, you then have to partition your drive. If you are using a virtual machine, go ahead and use the whole drive. If you are dual booting, you will have to specify your partition for your two operating systems.
BT Install 2
Continue through the installer, and then click finish. Backtrack will then install on to your system. This process takes about 10-15 minutes.
BT Install 3
After it is finish, restart your system.
BT Install 4

Backtrack 5 Login

After restarting, you will come to a login screen like this:
BT Log 1
The default root name for Backtrack is “root” and the password is “toor”. After typing in the root username and password, you will come back to the Backtrack shell. Type “startx” to enter the GUI desktop.
Other Method : 

Creating a Bootable USB Drive

Required Items:
UNetbootin is a program that allows you to create bootable USB drives for linux distros and Windows. UNetbootin will download the distribution or use an ISO file you selected from your hard drive.
  1. Once UNetbootin is downloaded you can run it by double clicking (Windows)
  2. Plug in your USB Drive.
  3. Start UNetbooin and select the “diskimage” option, then select your Backtrack 5 ISO.
  4. Select your USB Drive, then click “OK”.
    WARNING: This will format your USB Drive and remove all previous data.
Now you should be able to boot off of your USB Drive with Backtrack 5.
unetbootin