Skip to content

Commit

Permalink
commenting browser passwords memory module (take too long time)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Sep 15, 2017
1 parent d58e69a commit 36fb6c5
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Windows/lazagne/softwares/memory/memorydump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 36fb6c5

Please sign in to comment.