shellcode-rs
is a shellcode runner for Windows written it Rust and assembly. It may be useful for testing shellcode.
If you have shellcode in a file test.bin
, you can run it:
shellcode-rs.exe test.bin
The runner can use multiple execution methods to test different scenarios:
tail
- Tail call uses ajmp
at the end of the calling functionret
- Ret call overwrites the return address with the address of the shellcode and then returns into it
You can try out these methods with the -m
flag like so:
shellcode-rs.exe -m tail test.bin
For additional help in testing, this project also creates hello-world.exe
. This binary can be run through a shellcode
generator and the resulting shellcode can be tested with shellcode-rs
.