Home Hacking How to Make a WiFi Jammer with Raspberry Pi 3

How to Make a WiFi Jammer with Raspberry Pi 3

4721
5
SHARE

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

 

How to Make a WiFi Jammer with Raspberry Pi 3 - Equipment Needed

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:

Raspberry Pi 3 Model B Motherboard

TP-Link Wireless USB Adapter

PNY HD5000 PowerPack

SanDisk Ultra 32GB microSD Card

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:

python

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:

scapy

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:

apt-get update

How to Make a WiFi Jammer with Raspberry Pi 3 - Confirming Python and Scapy are installed

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:

cd /

Next issue the following command to create the directory where we will store our python file:

mkdir wifijammer

Now lets navigate to that directory using the following command:

cd wifijammer

Now we need to create our python file using the following command:

nano wifijammer.py

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:

python wifijammer.py

How to Make a WiFi Jammer with Raspberry Pi 3 - Testing WiFi Jammer Script

When you run the command to execute the python script you will notice that your Raspberry Pi will auto-detect your WiFi adapter and enable monitor mode as well as discover nearby networks. It will then hop channels identifying all access points and the clients connected to them. When the targets are identified it will start sending deauth packets.

How to Make a WiFi Jammer with Raspberry Pi 3 - WiFi jammer script working

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:

cd /etc

Now you can edit the “rc.local” file by using the following command:

nano rc.local

At the bottom of that file right above the “exit 0” line you need to add the following:

python /wifijammer/wifijammer.py

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.

5 COMMENTS

    • Hello Tom,

      The USB WiFi dongle used in this post is “plug-n-play” which means it should work as soon as you plug it in. No drivers are needed. Are you using the same USB WiFi dongle?

      • Bro NOTE
        The tplink tl wn722n is no longer supported.
        The older v1 had atheros chipset but the newer v2 has realtec chipset. Hence v1 supports monitor mode but v2 does not. Amazon sells v2 of this adapter without mentioning. Hereby better buy alpha or panda pau05 or pau06

  1. hello dude,
    thanks for the info.
    i got the same problem with the wifi adapter tl-wn722n.
    doesn’t turn on the light but kali recognize the adapter.
    i has followed all the guide and i don’t know what happens.
    sorry for my bad english and again,
    thanks for the tutorial.

LEAVE A REPLY

Please enter your comment!
Please enter your name here