b1tg/rust-windows-shellcode
b1tg/rust-windows-shellcode has 311 GitHub stars and 34 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-24 16:51 UTC. Last push 2021-02-06.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Windows shellcode development in Rust
개발 도구README.md
OriginalWrite Windows Shellcode in Rust
Project overview
Windows shellcode project is located in shellcode/, it can build into a PE file with only .text section
and has no external dependencies.

Then we can dump the .text section and do some patches to make it position-independent. this idea
was from hasherezade's project masm_shc.
How to build it
(Only tested on Win10 x64)
Build shellcode binary
rustup default nightly-x86_64-pc-windows-msvc
cd shellcode/
cargo build --release
If everthing goes well, we will get shellcode\target\x86_64-pc-windows-msvc\release\shellcode.exe
Dump .text section and do some patches
We patch at the start of .text section, make it jump to entry point. In this way, we can have some strings store in the merged section, or we have to use u8 and u16 bytes array on stack to represent string.
cd ..
cargo run
We will get shellcode\target\x86_64-pc-windows-msvc\release\shellcode.bin, this is the final shellcode file.
Test shellcode
Test the shellcode use your favorite shellcode loader, i use my own little tool rs_shellcode for demonstration.
git clone https://github.com/b1tg/rs_shellcode
cd rs_shellcode/
cargo build
./target/debug/rs_shellcode.exe -f "shellcode\target\x86_64-pc-windows-msvc\release\shellcode.bin"
This demo shellcode will popup a message box and print some log use OutputDebugStringA, you can check it out in debugview or windbg.

References
관련 프로젝트 살펴보기
불러오는 중…