Tuesday, November 3, 2009

Installation and usage of fakeap tool

Installation and usage of fakeap tool:
Download fakeap-0.3.2-1.0.rh7.rf.noarch.rpm, hostapd-0.6.9.tar.gz.
Install bridge-utils-1.1-2 rpm.

Installing hostapd:-
Untar hostapd-0.6.9.tar.gz.
cd hostapd-0.6.9/hostapd/
copy the defconfig file with the name .config (hidden file).
cp defconfig .config

Uncommon CONFIG_DRIVER_MADWIFI=y and CFLAGS += -I../../madwifi
Change CFLAGS path to the path where madwifi source code exit. In my case it is CFL CFLAGS += -I/home/softwares/madwifi-0.9.4/
and make , make install.

Now for fakeap simply say 'rpm -ivh fakeap-0.3.2-1.0.rh7.rf.noarch.rpm.

Using fakeap tool:-
#rmmod ath_pci
#modprob ath_pci autocreate=ap
#ifconfig ath0 0.0.0.0 up
#ifconfig eth0 0.0.0.0 up
#brctl addbr br0
#brctl addif br0 ath0
#brctl addif br0 eth0
#wlanconfig ath create wlandev wifi0 wlanmode monitor
#ifconfig ath1 up
vi madwifi.conf add below lines
#--------------------------------------------------
# Configuration File for WPA-PSK
interface=ath0
bridge=br0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=test_ssid
macaddr_acl=0
auth_algs=3
wpa=3
wpa_passphrase=XXXXXXXXXXX
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
#---------------------------------------------------

#./hostapd -B madwifi.conf
#perl /usr/bin/fakap
It will print the help.
ex usage:-
perl /usr/bin/fakeap --interface ath0 --words /usr/share/doc/fakeap-0.3.2/lists/stefan-wordlist.txt --vendors /usr/share/doc/fakeap-0.3.2/lists/stefan-maclist.txt --channel 6 -sleep 0.01
Using other pc open wireshark on wifi interface with monitor mode and check for beacon packets with different ssids and mac.

No comments: