You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-8Lines changed: 42 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,50 @@ premake5 vs2019
14
14
15
15
Get premake5 from [here](https://premake.github.io/download/).
16
16
17
-
## Requirements
17
+
Then afterwards open Injector.sln and start coding.
18
18
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
20
20
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
+
```
24
39
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
+
}
27
48
```
28
49
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:
0 commit comments