Skip to content

Commit 9d99237

Browse files
committed
feat(README): Updated
1 parent 3a1dde2 commit 9d99237

1 file changed

Lines changed: 42 additions & 8 deletions

File tree

README.md

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,50 @@ premake5 vs2019
1414

1515
Get premake5 from [here](https://premake.github.io/download/).
1616

17-
## Requirements
17+
Then afterwards open Injector.sln and start coding.
1818

19-
To be able to build this project you must have libcurl static installed as well this can be done using [Microsoft's tool vcpkg](https://github.com/microsoft/vcpkg).
19+
## How to use
2020

21-
```bash
22-
# install libcurl on your machine for a good time
23-
vcpkg install curl:x64-windows-static
21+
This injector has 2 ways of functioning:
22+
- Automatic mode (webserver required)
23+
- Manual mode (Inject a dll in a target application)
24+
25+
### Automatic Mode
26+
27+
Requirements:
28+
- Webserver
29+
30+
In the root of your webserver create a file called `version.json`, this file will tell our Injector what to do and if it should download a dll.
31+
32+
```js
33+
{
34+
"file": "menu.dll", // path to the dll file on the webserver starting from the root / is prefixed in the binary
35+
"version": "0.1.3", // human readable version number
36+
"version_machine": 13 // version number that the injector will compare against
37+
}
38+
```
2439

25-
# integrate vcpkg into Visual Studio
26-
vcpkg integrate install
40+
If you run the injector for the first time and no `settings.json` is present in the folder from which you executed the Injector it will create an example file.
41+
42+
```js
43+
{
44+
"dll_provider": "http://example.com", // the host from which to download updates
45+
"target_application": "wordpad.exe", // the target application to inject into
46+
"version": 11 // the version that is compared against on the server, this one should be lower than what's on the webserver
47+
}
2748
```
2849

29-
Afterwards open your solution file that has been generated by Premake, in Solution Explorer right-click on Injector -> Properties -> vcpkg -> Use Static Libraries => Yes.
50+
That's it.
51+
52+
### Manual Mode
53+
54+
Alternatively you can set which program to inject into and which dll to use, open a terminal and pass 2 arguments:
55+
|Position|Argument|
56+
|--|--|
57+
|1|Target Application|
58+
|2|DLL to inject into the application|
59+
60+
Example:
61+
```bash
62+
Injector.exe wordpad.exe example.dll
63+
```

0 commit comments

Comments
 (0)