Hi! I am making acquiantance with wireless security and attacks and was told to run some tests with aircrack-ng and wireshark. So I installed both of them and ran airmon to switch wi-fi adapter to monitor mode: sudo airmon-ng start ra0 (this is my dwa-140 usb wi-fi) The wi-fi adapter seems to have restarted after that. Guess that's ok. After that I ran wireshark as a superuser, chose the ra0 adapter and tried to sniff the test open network. I have my PC connected to it (via dwa-140) and an HTC phone as well as some other stranger PCs. Wireshark runs on my PC. The problem is that when I login to %site.com% with a PC browser, I can see the cookies sent to it over http in Wireshark. But when I do the same thing with an Opera browser on my HTC, there is nothing detected. I know that other PCs are also sending data to the site, but I can't see anything from them as well. I'd like to know what I'm doing wrong. Will be thankful for any advice. P.S. This runs on Ubuntu 12.04.1 UPD: here is the output I get when startin ra0
asked 07 Oct ‘12, 11:14 svz edited 08 Oct ‘12, 10:25 |
2 Answers:
You should capture on mon0 instead of ra0! 'airmon-ng start ra0' will create that "monitoring" interface (mon0), if your ra0 adapter supports that! Regards answered 08 Oct '12, 11:37 Kurt Knochner ♦ Umm.. I don't see a mon0 iterface here. How can I figure out if my ra0 is capable of doing such a thing? Airmon states that monitor mode was enabled. Does this make any sense if there is no mon0? (08 Oct '12, 11:49) svz If airmon-ng had created a monitoring interface, rather than just putting I'd expect a mac80211 driver to call the interface In addition, I've found that, if a (08 Oct '12, 11:53) Guy Harris ♦♦ |
At least according to the WifiDocs/Device/DWA-140 page in the Ubuntu Community Help Wiki, the default driver for that adapter is the rt2800usb driver. The "Successful use" section of that page seems to suggest a mac80211 driver, as the output of the The Linux Wireless page for the rt2800usb driver says:
which further suggests it's using the mac80211 stack. The WifiDocs/Driver/RalinkRT2500 page in the Ubuntu Community Help Wiki speaks of much older Ubuntu releases using a "rt2500" driver, which provides interfaces named raN, e.g. This page on the Ubuntu forums says
which suggests that you may be using that driver rather than the standard driver; following that link goes to a page that speaks of that driver as coming from Ralink. Perhaps Ralink's driver doesn't support mac80211. As per my comment on another answer, NetworkManager, from some stuff I've done while debugging some issues caused by some Linux distributions not building recent versions of libpcap with libnl, so that they don't use the mac80211 mechanisms to go into monitor mode, so that instead of creating a (Dear 802.11 hardware vendors: mac80211 is your friend. If you must provide your own drivers for your adapters, embrace it.) answered 08 Oct '12, 12:46 Guy Harris ♦♦ Thank you for your response. I'll try to use the (08 Oct '12, 13:24) svz If whatever driver you use creates a (08 Oct '12, 13:41) Guy Harris ♦♦ There is no wlan0 interface with my current driver. After stopping newtwork manager with (08 Oct '12, 14:01) svz |
What does the
sudo airmon-ng start ra0
command print when you run it? (Show all the output.)Sorry, don’t have my PC nearby now. Will update the post in like 10 hours with full info. Actually
airmon
says that there is a number of processes that might iterfere with it likenetwork manager, dhclient
and a few more. I tried to stop them, but they seem to restart all the time. Actually, I do get some packets from other PCs, but not the ones I need. And I know that there should be some.Updated the post with
airmon-ng
output