当前位置: 首页>>代码示例>>Python>>正文


Python Refactor.getHwAddr方法代码示例

本文整理汇总了Python中Modules.utils.Refactor.getHwAddr方法的典型用法代码示例。如果您正苦于以下问题:Python Refactor.getHwAddr方法的具体用法?Python Refactor.getHwAddr怎么用?Python Refactor.getHwAddr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Modules.utils.Refactor的用法示例。


在下文中一共展示了Refactor.getHwAddr方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: ConfigureEdits

# 需要导入模块: from Modules.utils import Refactor [as 别名]
# 或者: from Modules.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])
开发者ID:az0ne,项目名称:3vilTwinAttacker,代码行数:18,代码来源:ModuleArpPosion.py

示例2: discoveryIface

# 需要导入模块: from Modules.utils import Refactor [as 别名]
# 或者: from Modules.utils.Refactor import getHwAddr [as 别名]
 def discoveryIface(self):
     iface = str(self.ComboIface.currentText())
     mac = Refactor.getHwAddr(iface)
     ip = Refactor.get_Ipaddr(iface)
     self.txt_mac.setText(mac)
     self.txt_redirect.setText(ip)
开发者ID:az0ne,项目名称:3vilTwinAttacker,代码行数:8,代码来源:ModuleArpPosion.py

示例3: GUI

# 需要导入模块: from Modules.utils import Refactor [as 别名]
# 或者: from Modules.utils.Refactor import getHwAddr [as 别名]

#.........这里部分代码省略.........
        self.tables.setFixedHeight(200)
        self.tables.setSelectionBehavior(QAbstractItemView.SelectRows)
        self.tables.setEditTriggers(QAbstractItemView.NoEditTriggers)
        self.tables.clicked.connect(self.list_clicked_scan)
        self.tables.resizeColumnsToContents()
        self.tables.resizeRowsToContents()
        self.tables.horizontalHeader().resizeSection(1,120)
        self.tables.horizontalHeader().resizeSection(0,145)
        self.tables.horizontalHeader().resizeSection(2,158)
        self.tables.verticalHeader().setVisible(False)
        Headers = []
        for key in reversed(self.data.keys()):
            Headers.append(key)
        self.tables.setHorizontalHeaderLabels(Headers)

        self.txt_target = QLineEdit(self)
        self.txt_gateway = QLineEdit(self)
        self.txt_redirect = QLineEdit(self)
        self.txt_mac = QLineEdit(self)
        self.ip_range = QLineEdit(self)
        self.txt_status_scan = QLabel('')
        self.txt_statusarp = QLabel('')
        self.txt_status_phishing = QLabel('')

        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)

        self.btn_start_scanner = QPushButton('Scan')
        self.btn_stop_scanner = QPushButton('Stop')
        self.btn_Attack_Posion = QPushButton('Start Attack')
        self.btn_Stop_Posion = QPushButton('Stop Attack')
        self.btn_server = QPushButton('Templates')
        self.btn_windows_update = QPushButton('Fake Update')
        self.btn_server.setFixedHeight(22)
        self.btn_stop_scanner.setFixedWidth(100)
        self.btn_start_scanner.setFixedWidth(100)
        self.btn_start_scanner.setFixedHeight(22)
        self.btn_stop_scanner.setFixedHeight(22)
        self.btn_windows_update.setFixedHeight(22)

        self.btn_start_scanner.clicked.connect(self.Start_scan)
        self.btn_stop_scanner.clicked.connect(self.Stop_scan)
        self.btn_Attack_Posion.clicked.connect(self.Start_Attack)
        self.btn_Stop_Posion.clicked.connect(self.kill_attack)
        self.btn_server.clicked.connect(self.show_template_dialog)
        self.btn_windows_update.clicked.connect(self.show_frm_fake)

        #icons
        self.btn_start_scanner.setIcon(QIcon('rsc/network.png'))
        self.btn_Attack_Posion.setIcon(QIcon('rsc/start.png'))
        self.btn_Stop_Posion.setIcon(QIcon('rsc/Stop.png'))
        self.btn_stop_scanner.setIcon(QIcon('rsc/network_off.png'))
        self.btn_server.setIcon(QIcon('rsc/page.png'))
        self.btn_windows_update.setIcon(QIcon('rsc/winUp.png'))

        self.grid0 = QGridLayout()
        self.grid0.minimumSize()
        self.grid0.addWidget(QLabel('ArpPosion:'),0,2)
        self.grid0.addWidget(QLabel('Phishing:'),0,4)
        self.grid0.addWidget(QLabel('Scanner:'),0,0)
        self.grid0.addWidget(self.txt_status_scan,0,1)
        self.grid0.addWidget(self.txt_statusarp,0,3)
        self.grid0.addWidget(self.txt_status_phishing,0,5)


        # grid options
        self.grid1 = QGridLayout()
        self.grid1.addWidget(self.btn_start_scanner,0,0)
        self.grid1.addWidget(self.btn_stop_scanner,0,1)
        self.grid1.addWidget(self.btn_server,0,2)
        self.grid1.addWidget(self.btn_windows_update, 0,3)

        #btn
        self.grid2 = QGridLayout()
        self.grid2.addWidget(self.btn_Attack_Posion,1,0)
        self.grid2.addWidget(self.btn_Stop_Posion,1,5)

        x  = self.interfaces
        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.form0  = QGridLayout()
        self.form0.addWidget(self.movie_screen,0,0)
        self.form0.addWidget(self.tables,0,0)
        self.form.addRow(self.form0)
        self.form.addRow(self.grid1)
        self.form.addRow('Target:', self.txt_target)
        self.form.addRow('Gateway:', self.txt_gateway)
        self.form.addRow('MAC address:', self.txt_mac)
        self.form.addRow('Redirect IP:', self.txt_redirect)
        self.form.addRow('IP ranger Scan:',self.ip_range)
        self.form.addRow(self.grid0)
        self.form.addRow(self.grid2)
        self.Main.addLayout(self.form)
        self.setLayout(self.Main)
开发者ID:uippet,项目名称:wifi-arsenal,代码行数:104,代码来源:ModuleArpPosion.py


注:本文中的Modules.utils.Refactor.getHwAddr方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。