PEzor icon indicating copy to clipboard operation
PEzor copied to clipboard

sgn: unexpected argument

Open karlmax1342 opened this issue 1 year ago • 3 comments

When I use the -sgn flag, I get the following error

[?] Final shellcode will be encoded with sgn
[?] Unhook enabled
[?] Anti-debug enabled
[?] Payload will be put in .text section
[?] Waiting 120 seconds before executing the payload
[?] Processing GROSS_SHOELACE
[?] Shellcode detected
[?] Building executable
[?] Executing sgn
       __   _ __        __                               _ 
  ___ / /  (_) /_____ _/ /____ _  ___ ____ _  ___  ___ _(_)
 (_-</ _ \/ /  '_/ _ `/ __/ _ `/ / _ `/ _ `/ / _ \/ _ `/ / 
/___/_//_/_/_/\_\\_,_/\__/\_,_/  \_, /\_,_/ /_//_/\_,_/_/  
========[Author:-Ege-Balcı-]====/___/=======v2.0.1=========  
    ┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻           (ノ ゜Д゜)ノ ︵ 仕方がない

[-] unexpected argument /tmp/tmp.LOBOXlXxJf/shellcode.bin.donut

I also get the error when I try to run sgn by itself on the same file, but I figured I would ask here in case it is known issue.

karlmax1342 avatar Jan 06 '25 19:01 karlmax1342

Fixed by using an older version

karlmax1342 avatar Jan 06 '25 20:01 karlmax1342

Same issue here, what repository did you downgrade the version of ?

Edit : nvm I switched to sgn v2.0 and it worked

Rechem avatar Jan 13 '25 09:01 Rechem

Likely an update to sign broke the existing bash script, would someone mind to send a PR to fix the issue?

Edit: can someone confirm this PR solve the issue?

phra avatar Jul 10 '25 19:07 phra