shellexec

Crates.ioshellexec
lib.rsshellexec
version0.1.1
sourcesrc
created_at2022-12-21 10:57:49.409465
updated_at2022-12-25 10:31:23.22428
descriptionCross-platform shellcode executor in rwx memory
homepage
repositoryhttps://github.com/StackOverflowExcept1on/shellexec
max_upload_size
id743058
size9,067
(StackOverflowExcept1on)

documentation

README

shellexec

Build Status Latest Version

Cross-platform shellcode executor in rwx memory

Usage: shellexec <binary>

Executes shellcode

Positional Arguments:
  binary            path to binary file

Options:
  --help            display usage information

Implementation

virtual-memory is used to execute shellcode. This helper crates allocates rwx memory using the system functions that is described here:

Then the contents of the file are copied into this memory, the address of this memory is converted into a function and called

Installing from crates.io

cargo install shellexec

Building

cargo build --release

Usage

# linux
cargo run --release -- shellexec/test_input/linux

# windows
cargo run --release -- shellexec/test_input/windows

# output
hello from shellcode!
Commit count: 8

cargo fmt