def __init__(self, internLog, terminalLog, hardDrive, overWrite): Process.__init__(self, internLog, terminalLog) self.hardDrive_ = hardDrive self.overWrite_ = overWrite self.usernames_ = [] self.mails_ = [] self.passwords_ = [] self.credentials_ = []
def __init__(self, internLog, terminalLog, hardDrive, overWrite, retry=3): Process.__init__(self, internLog, terminalLog) self.hardDrive_ = hardDrive self.overWrite_ = overWrite if retry < 0: retry = 0 if retry > 3: retry = 3 self.retry_ = retry
def __init__(self, internLog, terminalLog, hardDrive, report, dictionary, chromePassword, chromeHistory, firefoxPassword, firefoxHistory, wifi, outlook): Process.__init__(self, internLog, terminalLog) self.hardDrive = hardDrive self.report = report self.dictionary = dictionary self.chromePassword = chromePassword self.chromeHistory = chromeHistory self.firefoxPassword = firefoxPassword self.firefoxHistory = firefoxHistory self.wifi = wifi self.outlook = outlook
def __init__(self, internLog, terminalLog, hardDrive, overWrite): Process.__init__(self, internLog, terminalLog) self.hardDrive_ = hardDrive self.overWrite_ = overWrite
def reset(self): self.internLog_ = Log(False) self.terminalLog_ = Log(True, 20) self.thread_ = Process(self.internLog_, self.terminalLog_)
class Program: def __init__(self): self.reset() def reset(self): self.internLog_ = Log(False) self.terminalLog_ = Log(True, 20) self.thread_ = Process(self.internLog_, self.terminalLog_) tasks_form_ = ( ('0', 'Extract files from dump'), #('1', 'Files analysis'), #('2', 'Extract windows registery'), #('3', 'Extract data from sys files'), #('4', 'Get password in sam'), ('5', 'Program analysis'), #('6', 'Web analysis'), ) def task(self, id, *args, **kwargs): values = { '0': GetFiles, #'1':FilesStatistics, #2':WindowsRegistery, #'3':LsaMemParser, #'4':UserPassword, '5': ProgramAnalyze, #'6':WebAnalyze, } return self.launch(values[id], *args, **kwargs) def single(func): def deco(self, *args, **kwargs): if self.thread_.is_alive(): return False self.reset() func(self, *args, **kwargs) return True return deco @single def launch(self, task, *args, **kwargs): self.thread_ = task(self.internLog_, self.terminalLog_, *args, **kwargs) self.thread_.start() def interupt(self): if not self.thread_.is_alive(): return True if not self.thread_.interupt(): return False self.thread_.join(10) if self.thread_.is_alive(): return False else: return True def available(self): if self.thread_.is_alive(): return False return True thread_ = None internLog_ = None terminalLog_ = None
def __init__(self, internLog, terminalLog, partition): Process.__init__(self, internLog, terminalLog) self.partition_ = partition
class Program: def __init__(self): self.reset() def reset(self): self.internLog_ = Log(False) self.terminalLog_ = Log(True, 20) self.thread_ = Process(self.internLog_, self.terminalLog_) tasks_form_ = ( ('0', 'Extract files from dump'), #('1', 'Files analysis'), #('2', 'Extract windows registery'), #('3', 'Extract data from sys files'), #('4', 'Get password in sam'), ('5', 'Program analysis'), #('6', 'Web analysis'), ) def task(self, id, *args, **kwargs): values = { '0':GetFiles, #'1':FilesStatistics, #2':WindowsRegistery, #'3':LsaMemParser, #'4':UserPassword, '5':ProgramAnalyze, #'6':WebAnalyze, } return self.launch(values[id], *args, **kwargs) def single(func): def deco(self, *args, **kwargs): if self.thread_.is_alive(): return False self.reset() func(self, *args, **kwargs) return True return deco @single def launch(self, task, *args, **kwargs): self.thread_ = task(self.internLog_, self.terminalLog_, *args, **kwargs) self.thread_.start() def interupt(self): if not self.thread_.is_alive(): return True if not self.thread_.interupt(): return False self.thread_.join(10) if self.thread_.is_alive(): return False else: return True def available(self): if self.thread_.is_alive(): return False return True thread_ = None internLog_ = None terminalLog_ = None