python获取MAC[补遗]

使用scapy可以得到远程机子的MAC:

例如通过ip查对方MAC。。

已经保存了一份拷贝在home里的bin文件夹。。

很好的py脚本。。但是貌似有点问题。。不能获取本地MAC。。

试验中。得到了。。家里另一机子的MAC[ip:10.20.0.49同一网段]。。

可是不能得到本机的。。汗。。估计不是操作系统问题。。不知道是不是内核中那个防火墙iptables的问题。。

有待开学后在巨型局域网中试验。。

arch下没有这个包。。只有AUR了。。编译了pkg包。。已存档。。

Today on history:

  1. 2009:  最近的心得(14)
This entry was posted in 还是会寂寞 and tagged , , , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。

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