Open GoogleCodeExporter opened 9 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
hakol...@gmail.com
iface is the IP address or what ?
Original comment by niceguy...@gmail.com on 18 Aug 2012 at 10:05
niceguy...@gmail.com
Original issue reported on code.google.com by
hakol...@gmail.com
on 26 May 2011 at 3:22