phenom1911 / wifite

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

Suggested change to getmac() #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
import commands
def getmac(iface):
    ifconfig = commands.getoutput("ifconfig " + iface + "| grep HWaddr | awk '{ print $5 }'").strip()
    if len(ifconfig) == 0:
        mac = 'Mac not found'
    else:
        mac = ifconfig[:17]
    return mac
print getmac('wlan0')

^^^ written by leg3nd & tea(hakology crew) from irc.hak5.org  

Original issue reported on code.google.com by hakol...@gmail.com on 26 May 2011 at 3:22

GoogleCodeExporter commented 8 years ago
iface is the IP address or what ?

Original comment by niceguy...@gmail.com on 18 Aug 2012 at 10:05