For every version of Raspberry Pi prior to the latest Pi 3, connecting to the internet was achieved in one of two ways; connecting via the Ethernet port or using a USB Wi-Fi adapter.
How to Crack WPA2 WiFi Networks using the Raspberry Pi. The best use of the Raspberry Pi in hacking WiFi networks is that you can use it to collect a 4-Way handshake and then transfer the handshake for cracking to a more powerful computer. The reason the Raspberry Pi is good for a scenrio like this is because of its mobility. Raspberry Pi WiFi Adapter Compatible with Raspberry Pi, PC or MAC. Wireless N speed up to 150Mbps. Support AP mode to act as a WiFi Hotspot. In order to connect a Raspberry Pi 2 or older devices (which doesn’t have on – board WiFi Adapter), we need to use an USB type WiFi Dongle. The WiFi Dongle used in this project is a Tenda W311MI USB Adapter. This particular adapter supports IEEE 802.11b/g/n protocols with speeds up to 150Mbps.
This article will show you how to set up a USB Wi-Fi adapter with your Pi, using an Edimax EW-7811Un in this example.
Connect Hardware
Open the Terminal
If your Pi boots to the terminal by default, skip this step.
If your Pi boots to the Raspbian desktop (LXDE), click the Terminal icon in the taskbar. It looks like a monitor with a black screen.
Edit the Network Interfaces File
The first change to make is to add a few lines to the network interfaces file. This sets up the USB adapter to be used, and later on, we will tell it what to connect to.
In the terminal, type in the following command and press Enter:
Your file will already have some lines of text in it, which can be different depending on your version of Raspbian. Regardless, you need to make sure you have the following four lines — some may already be there:
Press Ctrl+X to exit and save the file. You'll be asked if you want to 'save modified buffer', this just means 'Do you want to save the file?' Press Y and then hit enter to save under the same name.
Edit the WPA Supplicant File
This supplicant file is where you tell your Pi which network to connect to, and the password for that network.
In the terminal, type in the following command and press Enter:
There should already be a couple of lines of text in this file. After these lines, enter the following block of text, adding your specific network details where required:
Homophone for urn. YOUR_SSID is the name of your network. This is the name that comes up when searching for Wi-Fi, like BT-HomeHub12345 or Virgin-Media-6789'.
YOUR_PASSWORD is the password for your network.
You can add multiple blocks if you need your Pi to connect to different networks depending on your location.
Optional Step: Turn off Power Management
If you have any issues with your Wi-Fi adapter dropping connections or becoming unresponsive, it may be the driver's power management setting causing you problems.
You can turn off power management by simply creating a new file with a line of text inside it.
Raspberry Pi Wifi Adapter Driver
Enter the following command to create this new file:
Then enter the following line of text:
Once again exit the file using Ctrl+X and save under the same name.
Reboot Your Raspberry Pi
That's everything you need to do to set up a Wi-Fi adapter, so now we need to reboot the Pi to put all of these changes into effect.
Type the following command in the terminal to reboot, then hit Enter:
Your Pi should restart and connect to your network within a minute or so.
Troubleshooting
If your Pi doesn't connect, there are a few obvious things you should check:
Raspberry Pi Wifi Dongle![]() Raspberry Pi Wifi Adaptor Driver
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |