Tag Archives: MAC

python获取MAC[补遗]

使用scapy可以得到远程机子的MAC: 例如通过ip查对方MAC。。 已经保存了一份拷贝在home里的bin文件夹。。 很好的py脚本。。但是貌似有点问题。。不能获取本地MAC。。 试验中。得到了。。家里另一机子的MAC[ip:10.20.0.49同一网段]。。 可是不能得到本机的。。汗。。估计不是操作系统问题。。不知道是不是内核中那个防火墙iptables的问题。。 有待开学后在巨型局域网中试验。。 arch下没有这个包。。只有AUR了。。编译了pkg包。。已存档。。

Posted in 还是会寂寞 | Also tagged , , , , , Leave a comment

python获取MAC

import uuid node = uuid.getnode() mac = uuid.UUID(int=node) addr = mac.hex[-12:] print addr

Posted in 还是会寂寞 | Also tagged , Leave a comment

Chat Plugin created by Jake Ruston's Wordpress Plugins - Powered by Hardshell Laptop Cases and Ben 10 Games.