https://github.com/chaoses-ib/ibdllhijacklib
A C library for Windows DLL hijacking.
https://github.com/chaoses-ib/ibdllhijacklib
dll-hijacking windows
Last synced: 8 months ago
JSON representation
A C library for Windows DLL hijacking.
- Host: GitHub
- URL: https://github.com/chaoses-ib/ibdllhijacklib
- Owner: Chaoses-Ib
- License: mit
- Created: 2021-09-11T11:19:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T08:00:14.000Z (almost 2 years ago)
- Last Synced: 2024-07-29T10:55:36.452Z (almost 2 years ago)
- Topics: dll-hijacking, windows
- Language: C
- Homepage:
- Size: 34.2 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# IbDllHijackLib
A C library for Windows DLL hijacking.
## Usage
```cpp
// Export functions of version.dll (by export forwarding)
#include
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
```
You can use the [generator](generator/README.md) to generate header files for any DLL.
## Build the test
```cmd
vcpkg install boost-test
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="C:\...\vcpkg\scripts\buildsystems\vcpkg.cmake"
```
## Projects using this library
* [IbDOpusExt](https://github.com/Chaoses-Ib/IbDOpusExt)
* [IbEverythingExt](https://github.com/Chaoses-Ib/IbEverythingExt)
* [IbLogiSoftExt](https://github.com/Chaoses-Ib/IbLogiSoftExt)
* [IbOneNoteExt](https://github.com/Chaoses-Ib/IbOneNoteExt)