def exportHTML(self): contents = Refactor.exportHtml() filename = QFileDialog.getSaveFileNameAndFilter(self, "Save File Logger HTML", "report.html", "HTML (*.html)") if len(filename) != 0: with open(str(filename[0]), "w") as filehtml: filehtml.write(contents["HTML"]), filehtml.close() QMessageBox.information(self, "WiFi Pumpkin", "file has been saved with success.")
def exportHTML(self): contents = Refactor.exportHtml() filename = QFileDialog.getSaveFileNameAndFilter(self, 'Save File Logger HTML','report.html','HTML (*.html)') if len(filename) != 0: with open(str(filename[0]),'w') as filehtml: filehtml.write(contents['HTML']),filehtml.close() QMessageBox.information(self, 'WiFi Pumpkin', 'file has been saved with success.')
def delete_logger(self): content = Refactor.exportHtml() if listdir('Logs')!= '': resp = QMessageBox.question(self, 'About Delete Logger', 'do you want to delete Logs?',QMessageBox.Yes | QMessageBox.No, QMessageBox.No) if resp == QMessageBox.Yes: system('rm Logs/Caplog/*.cap') for keyFile in content['Files']: with open(keyFile,'w') as f: f.write(''),f.close()
def delete_logger(self): content = Refactor.exportHtml() if listdir('Logs')!= '': resp = QMessageBox.question(self, 'About Delete Logger', 'do you want to delete Logs?',QMessageBox.Yes | QMessageBox.No, QMessageBox.No) if resp == QMessageBox.Yes: Popen(['rm','Logs/Caplog/*.cap'], stdout=PIPE,shell=False,stderr=PIPE) for keyFile in content['Files']: with open(keyFile,'w') as f: f.write(''),f.close() QMessageBox.information(self,'Logger','Removed all the output .log attack session')
def delete_logger(self): content = Refactor.exportHtml() if listdir("Logs") != "": resp = QMessageBox.question( self, "About Delete Logger", "do you want to delete Logs?", QMessageBox.Yes | QMessageBox.No, QMessageBox.No, ) if resp == QMessageBox.Yes: system("rm Logs/Caplog/*.cap") for keyFile in content["Files"]: with open(keyFile, "w") as f: f.write(""), f.close()
def delete_logger(self): content = Refactor.exportHtml() if listdir('Logs') != '': resp = QMessageBox.question(self, 'About Delete Logger', 'do you want to delete Logs?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No) if resp == QMessageBox.Yes: Popen(['rm', 'Logs/Caplog/*.cap'], stdout=PIPE, shell=False, stderr=PIPE) for keyFile in content['Files']: with open(keyFile, 'w') as f: f.write(''), f.close() QMessageBox.information( self, 'Logger', 'Removed all the output .log attack session')