Пример #1
0
 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.")
Пример #2
0
 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.')
Пример #3
0
 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.')
Пример #4
0
 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()
Пример #5
0
 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()
Пример #6
0
 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')
Пример #7
0
 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()
Пример #8
0
 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')