cyberhackr / wifite

Automatically exported from code.google.com/p/wifite
GNU General Public License v2.0
0 stars 0 forks source link

-mac command line argument brakes scan #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I just noticed interesting bug while performing pen testing. If i run wifite 
with -mac command line argument it seems wifite can't find any access points 
anymore.

Confirmed several times on multiple boxes and locations:

root@bt:~# /usr/local/src/wifite/wifite.py -mac

  .;'                     `;,    
 .;'  ,;'             `;,  `;,   WiFite v2 (r85)
.;'  ,;'  ,;'     `;,  `;,  `;,  
::   ::   :   ( )   :   ::   ::  automated wireless auditor
':.  ':.  ':. /_\ ,:'  ,:'  ,:'  
 ':.  ':.    /___\    ,:'  ,:'   designed for Linux
  ':.       /_____\      ,:'     
           /       \             

 [+] mac address anonymizing enabled
     note: only works if device is not already in monitor mode!

 [+] scanning for wireless devices...
 [+] changing wlan0's MAC from xx:xx:xx:xx:xx:xx to 00:e0:08:6b:3a:7b... done
 [+] enabling monitor mode on wlan0... done
 [+] initializing scan (mon0), updates at 5 sec intervals, CTRL+C when ready.
 [0:00:45] scanning wireless networks. 0 targets and 0 clients found   

 [!] no targets found!
 [!] you may need to wait for targets to show up.

 [+] disabling monitor mode on mon0... done
 [+] changing wlan0's mac back to xx:xx:xx:xx:xx:xx... done
 [+] quitting

============================================
In contrast if I run it without -mac parameter this is the output:
   NUM ESSID                 CH  ENCR  POWER  WPS?  CLIENT
   --- --------------------  --  ----  -----  ----  ------
    1  XXXXX_01720           12  WPA   55db    no 
    2  XXXXXXX                    5  WPA   55db    no 
    3  <Length 14>           12  WPA2  55db    no 
    4  XXXXXXXXXXX             9  WPA2  55db   wps   client
    5  Xxxxx_0982            1  WPA   35db    no 
    6  SpeedTouchXXX       6  WEP   32db    no 

 [+] select target numbers (1-6) separated by commas, or 'all': ^C
 (^C) interrupted

 [+] disabling monitor mode on mon0... done
 [+] quitting

===============================
wifite downloaded from svn version: WiFite v2 (r85)
OS: Backtrack 5 R2

Original issue reported on code.google.com by josip.dj...@gmail.com on 12 Jul 2012 at 4:18