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 articles
- Hacking Tools Windows 10
- Pentest Tools Website Vulnerability
- How To Hack
- Nsa Hacker Tools
- Pentest Tools
- Pentest Tools Linux
- Github Hacking Tools
- Pentest Tools Find Subdomains
- Best Hacking Tools 2019
- New Hack Tools
- Computer Hacker
- Hack Tools
- Hacker Tools For Ios
- Computer Hacker
- Pentest Tools
- Pentest Tools Free
- Bluetooth Hacking Tools Kali
- Hacker Tools Software
- What Are Hacking Tools
- Hacking Tools For Windows
- Hacking Tools Windows
- Hacks And Tools
- Pentest Recon Tools
- Termux Hacking Tools 2019
- Hack Tools 2019
- Hacker Tools Software
- Tools For Hacker
- Hacking Tools And Software
- Hacker Tools Github
- Hacker
- Hacking Tools For Games
- Hack Website Online Tool
- Hack Rom Tools
- Hacker Tools Free
- Computer Hacker
- Hack Tool Apk No Root
- Hacking Tools 2019
- Hack App
- Hackrf Tools
- Hacker Tools Online
- Hack Tools
- Pentest Tools Website
- Hacker Tools For Pc
- Hacking Tools For Windows 7
- Pentest Automation Tools
- Game Hacking
- Pentest Tools Kali Linux
- Hacker Tools Github
- Pentest Reporting Tools
- Hacking Tools For Kali Linux
- Hacking Tools
- Pentest Tools Nmap
- Hacking Tools Kit
- Nsa Hacker Tools
- Hacker Tools Hardware
- Hack Website Online Tool
- New Hack Tools
- Hacker Search Tools
- Hacking Apps
- Hacker Tools For Pc
- World No 1 Hacker Software
- Hack Tools Pc
- Hacker Tools Free
- Hak5 Tools
- Pentest Reporting Tools
- Hacker Tools Free
- Hacker Tools 2019
- Hacker Tools Apk Download
- Free Pentest Tools For Windows
- Hacking Tools For Windows 7
- Hacker Tools
- Hacking Tools For Games
- Hacker
- Underground Hacker Sites
- Pentest Tools Nmap
- Wifi Hacker Tools For Windows
- Hackers Toolbox
- Pentest Tools Url Fuzzer
- New Hacker Tools
- Pentest Tools Download
- Pentest Tools Github
- New Hacker Tools
- Hack And Tools
- Hack Tools 2019
- Pentest Tools Review
- Hacking Tools Mac
- Blackhat Hacker Tools
- Blackhat Hacker Tools
- Pentest Tools For Ubuntu
- Hacking Tools And Software
- Kik Hack Tools
- Pentest Tools Windows
- Pentest Tools Open Source
- Hacking Tools 2020
- Hack And Tools
- Free Pentest Tools For Windows
- Hacker Tools For Pc
- Hacking App
- Hacker Tools Linux
- Pentest Tools Free
- Hacker Tools Hardware
- Nsa Hack Tools
- Hack Website Online Tool
- Hacking Tools Kit
- Pentest Tools Find Subdomains
- Hacker Tools 2020
- Hacking Tools Kit
- Pentest Automation Tools
- Pentest Tools Linux
- Hacking Tools Github
- Hacking Tools Pc
- Pentest Tools Nmap
- Hacking Tools Hardware
- Pentest Box Tools Download
- Nsa Hack Tools Download
- Hacking Tools 2019
- Hacks And Tools
- Free Pentest Tools For Windows
- Pentest Tools Bluekeep
- Termux Hacking Tools 2019
- Hacking Tools Usb
- Hacker Tools Mac
- Pentest Tools Nmap
- Wifi Hacker Tools For Windows
- Hacking Tools 2020
- Hack Tools 2019
- Hacking Tools For Mac
- Best Hacking Tools 2019
- Hack Tool Apk
- Hacking Tools
- Hacker Tools For Pc
- Hackrf Tools
- Hacking Tools For Beginners
- Hacker Hardware Tools
- Ethical Hacker Tools
- Blackhat Hacker Tools
- Hacking Tools And Software
- Pentest Tools Tcp Port Scanner
- Hacking Tools Online
- Best Pentesting Tools 2018
- Hacks And Tools
- Pentest Tools For Android
- Hacking Tools For Games
- Hacking Tools For Kali Linux
- Best Hacking Tools 2019
- Pentest Tools Kali Linux
- Kik Hack Tools
- Hacker Tools Free Download
No comments:
Post a Comment