https://github.com/b1tg/rs-shellcode
Another shellcode runner 🦀 🐚
https://github.com/b1tg/rs-shellcode
rust shellcode shellcode-loader
Last synced: 7 months ago
JSON representation
Another shellcode runner 🦀 🐚
- Host: GitHub
- URL: https://github.com/b1tg/rs-shellcode
- Owner: b1tg
- Created: 2021-01-30T17:21:19.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-19T11:00:21.000Z (about 4 years ago)
- Last Synced: 2025-04-14T19:43:21.069Z (9 months ago)
- Topics: rust, shellcode, shellcode-loader
- Language: Rust
- Homepage:
- Size: 882 KB
- Stars: 148
- Watchers: 6
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rs-shellcode
A shellcode runner write in Rust use [windows-rs](https://github.com/microsoft/windows-rs).
# how to use it
Install [rustup](https://rustup.rs/), use nightly toochain.
```sh
rustup default nightly
```
Use msfvenom generate shellcode for test.
```sh
msfvenom -p windows/x64/exec CMD=calc.exe --platform win -f raw -o calc64.raw
```
Build:
```sh
cargo build
```
Usage:
```
rs_shellcode
USAGE:
rs_shellcode.exe [FLAGS] [OPTIONS] -f
FLAGS:
-b set breakpoint in debugger
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-f shellcode path
-o shellcode offset
```
Run:
```sh
./target/debug/rs_shellcode.exe -f
```
When your shellcode not start at offset 0, you can specify the offset use `-o`:
```sh
./target/debug/rs_shellcode.exe -f -o 0x30
```
Run with breakpoint flag (`-b`):
```sh
./target/debug/rs_shellcode.exe -f -b
```
use this flag, you can break just before your shellcode in the debugger, which will make your life easier.
