Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 581 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 581 Bytes

DNS-Hooker

Hook DnsQueryEX to control domains resolving in any application using dnsapi.dll.

alt text

Requierments:

Microsoft Detours Library - https://github.com/microsoft/Detours

Compile:

  1. Unzip source code, open command line and enter to source directory
  2. SET DETOURS_TARGET_PROCESSOR=X64
  3. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
  4. NMAKE

Add detours.lib to Linker additional libraries.

Hooked Function:

  • DnsQueryEX