https://github.com/matrix86/wincodeinjection
Dll Injection and Code injection sample
https://github.com/matrix86/wincodeinjection
Last synced: 4 months ago
JSON representation
Dll Injection and Code injection sample
- Host: GitHub
- URL: https://github.com/matrix86/wincodeinjection
- Owner: Matrix86
- Created: 2015-03-10T17:32:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-10T17:53:01.000Z (about 10 years ago)
- Last Synced: 2024-12-30T22:05:21.875Z (4 months ago)
- Language: C++
- Size: 141 KB
- Stars: 13
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WinCodeInjection
This repository contains 2 samples:
* Dll Injector with a Dll to inject
* Code InjectorThe Dll Injector sample use the undocumented function *NtCreateThreadEx* to launch a remote thread.
If you want to use *CreateRemoteThread*, you have to remember that starting with Win Vista (Session Separation)
a process situated in a session can't access to a process in a different session.The Code injector performs a change on the *image relocation table* to adjust it to the new base. In this sample I use the
simple *CreateRemoteThread* to insert a custom function in another process.