Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mactec0/Kernelmode-manual-mapping-through-IAT

Manual mapping without creating any threads, with rw only access
https://github.com/mactec0/Kernelmode-manual-mapping-through-IAT

Last synced: 4 days ago
JSON representation

Manual mapping without creating any threads, with rw only access

Awesome Lists containing this project

README

        

## Manual mapping x64 without creating any threads

Instead of using CreateRemoteThread or typical thread hijacking methods(e.g. GetThreadContext),
this mapper injects into code flow through import table.
Address of function is overwritten with stub address, it is later restored after calling the stub.
It supports interacting with the process by handle or kernel driver.
Injecting with a driver allows you to execute code inside protected processes.

#### Usage:
```cpp
mmap mapper(INJECTION_TYPE::KERNEL); // or INJECTION_TYPE::USERMODE

if (!mapper.attach_to_process("example_process.exe"))
return 1;

if (!mapper.load_dll("example_dll.dll"))
return 1;

if (!mapper.inject())
return 1;
```
![](https://i.imgur.com/cKyFRrb.png)

#### Credits
- [teosek](https://github.com/teosek "teosek") //usermode_proc class, import walking
- Daquas //testing