Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatan1024 authored Oct 10, 2017
1 parent 6054a0d commit 05243a2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
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)

0 comments on commit 05243a2

Please sign in to comment.