def startSniff(self,widget): if (self.iface != None): if (self.sniff.running == False): self.sniff.running = True self.lblSniffing.set_text('Pasive sniffing: ON') try: self.sniff.start() except: messageBox("couldn't start the Pasive sniffing") else: self.sniff.running = False self.lblSniffing.set_text('Pasive sniffing: OFF') self.sniff = sniff.sniff(self.iface, self.logger, self.plugins,self.dnsSpoof)
def setIface(self,widget): result,iface = ifaceDialog().run() if (result == gtk.RESPONSE_OK and iface != None): self.iface = iface try: self.arp = arp.ARP(self.iface) self.sniff = sniff.sniff(self.iface, self.logger, self.plugins,self.dnsSpoof) self.startSniff(None) except(OSError): messageBox('Error while creating the class sniff and arp on setIface function') self.iface = None elif iface == None: messageBox('Error setting the iface')
def startSniff(self, widget): if (self.iface != None): if (self.sniff.running == False): self.sniff.running = True self.lblSniffing.set_text('Pasive sniffing: ON') try: self.sniff.start() except: messageBox("couldn't start the Pasive sniffing") else: self.sniff.running = False self.lblSniffing.set_text('Pasive sniffing: OFF') self.sniff = sniff.sniff(self.iface, self.logger, self.plugins, self.dnsSpoof)
def setIface(self, widget): result, iface = ifaceDialog().run() if (result == gtk.RESPONSE_OK and iface != None): self.iface = iface try: self.arp = arp.ARP(self.iface) self.sniff = sniff.sniff(self.iface, self.logger, self.plugins, self.dnsSpoof) self.startSniff(None) except (OSError): messageBox( 'Error while creating the class sniff and arp on setIface function' ) self.iface = None elif iface == None: messageBox('Error setting the iface')