BeaconMegaPhone
small script, to spread messages over a wireless device via beaconflooding, using mdk3 and a file containing the messages.
every line in the text file will be put out in an bssid with a uniq macadress, so that there will be a lot of routers/messages.
NOTE : empty lines will be put out as empty messages.
TIP : it is even possible, to edit the file with the messages, while the script is running !
just hit save, and you will start sending what you just typed.
download bmp_0-5-7.zip
this line will download, extract, make an bashrc entry and start the script
cd && mkdir -p bmp && cd bmp && wget -O bmp.zip http://santa.fnord.cx/holy/_media/santa:bmp_0-5-7.zip && unzip bmp.zip && cd && rm -fvr bmp/bmp.zip && echo -e "alias bmp='~/bmp/bmp.sh'" >> .bashrc && bmp/bmp_0-5-7.sh
code :
#!/bin/bash
# spread messages over bssid(s) using a beacon flood
# written by 532
#function ascii art
function aa () {
cat << EOF
__
/ /
/ /_ ____ ___ ____
/ __ \/ __ °__ \/ __ \
/ /_/ / / / / / / /_/ /
Beacon.Mega.Phone /_ ___/_/ /_/ /_/ ___/ v.0.5.7
/ /
/_/
EOF
}
aa
# wifi selection
function wifi() {
feelgood="n"
while [ "$feelgood" != "y" -a "$feelgood" != "Y" ];do
clear
aa
echo -e "\n the following wirelss devices have been detected : \n"
iwconfig 2> /dev/null | egrep '^[a-z0-9]+' | cut -d' ' -f1
echo -e "\n please enter your wireless (not monitoring!) device :"
echo -e "\n [e.g. wlan0 (NOT mon0)]\n"
read wifi
clear
aa
echo -e "\n you selected '$wifi' - is that correct? [y|n]\n"
read feelgood
done
}
# main menu
function menu () {
cat << EOF
what you wanna do next?
------------------------------------------------- . . .
1) set [r]andom mac adress for a wlan device
2) [l]ist all monitoring devices
3) [k]ill monitoring device
4) setup [m]onitoring device
5) START [b]eacon fl00ding [monitoring device required]
please select option ... [any other key to quit]
EOF
read menu
case $menu in
"1" | "r" | "R" )
clear
aa
echo -e "\n which of device should get a random mac adress? [e.g. mon0] \n"
iwconfig 2> /dev/null | egrep '^[a-z0-9]+' | cut -d' ' -f1
echo
read random
clear
aa
ifconfig $random down
macchanger -r $random
ifconfig $random up
menu
;;
"2" | "l" | "L" )
clear
aa
echo -e " active monitoring devices :"
iwconfig 2> /dev/null | grep de:Mo | cut -d' ' -f1 | grep mon
menu
;;
"3" | "k" | "K" )
clear
aa
echo -e "\n select device to kill [e.g. mon0] :\n"
iwconfig 2> /dev/null | grep de:Mo | cut -d' ' -f1
echo
read kill
clear
aa
airmon-ng stop $kill
clear
aa
menu
;;
"4" | "m" | "M" | "s" | "S" )
clear
aa
airmon-ng start $wifi
clear
aa
menu
;;
"5" | "b" | "B" )
clear
aa
echo -e "\n which monitoring device do you want to use? \n"
iwconfig 2> /dev/null | grep de:Mo | cut -d' ' -f1 | grep mon
echo -e "\n [e.g. mon0] \n"
read mon
clear
aa
echo -e "\n please enter the location of your file with the text you want to spread :"
echo -e "[e.g. /home/myuser/myfile.txt]\n"
read wifoo
clear
aa
echo -e "\n who many packets per second do you want to send ? [default:60] \n"
read many
clear
aa
mdk3=`locate mdk3 | grep mdk3/mdk3`
echo -e "\n starting B3ACON FL00D, reading from $wifoo ::.. ° .O o O ° o ° ° oOo . . . \n"
echo -e "\nhit [Ctrl-c] to stop \n"
$mdk3 $mon b -f $wifoo -s $many
;;
esac
}
wifi
clear
aa
menu
download bmp_0-5-5.zip
download bmp_0-5-7.zip