domingo, 28 de enero de 2024

Koppeling - Adaptive DLL Hijacking / Dynamic Export Forwarding


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.


Example

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
  1. Hacking Tools Mac
  2. Android Hack Tools Github
  3. Hack Tool Apk
  4. Pentest Tools Kali Linux
  5. Computer Hacker
  6. Pentest Tools For Windows
  7. Hacking Tools For Windows Free Download
  8. Hacker
  9. Hacker Tools Online
  10. Pentest Tools Framework
  11. Hacking Tools For Windows Free Download
  12. Hacking Tools For Pc
  13. Hacking Tools Software
  14. Pentest Tools Online
  15. Nsa Hacker Tools
  16. Github Hacking Tools
  17. Hacking Tools Hardware
  18. Pentest Tools For Ubuntu
  19. Hacking Tools For Beginners
  20. Install Pentest Tools Ubuntu
  21. Pentest Tools For Mac
  22. Hacker Tools 2020
  23. Hacking Tools Github
  24. Tools Used For Hacking
  25. What Are Hacking Tools
  26. Hacking Tools Free Download
  27. Pentest Box Tools Download
  28. Pentest Automation Tools
  29. Hack And Tools
  30. Hacker Techniques Tools And Incident Handling
  31. Free Pentest Tools For Windows
  32. Beginner Hacker Tools
  33. Pentest Box Tools Download
  34. Hackers Toolbox
  35. Hacking Tools For Windows 7
  36. Hacker Techniques Tools And Incident Handling
  37. Android Hack Tools Github
  38. Hacking Tools For Games
  39. Pentest Tools Free
  40. Hacking Tools For Kali Linux
  41. Hacker Tools 2019
  42. Pentest Tools Alternative
  43. Pentest Tools Online
  44. Install Pentest Tools Ubuntu
  45. Hacker Tools Mac
  46. Hacker Tools For Mac
  47. Hack Tool Apk No Root
  48. Blackhat Hacker Tools
  49. Hak5 Tools
  50. Tools 4 Hack
  51. Termux Hacking Tools 2019
  52. Hacker Tools Linux
  53. Best Hacking Tools 2020
  54. Pentest Tools For Windows
  55. Pentest Tools Subdomain
  56. Bluetooth Hacking Tools Kali
  57. Pentest Tools Github
  58. Pentest Tools Online
  59. Pentest Tools List
  60. Pentest Tools Alternative
  61. Best Pentesting Tools 2018
  62. Hack Tools Mac
  63. Hack Tools For Windows
  64. Hackrf Tools
  65. Pentest Tools Website Vulnerability
  66. Pentest Tools Website
  67. Pentest Tools Port Scanner
  68. Bluetooth Hacking Tools Kali
  69. Hacking Tools 2020
  70. Pentest Tools List
  71. Tools 4 Hack
  72. Hacker Tool Kit
  73. Usb Pentest Tools
  74. New Hack Tools
  75. Hacking Tools Download
  76. Hacker Tools 2020
  77. Install Pentest Tools Ubuntu
  78. World No 1 Hacker Software
  79. Hacking Tools Pc
  80. Hack Tools Pc
  81. Black Hat Hacker Tools
  82. Hacker
  83. Best Pentesting Tools 2018
  84. Hackrf Tools
  85. Pentest Tools Apk
  86. Pentest Tools Website Vulnerability
  87. Hack Tool Apk
  88. Pentest Tools Framework
  89. Hacking Tools Name
  90. Hacking Tools Windows 10
  91. Pentest Tools Apk