You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-4Lines changed: 32 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,39 @@
1
1
# Go-win-process-injector
2
2
3
3
## Description
4
-
During my researches on process injection in Go, i have only found shellcode injections. But, in my case, I needed to include complex code in the process i was injecting into without instability linked to my action.
4
+
This program is highly configurable process injector made in Go that can run both in interactive mode or as a Windows Service.
5
5
6
-
This complex code was compiled in a Go DLL. However, Go does not incorporate logic similar to DllMain to allow direct execution of a function once the code has been injected. This program therefore takes care of finding the address of the target function and then executing it in the context of the process where the injection took place.
6
+
This project was born when during my researches on process injections in Go. I needed to execute complex code made in Go with a DLL injection but Go does not incorporate logic similar to DllMain to allow direct execution once the code has been injected. This injector takes care of finding the address of the target function and then executing it in the context of the process where the injection took place.
7
7
8
-
## Instruction, example and sequence of the injection
8
+
## Compilation
9
+
* Install golang latest version [here](https://go.dev/)
10
+
* compile to exe with `go build -ldflags "-s -w" .`
11
+
12
+
## YAML Config File example
13
+
```
14
+
injector_log_level: "LOGLEVEL_INFO" # use LOGLEVEL_DEBUG for a verbose logging
15
+
injector_log_file: "C:\\Windows\\Temp\\goprocinjector.log" # let blank if you don't want to log in a file
16
+
process_injections: # add your DLL injection as a list like in this example
0 commit comments