Fix error converting from bin to bytes

This commit is contained in:
klezVirus 2023-06-08 13:01:45 +01:00 committed by GitHub
parent 6ad414f253
commit f99d894972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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