View Single Post
  #1  
Old 11-23-2020, 00:56
chessgod101's Avatar
chessgod101 chessgod101 is offline
Co-Administrator
 
Join Date: Jan 2011
Location: United States
Posts: 517
Rept. Given: 2,143
Rept. Rcvd 677 Times in 213 Posts
Thanks Given: 592
Thanks Rcvd at 813 Times in 163 Posts
chessgod101 Reputation: 500-699 chessgod101 Reputation: 500-699 chessgod101 Reputation: 500-699 chessgod101 Reputation: 500-699 chessgod101 Reputation: 500-699 chessgod101 Reputation: 500-699
One Time API Redirection Library in Delphi (x86)

This is a simple injectable library I created to redirect a specified API to execute code at a particular point in memory. I use it a lot for complicated protections in order to get my own code into the process memory.

Source:

Code:
https://github.com/chessgod101/One-Time-API-Redirection-Library
The code use is simple. Simply modify the following CONST values to the API

CONST RedirAPI:AnsiString='YOURAPIHERE'; //api to be redirected
CONST DLLOFAPI:WideString='YOURDLLHERE.DLL'; //dll containing that api

You add your code to the DoYourStuff function.

I included a simple PatchMemoryByte function for your convenience.

Future Goals:
  • Create a library with x64 support.
  • Release my injection loader library after cleaning up the source code.
__________________
"Real knowledge is to know the extent of one's ignorance." Confucius
Reply With Quote
The Following 4 Users Gave Reputation+1 to chessgod101 For This Useful Post:
b30wulf (11-23-2020), chants (11-28-2020), MarcElBichon (11-23-2020), niculaita (11-23-2020)
The Following 11 Users Say Thank You to chessgod101 For This Useful Post:
barukai (11-26-2020), binarylaw (11-27-2020), chants (11-28-2020), emo (11-25-2020), LordGarfio (12-02-2020), Nacho_dj (11-23-2020), niculaita (11-23-2020), Rasmus (11-23-2020), sh3dow (06-22-2021), tonyweb (11-23-2020), virus (12-04-2020)