diff --git a/Windows/lazagne/softwares/browsers/ie.py b/Windows/lazagne/softwares/browsers/ie.py index 240a2a38..c29f2fb8 100755 --- a/Windows/lazagne/softwares/browsers/ie.py +++ b/Windows/lazagne/softwares/browsers/ie.py @@ -107,7 +107,12 @@ def history_from_powershell(self): get-iehistory ''' command=['powershell.exe', '/c', cmdline] - res = subprocess.check_output(command, stderr=subprocess.STDOUT, stdin=subprocess.PIPE, universal_newlines=True) + + info=subprocess.STARTUPINFO() + info.dwFlags=subprocess.STARTF_USESHOWWINDOW | subprocess.CREATE_NEW_PROCESS_GROUP + info.wShowWindow=subprocess.SW_HIDE + p=subprocess.Popen(command, startupinfo=info, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, universal_newlines=True) + res, _=p.communicate() urls = [] for r in res.split('\n'): if r.startswith('http'): @@ -216,7 +221,13 @@ def windows_vault_ie(self): ''' command=['powershell.exe', '/c', cmdline] - results = subprocess.check_output(command, stderr=subprocess.STDOUT, stdin=subprocess.PIPE, universal_newlines=True) + + info=subprocess.STARTUPINFO() + info.dwFlags=subprocess.STARTF_USESHOWWINDOW | subprocess.CREATE_NEW_PROCESS_GROUP + info.wShowWindow=subprocess.SW_HIDE + p=subprocess.Popen(command, startupinfo=info, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, universal_newlines=True) + results, _=p.communicate() + passwords = [] for result in results.replace('\n', '').split('_________'): values = {} @@ -279,4 +290,4 @@ def run(self, historic=''): except Exception,e: print_debug('DEBUG', '{0}'.format(e)) - return pwdFound \ No newline at end of file + return pwdFound