-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathREADME
More file actions
14 lines (14 loc) · 673 Bytes
/
Copy pathREADME
File metadata and controls
14 lines (14 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Shellcode testing program
Usage:
shtest {-f file | $'\xeb\xfe' | '\xb8\x39\x05\x00\x00\xc3'}
Usage example:
$ shtest $'\xeb\xfe' # raw shellcode
$ shtest '\xb8\x39\x05\x00\x00\xc3' # escaped shellcode
$ shtest -f test.sc # shellcode from file
$ shtest -f <(python gen_payload.py) # test generated payload
$ shtest -s 5 -f test.sc # create socket at fd=5
# Allows to test staged shellcodes
# Flow is redirected like this: STDIN -> SOCKET -> STDOUT
Compiling:
gcc -Wall shtest.c -o shtest
Author: hellman (hellman1908@gmail.com)