From c44395a3199498e6123b433e574636bd977377b8 Mon Sep 17 00:00:00 2001 From: Paul Parr Date: Thu, 18 Feb 2021 20:25:38 -0700 Subject: [PATCH] changes for 7.5 windows Ida --- ghida_plugin/lib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghida_plugin/lib.py b/ghida_plugin/lib.py index cf5469e..faf61bb 100644 --- a/ghida_plugin/lib.py +++ b/ghida_plugin/lib.py @@ -263,10 +263,15 @@ def ghidra_headless(address, time.sleep(SLEEP_LENGTH) counter += 1 subprocess.Popen.poll(p) + if os.name != 'posix': + (out, err) = p.communicate() + out = out.decode('utf-8') + err = err.decode('utf-8') # Process terminated if p.returncode is not None: # print("GhIDA:: [DEBUG] ", str(p.stdout.read(), 'utf-8')) + #print("GhIDA:: [DEBUG] ", out) stop = True print("GhIDA:: [INFO] Ghidra analysis completed!") continue