This project is a demonstration of advanced DLL hijack techniques. It was released in conjunction with the "Adaptive DLL Hijacking" blog post. I recommend you start there to contextualize this code.
This project is comprised of the following elements:
- Harness.exe: The "victim" application which is vulnerable to hijacking (static/dynamic)
- Functions.dll: The "real" library which exposes valid functionality to the harness
- Theif.dll: The "evil" library which is attempting to gain execution
- NetClone.exe: A C# application which will clone exports from one DLL to another
- PyClone.py: A python 3 script which mimics NetClone functionality
The VS solution itself supports 4 build configurations which map to 4 different methods of proxying functionality. This should provide a nice scalable way of demonstrating more techniques in the future.
- Stc-Forward: Forwards export names during the build process using linker comments
- Dyn-NetClone: Clones the export table from functions.dll onto theif.dll post-build using NetClone
- Dyn-PyClone: Clones the export table from functions.dll onto theif.dll post-build using PyClone
- Dyn-Rebuild: Rebuilds the export table and patches linked import tables post-load to dynamically prepare for function proxying
The goal of each technique is to successfully capture code execution while proxying functionality to the legitimate DLL. Each technique is tested to ensure static and dynamic sink situations are handled. This is by far not every primitive or technique variation. The post above goes into more detail.
Prepare a hijack scenario with an obviously incorrect DLL
> copy C:\windows\system32\whoami.exe .\whoami.exe
1 file(s) copied.
> copy C:\windows\system32\kernel32.dll .\wkscli.dll
1 file(s) copied.
Executing in the current configuration should result in an error
> whoami.exe
"Entry Point Not Found"
Convert kernel32 to proxy functionality for wkscli
> NetClone.exe --target C:\windows\system32\kernel32.dll --reference C:\windows\system32\wkscli.dll --output wkscli.dll
[+] Done.
> whoami.exe
COMPUTER\User
More info
- Hacker Hardware Tools
- Hack Tools 2019
- Hacker Tools Linux
- Nsa Hack Tools
- Pentest Tools List
- Hacking Tools Online
- Pentest Tools Alternative
- Hacking Tools Software
- Physical Pentest Tools
- Hacking Apps
- Hacker Tools Hardware
- Hacker Tools Linux
- Usb Pentest Tools
- Top Pentest Tools
- Hacker Tools
- Pentest Box Tools Download
- Pentest Tools Subdomain
- Pentest Tools Nmap
- Hacker
- Hack Tools For Pc
- Black Hat Hacker Tools
- Pentest Tools Url Fuzzer
- Hacking Tools And Software
- Hack Tools Online
- Hacking Tools For Windows
- Pentest Tools Github
- Hacker Tools Software
- What Are Hacking Tools
- Pentest Tools For Ubuntu
- How To Make Hacking Tools
- Hacking Tools 2020
- Hacking Tools Software
- Hacker Tools For Windows
- Hacker Tools Github
- Hacking Tools 2020
- Pentest Tools Download
- Pentest Tools Url Fuzzer
- World No 1 Hacker Software
- Pentest Tools Apk
- Computer Hacker
- Hacker Tool Kit
- Pentest Tools Open Source
- Hacking Tools Software
- Hacking Tools For Windows 7
- Hacking Tools Download
- How To Install Pentest Tools In Ubuntu
- Nsa Hack Tools
- Hacking Tools For Pc
- Free Pentest Tools For Windows
- Hacker Tools For Ios
- Hackrf Tools
- Pentest Tools Kali Linux
- Hacker Tools Linux
- Hacking Tools Free Download
- Computer Hacker
- Pentest Tools Subdomain
- Pentest Tools Android
- Underground Hacker Sites
- Hack Tools For Games
- World No 1 Hacker Software
- Hack Tools Mac
- Nsa Hacker Tools
- Best Pentesting Tools 2018
- Hacking Tools For Pc
- Tools 4 Hack
- Hacking Tools For Kali Linux
- Pentest Tools Open Source
- Hacking App
- Pentest Tools For Windows
- Hack Tools Online
- Hack Tools
- Hacking Tools 2019
- Pentest Tools Website Vulnerability
- Hacking Tools For Games
- Pentest Tools Github
- Hacker Tools Apk Download
- Computer Hacker
- Hacking Tools For Windows Free Download
- Hack Tool Apk
- Hackrf Tools
- Pentest Tools Subdomain
- Tools For Hacker
- Hacking Tools Online
- Nsa Hack Tools Download
- Hacking Tools 2019
- Hack Tools Mac
- Hacker Tools Hardware
- Hacker Tools For Pc
- Hacks And Tools
- Hacking Tools
- Hacking Tools Download
- Hacker Tools Free Download
- Hacks And Tools
- Hacking Tools Mac
- Hacking Apps
- Hacker Search Tools
- Hack Tools For Windows
- Pentest Tools List
- Hack Tools
- Hacking Tools Mac
- Pentest Tools Kali Linux
- Hacking Tools Free Download
- Hacking Tools Windows
- Hacker
- Hacking Tools Online
- Pentest Tools Subdomain
- Pentest Tools Bluekeep
- Hack Tools Online
- Ethical Hacker Tools
- Hacker Tools Apk
- Hack Website Online Tool
- Pentest Tools
- Pentest Tools Free
- Pentest Tools Website
- Tools For Hacker
- Pentest Tools Framework
- Hacker Tools
- Pentest Tools Github
- Pentest Automation Tools
- Pentest Tools Download
- Hacking Tools For Windows Free Download
- Pentest Tools
- Pentest Tools Kali Linux
- Hack Apps
- Hacker Tools 2019
- Hack App
- New Hacker Tools
- Nsa Hack Tools Download
- Hacking Tools For Windows
- Pentest Tools Port Scanner
- Pentest Recon Tools
- Hacking Tools Software
- Hack Tools Download
- Pentest Tools Android
- Pentest Tools Nmap