1 |
Dominic Kexel wrote: |
2 |
> On Wed, 28 Jan 2009 21:23:12 -0800 |
3 |
> Grant <emailgrant@×××××.com> wrote: |
4 |
> |
5 |
> |
6 |
>>>>> Does anyone know how to put my USB wireless network adapter into |
7 |
>>>>> promiscuous mode so I can see everything that's happening wirelessley |
8 |
>>>>> on my network in wireshark? |
9 |
>>>>> |
10 |
>>>> ifconfig eth1 promisc |
11 |
>>>> |
12 |
>>>> But at least tcpdump puts the interface into promiscous mode |
13 |
>>>> automatically, so there is a chance that wireshark does the same. |
14 |
>>>> |
15 |
>>>> |
16 |
>>>> |
17 |
>>> Another way is to use airmon-ng from the aircrack-ng package: |
18 |
>>> |
19 |
>>> airmon-ng start wlan0 |
20 |
>>> |
21 |
>> I can't get that to work. I get: |
22 |
>> |
23 |
>> # airmon-ng start wlan0 |
24 |
>> Interface Chipset Driver |
25 |
>> wlan3 ath5k_pci - [phy0] |
26 |
>> wlan0 Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: line 338: |
27 |
>> /sys/class/ieee80211/phy1/add_iface: No such file or directory |
28 |
>> mon0: ERROR while getting interface flags: No such device |
29 |
>> (monitor mode enabled on mon0) |
30 |
>> |
31 |
>> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface |
32 |
>> which isn't there. I've tried with net.wlan0 started and stopped. |
33 |
>> |
34 |
>> - Grant |
35 |
>> |
36 |
> |
37 |
> Your driver has to support monitor-mode. |
38 |
> I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device |
39 |
> with Realtek-Chip. The drivers I used a while ago needed a patch to work with |
40 |
> monitor-mode, but the recent drivers don't. Take a look at the driver-section |
41 |
> on the aircrack-ng homepage. Maybe your driver needs to be patched. |
42 |
> |
43 |
> |
44 |
> |
45 |
I'm using the same chipset with the same driver (ath5_pci with phy0), |
46 |
and my card can go into monitor mode. I'm wondering if you are using the |
47 |
driver compiled into the kernel or madwifi-ng drivers. |