mirror of
https://github.com/klezVirus/inceptor.git
synced 2024-06-20 22:08:35 +00:00
Fix error converting from bin to bytes
This commit is contained in:
parent
6ad414f253
commit
f99d894972
@ -43,4 +43,6 @@ class Pe2sh(Transformer):
|
|||||||
if not os.path.isfile(outfile):
|
if not os.path.isfile(outfile):
|
||||||
Console.auto_line(f"[-] Failed to locate converted file: {outfile}")
|
Console.auto_line(f"[-] Failed to locate converted file: {outfile}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return bin2hex4pe2sh(outfile)
|
with open(outfile, "rb") as rb:
|
||||||
|
blob = rb.read()
|
||||||
|
return blob
|
||||||
|
Loading…
Reference in New Issue
Block a user