Pentester's Promiscuous Notebook
Ctrlk
TwitterGitHubBlog
  • README
  • ⚒️Pentest
    • C2
    • Infrastructure
    • OSINT
    • Password Brute Force
    • Perimeter
    • Shells
    • Web
    • Wi-Fi
  • ⚔️Red Team
    • Basics
    • Infrastructure
    • Development
      • API Hashing
      • API Hooking
      • BOF / COFF
      • CFG
      • Code Injection
      • DLL Hijacking
      • Golang
      • Kernel Mode
      • PIC / Shellcode
      • Nim
      • Sandbox Evasion
      • Syscalls
      • Windows API
  • 🐞Exploit Dev
    • BOF
    • RE
    • WinDbg
  • ⚙️Admin
    • Git
    • Linux
    • Networking
    • Virtualization
    • Windows
Powered by GitBook
On this page
  • Examples
  • C++
  • C#
  • Tools
  1. ⚔️Red Team
  2. Development

API Hooking

  • https://www.ired.team/offensive-security/code-injection-process-injection/how-to-hook-windows-api-using-c++

  • https://www.malwaretech.com/2015/01/inline-hooking-for-programmers-part-1.html

  • https://www.malwaretech.com/2015/01/inline-hooking-for-programmers-part-2.html

Examples

C++

  • https://github.com/mgeeky/ShellcodeFluctuation/blob/master/ShellcodeFluctuation/main.cpp

  • https://github.com/snovvcrash/VeraCryptThief/blob/main/VeraCryptThiefDll/veracryptthief.cpp

C#

  • https://gist.github.com/NaxAlpha/144d1dd96c7d0ad29fe149e4063a8f25

Tools

  • https://github.com/CCob/MinHook.NET

  • https://github.com/CCob/SharpBlock

  • https://github.com/ars3n11/MineSweeper

Last updated 3 years ago