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)
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)
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])
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])