mirror of
https://github.com/monsieurPale/KhimairaLdr
synced 2026-06-06 16:14:36 +00:00
main
KhimairaLdr
Execution Flow (using java-rmi.exe)
- Drop
java-rmi.exeand compiledjli.dllinAppData\Local - Run
java-rmi.exeto sideload the.dll jli.dllfetches.binshellcode from web serverjli.dllroots persistence using selected methodjli.dllexecutes shellcode
Evasion Features
wininet.dllcache-cleaning, avoids leaving artefacts on diskNt*andWin32APIs via CRC32 API-hashing (no imports)ntdll.dllunhook using indirect-syscalls- Only stacked strings in binary
CRTlibrary removal- RC4 shellcode decryption using
SystemFunction032 - Local shellcode injection using
Nt*APIs - Threadless shellcode execution via
jmp rcx LoadLibrary, GetModuleHandleandGetProcAddressremoval
Persistence Features
- Switch
#define _LNK_flag to customize - Persistence via registrey key
HKCU\Software\Microsoft\Windows\CurrentVersion\Run -> Updater -> AppData\Local\java-rmi.exe - Persistence via startup folder
shell:startup -> BGInfo.lnk -> AppData\Local\java-rmi.exe
Usage
- Use
MiniShellHCKey.exe <your.bin> rc4 hck.binto encrypt custom.bin(harcoded encryption key) - If required, change persistence (default: regkey)
- If required, change staging URL using stack strings
- Compile the
.dllusing.slnfile and rename tojli.dll
Description
Languages
C
98.4%
Assembly
1.6%
