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
- Pentest Tools Github
- Hacker Tools 2020
- How To Hack
- Pentest Tools Bluekeep
- Pentest Reporting Tools
- Hacking Tools Online
- Hacking Tools Windows
- Hacking Tools Usb
- Pentest Reporting Tools
- Hack Tools 2019
- Hack Website Online Tool
- Black Hat Hacker Tools
- Pentest Tools Nmap
- Hacking Tools For Mac
- Pentest Tools For Windows
- Hack Tools
- Hack Tools For Games
- Hack Tools Pc
- Pentest Tools Framework
- Hacking Tools 2019
- Game Hacking
- Hacking Tools For Beginners
- Hack Tools Github
- Hacker Tools Mac
- Hacker Tool Kit
- Hacker Tools For Ios
- Github Hacking Tools
- Hacker Tools 2019
- Nsa Hack Tools
- Pentest Reporting Tools
- Hack Tools For Windows
- Hack Tools Pc
- Pentest Tools Online
- Hacker Techniques Tools And Incident Handling
- Ethical Hacker Tools
- Hacker Tools Linux
- Hacker Tool Kit
- Hak5 Tools
- Pentest Tools Windows
- How To Install Pentest Tools In Ubuntu
- Hacks And Tools
- Hacking Tools
- Hacking Tools Usb
- Pentest Tools Find Subdomains
- Hacker Tools Online
- Hacks And Tools
- Pentest Tools Review
- Hacking Tools Kit
- What Is Hacking Tools
- How To Hack
- Pentest Tools Download
- How To Hack
- Hacking Tools Windows 10
- Hack App
- Pentest Tools For Windows
- Pentest Tools List
- Hack Website Online Tool
- Pentest Tools Open Source
- Hacking Tools Kit
- Pentest Tools Open Source
- Hacker Tools Hardware
- Hacking Apps
- Pentest Tools Nmap
- Wifi Hacker Tools For Windows
- Hak5 Tools
- Hacker Tools List
- Hacking Tools 2019
- Hacker Tools 2020
- Usb Pentest Tools
- Beginner Hacker Tools
- Hacking Tools Windows 10
- Hacker Tools Apk
- Hack Tools 2019
- Pentest Tools Windows
- Hack Tools 2019
- Hacker Tools 2019
- Hacker Tools List
- Hacking Tools Mac
- Pentest Recon Tools
- Install Pentest Tools Ubuntu
- Hacker Techniques Tools And Incident Handling
- Hacking Tools Windows 10
- Ethical Hacker Tools
- Hacking Tools Kit
- Hacking Tools Usb
- Hacker Tools For Pc
- Hack Tools For Games
- Pentest Tools
- Tools 4 Hack
- Hacker Tools
- Hacker Tool Kit
- What Are Hacking Tools
- Underground Hacker Sites
- Hackrf Tools
- Pentest Tools Url Fuzzer
- Install Pentest Tools Ubuntu
- Install Pentest Tools Ubuntu
- Hacking Tools Name
- Hacker Tools Free Download
- Hacking Tools Download
- Hacker Tools 2019
- Hacking Apps
- Hacking Tools For Pc
No comments:
Post a Comment