killchain-compendium/Reverse Engineering/Dynamic Linked Libraries.md

10 lines
261 B
Markdown
Raw Normal View History

2022-11-12 23:18:06 +01:00
# DLL Reversing
* Start DLL on its own with the help a wrapper
```C#
HMODULE dll = LoadLibraryA("DLL.DLL");
typedef void(WINAPI* Add_TypeDef)(int, int); // Add(int x, int y)
Add_TypeDef Add = (Add_TypeDef)GetProcAddress(dll, "Add_MangledName");
Add(1, 2);
```