Sabtu, 27 Januari 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



Read more
  1. Pentest Tools Linux
  2. Pentest Tools Windows
  3. How To Install Pentest Tools In Ubuntu
  4. Pentest Tools Online
  5. Pentest Tools Nmap
  6. Hacker Tools Linux
  7. Underground Hacker Sites
  8. Hack Website Online Tool
  9. Top Pentest Tools
  10. Hack Tool Apk No Root
  11. Pentest Tools Linux
  12. Pentest Tools Free
  13. Pentest Tools Online
  14. Hacking Tools For Windows
  15. Hacking Tools For Windows 7
  16. Ethical Hacker Tools
  17. Hacking Tools For Mac
  18. Hacking Tools Download
  19. Hacking Apps
  20. Pentest Tools Port Scanner
  21. Hacker Tools 2019
  22. Black Hat Hacker Tools
  23. Nsa Hack Tools
  24. Beginner Hacker Tools
  25. Pentest Tools Nmap
  26. Hacking Tools For Kali Linux
  27. Hacking Tools Windows
  28. Free Pentest Tools For Windows
  29. Hacking Tools Online
  30. Nsa Hack Tools Download
  31. Pentest Tools For Android
  32. Hack Tools
  33. Hacking Tools Pc
  34. Pentest Tools For Mac
  35. Hack Tools For Games
  36. Pentest Tools For Ubuntu
  37. Hacking Tools For Pc
  38. Hacking Tools Windows
  39. Hacker Search Tools
  40. Usb Pentest Tools
  41. Tools For Hacker
  42. Hacker Tools 2020
  43. Hacking Tools Mac
  44. Hacker Tools List
  45. How To Hack
  46. Hack Tools For Games
  47. Pentest Tools List
  48. Hack And Tools
  49. Pentest Tools Apk
  50. Hack Tool Apk No Root
  51. Hack Tools Pc
  52. Best Pentesting Tools 2018
  53. Computer Hacker
  54. Pentest Tools Subdomain
  55. How To Hack
  56. Pentest Tools Subdomain
  57. Pentest Tools
  58. Hacker Tools 2019
  59. Growth Hacker Tools
  60. Hacker Tools Mac
  61. Hack Tools Github
  62. Hacker Tools
  63. Hacker Security Tools
  64. Hacking Tools For Kali Linux
  65. Best Hacking Tools 2019
  66. Pentest Tools Github
  67. Bluetooth Hacking Tools Kali
  68. Tools Used For Hacking
  69. Pentest Tools Linux
  70. Hacking Tools For Pc
  71. Hacking Tools Pc
  72. Nsa Hack Tools
  73. Easy Hack Tools
  74. Hacking Tools Download
  75. Hack Rom Tools
  76. Install Pentest Tools Ubuntu
  77. Pentest Tools Review
  78. Pentest Tools Kali Linux
  79. Pentest Tools Linux
  80. Hacker Tools Apk
  81. Pentest Automation Tools
  82. Hacking Tools For Windows 7
  83. Hackrf Tools
  84. Pentest Tools Windows
  85. Hacker Search Tools
  86. Hack Website Online Tool
  87. Pentest Tools Bluekeep
  88. Hacker Tools For Windows
  89. Pentest Tools Nmap
  90. What Is Hacking Tools
  91. Pentest Tools Android
  92. Pentest Recon Tools
  93. Pentest Reporting Tools
  94. Hack Tools Github
  95. Hacking Tools For Mac
  96. Hacker Techniques Tools And Incident Handling
  97. Hacking Tools Free Download
  98. Best Hacking Tools 2020
  99. Hacking App
  100. Hacker Hardware Tools
  101. Hacking Tools For Windows 7
  102. Hacks And Tools
  103. Hacking Tools Windows
  104. What Are Hacking Tools
  105. Hacking Tools For Games
  106. Hacker Tools For Windows
  107. Hacking Tools Software
  108. Hack Tools For Pc
  109. Hacker Tools Online
  110. Pentest Tools
  111. Easy Hack Tools
  112. Hack App
  113. How To Install Pentest Tools In Ubuntu
  114. Android Hack Tools Github
  115. Pentest Tools
  116. Hack Tools Mac
  117. Top Pentest Tools
  118. Pentest Tools Open Source
  119. Hacker Tools Github
  120. Hacking Tools 2020
  121. Hack Tools Pc
  122. Hack Tools Github
  123. Hacking Tools 2020
  124. Hacker Tools Apk Download
  125. Hacking Tools Name
  126. Hack Tools For Pc
  127. Hacking Tools Hardware
  128. Pentest Tools Free
  129. Pentest Tools Github
  130. Pentest Automation Tools
  131. Hacking Tools Download
  132. Hack App
  133. Hack Tools Pc
  134. Hacking App
  135. Pentest Tools Android
  136. Pentest Tools List
  137. Pentest Tools Find Subdomains
  138. Wifi Hacker Tools For Windows
  139. Game Hacking
  140. Pentest Tools Tcp Port Scanner
  141. Hacking Tools For Kali Linux
  142. Hacking Tools For Kali Linux
  143. Android Hack Tools Github
  144. Hacking Tools Hardware
  145. What Is Hacking Tools
  146. Pentest Tools Online
  147. Hacking Apps
  148. Pentest Tools Subdomain
  149. Wifi Hacker Tools For Windows
  150. Hacking Tools For Mac
  151. Hacker Tools Free
  152. Hackers Toolbox
  153. Hack Tools For Windows
  154. Pentest Tools For Ubuntu
  155. Pentest Tools List
  156. Hack Tools Online
  157. Hack Tools Download
  158. Ethical Hacker Tools
  159. Pentest Tools For Android
  160. Hacking App
  161. Hacking Tools
  162. Pentest Tools Windows
  163. Hacker
  164. Pentest Tools Linux
  165. Hacking Tools 2020
  166. Pentest Tools Review
  167. Pentest Tools List
  168. Growth Hacker Tools
  169. Hacking Tools Software
  170. Pentest Tools Url Fuzzer
  171. Hack Tools Mac
  172. Hacker Tools Hardware
  173. Pentest Tools Download
  174. Hack Tools For Games
  175. Best Hacking Tools 2020

Tidak ada komentar:

Posting Komentar