Crates.io | shellexec |
lib.rs | shellexec |
version | 0.1.3 |
source | src |
created_at | 2022-12-21 10:57:49.409465 |
updated_at | 2024-09-08 21:31:39.211762 |
description | Cross-platform shellcode executor in rwx memory |
homepage | |
repository | https://github.com/StackOverflowExcept1on/shellexec |
max_upload_size | |
id | 743058 |
size | 10,376 |
Cross-platform shellcode executor in rwx memory
Usage: shellexec <binary>
Executes shellcode
Positional Arguments:
binary path to binary file
Options:
--help display usage information
virtual-memory is used to execute shellcode. This helper crates allocates rwx memory using the system functions that is described here:
Unix
Windows
Then the contents of the file are copied into this memory, the address of this memory is converted into a function and called
cargo install shellexec
cargo build --release
# linux
cargo run --release -- shellexec/test_input/linux
# windows
cargo run --release -- shellexec/test_input/windows
# output
hello from shellcode!