Shellcoder: Write shellcode payloads in a flash!
minimum supported Rust version: 1.61.0
Documentation: docs.rs/shellcoder.
Feature flags
shellcoder
comes with the following feature flags:
name | description | enabled by default |
---|---|---|
std |
Use the standard library. Gives access to I/O backed and Vec backed implementations. |
no |
Add shellcoder
to your library
To add shellcoder
to your Rust library, you can use Cargo:
$ cargo add shellcoder
Or alternatively, edit your Cargo.toml
and add the following line under the dependencies
section:
shellcoder = "0.1.0"
Examples
The following code writes a simple shellcode that comprises two addresses separated by a 8-byte gap. It uses the static implementation, i.e. no dynamic memory allocation is performed.
use ;
use r#static Shellcoder;
use Result;
License
Apache2, see License.