本文整理汇总了Python中Core.Utils.Refactor.getHwAddr方法的典型用法代码示例。如果您正苦于以下问题:Python Refactor.getHwAddr方法的具体用法?Python Refactor.getHwAddr怎么用?Python Refactor.getHwAddr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core.Utils.Refactor
的用法示例。
在下文中一共展示了Refactor.getHwAddr方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: discoveryIface
# 需要导入模块: from Core.Utils import Refactor [as 别名]
# 或者: from Core.Utils.Refactor import getHwAddr [as 别名]
def discoveryIface(self):
iface = str(self.ComboIface.currentText())
mac = Refactor.getHwAddr(iface)
ip = Refactor.get_Ipaddr(iface)
if self.configure.xmlSettings('statusAP','value',None,False) == 'True':
self.txt_gateway.setText('10.0.0.1')
self.txt_mac.setText(mac)
self.txt_redirect.setText(ip)
示例2: ConfigureEdits
# 需要导入模块: from Core.Utils import Refactor [as 别名]
# 或者: from Core.Utils.Refactor import getHwAddr [as 别名]
def ConfigureEdits(self):
x = self.interfaces
self.StatusMonitor(False,'stas_scan')
self.StatusMonitor(False,'stas_arp')
self.StatusMonitor(False,'stas_phishing')
scan_range = self.configure.xmlSettings('scan','rangeIP',None,False)
self.ip_range.setText(scan_range)
if x['gateway'] != None:
self.txt_gateway.setText(x['gateway'])
self.txt_redirect.setText(x['IPaddress'])
self.txt_mac.setText(Refactor.getHwAddr(x['activated']))
self.connect(self.ComboIface, SIGNAL("currentIndexChanged(QString)"), self.discoveryIface)
n = self.interfaces['all']
for i,j in enumerate(n):
if n[i] != '':
self.ComboIface.addItem(n[i])