It was some invalid options for airbase.
Quote:
Originally Posted by
dominatus
Make sure the "tun" module is loaded, lsmod | grep tun.
It should be called with "modprobe tun" in the script, try doing it yourself on the command line and see what happens.
I dug a little deeper.
The reason I was getting the 'unknown interface' error was because the part of the script that called AIRBASE; had some unrecognised options (namely -P and -C 30).
Therefore it was not firing and 'at0' never came into being...
****ORIGINAL CODE BELOW****
# FakeAP
echo "[+] Setting up FakeAP"
modprobe tun
xterm -geometry 75x15+1+0 -T FakeAP -e $toolsdir/airbase-ng -P -C 30 -e "Free WiFi" $fakeap_interface -v&
sleep 2
I removed these unknow options and it worked.
***MY MODIFIED CODE****
# FakeAP
echo "[+] Setting up FakeAP"
modprobe tun
xterm -geometry 75x15+1+0 -T FakeAP -e /usr/sbin/airbase-ng -e "Free WiFi" $fakeap_interface -v&
sleep 2
Also... for anyone else reading this; make sure you get the correct '$fakeap_interface' setting. For me, although my wireless interface is WLAN0, airmon-ng turns it into MON0.
That is important in the script.