Coder Social home page Coder Social logo

broihon / import-handler Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 10.0 7 KB

A small library to extend the functionality of GetModuleHandle and GetProcAddress to other processes

Home Page: https://guidedhacking.com/resources/guided-hacking-dll-injector.4/

C++ 76.42% C 23.58%
pe-loader windows-internals

import-handler's Introduction

Import Handler

A collection of helper functions to extend the funcionality of GetModuleHandle and GetProcAddress to work with other processes. All functions work for x86 and x64. When using a x64 process and the target process is running under wow64 make sure to used the _WOW64 variants of the functions.


GetModuleHandle

  • GetModuleHandleEx

    • GetModuleHandleExA
    • GetModuleHandleExW
  • GetProcAddressEx_WOW64

    • GetProcAddressExA_WOW64
    • GetProcAddressExW_WOW64

These functions use the Tool Help Library (TlHelp32.h) to enumerate the modules in the target process and return the base address of the specified module. The process handle needs the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right.

The _WOW64 variants ignore the x64 modules of a wow64 process.


GetProcAddress

  • GetProcAddressEx
  • GetProcAddressEx_WOW64

These functions use ReadProcessMemory to walk through the specified module's export directory. In addition to the above mentioned access right this handles needs PROCESS_VM_READ access aswell. The function name can be a function ordinal. Forwarded functions are handled recursively. API sets are not handled.

import-handler's People

Contributors

broihon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.