def resultcounter(self): self.respcounter=self.respcounter+1 if self.respcounter==3: #self.resultprinter() self.respcounter = 0 dbw = db2.dbwrite(self.isap) dbw.fingerprintwrite(self.page200res,self.error404res,self.page401res,self.val) Tools.Trace("fingerprint.py","resultcounter") self.checkpages()
def resultcounter(self): self.respcounter = self.respcounter + 1 if self.respcounter == 3: #self.resultprinter() self.respcounter = 0 dbw = db2.dbwrite(self.isap) dbw.fingerprintwrite(self.page200res, self.error404res, self.page401res, self.val) #Tools.Trace("fingerprint.py","resultcounter") self.checkpages()
def pinghost(self, activeid): ping = a2.PingCheck(self.ipadd, activeid, self.isap) pingres = ping.ping() #Now Lets send the ping results to the database recorder. dbw = db2.dbwrite(self.isap) dbw.pingwrite(pingres) if pingres[2] == "Success": self.portscancontroller("Success") else: self.portscancontroller("Fail")
def pinghost(self,activeid): ping = a2.PingCheck(self.ipadd,activeid,self.isap) pingres = ping.ping() #Now Lets send the ping results to the database recorder. dbw = db2.dbwrite(self.isap) dbw.pingwrite(pingres) if pingres[2] == "Success": self.portscancontroller("Success") else: self.portscancontroller("Fail")
def portscanresult(self): dbw = db2.dbwrite(self.isap) dbw.portscanwrite(self.dbdict)