From f99d89497223c6036e629a8819ff541cff71b56c Mon Sep 17 00:00:00 2001 From: klezVirus Date: Thu, 8 Jun 2023 13:01:45 +0100 Subject: [PATCH] Fix error converting from bin to bytes --- inceptor/converters/Pe2Shellcode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inceptor/converters/Pe2Shellcode.py b/inceptor/converters/Pe2Shellcode.py index cbc4b84..3ef9c5a 100644 --- a/inceptor/converters/Pe2Shellcode.py +++ b/inceptor/converters/Pe2Shellcode.py @@ -43,4 +43,6 @@ class Pe2sh(Transformer): if not os.path.isfile(outfile): Console.auto_line(f"[-] Failed to locate converted file: {outfile}") sys.exit(1) - return bin2hex4pe2sh(outfile) + with open(outfile, "rb") as rb: + blob = rb.read() + return blob