schrodyn / mistRust

Learning rust via implementing some stupid simple shellcode droppers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mistRust

Making a start at learning rust through implementing a stupid/simple shellcode dropper. Eventually I'll add some functionality like XOR or encryption and different methods or places to obfuscate/deobfuscate the shellcode. Ideally the final project will build both elf and PE executables.

Make sure toolchains installed (with rustup target add [chain])

  • stable-x86_64-pc-windows-gnu
  • nightly

Building Binary

For linux (assuming you are using it)

cargo build

For Windows

cargo build --target x86_64-pc-windows-gnu

Reduce the size of the executable binary

To make smaller binaries you can export RUSTFLAGS='-C prefer-dynamic' before building. You can also use the linux native strip droppin_a_load to remove all symbols from object files etc.

About

Learning rust via implementing some stupid simple shellcode droppers

License:MIT License


Languages

Language:Rust 96.1%Language:Shell 3.9%