From 3afb5fe3e938e7bcb1d8476abe8b024699510af6 Mon Sep 17 00:00:00 2001 From: AlessandroZ Date: Fri, 15 Sep 2017 14:52:04 +0200 Subject: [PATCH] commenting browser passwords memory module (take too long time) Former-commit-id: 6761501192a062a57560990d409ad179fc94b403 [formerly 6761501192a062a57560990d409ad179fc94b403 [formerly 6761501192a062a57560990d409ad179fc94b403 [formerly 36fb6c53b4be7943ff0e20913769dc9330adc310]]] Former-commit-id: b927a1cee689b093a033a37de7ad73941c4585c2 Former-commit-id: b48d4b9d2396495b8eb9978f897e4e0de6142317 Former-commit-id: 8255b6e362367bbf5b6358a33e8f98bb0405b24d --- .../lazagne/softwares/memory/memorydump.py | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Windows/lazagne/softwares/memory/memorydump.py b/Windows/lazagne/softwares/memory/memorydump.py index 312d15c7..5ccaf969 100755 --- a/Windows/lazagne/softwares/memory/memorydump.py +++ b/Windows/lazagne/softwares/memory/memorydump.py @@ -67,31 +67,31 @@ def __init__(self): 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 + # 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 + # 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 - } - ) + # 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()