nariod / rustpacker Goto Github PK
View Code? Open in Web Editor NEWTemplate-based shellcode packer written in Rust, with indirect syscall support. Made with <3 for pentesters.
License: GNU General Public License v3.0
Template-based shellcode packer written in Rust, with indirect syscall support. Made with <3 for pentesters.
License: GNU General Public License v3.0
Large shellcode such as Sliver ones (~20Mo) add up to ~80Mo in the Rust main.rs file. When compiled, the compiler is killed with SIGKILL because of enormous RAM consumption.
The compilation of the RustPacker project and the shellcode packing operation work fine.
But when I execute the resulting PE (the packed shellcode) on a Windows 10 machine, nothing happen. No error, no output, no callback. On a Windows 11 machine the PE works fine.
How I generate my shellcode : generate --http 192.168.1.79:80 --evasion -f shellcode
I have also tried to "simplify" the shellcode but it doesn't change anything (generate --http 192.168.1.79:80 -f shellcode -G -l
to disabled the evasion, the symbol obfuscation and the shikata ga nai encoding).
How I run RustPacker : RustPacker.exe -f .\SHELLCODE.bin -i syscrt -e aes
It worth to note that the issue appears with all the template, not only syscrt.
Hey Nariod,
Do have any guide/idea of porting different APIs to be used with compatible paramters? I am using rust_syscalls in one of my projects. I have seen your issue there regarding same problem of using NtCreateThreadEx. I am looking for ways to use right types of args in function calls, i see you have achieved that in your project.
Thankyou.
I am also doing this kind of packer recently, maybe my repo will be of some help
https://github.com/b1nhack/rust-shellcode
Todo : Add compilation from Windows support
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.