I am currently learning about Wireless testing and have stumbled across a couple of little issues.
The system setup I am working on is as outlined below:
- Kali Linux - 64-Bit (GNOME v3.4.2) Virtual Machine running on;
- Linux Mint 17 64-Bit Base Operating System Version 2.2.16
- Intel i7 Processor
- Wireless Adapter is: Alfa Networks AWUS051NH 802.11 a/b/g/n Long-Range Wireless USB Adapter
- I have been watching the videos and following the tests on Security Tube.
During the tests that Vivek runs, he uses various tools: airmon-ng, airodump-ng and mdk3.
I can connect my adapter to my Kali VM perfectly fine, the USB passthrough is running correctly and the drivers for the adapter are loaded successfully within Kali:
root@Kali64:~# lsusb
Bus 002 Device 003: ID 148f:2770 Ralink Technology, Corp. RT2770 Wireless Adapter
I can start the interface and create the monitor interface using airmon-ng:
root@Kali64:~# airmon-ng start wlan1
Found 2 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after a short period of time,
you may want to kill (some of) them!
-e
PID Name
2906 dhclient
3222 dhclient
Interface Chipset Driver
wlan1 Ralink RT2870/3070 rt2800usb - [phy1]
(monitor mode enabled on mon0)
root@Kali64:~# iwconfig
mon0 IEEE 802.11abgn Mode:Monitor Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
wlan1 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
eth0 no wireless extensions.
eth1 no wireless extensions.
lo no wireless extensions.
However, if I try and set both the wlan and mon interfaces onto a channel, I find the monitor interface doesn't actually set - only the wlan interface:
root@Kali64:~# iwconfig wlan1 channel 1
root@Kali64:~# iwconfig mon0 channel 1
root@Kali64:~# iwconfig
mon0 IEEE 802.11abgn Mode:Monitor Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
wlan1 IEEE 802.11abgn ESSID:off/any
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
So firstly - any ideas on why this may be? I have tried creating a new monitor port - changing the channel on the mon0 port and this appeared to work, however, it should just work first time shouldn't it?
The second thing is, during the Part 3 video- pwning beacon frames, Vivek uses a tool called mdk3 to create a fake AP which distributes beacon frames on various channels.
Each time his adapter hops channels, the MAC address of his adapter changes, however when I run it on my machine, the MAC address just stays as: 2F:00:00:00:00:00:00 and I can't figure out why?
root@ctxKali64:~# mdk3 mon0 b -n TESTING
Current MAC: 00:00:00:00:00:00 on Channel 2 with SSID: TESTING
Current MAC: 2F:00:00:00:00:00 on Channel 10 with SSID: TESTING
Current MAC: 2F:00:00:00:00:00 on Channel 4 with SSID: TESTING
Current MAC: 2F:00:00:00:00:00 on Channel 3 with SSID: TESTING
Current MAC: 2F:00:00:00:00:00 on Channel 10 with SSID: TESTING
Apologies for the lengthy post, I hope someone may have come across this before and might be able to help.
Thanks James