def run(self, software_name=None): pwdFound = [] for process in Process.list(): if process.get('name') in browser_list: try: mw = MemWorker(pid=process.get('pid')) except ProcessException: continue print_debug( 'INFO', 'dumping passwords from %s (pid: %s) ...' % (process.get('name'), str(process.get('pid')))) for _, x in mw.mem_search(password_regex, ftype='groups'): login, password = x[-2:] pwdFound.append({ 'URL': 'Unknown', 'Login': login, 'Password': password }) if keepass_process in process.get('name', '').lower(): k = KeeThief() if k.run(process.get('pid')): pwdFound.append({ 'Catehory': 'KeePass', 'KeyType': constant.keepass['KeyType'], 'Login': constant.keepass['Database'], 'Password': constant.keepass['Password'] }) return pwdFound
def run(self, software_name = None): pwdFound = [] for process in Process.list(): # if process.get('name', '').lower() in browser_list: # # Get only child process # try: # p = psutil.Process(process.get('pid')) # if p.parent(): # if process.get('name', '').lower() != str(p.parent().name().lower()): # continue # except: # continue # try: # mw = MemWorker(pid=process.get('pid')) # except ProcessException: # continue # print_debug('INFO', 'dumping passwords from %s (pid: %s) ...' % (process.get('name', ''), str(process.get('pid', '')))) # for _, x in mw.mem_search(password_regex, ftype='groups'): # login, password = x[-2:] # pwdFound.append( # { # 'URL' : 'Unknown', # 'Login' : login, # 'Password' : password # } # ) if keepass_process in process.get('name', '').lower(): k = KeeThief() if k.run(process.get('pid')): pwdFound.append( { 'Catehory' : 'KeePass', 'KeyType' : constant.keepass['KeyType'], 'Login' : constant.keepass['Database'], 'Password' : constant.keepass['Password'] } ) return pwdFound
def run(self, software_name = None): pwdFound = [] for process in Process.list(): if process.get('name', '').lower() in browser_list: # Get only child process try: p = psutil.Process(process.get('pid')) if p.parent(): if process.get('name', '').lower() != str(p.parent().name().lower()): continue except: continue try: mw = MemWorker(pid=process.get('pid')) except ProcessException: continue print_debug('INFO', 'dumping passwords from %s (pid: %s) ...' % (process.get('name', ''), str(process.get('pid', '')))) for _, x in mw.mem_search(password_regex, ftype='groups'): login, password = x[-2:] pwdFound.append( { 'URL' : 'Unknown', 'Login' : login, 'Password' : password } ) if keepass_process in process.get('name', '').lower(): k = KeeThief() if k.run(process.get('pid')): pwdFound.append( { 'Catehory' : 'KeePass', 'KeyType' : constant.keepass['KeyType'], 'Login' : constant.keepass['Database'], 'Password' : constant.keepass['Password'] } ) return pwdFound