def GetloggerInjection(self, data): if Refactor.getSize('logs/AccessPoint/injectionPage.log') > 255790: with open('logs/AccessPoint/injectionPage.log', 'w') as bufferlog: bufferlog.write(''), bufferlog.close() if data not in self.urlinjected: self.log_inject.addItem(data) self.urlinjected.append(data) self.log_inject.scrollToBottom()
def GetloggerInjection(self,data): if Refactor.getSize('logs/AccessPoint/injectionPage.log') > 255790: with open('logs/AccessPoint/injectionPage.log','w') as bufferlog: bufferlog.write(''), bufferlog.close() if data not in self.urlinjected: self.log_inject.addItem(data) self.urlinjected.append(data) self.log_inject.scrollToBottom()
def GetloggerInjection(self,data): ''' read load file and add in Qlistwidget ''' if Refactor.getSize(C.LOG_SSLSTRIP) > 255790: with open(C.LOG_SSLSTRIP,'w') as bufferlog: bufferlog.write(''), bufferlog.close() if data not in self.urlinjected: self.log_inject.addItem(data) self.urlinjected.append(data) self.log_inject.scrollToBottom()