An open API service indexing awesome lists of open source software.

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 🦀 🐚

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.

![breakpoint in windbg](./breakpoint.png)