-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6054a0d
commit 05243a2
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# clrinject | ||
Injects C# EXE or DLL Assembly into every CLR runtime and AppDomain of another process. | ||
|
||
## Usage | ||
`clrinject-cli.exe -p <processId/processName> -a <assemblyFile>` | ||
|
||
Opens process with id `<processId>` or name `<processName>`, inject `<assemblyFile>` EXE and execute Main method. | ||
|
||
### Additional options | ||
* `-e` Enumerates all loaded CLR Runtimes and created AppDomains. | ||
* `-d <#>` Inject only into `<#>`-th AppDomain. If no number or zero is specified, assembly is injected into every AppDomain. | ||
* `-i <namespace>.<className>` Create an instance of class `<className>` from namespace `<namespace>`. | ||
|
||
## Examples | ||
* `clrinject-cli.exe -p victim.exe -e` (Enumerate Runtimes and AppDomains from victim.exe) | ||
* `clrinject-cli.exe -p 1234 -a "C:\Path\To\invader.exe" -d 2` (Inject invader.exe into second AppDomain from process with id 1234) | ||
* `clrinject-cli.exe -p victim.exe -a "C:\Path\To\invader.dll" -i "Invader.Invader"` (Create instance of Invader inside every AppDomain in victim.exe) |