22 lines
516 B
Rust
22 lines
516 B
Rust
#[macro_use] extern crate boxxy;
|
|
extern crate sn0int;
|
|
extern crate env_logger;
|
|
|
|
fn stage1(sh: &mut boxxy::Shell, _args: Vec<String>) -> Result<(), boxxy::Error> {
|
|
shprintln!(sh, "[*] starting stage1");
|
|
sn0int::sandbox::init().unwrap();
|
|
shprintln!(sh, "[+] activated!");
|
|
Ok(())
|
|
}
|
|
|
|
fn main() {
|
|
env_logger::init();
|
|
|
|
println!("stage1 activate sandbox");
|
|
|
|
let toolbox = boxxy::Toolbox::new().with(vec![
|
|
("stage1", stage1),
|
|
]);
|
|
boxxy::Shell::new(toolbox).run()
|
|
}
|