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):
     Process.__init__(self, internLog, terminalLog)
     self.hardDrive_ = hardDrive
     self.overWrite_ = overWrite
     self.usernames_ = []
     self.mails_ = []
     self.passwords_ = []
     self.credentials_ = []
Beispiel #3
0
 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
Beispiel #4
0
 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
Beispiel #6
0
 def reset(self):
     self.internLog_ = Log(False)
     self.terminalLog_ = Log(True, 20)
     self.thread_ = Process(self.internLog_, self.terminalLog_)
Beispiel #7
0
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
Beispiel #8
0
 def __init__(self, internLog, terminalLog, hardDrive, overWrite):
     Process.__init__(self, internLog, terminalLog)
     self.hardDrive_ = hardDrive
     self.overWrite_ = overWrite
 def __init__(self, internLog, terminalLog, partition):
     Process.__init__(self, internLog, terminalLog)
     self.partition_ = partition
Beispiel #10
0
 def __init__(self, internLog, terminalLog, partition):
     Process.__init__(self, internLog, terminalLog)
     self.partition_ = partition
Beispiel #11
0
 def reset(self):
     self.internLog_ = Log(False)
     self.terminalLog_ = Log(True, 20)
     self.thread_ = Process(self.internLog_, self.terminalLog_)
Beispiel #12
0
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