The Raspberry Pi has become quite the phenomenon in the computing world for hobbyists, inventors, and students. Raspberry Pi projects have been sprouting up all over and it has opened up new doors in the tech world. In our project we are going to demonstrate how to make a WiFi Jammer with Raspberry Pi 3.
As a disclaimer we must point out that it is unlawful to operate, manufacturer, import, market, or sell jamming equipment. This article is for educational use only and it shouldn’t be intended for use on “real” WiFi networks. This post is meant to give an idea of how deauthentication packets work.
HOW TO MAKE A WIFI JAMMER WITH RASPBERRY PI 3 – EQUIPMENT
There are some requirements needed before you can successfully learn how to make a WiFi jammer with Raspberry Pi 3. You will need the following items:
This WiFi jammer is considered “portable” because it is small and runs on a USB power pack. Before we begin you should have Kali Linux or another Linux distribution installed on your Raspberry Pi. Check out installing full version of Kali Linux on Raspberry Pi 3 for help installing the operating system.
When you have your Raspberry Pi configured and ready to go you can plug in your USB WiFi adapter. The WiFi adapter that we use in this article is plug-n-play so there is no need to install drivers. There are other USB WiFi adapters that have better range such as the Alfa WiFi adapters but for simplicity we are using the TP-Link. You just need to be using a WiFi adapter that supports monitor mode.
YOUR WIFI ADAPTER SHOULD SUPPORT MONITOR MODE
Boot up your Raspberry Pi and make sure that you have Scapy and Python installed. Both Scapy and Python come pre-installed with Kali but if you are using a different Linux distribution you may not have them. To check if you have Python installed open up a terminal session and type:
If you don’t have it installed use the following command to install it:
apt-get install python
Now you need to check if Scapy is installed. Python is a requirement for Scapy so be sure that Python is installed before installing Scapy. To check if you have Scapy installed use the following command:
If you don’t have Scapy installed you can visit SecDev for Scapy installation instructions.
Let’s make sure everything is up to date as well by using the following command:
HOW TO MAKE A WIFI JAMMER WITH RASPBERRY PI 3 – DISABLE WIFI
Knowing how to make a WiFi jammer with Raspberry Pi 3 means you will need to know how to disable onboard WiFi for Raspberry Pi 3. You can either disable the onboard WiFi or make sure that you have no networks saved. You don’t want your Raspberry Pi auto-connecting to any networks. You shouldn’t be connected to any networks when using this device.
Make sure that you have no networks saved.
You can delete saved networks by navigating to Applications >> Settings >> Network Connections. Then click on the network and click “Delete“.When you have disabled the onboard Wifi or removed all saved networks then you can continue.
HOW TO MAKE A WIFI JAMMER WITH RASPBERRY PI 3 – USING PYTHON
Your Raspberry Pi will be running a python script for network jamming. You will first need to create a directory to place the file in. In your terminal navigate to root:
Next issue the following command to create the directory where we will store our python file:
Now lets navigate to that directory using the following command:
Now we need to create our python file using the following command:
THE WIFI JAMMER SCRIPT
You will need to copy and paste Dan McInerney’s WiFi Jammer script into your wifijammer.py file. When you have it pasted save the file by pressing “Ctrl+x“, then “y“, then “Enter“.
We would like to point out that all the credit goes to Dan McInerney and the other contributors on GitHub. They are the producers of the script responsible for the WiFi jammer. We are only giving an in-depth tutorial on how to use it.
TESTING THE SCRIPT
Now that the WiFi jammer file is created you can test it to make sure that it works. If you are not already in the wifijammer directory you will need to navigate there. When you are in the wifijammer directory you can run the following command:
If you have any connected devices to a nearby network you should notice that it will continuously connect and disconnect.
HOW TO MAKE A WIFI JAMMER WITH RASPBERRY PI 3 – RUN AT STARTUP
If you want your WiFi jammer to run at startup as soon as it is powered on you will need to first enable Raspberry Pi 3 Kali Linux Auto Login. Enabling auto login will prevent you from having to enter your username and password when your Raspberry Pi boots up.
Next you will need to edit your “rc.local” file to run the WiFi jammer script at startup. Navigate to the “/etc” directory by using the following command:
Now you can edit the “rc.local” file by using the following command:
At the bottom of that file right above the “exit 0” line you need to add the following:
Then save the file by pressing “Ctrl+x“, then “y“, then “Enter“. Then you need to set permissions of that file by using the following command:
chmod +x /wifijammer/wifijammer.py
Then you just reboot your Raspberry Pi and within 60 seconds you’ll be jamming nearby networks.