├── .github
└── workflows
│ └── build.yml
├── .gitignore
├── Cargo.lock
├── Cargo.toml
├── LICENSE
├── README.md
├── assets
├── icon.ico
└── resource.rc
├── build.iss
├── build.rs
├── rust-toolchain.toml
└── src
├── config.rs
├── logger.rs
├── main.rs
├── process.rs
└── utils.rs
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: Build
2 |
3 | on:
4 | push:
5 | branches:
6 | - "*"
7 | pull_request:
8 | branches:
9 | - "*"
10 |
11 | env:
12 | CARGO_TERM_COLOR: always
13 |
14 | jobs:
15 | build:
16 | runs-on: windows-latest
17 |
18 | steps:
19 | - uses: actions/checkout@v4
20 |
21 | - name: Download Rust nightly
22 | run: rustup install nightly-2024-04-24
23 |
24 | - name: Build
25 | run: cargo build --verbose --release
26 |
27 | - name: Download VC redistributables
28 | run: Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"
29 |
30 | - name: Get file version of instigator.exe
31 | id: get_version
32 | shell: pwsh
33 | run: |
34 | $exePath = ".\target\release\instigator.exe"
35 | $version = (Get-Item $exePath).VersionInfo.FileVersionRaw
36 | if ($version -match "(\d+\.\d+\.\d+)\.0") {
37 | $version = $matches[1]
38 | }
39 | echo "Extracted version: $version"
40 | echo "file_version=$version" | Out-File -FilePath $env:GITHUB_ENV -Append
41 |
42 | - name: Build installer
43 | uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
44 | with:
45 | path: build.iss
46 | options: /O+
47 |
48 | - name: Upload binary
49 | uses: actions/upload-artifact@v4
50 | with:
51 | name: instigator.exe
52 | path: .\target\release\instigator.exe
53 |
54 | - name: Upload installer
55 | uses: actions/upload-artifact@v4
56 | with:
57 | name: InstigatorSetup-${{ env.file_version }}.exe
58 | path: .\build\
59 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /build
3 | VC_redist.x64.exe
--------------------------------------------------------------------------------
/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | version = 4
4 |
5 | [[package]]
6 | name = "addr2line"
7 | version = "0.24.2"
8 | source = "registry+https://github.com/rust-lang/crates.io-index"
9 | checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
10 | dependencies = [
11 | "gimli",
12 | ]
13 |
14 | [[package]]
15 | name = "adler2"
16 | version = "2.0.0"
17 | source = "registry+https://github.com/rust-lang/crates.io-index"
18 | checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
19 |
20 | [[package]]
21 | name = "android-tzdata"
22 | version = "0.1.1"
23 | source = "registry+https://github.com/rust-lang/crates.io-index"
24 | checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
25 |
26 | [[package]]
27 | name = "android_system_properties"
28 | version = "0.1.5"
29 | source = "registry+https://github.com/rust-lang/crates.io-index"
30 | checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
31 | dependencies = [
32 | "libc",
33 | ]
34 |
35 | [[package]]
36 | name = "anstream"
37 | version = "0.6.18"
38 | source = "registry+https://github.com/rust-lang/crates.io-index"
39 | checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
40 | dependencies = [
41 | "anstyle",
42 | "anstyle-parse",
43 | "anstyle-query",
44 | "anstyle-wincon",
45 | "colorchoice",
46 | "is_terminal_polyfill",
47 | "utf8parse",
48 | ]
49 |
50 | [[package]]
51 | name = "anstyle"
52 | version = "1.0.10"
53 | source = "registry+https://github.com/rust-lang/crates.io-index"
54 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
55 |
56 | [[package]]
57 | name = "anstyle-parse"
58 | version = "0.2.6"
59 | source = "registry+https://github.com/rust-lang/crates.io-index"
60 | checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
61 | dependencies = [
62 | "utf8parse",
63 | ]
64 |
65 | [[package]]
66 | name = "anstyle-query"
67 | version = "1.1.2"
68 | source = "registry+https://github.com/rust-lang/crates.io-index"
69 | checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
70 | dependencies = [
71 | "windows-sys 0.59.0",
72 | ]
73 |
74 | [[package]]
75 | name = "anstyle-wincon"
76 | version = "3.0.7"
77 | source = "registry+https://github.com/rust-lang/crates.io-index"
78 | checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
79 | dependencies = [
80 | "anstyle",
81 | "once_cell",
82 | "windows-sys 0.59.0",
83 | ]
84 |
85 | [[package]]
86 | name = "autocfg"
87 | version = "1.4.0"
88 | source = "registry+https://github.com/rust-lang/crates.io-index"
89 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
90 |
91 | [[package]]
92 | name = "backtrace"
93 | version = "0.3.74"
94 | source = "registry+https://github.com/rust-lang/crates.io-index"
95 | checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
96 | dependencies = [
97 | "addr2line",
98 | "cfg-if",
99 | "libc",
100 | "miniz_oxide",
101 | "object",
102 | "rustc-demangle",
103 | "windows-targets 0.52.6",
104 | ]
105 |
106 | [[package]]
107 | name = "bincode"
108 | version = "1.3.3"
109 | source = "registry+https://github.com/rust-lang/crates.io-index"
110 | checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
111 | dependencies = [
112 | "serde",
113 | ]
114 |
115 | [[package]]
116 | name = "bitflags"
117 | version = "1.3.2"
118 | source = "registry+https://github.com/rust-lang/crates.io-index"
119 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
120 |
121 | [[package]]
122 | name = "bitflags"
123 | version = "2.9.0"
124 | source = "registry+https://github.com/rust-lang/crates.io-index"
125 | checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
126 |
127 | [[package]]
128 | name = "bstr"
129 | version = "1.11.3"
130 | source = "registry+https://github.com/rust-lang/crates.io-index"
131 | checksum = "531a9155a481e2ee699d4f98f43c0ca4ff8ee1bfd55c31e9e98fb29d2b176fe0"
132 | dependencies = [
133 | "memchr",
134 | "regex-automata",
135 | "serde",
136 | ]
137 |
138 | [[package]]
139 | name = "bumpalo"
140 | version = "3.17.0"
141 | source = "registry+https://github.com/rust-lang/crates.io-index"
142 | checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
143 |
144 | [[package]]
145 | name = "cc"
146 | version = "1.2.17"
147 | source = "registry+https://github.com/rust-lang/crates.io-index"
148 | checksum = "1fcb57c740ae1daf453ae85f16e37396f672b039e00d9d866e07ddb24e328e3a"
149 | dependencies = [
150 | "shlex",
151 | ]
152 |
153 | [[package]]
154 | name = "cfg-if"
155 | version = "1.0.0"
156 | source = "registry+https://github.com/rust-lang/crates.io-index"
157 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
158 |
159 | [[package]]
160 | name = "cfg_aliases"
161 | version = "0.2.1"
162 | source = "registry+https://github.com/rust-lang/crates.io-index"
163 | checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
164 |
165 | [[package]]
166 | name = "chrono"
167 | version = "0.4.40"
168 | source = "registry+https://github.com/rust-lang/crates.io-index"
169 | checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c"
170 | dependencies = [
171 | "android-tzdata",
172 | "iana-time-zone",
173 | "js-sys",
174 | "num-traits",
175 | "wasm-bindgen",
176 | "windows-link",
177 | ]
178 |
179 | [[package]]
180 | name = "clap"
181 | version = "4.5.34"
182 | source = "registry+https://github.com/rust-lang/crates.io-index"
183 | checksum = "e958897981290da2a852763fe9cdb89cd36977a5d729023127095fa94d95e2ff"
184 | dependencies = [
185 | "clap_builder",
186 | "clap_derive",
187 | ]
188 |
189 | [[package]]
190 | name = "clap_builder"
191 | version = "4.5.34"
192 | source = "registry+https://github.com/rust-lang/crates.io-index"
193 | checksum = "83b0f35019843db2160b5bb19ae09b4e6411ac33fc6a712003c33e03090e2489"
194 | dependencies = [
195 | "anstream",
196 | "anstyle",
197 | "clap_lex",
198 | "strsim",
199 | ]
200 |
201 | [[package]]
202 | name = "clap_derive"
203 | version = "4.5.32"
204 | source = "registry+https://github.com/rust-lang/crates.io-index"
205 | checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7"
206 | dependencies = [
207 | "heck",
208 | "proc-macro2",
209 | "quote",
210 | "syn 2.0.100",
211 | ]
212 |
213 | [[package]]
214 | name = "clap_lex"
215 | version = "0.7.4"
216 | source = "registry+https://github.com/rust-lang/crates.io-index"
217 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
218 |
219 | [[package]]
220 | name = "colorchoice"
221 | version = "1.0.3"
222 | source = "registry+https://github.com/rust-lang/crates.io-index"
223 | checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
224 |
225 | [[package]]
226 | name = "const_panic"
227 | version = "0.2.12"
228 | source = "registry+https://github.com/rust-lang/crates.io-index"
229 | checksum = "2459fc9262a1aa204eb4b5764ad4f189caec88aea9634389c0a25f8be7f6265e"
230 |
231 | [[package]]
232 | name = "core-foundation-sys"
233 | version = "0.8.7"
234 | source = "registry+https://github.com/rust-lang/crates.io-index"
235 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
236 |
237 | [[package]]
238 | name = "crossbeam-deque"
239 | version = "0.8.6"
240 | source = "registry+https://github.com/rust-lang/crates.io-index"
241 | checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
242 | dependencies = [
243 | "crossbeam-epoch",
244 | "crossbeam-utils",
245 | ]
246 |
247 | [[package]]
248 | name = "crossbeam-epoch"
249 | version = "0.9.18"
250 | source = "registry+https://github.com/rust-lang/crates.io-index"
251 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
252 | dependencies = [
253 | "crossbeam-utils",
254 | ]
255 |
256 | [[package]]
257 | name = "crossbeam-utils"
258 | version = "0.8.21"
259 | source = "registry+https://github.com/rust-lang/crates.io-index"
260 | checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
261 |
262 | [[package]]
263 | name = "cstr"
264 | version = "0.2.12"
265 | source = "registry+https://github.com/rust-lang/crates.io-index"
266 | checksum = "68523903c8ae5aacfa32a0d9ae60cadeb764e1da14ee0d26b1f3089f13a54636"
267 | dependencies = [
268 | "proc-macro2",
269 | "quote",
270 | ]
271 |
272 | [[package]]
273 | name = "ctrlc"
274 | version = "3.4.5"
275 | source = "registry+https://github.com/rust-lang/crates.io-index"
276 | checksum = "90eeab0aa92f3f9b4e87f258c72b139c207d251f9cbc1080a0086b86a8870dd3"
277 | dependencies = [
278 | "nix",
279 | "windows-sys 0.59.0",
280 | ]
281 |
282 | [[package]]
283 | name = "dbus"
284 | version = "0.9.7"
285 | source = "registry+https://github.com/rust-lang/crates.io-index"
286 | checksum = "1bb21987b9fb1613058ba3843121dd18b163b254d8a6e797e144cbac14d96d1b"
287 | dependencies = [
288 | "libc",
289 | "libdbus-sys",
290 | "winapi",
291 | ]
292 |
293 | [[package]]
294 | name = "dirs"
295 | version = "5.0.1"
296 | source = "registry+https://github.com/rust-lang/crates.io-index"
297 | checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
298 | dependencies = [
299 | "dirs-sys",
300 | ]
301 |
302 | [[package]]
303 | name = "dirs-sys"
304 | version = "0.4.1"
305 | source = "registry+https://github.com/rust-lang/crates.io-index"
306 | checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
307 | dependencies = [
308 | "libc",
309 | "option-ext",
310 | "redox_users",
311 | "windows-sys 0.48.0",
312 | ]
313 |
314 | [[package]]
315 | name = "dll-syringe"
316 | version = "0.15.2"
317 | source = "registry+https://github.com/rust-lang/crates.io-index"
318 | checksum = "bdc807201d54de75e9bd7ad199d0031048625059f84acfc94506bdb13c0b4f59"
319 | dependencies = [
320 | "bincode",
321 | "cstr",
322 | "goblin",
323 | "iced-x86",
324 | "konst",
325 | "num_enum",
326 | "path-absolutize",
327 | "same-file",
328 | "serde",
329 | "shrinkwraprs",
330 | "stopwatch2",
331 | "sysinfo 0.29.11",
332 | "thiserror",
333 | "widestring",
334 | "winapi",
335 | ]
336 |
337 | [[package]]
338 | name = "either"
339 | version = "1.15.0"
340 | source = "registry+https://github.com/rust-lang/crates.io-index"
341 | checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
342 |
343 | [[package]]
344 | name = "embed-resource"
345 | version = "2.5.1"
346 | source = "registry+https://github.com/rust-lang/crates.io-index"
347 | checksum = "b68b6f9f63a0b6a38bc447d4ce84e2b388f3ec95c99c641c8ff0dd3ef89a6379"
348 | dependencies = [
349 | "cc",
350 | "memchr",
351 | "rustc_version",
352 | "toml",
353 | "vswhom",
354 | "winreg",
355 | ]
356 |
357 | [[package]]
358 | name = "equivalent"
359 | version = "1.0.2"
360 | source = "registry+https://github.com/rust-lang/crates.io-index"
361 | checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
362 |
363 | [[package]]
364 | name = "getrandom"
365 | version = "0.2.15"
366 | source = "registry+https://github.com/rust-lang/crates.io-index"
367 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
368 | dependencies = [
369 | "cfg-if",
370 | "libc",
371 | "wasi",
372 | ]
373 |
374 | [[package]]
375 | name = "gimli"
376 | version = "0.31.1"
377 | source = "registry+https://github.com/rust-lang/crates.io-index"
378 | checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
379 |
380 | [[package]]
381 | name = "goblin"
382 | version = "0.6.1"
383 | source = "registry+https://github.com/rust-lang/crates.io-index"
384 | checksum = "0d6b4de4a8eb6c46a8c77e1d3be942cb9a8bf073c22374578e5ba4b08ed0ff68"
385 | dependencies = [
386 | "log",
387 | "plain",
388 | "scroll",
389 | ]
390 |
391 | [[package]]
392 | name = "hashbrown"
393 | version = "0.15.2"
394 | source = "registry+https://github.com/rust-lang/crates.io-index"
395 | checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
396 |
397 | [[package]]
398 | name = "heck"
399 | version = "0.5.0"
400 | source = "registry+https://github.com/rust-lang/crates.io-index"
401 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
402 |
403 | [[package]]
404 | name = "iana-time-zone"
405 | version = "0.1.62"
406 | source = "registry+https://github.com/rust-lang/crates.io-index"
407 | checksum = "b2fd658b06e56721792c5df4475705b6cda790e9298d19d2f8af083457bcd127"
408 | dependencies = [
409 | "android_system_properties",
410 | "core-foundation-sys",
411 | "iana-time-zone-haiku",
412 | "js-sys",
413 | "log",
414 | "wasm-bindgen",
415 | "windows-core",
416 | ]
417 |
418 | [[package]]
419 | name = "iana-time-zone-haiku"
420 | version = "0.1.2"
421 | source = "registry+https://github.com/rust-lang/crates.io-index"
422 | checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
423 | dependencies = [
424 | "cc",
425 | ]
426 |
427 | [[package]]
428 | name = "iced-x86"
429 | version = "1.21.0"
430 | source = "registry+https://github.com/rust-lang/crates.io-index"
431 | checksum = "7c447cff8c7f384a7d4f741cfcff32f75f3ad02b406432e8d6c878d56b1edf6b"
432 | dependencies = [
433 | "lazy_static",
434 | ]
435 |
436 | [[package]]
437 | name = "indexmap"
438 | version = "2.8.0"
439 | source = "registry+https://github.com/rust-lang/crates.io-index"
440 | checksum = "3954d50fe15b02142bf25d3b8bdadb634ec3948f103d04ffe3031bc8fe9d7058"
441 | dependencies = [
442 | "equivalent",
443 | "hashbrown",
444 | ]
445 |
446 | [[package]]
447 | name = "instigator"
448 | version = "3.0.0"
449 | dependencies = [
450 | "chrono",
451 | "clap",
452 | "ctrlc",
453 | "dirs",
454 | "dll-syringe",
455 | "embed-resource",
456 | "log",
457 | "ntapi",
458 | "opener",
459 | "serde",
460 | "serde_json",
461 | "sysinfo 0.30.13",
462 | "tokio",
463 | "winapi",
464 | "windows",
465 | ]
466 |
467 | [[package]]
468 | name = "is_terminal_polyfill"
469 | version = "1.70.1"
470 | source = "registry+https://github.com/rust-lang/crates.io-index"
471 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
472 |
473 | [[package]]
474 | name = "itertools"
475 | version = "0.8.2"
476 | source = "registry+https://github.com/rust-lang/crates.io-index"
477 | checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484"
478 | dependencies = [
479 | "either",
480 | ]
481 |
482 | [[package]]
483 | name = "itoa"
484 | version = "1.0.15"
485 | source = "registry+https://github.com/rust-lang/crates.io-index"
486 | checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
487 |
488 | [[package]]
489 | name = "js-sys"
490 | version = "0.3.77"
491 | source = "registry+https://github.com/rust-lang/crates.io-index"
492 | checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
493 | dependencies = [
494 | "once_cell",
495 | "wasm-bindgen",
496 | ]
497 |
498 | [[package]]
499 | name = "konst"
500 | version = "0.3.16"
501 | source = "registry+https://github.com/rust-lang/crates.io-index"
502 | checksum = "4381b9b00c55f251f2ebe9473aef7c117e96828def1a7cb3bd3f0f903c6894e9"
503 | dependencies = [
504 | "const_panic",
505 | "konst_kernel",
506 | "typewit",
507 | ]
508 |
509 | [[package]]
510 | name = "konst_kernel"
511 | version = "0.3.15"
512 | source = "registry+https://github.com/rust-lang/crates.io-index"
513 | checksum = "e4b1eb7788f3824c629b1116a7a9060d6e898c358ebff59070093d51103dcc3c"
514 | dependencies = [
515 | "typewit",
516 | ]
517 |
518 | [[package]]
519 | name = "lazy_static"
520 | version = "1.5.0"
521 | source = "registry+https://github.com/rust-lang/crates.io-index"
522 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
523 |
524 | [[package]]
525 | name = "libc"
526 | version = "0.2.171"
527 | source = "registry+https://github.com/rust-lang/crates.io-index"
528 | checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6"
529 |
530 | [[package]]
531 | name = "libdbus-sys"
532 | version = "0.2.5"
533 | source = "registry+https://github.com/rust-lang/crates.io-index"
534 | checksum = "06085512b750d640299b79be4bad3d2fa90a9c00b1fd9e1b46364f66f0485c72"
535 | dependencies = [
536 | "cc",
537 | "pkg-config",
538 | ]
539 |
540 | [[package]]
541 | name = "libredox"
542 | version = "0.1.3"
543 | source = "registry+https://github.com/rust-lang/crates.io-index"
544 | checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
545 | dependencies = [
546 | "bitflags 2.9.0",
547 | "libc",
548 | ]
549 |
550 | [[package]]
551 | name = "log"
552 | version = "0.4.27"
553 | source = "registry+https://github.com/rust-lang/crates.io-index"
554 | checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
555 |
556 | [[package]]
557 | name = "memchr"
558 | version = "2.7.4"
559 | source = "registry+https://github.com/rust-lang/crates.io-index"
560 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
561 |
562 | [[package]]
563 | name = "miniz_oxide"
564 | version = "0.8.5"
565 | source = "registry+https://github.com/rust-lang/crates.io-index"
566 | checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5"
567 | dependencies = [
568 | "adler2",
569 | ]
570 |
571 | [[package]]
572 | name = "nix"
573 | version = "0.29.0"
574 | source = "registry+https://github.com/rust-lang/crates.io-index"
575 | checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
576 | dependencies = [
577 | "bitflags 2.9.0",
578 | "cfg-if",
579 | "cfg_aliases",
580 | "libc",
581 | ]
582 |
583 | [[package]]
584 | name = "normpath"
585 | version = "1.3.0"
586 | source = "registry+https://github.com/rust-lang/crates.io-index"
587 | checksum = "c8911957c4b1549ac0dc74e30db9c8b0e66ddcd6d7acc33098f4c63a64a6d7ed"
588 | dependencies = [
589 | "windows-sys 0.59.0",
590 | ]
591 |
592 | [[package]]
593 | name = "ntapi"
594 | version = "0.4.1"
595 | source = "registry+https://github.com/rust-lang/crates.io-index"
596 | checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4"
597 | dependencies = [
598 | "winapi",
599 | ]
600 |
601 | [[package]]
602 | name = "num-traits"
603 | version = "0.2.19"
604 | source = "registry+https://github.com/rust-lang/crates.io-index"
605 | checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
606 | dependencies = [
607 | "autocfg",
608 | ]
609 |
610 | [[package]]
611 | name = "num_enum"
612 | version = "0.6.1"
613 | source = "registry+https://github.com/rust-lang/crates.io-index"
614 | checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1"
615 | dependencies = [
616 | "num_enum_derive",
617 | ]
618 |
619 | [[package]]
620 | name = "num_enum_derive"
621 | version = "0.6.1"
622 | source = "registry+https://github.com/rust-lang/crates.io-index"
623 | checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6"
624 | dependencies = [
625 | "proc-macro2",
626 | "quote",
627 | "syn 2.0.100",
628 | ]
629 |
630 | [[package]]
631 | name = "object"
632 | version = "0.36.7"
633 | source = "registry+https://github.com/rust-lang/crates.io-index"
634 | checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
635 | dependencies = [
636 | "memchr",
637 | ]
638 |
639 | [[package]]
640 | name = "once_cell"
641 | version = "1.21.3"
642 | source = "registry+https://github.com/rust-lang/crates.io-index"
643 | checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
644 |
645 | [[package]]
646 | name = "opener"
647 | version = "0.7.2"
648 | source = "registry+https://github.com/rust-lang/crates.io-index"
649 | checksum = "d0812e5e4df08da354c851a3376fead46db31c2214f849d3de356d774d057681"
650 | dependencies = [
651 | "bstr",
652 | "dbus",
653 | "normpath",
654 | "windows-sys 0.59.0",
655 | ]
656 |
657 | [[package]]
658 | name = "option-ext"
659 | version = "0.2.0"
660 | source = "registry+https://github.com/rust-lang/crates.io-index"
661 | checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
662 |
663 | [[package]]
664 | name = "path-absolutize"
665 | version = "3.1.1"
666 | source = "registry+https://github.com/rust-lang/crates.io-index"
667 | checksum = "e4af381fe79fa195b4909485d99f73a80792331df0625188e707854f0b3383f5"
668 | dependencies = [
669 | "path-dedot",
670 | ]
671 |
672 | [[package]]
673 | name = "path-dedot"
674 | version = "3.1.1"
675 | source = "registry+https://github.com/rust-lang/crates.io-index"
676 | checksum = "07ba0ad7e047712414213ff67533e6dd477af0a4e1d14fb52343e53d30ea9397"
677 | dependencies = [
678 | "once_cell",
679 | ]
680 |
681 | [[package]]
682 | name = "pin-project-lite"
683 | version = "0.2.16"
684 | source = "registry+https://github.com/rust-lang/crates.io-index"
685 | checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
686 |
687 | [[package]]
688 | name = "pkg-config"
689 | version = "0.3.32"
690 | source = "registry+https://github.com/rust-lang/crates.io-index"
691 | checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
692 |
693 | [[package]]
694 | name = "plain"
695 | version = "0.2.3"
696 | source = "registry+https://github.com/rust-lang/crates.io-index"
697 | checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
698 |
699 | [[package]]
700 | name = "proc-macro2"
701 | version = "1.0.94"
702 | source = "registry+https://github.com/rust-lang/crates.io-index"
703 | checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
704 | dependencies = [
705 | "unicode-ident",
706 | ]
707 |
708 | [[package]]
709 | name = "quote"
710 | version = "1.0.40"
711 | source = "registry+https://github.com/rust-lang/crates.io-index"
712 | checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
713 | dependencies = [
714 | "proc-macro2",
715 | ]
716 |
717 | [[package]]
718 | name = "rayon"
719 | version = "1.10.0"
720 | source = "registry+https://github.com/rust-lang/crates.io-index"
721 | checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"
722 | dependencies = [
723 | "either",
724 | "rayon-core",
725 | ]
726 |
727 | [[package]]
728 | name = "rayon-core"
729 | version = "1.12.1"
730 | source = "registry+https://github.com/rust-lang/crates.io-index"
731 | checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
732 | dependencies = [
733 | "crossbeam-deque",
734 | "crossbeam-utils",
735 | ]
736 |
737 | [[package]]
738 | name = "redox_users"
739 | version = "0.4.6"
740 | source = "registry+https://github.com/rust-lang/crates.io-index"
741 | checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
742 | dependencies = [
743 | "getrandom",
744 | "libredox",
745 | "thiserror",
746 | ]
747 |
748 | [[package]]
749 | name = "regex-automata"
750 | version = "0.4.9"
751 | source = "registry+https://github.com/rust-lang/crates.io-index"
752 | checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
753 |
754 | [[package]]
755 | name = "rustc-demangle"
756 | version = "0.1.24"
757 | source = "registry+https://github.com/rust-lang/crates.io-index"
758 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
759 |
760 | [[package]]
761 | name = "rustc_version"
762 | version = "0.4.1"
763 | source = "registry+https://github.com/rust-lang/crates.io-index"
764 | checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
765 | dependencies = [
766 | "semver",
767 | ]
768 |
769 | [[package]]
770 | name = "rustversion"
771 | version = "1.0.20"
772 | source = "registry+https://github.com/rust-lang/crates.io-index"
773 | checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2"
774 |
775 | [[package]]
776 | name = "ryu"
777 | version = "1.0.20"
778 | source = "registry+https://github.com/rust-lang/crates.io-index"
779 | checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
780 |
781 | [[package]]
782 | name = "same-file"
783 | version = "1.0.6"
784 | source = "registry+https://github.com/rust-lang/crates.io-index"
785 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
786 | dependencies = [
787 | "winapi-util",
788 | ]
789 |
790 | [[package]]
791 | name = "scroll"
792 | version = "0.11.0"
793 | source = "registry+https://github.com/rust-lang/crates.io-index"
794 | checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da"
795 | dependencies = [
796 | "scroll_derive",
797 | ]
798 |
799 | [[package]]
800 | name = "scroll_derive"
801 | version = "0.11.1"
802 | source = "registry+https://github.com/rust-lang/crates.io-index"
803 | checksum = "1db149f81d46d2deba7cd3c50772474707729550221e69588478ebf9ada425ae"
804 | dependencies = [
805 | "proc-macro2",
806 | "quote",
807 | "syn 2.0.100",
808 | ]
809 |
810 | [[package]]
811 | name = "semver"
812 | version = "1.0.26"
813 | source = "registry+https://github.com/rust-lang/crates.io-index"
814 | checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
815 |
816 | [[package]]
817 | name = "serde"
818 | version = "1.0.219"
819 | source = "registry+https://github.com/rust-lang/crates.io-index"
820 | checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
821 | dependencies = [
822 | "serde_derive",
823 | ]
824 |
825 | [[package]]
826 | name = "serde_derive"
827 | version = "1.0.219"
828 | source = "registry+https://github.com/rust-lang/crates.io-index"
829 | checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
830 | dependencies = [
831 | "proc-macro2",
832 | "quote",
833 | "syn 2.0.100",
834 | ]
835 |
836 | [[package]]
837 | name = "serde_json"
838 | version = "1.0.140"
839 | source = "registry+https://github.com/rust-lang/crates.io-index"
840 | checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373"
841 | dependencies = [
842 | "itoa",
843 | "memchr",
844 | "ryu",
845 | "serde",
846 | ]
847 |
848 | [[package]]
849 | name = "serde_spanned"
850 | version = "0.6.8"
851 | source = "registry+https://github.com/rust-lang/crates.io-index"
852 | checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1"
853 | dependencies = [
854 | "serde",
855 | ]
856 |
857 | [[package]]
858 | name = "shlex"
859 | version = "1.3.0"
860 | source = "registry+https://github.com/rust-lang/crates.io-index"
861 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
862 |
863 | [[package]]
864 | name = "shrinkwraprs"
865 | version = "0.3.0"
866 | source = "registry+https://github.com/rust-lang/crates.io-index"
867 | checksum = "e63e6744142336dfb606fe2b068afa2e1cca1ee6a5d8377277a92945d81fa331"
868 | dependencies = [
869 | "bitflags 1.3.2",
870 | "itertools",
871 | "proc-macro2",
872 | "quote",
873 | "syn 1.0.109",
874 | ]
875 |
876 | [[package]]
877 | name = "stopwatch2"
878 | version = "2.0.0"
879 | source = "registry+https://github.com/rust-lang/crates.io-index"
880 | checksum = "911ece10388afa48417f99e01df038460b6249a3ee0255f6446a6881b702fbb4"
881 |
882 | [[package]]
883 | name = "strsim"
884 | version = "0.11.1"
885 | source = "registry+https://github.com/rust-lang/crates.io-index"
886 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
887 |
888 | [[package]]
889 | name = "syn"
890 | version = "1.0.109"
891 | source = "registry+https://github.com/rust-lang/crates.io-index"
892 | checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
893 | dependencies = [
894 | "proc-macro2",
895 | "quote",
896 | "unicode-ident",
897 | ]
898 |
899 | [[package]]
900 | name = "syn"
901 | version = "2.0.100"
902 | source = "registry+https://github.com/rust-lang/crates.io-index"
903 | checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
904 | dependencies = [
905 | "proc-macro2",
906 | "quote",
907 | "unicode-ident",
908 | ]
909 |
910 | [[package]]
911 | name = "sysinfo"
912 | version = "0.29.11"
913 | source = "registry+https://github.com/rust-lang/crates.io-index"
914 | checksum = "cd727fc423c2060f6c92d9534cef765c65a6ed3f428a03d7def74a8c4348e666"
915 | dependencies = [
916 | "cfg-if",
917 | "core-foundation-sys",
918 | "libc",
919 | "ntapi",
920 | "once_cell",
921 | "winapi",
922 | ]
923 |
924 | [[package]]
925 | name = "sysinfo"
926 | version = "0.30.13"
927 | source = "registry+https://github.com/rust-lang/crates.io-index"
928 | checksum = "0a5b4ddaee55fb2bea2bf0e5000747e5f5c0de765e5a5ff87f4cd106439f4bb3"
929 | dependencies = [
930 | "cfg-if",
931 | "core-foundation-sys",
932 | "libc",
933 | "ntapi",
934 | "once_cell",
935 | "rayon",
936 | "windows",
937 | ]
938 |
939 | [[package]]
940 | name = "thiserror"
941 | version = "1.0.69"
942 | source = "registry+https://github.com/rust-lang/crates.io-index"
943 | checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
944 | dependencies = [
945 | "thiserror-impl",
946 | ]
947 |
948 | [[package]]
949 | name = "thiserror-impl"
950 | version = "1.0.69"
951 | source = "registry+https://github.com/rust-lang/crates.io-index"
952 | checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
953 | dependencies = [
954 | "proc-macro2",
955 | "quote",
956 | "syn 2.0.100",
957 | ]
958 |
959 | [[package]]
960 | name = "tokio"
961 | version = "1.44.2"
962 | source = "registry+https://github.com/rust-lang/crates.io-index"
963 | checksum = "e6b88822cbe49de4185e3a4cbf8321dd487cf5fe0c5c65695fef6346371e9c48"
964 | dependencies = [
965 | "backtrace",
966 | "pin-project-lite",
967 | ]
968 |
969 | [[package]]
970 | name = "toml"
971 | version = "0.8.20"
972 | source = "registry+https://github.com/rust-lang/crates.io-index"
973 | checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148"
974 | dependencies = [
975 | "serde",
976 | "serde_spanned",
977 | "toml_datetime",
978 | "toml_edit",
979 | ]
980 |
981 | [[package]]
982 | name = "toml_datetime"
983 | version = "0.6.8"
984 | source = "registry+https://github.com/rust-lang/crates.io-index"
985 | checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
986 | dependencies = [
987 | "serde",
988 | ]
989 |
990 | [[package]]
991 | name = "toml_edit"
992 | version = "0.22.24"
993 | source = "registry+https://github.com/rust-lang/crates.io-index"
994 | checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474"
995 | dependencies = [
996 | "indexmap",
997 | "serde",
998 | "serde_spanned",
999 | "toml_datetime",
1000 | "winnow",
1001 | ]
1002 |
1003 | [[package]]
1004 | name = "typewit"
1005 | version = "1.11.0"
1006 | source = "registry+https://github.com/rust-lang/crates.io-index"
1007 | checksum = "cb77c29baba9e4d3a6182d51fa75e3215c7fd1dab8f4ea9d107c716878e55fc0"
1008 | dependencies = [
1009 | "typewit_proc_macros",
1010 | ]
1011 |
1012 | [[package]]
1013 | name = "typewit_proc_macros"
1014 | version = "1.8.1"
1015 | source = "registry+https://github.com/rust-lang/crates.io-index"
1016 | checksum = "e36a83ea2b3c704935a01b4642946aadd445cea40b10935e3f8bd8052b8193d6"
1017 |
1018 | [[package]]
1019 | name = "unicode-ident"
1020 | version = "1.0.18"
1021 | source = "registry+https://github.com/rust-lang/crates.io-index"
1022 | checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
1023 |
1024 | [[package]]
1025 | name = "utf8parse"
1026 | version = "0.2.2"
1027 | source = "registry+https://github.com/rust-lang/crates.io-index"
1028 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1029 |
1030 | [[package]]
1031 | name = "vswhom"
1032 | version = "0.1.0"
1033 | source = "registry+https://github.com/rust-lang/crates.io-index"
1034 | checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"
1035 | dependencies = [
1036 | "libc",
1037 | "vswhom-sys",
1038 | ]
1039 |
1040 | [[package]]
1041 | name = "vswhom-sys"
1042 | version = "0.1.3"
1043 | source = "registry+https://github.com/rust-lang/crates.io-index"
1044 | checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
1045 | dependencies = [
1046 | "cc",
1047 | "libc",
1048 | ]
1049 |
1050 | [[package]]
1051 | name = "wasi"
1052 | version = "0.11.0+wasi-snapshot-preview1"
1053 | source = "registry+https://github.com/rust-lang/crates.io-index"
1054 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1055 |
1056 | [[package]]
1057 | name = "wasm-bindgen"
1058 | version = "0.2.100"
1059 | source = "registry+https://github.com/rust-lang/crates.io-index"
1060 | checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
1061 | dependencies = [
1062 | "cfg-if",
1063 | "once_cell",
1064 | "rustversion",
1065 | "wasm-bindgen-macro",
1066 | ]
1067 |
1068 | [[package]]
1069 | name = "wasm-bindgen-backend"
1070 | version = "0.2.100"
1071 | source = "registry+https://github.com/rust-lang/crates.io-index"
1072 | checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
1073 | dependencies = [
1074 | "bumpalo",
1075 | "log",
1076 | "proc-macro2",
1077 | "quote",
1078 | "syn 2.0.100",
1079 | "wasm-bindgen-shared",
1080 | ]
1081 |
1082 | [[package]]
1083 | name = "wasm-bindgen-macro"
1084 | version = "0.2.100"
1085 | source = "registry+https://github.com/rust-lang/crates.io-index"
1086 | checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
1087 | dependencies = [
1088 | "quote",
1089 | "wasm-bindgen-macro-support",
1090 | ]
1091 |
1092 | [[package]]
1093 | name = "wasm-bindgen-macro-support"
1094 | version = "0.2.100"
1095 | source = "registry+https://github.com/rust-lang/crates.io-index"
1096 | checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
1097 | dependencies = [
1098 | "proc-macro2",
1099 | "quote",
1100 | "syn 2.0.100",
1101 | "wasm-bindgen-backend",
1102 | "wasm-bindgen-shared",
1103 | ]
1104 |
1105 | [[package]]
1106 | name = "wasm-bindgen-shared"
1107 | version = "0.2.100"
1108 | source = "registry+https://github.com/rust-lang/crates.io-index"
1109 | checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
1110 | dependencies = [
1111 | "unicode-ident",
1112 | ]
1113 |
1114 | [[package]]
1115 | name = "widestring"
1116 | version = "1.2.0"
1117 | source = "registry+https://github.com/rust-lang/crates.io-index"
1118 | checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d"
1119 |
1120 | [[package]]
1121 | name = "winapi"
1122 | version = "0.3.9"
1123 | source = "registry+https://github.com/rust-lang/crates.io-index"
1124 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1125 | dependencies = [
1126 | "winapi-i686-pc-windows-gnu",
1127 | "winapi-x86_64-pc-windows-gnu",
1128 | ]
1129 |
1130 | [[package]]
1131 | name = "winapi-i686-pc-windows-gnu"
1132 | version = "0.4.0"
1133 | source = "registry+https://github.com/rust-lang/crates.io-index"
1134 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1135 |
1136 | [[package]]
1137 | name = "winapi-util"
1138 | version = "0.1.9"
1139 | source = "registry+https://github.com/rust-lang/crates.io-index"
1140 | checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
1141 | dependencies = [
1142 | "windows-sys 0.59.0",
1143 | ]
1144 |
1145 | [[package]]
1146 | name = "winapi-x86_64-pc-windows-gnu"
1147 | version = "0.4.0"
1148 | source = "registry+https://github.com/rust-lang/crates.io-index"
1149 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1150 |
1151 | [[package]]
1152 | name = "windows"
1153 | version = "0.52.0"
1154 | source = "registry+https://github.com/rust-lang/crates.io-index"
1155 | checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
1156 | dependencies = [
1157 | "windows-core",
1158 | "windows-targets 0.52.6",
1159 | ]
1160 |
1161 | [[package]]
1162 | name = "windows-core"
1163 | version = "0.52.0"
1164 | source = "registry+https://github.com/rust-lang/crates.io-index"
1165 | checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
1166 | dependencies = [
1167 | "windows-targets 0.52.6",
1168 | ]
1169 |
1170 | [[package]]
1171 | name = "windows-link"
1172 | version = "0.1.1"
1173 | source = "registry+https://github.com/rust-lang/crates.io-index"
1174 | checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
1175 |
1176 | [[package]]
1177 | name = "windows-sys"
1178 | version = "0.48.0"
1179 | source = "registry+https://github.com/rust-lang/crates.io-index"
1180 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
1181 | dependencies = [
1182 | "windows-targets 0.48.5",
1183 | ]
1184 |
1185 | [[package]]
1186 | name = "windows-sys"
1187 | version = "0.59.0"
1188 | source = "registry+https://github.com/rust-lang/crates.io-index"
1189 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1190 | dependencies = [
1191 | "windows-targets 0.52.6",
1192 | ]
1193 |
1194 | [[package]]
1195 | name = "windows-targets"
1196 | version = "0.48.5"
1197 | source = "registry+https://github.com/rust-lang/crates.io-index"
1198 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
1199 | dependencies = [
1200 | "windows_aarch64_gnullvm 0.48.5",
1201 | "windows_aarch64_msvc 0.48.5",
1202 | "windows_i686_gnu 0.48.5",
1203 | "windows_i686_msvc 0.48.5",
1204 | "windows_x86_64_gnu 0.48.5",
1205 | "windows_x86_64_gnullvm 0.48.5",
1206 | "windows_x86_64_msvc 0.48.5",
1207 | ]
1208 |
1209 | [[package]]
1210 | name = "windows-targets"
1211 | version = "0.52.6"
1212 | source = "registry+https://github.com/rust-lang/crates.io-index"
1213 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1214 | dependencies = [
1215 | "windows_aarch64_gnullvm 0.52.6",
1216 | "windows_aarch64_msvc 0.52.6",
1217 | "windows_i686_gnu 0.52.6",
1218 | "windows_i686_gnullvm",
1219 | "windows_i686_msvc 0.52.6",
1220 | "windows_x86_64_gnu 0.52.6",
1221 | "windows_x86_64_gnullvm 0.52.6",
1222 | "windows_x86_64_msvc 0.52.6",
1223 | ]
1224 |
1225 | [[package]]
1226 | name = "windows_aarch64_gnullvm"
1227 | version = "0.48.5"
1228 | source = "registry+https://github.com/rust-lang/crates.io-index"
1229 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
1230 |
1231 | [[package]]
1232 | name = "windows_aarch64_gnullvm"
1233 | version = "0.52.6"
1234 | source = "registry+https://github.com/rust-lang/crates.io-index"
1235 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1236 |
1237 | [[package]]
1238 | name = "windows_aarch64_msvc"
1239 | version = "0.48.5"
1240 | source = "registry+https://github.com/rust-lang/crates.io-index"
1241 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
1242 |
1243 | [[package]]
1244 | name = "windows_aarch64_msvc"
1245 | version = "0.52.6"
1246 | source = "registry+https://github.com/rust-lang/crates.io-index"
1247 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1248 |
1249 | [[package]]
1250 | name = "windows_i686_gnu"
1251 | version = "0.48.5"
1252 | source = "registry+https://github.com/rust-lang/crates.io-index"
1253 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
1254 |
1255 | [[package]]
1256 | name = "windows_i686_gnu"
1257 | version = "0.52.6"
1258 | source = "registry+https://github.com/rust-lang/crates.io-index"
1259 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1260 |
1261 | [[package]]
1262 | name = "windows_i686_gnullvm"
1263 | version = "0.52.6"
1264 | source = "registry+https://github.com/rust-lang/crates.io-index"
1265 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1266 |
1267 | [[package]]
1268 | name = "windows_i686_msvc"
1269 | version = "0.48.5"
1270 | source = "registry+https://github.com/rust-lang/crates.io-index"
1271 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
1272 |
1273 | [[package]]
1274 | name = "windows_i686_msvc"
1275 | version = "0.52.6"
1276 | source = "registry+https://github.com/rust-lang/crates.io-index"
1277 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1278 |
1279 | [[package]]
1280 | name = "windows_x86_64_gnu"
1281 | version = "0.48.5"
1282 | source = "registry+https://github.com/rust-lang/crates.io-index"
1283 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
1284 |
1285 | [[package]]
1286 | name = "windows_x86_64_gnu"
1287 | version = "0.52.6"
1288 | source = "registry+https://github.com/rust-lang/crates.io-index"
1289 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1290 |
1291 | [[package]]
1292 | name = "windows_x86_64_gnullvm"
1293 | version = "0.48.5"
1294 | source = "registry+https://github.com/rust-lang/crates.io-index"
1295 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
1296 |
1297 | [[package]]
1298 | name = "windows_x86_64_gnullvm"
1299 | version = "0.52.6"
1300 | source = "registry+https://github.com/rust-lang/crates.io-index"
1301 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1302 |
1303 | [[package]]
1304 | name = "windows_x86_64_msvc"
1305 | version = "0.48.5"
1306 | source = "registry+https://github.com/rust-lang/crates.io-index"
1307 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
1308 |
1309 | [[package]]
1310 | name = "windows_x86_64_msvc"
1311 | version = "0.52.6"
1312 | source = "registry+https://github.com/rust-lang/crates.io-index"
1313 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1314 |
1315 | [[package]]
1316 | name = "winnow"
1317 | version = "0.7.4"
1318 | source = "registry+https://github.com/rust-lang/crates.io-index"
1319 | checksum = "0e97b544156e9bebe1a0ffbc03484fc1ffe3100cbce3ffb17eac35f7cdd7ab36"
1320 | dependencies = [
1321 | "memchr",
1322 | ]
1323 |
1324 | [[package]]
1325 | name = "winreg"
1326 | version = "0.52.0"
1327 | source = "registry+https://github.com/rust-lang/crates.io-index"
1328 | checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"
1329 | dependencies = [
1330 | "cfg-if",
1331 | "windows-sys 0.48.0",
1332 | ]
1333 |
--------------------------------------------------------------------------------
/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "instigator"
3 | version = "3.0.0"
4 | edition = "2021"
5 | build = "build.rs"
6 |
7 | [dependencies]
8 | sysinfo = "0.30.5"
9 | dll-syringe = "0.15.2"
10 | log = "0.4.20"
11 | serde_json = "1.0.111"
12 | serde = { version = "1.0.195", features = ["derive"] }
13 | chrono = "0.4.31"
14 | dirs = "5.0.1"
15 | winapi = { version = "0.3.9", features = ["tlhelp32"]}
16 | clap = { version = "4.4.16", features = ["derive"] }
17 | tokio = "1.44.2"
18 | ntapi = "0.4.1"
19 | windows = "0.52.0"
20 | opener = "0.7.2"
21 | ctrlc = "3.4.5"
22 |
23 | [build-dependencies]
24 | embed-resource = "2.4.1"
25 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Instigator
2 |
3 | 
4 | 
5 | 
6 | [](https://github.com/jwhazy/instigator/actions/workflows/build.yml)
7 |
8 | Instigator is a basic, "bring your own libraries" command-line Fortnite launcher.
9 |
10 | **If you do not know how to use Command Prompt or PowerShell, please use a different launcher. You will not get support for issues based around the command-line.**
11 |
12 | **Instigator does not work on versions later than Chapter 2, Season 6.**
13 |
14 | **Versions tested**: 4.1, 5.30, 6.21, 7.30, 7.40, 8.30, 8.51, 10.40, 12.41.
15 |
16 | ## Features
17 |
18 | - **No Windows Defender false positive**
19 | - **GUI-less** Usable in automation, batch scripts and headless/server enviroments.
20 | - **Fully customizable**, use your own libraries and backend.
21 | - **Simple** Instigator only launches the game with no AC, and optionally automatic library injection.
22 | - **Single binary** Instigator compiles to a single binary making it easy to quickly use
23 |
24 | ## Installation
25 |
26 | ### WinGet (installer)
27 |
28 | ```
29 | winget install Jacksta.Instigator
30 | ```
31 |
32 | ### Automatic installer
33 |
34 | You can download the latest installer [here](https://github.com/jwhazy/instigator/releases/latest/).
35 | ### Single binary
36 |
37 | You can get started by downloading the latest release [here](https://github.com/jwhazy/instigator/releases/latest). You will need to add Instigator to PATH if you want to use it globally. You may also need the Visual C++ Redistributable package (error: VCRUNTIME140.dll was not found.) which can downloaded from Microsoft [here](https://aka.ms/vs/17/release/vc_redist.x64.exe).
38 |
39 | ## Getting started
40 |
41 | 1. To quickly open the Instigator folder use:
42 |
43 | ```
44 | instigator folder
45 | ```
46 |
47 | 3. Add libraries for console, redirect and server (e.g. console.dll, server.dll, redirect.dll)
48 |
49 | 4. Add a client to Instigator
50 |
51 | ```
52 | instigator add
53 | ```
54 | 5. Run the newly added client
55 | ```
56 | instigator run [name]
57 | ```
58 |
59 | For more help run `instigator` with no arguments.
60 |
61 | ## Useful tools
62 |
63 | [Project Reboot](https://github.com/Milxnor/Project-Reboot-3.0) by [Milxnor](https://github.com/Milxnor): stable game server that works with Instigator.
64 |
65 | [Cobalt](https://github.com/Milxnor/Cobalt) by [Milxnor](https://github.com/Milxnor): stable SSL bypass that works with Instigator. **Disable automatic console window opening**.
66 |
--------------------------------------------------------------------------------
/assets/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jwhazy/instigator/e539bb38895d334833ed1dc1d331400a45210f68/assets/icon.ico
--------------------------------------------------------------------------------
/assets/resource.rc:
--------------------------------------------------------------------------------
1 | #pragma code_page(65001)
2 |
3 | 1 VERSIONINFO
4 | FILEVERSION 3,0,0,0
5 | PRODUCTVERSION 3,0,0,0
6 | FILEFLAGSMASK 0x3fL
7 | FILEFLAGS 0x0L
8 | FILEOS 0x40004L
9 | FILETYPE 0x1L
10 | FILESUBTYPE 0x0L
11 | BEGIN
12 | BLOCK "StringFileInfo"
13 | BEGIN
14 | BLOCK "040904b0"
15 | BEGIN
16 | VALUE "CompanyName", "jacksta"
17 | VALUE "FileDescription", "Command-line Fortnite launcher"
18 | VALUE "FileVersion", "3.0.0.0"
19 | VALUE "InternalName", "Instigator"
20 | VALUE "OriginalFilename", "instigator.exe"
21 | VALUE "ProductName", "Instigator"
22 | VALUE "ProductVersion", "3.0.0.0"
23 | END
24 | END
25 | BLOCK "VarFileInfo"
26 | BEGIN
27 | VALUE "Translation", 0x0409, 1200
28 | END
29 | END
30 |
31 | 32512 ICON "assets/icon.ico"
32 |
--------------------------------------------------------------------------------
/build.iss:
--------------------------------------------------------------------------------
1 | ; Thank you to these StackOverflow posts
2 | ; https://stackoverflow.com/questions/3304463/how-do-i-modify-the-path-environment-variable-when-running-an-inno-setup-install
3 | ; https://stackoverflow.com/questions/24574035/how-to-install-microsoft-vc-redistributables-silently-in-inno-setup
4 |
5 | #define Version "3.0.0"
6 |
7 | [Setup]
8 | AppName=Instigator
9 | AppVersion={#Version}
10 | VersionInfoVersion={#Version}
11 | AppPublisher=jacksta
12 | WizardStyle=modern
13 | DefaultDirName={userpf}\instigator
14 | DefaultGroupName=Instigator
15 | UninstallDisplayIcon={app}\instigator.exe
16 | OutputBaseFilename=InstigatorSetup-{#Version}
17 | AppVerName=Instigator
18 | Compression=lzma2
19 | SolidCompression=yes
20 | OutputDir=.\build
21 | SetupIconFile=.\assets\icon.ico
22 | ChangesEnvironment=true
23 | DisableProgramGroupPage=yes
24 | AllowNoIcons=yes
25 | PrivilegesRequired=none
26 |
27 | [Files]
28 | Source: "target\release\instigator.exe"; DestDir: "{app}"
29 | Source: "VC_redist.x64.exe"; DestDir: {tmp}; Flags: dontcopy
30 |
31 | [Run]
32 | Filename: "{tmp}\VC_redist.x64.exe"; StatusMsg: "Prompting Visual C++ redistributables installer, this can take a moment..."; \
33 | Parameters: "/install /passive /norestart"; Check: InstallRedist ; Flags: waituntilterminated
34 |
35 | [Code]
36 | const EnvironmentKey = 'Environment';
37 |
38 | procedure EnvAddPath(Path: string);
39 | var
40 | Paths: string;
41 | begin
42 | { Retrieve current path (use empty string if entry not exists) }
43 | if not RegQueryStringValue(HKEY_CURRENT_USER, EnvironmentKey, 'Path', Paths)
44 | then Paths := '';
45 |
46 | { Skip if string already found in path }
47 | if Pos(';' + Uppercase(Path) + ';', ';' + Uppercase(Paths) + ';') > 0 then exit;
48 |
49 | { App string to the end of the path variable }
50 | Paths := Paths + ';'+ Path +';'
51 |
52 | { Overwrite (or create if missing) path environment variable }
53 | if RegWriteStringValue(HKEY_CURRENT_USER, EnvironmentKey, 'Path', Paths)
54 | then Log(Format('The [%s] added to PATH: [%s]', [Path, Paths]))
55 | else Log(Format('Error while adding the [%s] to PATH: [%s]', [Path, Paths]));
56 | end;
57 |
58 | procedure EnvRemovePath(Path: string);
59 | var
60 | Paths: string;
61 | P: Integer;
62 | begin
63 | { Skip if registry entry not exists }
64 | if not RegQueryStringValue(HKEY_CURRENT_USER, EnvironmentKey, 'Path', Paths) then
65 | exit;
66 |
67 | { Skip if string not found in path }
68 | P := Pos(';' + Uppercase(Path) + ';', ';' + Uppercase(Paths) + ';');
69 | if P = 0 then exit;
70 |
71 | { Update path variable }
72 | Delete(Paths, P - 1, Length(Path) + 1);
73 |
74 | { Overwrite path environment variable }
75 | if RegWriteStringValue(HKEY_CURRENT_USER, EnvironmentKey, 'Path', Paths)
76 | then Log(Format('The [%s] removed from PATH: [%s]', [Path, Paths]))
77 | else Log(Format('Error while removing the [%s] from PATH: [%s]', [Path, Paths]));
78 | end;
79 |
80 | procedure CurStepChanged(CurStep: TSetupStep);
81 | begin
82 | if CurStep = ssPostInstall
83 | then EnvAddPath(ExpandConstant('{app}'));
84 | end;
85 |
86 | procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
87 | begin
88 | if CurUninstallStep = usPostUninstall
89 | then EnvRemovePath(ExpandConstant('{app}'));
90 | end;
91 |
92 | function InstallRedist: Boolean;
93 | var
94 | Version: String;
95 | begin
96 | if RegQueryStringValue(HKEY_LOCAL_MACHINE,
97 | 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', 'Version', Version) then
98 | begin
99 | // Is the installed version at least 14.14 ?
100 | Log('VC Redist Version check : found ' + Version);
101 | Result := (CompareStr(Version, 'v14.14.26429.03')<0);
102 | end
103 | else
104 | begin
105 | // Not even an old version installed
106 | Result := True;
107 | end;
108 | if (Result) then
109 | begin
110 | ExtractTemporaryFile('VC_redist.x64.exe');
111 | end;
112 | end;
113 |
--------------------------------------------------------------------------------
/build.rs:
--------------------------------------------------------------------------------
1 | extern crate embed_resource;
2 |
3 | fn main() {
4 | embed_resource::compile("assets/resource.rc", embed_resource::NONE);
5 | }
6 |
--------------------------------------------------------------------------------
/rust-toolchain.toml:
--------------------------------------------------------------------------------
1 | [toolchain]
2 | channel = "nightly-2024-04-24"
3 |
--------------------------------------------------------------------------------
/src/config.rs:
--------------------------------------------------------------------------------
1 | use std::{
2 | fs::File,
3 | io::{Read, Write},
4 | path::{Path, PathBuf},
5 | };
6 |
7 | use log::error;
8 | use serde::{Deserialize, Serialize};
9 |
10 | #[derive(Serialize, Deserialize, Clone)]
11 | pub struct Client {
12 | pub(crate) path: PathBuf,
13 | pub(crate) name: String,
14 | pub(crate) username: String,
15 | pub(crate) email: Option,
16 | #[serde(rename = "launchType")]
17 | pub(crate) launch_type: Option,
18 | pub(crate) password: Option,
19 | }
20 |
21 | pub fn get() -> Vec {
22 | let mut file = match File::open(path()) {
23 | Ok(file) => file,
24 | Err(e) => {
25 | error!("Could not open config.json: {}", e);
26 | std::process::exit(1);
27 | }
28 | };
29 |
30 | let mut contents = String::new();
31 | if let Err(e) = file.read_to_string(&mut contents) {
32 | error!("Could not read config.json: {}", e);
33 | std::process::exit(1);
34 | }
35 |
36 | let clients: Vec = match serde_json::from_str(&contents) {
37 | Ok(clients) => clients,
38 | Err(e) => {
39 | error!("Could not parse config.json. Is it JSON? Error: {}", e);
40 | std::process::exit(1);
41 | }
42 | };
43 |
44 | return clients;
45 | }
46 |
47 | pub fn save(clients: Vec) {
48 | let mut file = match File::create(path()) {
49 | Ok(file) => file,
50 | Err(e) => {
51 | error!("Could not create config.json: {}", e);
52 | std::process::exit(1);
53 | }
54 | };
55 |
56 | let contents = match serde_json::to_string_pretty(&clients) {
57 | Ok(contents) => contents,
58 | Err(e) => {
59 | error!("Could not serialize clients: {}", e);
60 | std::process::exit(1);
61 | }
62 | };
63 |
64 | if let Err(e) = file.write_all(contents.as_bytes()) {
65 | error!("Could not write to config.json: {}", e);
66 | std::process::exit(1);
67 | }
68 | }
69 |
70 | pub fn path() -> PathBuf {
71 | let mut path = app_directory();
72 |
73 | path.push("config.json");
74 |
75 | if !Path::exists(&path) {
76 | let mut file = match File::create(&path) {
77 | Ok(file) => file,
78 | Err(e) => {
79 | error!("Config does not exist and could not be created: {}", e);
80 | std::process::exit(1);
81 | }
82 | };
83 |
84 | if let Err(e) = file.write_all("[]".as_bytes()) {
85 | error!("Failed to write starter config: {}", e);
86 | std::process::exit(1);
87 | }
88 | }
89 |
90 | return path;
91 | }
92 |
93 | pub fn app_directory() -> PathBuf {
94 | let config_dir = match dirs::config_dir() {
95 | Some(dir) => dir,
96 | None => {
97 | error!("Could not determine config directory");
98 | std::process::exit(1);
99 | }
100 | };
101 |
102 | let dir_str = match config_dir.to_str() {
103 | Some(s) => s.to_owned(),
104 | None => {
105 | error!("Config directory path contains invalid characters");
106 | std::process::exit(1);
107 | }
108 | };
109 |
110 | let mut path = PathBuf::from(dir_str);
111 |
112 | path.push("instigator");
113 |
114 | if !Path::exists(&path) {
115 | if let Err(e) = std::fs::create_dir(&path) {
116 | error!("Could not create instigator directory: {}", e);
117 | std::process::exit(1);
118 | }
119 | }
120 |
121 | return path;
122 | }
123 |
--------------------------------------------------------------------------------
/src/logger.rs:
--------------------------------------------------------------------------------
1 | use std::time::SystemTime;
2 |
3 | use chrono::prelude::{DateTime, Utc};
4 | use log::{Level, LevelFilter, Metadata, Record, SetLoggerError};
5 |
6 | struct SimpleLogger;
7 | impl log::Log for SimpleLogger {
8 | fn enabled(&self, metadata: &Metadata) -> bool {
9 | metadata.level() <= Level::Info
10 | }
11 |
12 | fn log(&self, record: &Record) {
13 | let now = SystemTime::now();
14 | let now: DateTime = now.into();
15 | let now = now.to_rfc3339();
16 |
17 | if self.enabled(record.metadata()) {
18 | println!("{} [{}] {}", now, record.level(), record.args());
19 | }
20 | }
21 |
22 | fn flush(&self) {}
23 | }
24 |
25 | static LOGGER: SimpleLogger = SimpleLogger;
26 |
27 | pub fn logger_init() -> Result<(), SetLoggerError> {
28 | log::set_logger(&LOGGER).map(|()| log::set_max_level(LevelFilter::Info))
29 | }
30 |
--------------------------------------------------------------------------------
/src/main.rs:
--------------------------------------------------------------------------------
1 | use std::{
2 | io::{BufRead, BufReader},
3 | path::PathBuf,
4 | process::Stdio,
5 | sync::atomic::AtomicBool
6 | };
7 |
8 | use clap::{arg, Command, Parser};
9 | use config::Client;
10 | use ctrlc;
11 | use dll_syringe::{process::OwnedProcess, Syringe};
12 | use log::{error, info, warn};
13 |
14 | use crate::process::{kill_all, kill_fortnite};
15 |
16 | mod config;
17 | mod logger;
18 | mod process;
19 | mod utils;
20 |
21 | static CTRL_C_PRESSED: AtomicBool = AtomicBool::new(false);
22 |
23 | #[derive(Parser)]
24 | struct Cli {
25 | launch_type: Option,
26 | path: std::path::PathBuf,
27 | username: String,
28 | option: Option,
29 | }
30 |
31 | fn cli() -> Command {
32 | Command::new("instigator")
33 | .about("Open-source Fortnite launcher, built in Rust.")
34 | .author("jacksta ")
35 | .subcommand_required(true)
36 | .arg_required_else_help(true)
37 | .allow_external_subcommands(false)
38 | .subcommand(
39 | Command::new("start")
40 | .about("Launch game via a saved client")
41 | .args(&[arg!(name: "name of the client to launch")])
42 | .arg_required_else_help(true)
43 | )
44 | .subcommand(
45 | Command::new("custom")
46 | .about("Launch a game via arguments")
47 | .args(
48 | &[
49 | arg!(path: "game path, make sure it includes FortniteGame and Engine folders."),
50 | arg!(-u --username [USERNAME] "the username to launch the game with"),
51 | arg!(-e --email [EMAIL] "the email domain to launch the game with e.g. gmail.com or localhost"),
52 | arg!(-p --password [PASSWORD] "the password to launch the game with"),
53 | arg!(-t --launch_type [TYPE] "client/server default: client"),
54 | ]
55 | )
56 | .arg_required_else_help(true)
57 | )
58 | .subcommand(
59 | Command::new("add")
60 | .about("Add a launch config")
61 | .args(
62 | &[
63 | arg!(name: "the name to save the client under"),
64 | arg!(path: "game path, make sure it includes FortniteGame and Engine folders."),
65 | arg!(-u --username "the username to launch the game with"),
66 | arg!(-e --email [EMAIL] "the email domain to launch the game with e.g. gmail.com or localhost"),
67 | arg!(-t --launch_type "client/server default: client"),
68 | ]
69 | )
70 | .arg_required_else_help(true)
71 | )
72 | .subcommand(
73 | Command::new("remove")
74 | .about("Remove a launch config")
75 | .args(&[arg!(name: "the name of the client to remove")])
76 | )
77 | .subcommand(Command::new("list").about("List all added clients"))
78 | .subcommand(Command::new("folder").about("Open the Instigator directory"))
79 | .subcommand(
80 | Command::new("install")
81 | .about("Prepare Instigator for use (deprecated, use 'folder' instead)")
82 | .hide(true)
83 | )
84 | }
85 |
86 | #[allow(dead_code)]
87 | fn push_args() -> Vec {
88 | vec![arg!(-m --message )]
89 | }
90 |
91 | fn main() {
92 | logger::logger_init().expect("Failed to initialize logger.");
93 |
94 | ctrlc::set_handler(move || {
95 | if !CTRL_C_PRESSED.load(std::sync::atomic::Ordering::SeqCst) {
96 | info!("Received Ctrl+C, cleaning up processes...");
97 | kill_fortnite();
98 | kill_all();
99 | CTRL_C_PRESSED.store(true, std::sync::atomic::Ordering::SeqCst);
100 | }
101 | })
102 | .expect("Error setting Ctrl+C handler");
103 |
104 | println!(
105 | r"
106 | _ _ _ _
107 | (_) | | (_) | |
108 | _ _ __ ___| |_ _ __ _ __ _| |_ ___ _ __
109 | | | '_ \/ __| __| |/ _` |/ _` | __/ _ \| '__|
110 | | | | | \__ \ |_| | (_| | (_| | || (_) | |
111 | |_|_| |_|___/\__|_|\__, |\__,_|\__\___/|_|
112 | __/ |
113 | |___/ v{}
114 | ",
115 | env!("CARGO_PKG_VERSION")
116 | );
117 |
118 | config::app_directory();
119 |
120 | utils::run_bwc_checks();
121 |
122 | let matches = cli().get_matches();
123 |
124 | match matches.subcommand() {
125 | Some(("start", args)) => {
126 | let name = match args.get_one::("name") {
127 | Some(name) => name,
128 | None => {
129 | error!("No name found.");
130 | std::process::exit(1);
131 | }
132 | };
133 |
134 | let config = config::get();
135 | let client = match config.iter().find(|client| client.name == name.to_string()) {
136 | Some(client) => client,
137 | None => {
138 | error!("No client found with that name.");
139 | std::process::exit(1);
140 | }
141 | };
142 |
143 | start(client);
144 | }
145 |
146 | Some(("custom", args)) => {
147 | info!("Launching via command-line arguments.");
148 |
149 | let username = match args.get_one::("username") {
150 | Some(value) => value.to_string(),
151 | None => "Player".to_string(),
152 | };
153 |
154 | let password = args.get_one::("password");
155 |
156 | let path = args.get_one::("path").expect("Path is missing.");
157 |
158 | let mut launch_type = match args.get_one::("launch_type") {
159 | Some(value) => value.to_string(),
160 | None => "client".to_string(),
161 | };
162 |
163 | let email = match args.get_one::("email") {
164 | Some(value) => value.to_string(),
165 | None => "localhost".to_string(),
166 | };
167 |
168 | if !["server", "client", "headless"].contains(&launch_type.as_str()) {
169 | launch_type = "client".to_string();
170 | }
171 |
172 | start(
173 | &(Client {
174 | name: "custom".to_string(),
175 | username: username.to_string(),
176 | path: path.to_string().into(),
177 | email: email.into(),
178 | launch_type: Some(launch_type.to_string()),
179 | password: password.cloned(),
180 | }),
181 | );
182 | }
183 |
184 | Some(("add", args)) => {
185 | let path = PathBuf::from(args.get_one::("path").expect("No path found."));
186 | let name = args.get_one::("name").expect("No name found.");
187 |
188 | let username = args
189 | .get_one::("username")
190 | .expect("No username found.");
191 |
192 | let mut launch_type = match args.get_one::("launch_type") {
193 | Some(value) => value.to_string(),
194 | None => "client".to_string(),
195 | };
196 |
197 | let email = match args.get_one::("email") {
198 | Some(value) => value.to_string(),
199 | None => "localhost".to_string(),
200 | };
201 |
202 | if !["server", "client", "headless"].contains(&launch_type.as_str()) {
203 | error!("Invalid launch type, defaulting to client.");
204 | launch_type = "client".to_string();
205 | }
206 |
207 | if !path.exists() {
208 | error!("Path does not exist.");
209 | std::process::exit(1);
210 | }
211 |
212 | if !["server", "client", "headless"].contains(&launch_type.as_str()) {
213 | launch_type = "client".to_string();
214 | }
215 |
216 | let mut clients = config::get();
217 |
218 | clients.iter_mut().for_each(|client| {
219 | if client.name == name.to_string() {
220 | error!("Client name already exists.");
221 | std::process::exit(1);
222 | }
223 | });
224 |
225 | let client = config::Client {
226 | path,
227 | launch_type: Some(launch_type.to_string()),
228 | username: username.to_string(),
229 | email: Some(email.to_string()),
230 | name: name.to_string(),
231 | password: None,
232 | };
233 |
234 | clients.push(client);
235 | config::save(clients);
236 |
237 | info!("Added client: {}", name);
238 | info!(
239 | "You can start this by running `instigator.exe start {}`",
240 | name
241 | );
242 | }
243 | Some(("remove", args)) => {
244 | let name = args.get_one::("name").expect("No name found.");
245 | let mut clients = config::get();
246 | clients.retain(|client| client.name != name.to_string());
247 | config::save(clients);
248 |
249 | info!("Removed client: {}", name);
250 | }
251 | Some(("kill", _)) => kill_all(),
252 |
253 | Some(("folder", _)) => utils::folder(),
254 |
255 | Some(("install", _)) => {
256 | warn!("The 'install' command is deprecated. Please use 'folder' instead.");
257 | utils::folder()
258 | }
259 |
260 | Some(("list", _args)) => {
261 | println!("name - path - username - email - launch type");
262 | let clients = config::get();
263 | for client in clients {
264 | println!(
265 | "{} - {} - {} - {} - {}",
266 | client.name,
267 | client.path.to_str().unwrap_or(""),
268 | client.username,
269 | client.email.unwrap_or_else(|| "unknown".to_string()),
270 | client.launch_type.unwrap_or_else(|| "unknown".to_string())
271 | );
272 | }
273 | }
274 |
275 | Some((ext, _args)) => {
276 | error!("Unknown subcommand: {}", ext);
277 | }
278 | _ => unreachable!(),
279 | }
280 | }
281 |
282 | fn inject(path: PathBuf, pid: u32) {
283 | let target_process = match OwnedProcess::from_pid(pid) {
284 | Ok(process) => process,
285 | Err(_) => {
286 | error!("Could not find process with PID: {}", pid);
287 | return;
288 | }
289 | };
290 |
291 | let syringe = Syringe::for_process(target_process);
292 |
293 | match syringe.inject(path.as_path()) {
294 | Ok(_) => info!("Successfully injected DLL"),
295 | Err(e) => error!("Failed to inject DLL: {}", e),
296 | }
297 | }
298 |
299 | fn start(client: &Client) {
300 | let mut game_path = PathBuf::from(&client.path);
301 | game_path.push("FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping.exe");
302 |
303 | if !game_path.exists() {
304 | error!("Game path does not exist.");
305 | std::process::exit(1);
306 | }
307 |
308 | process::start_ac(&client.path);
309 | process::start_launcher(&client.path);
310 |
311 | let default_email = "localhost".to_string();
312 | let email = client.email.as_ref().unwrap_or(&default_email);
313 |
314 | let user_arg = format!("-AUTH_LOGIN={}@{}", client.username, email);
315 | let pass_arg = format!(
316 | "-AUTH_PASSWORD={}",
317 | client.password.as_deref().unwrap_or("null")
318 | );
319 |
320 | let fort_args = vec![
321 | "-epicapp=Fortnite",
322 | "-epicenv=Prod",
323 | "-epiclocale=en-us",
324 | "-epicportal",
325 | "-skippatchcheck",
326 | "-fromfl=eac",
327 | "-nobe",
328 | "-fltoken=3c836951cd605a77bc8132f4",
329 | &user_arg,
330 | &pass_arg,
331 | "-AUTH_TYPE=epic", // TO-DO: add caldera.
332 | ];
333 |
334 | let mut fortnite = match std::process::Command::new(&game_path)
335 | .args(&fort_args)
336 | .stdout(Stdio::piped())
337 | .spawn() {
338 | Ok(process) => process,
339 | Err(e) => {
340 | error!("Failed to start Fortnite process: {}", e);
341 | std::process::exit(1);
342 | }
343 | };
344 |
345 | let pid = fortnite.id();
346 |
347 | let stdout = match fortnite.stdout.take() {
348 | Some(stdout) => stdout,
349 | None => {
350 | error!("Failed to capture stdout");
351 | std::process::exit(1);
352 | }
353 | };
354 |
355 | let stdout_reader = BufReader::new(stdout);
356 | let stdout_lines = stdout_reader.lines();
357 |
358 | let config_dir = match dirs::config_dir() {
359 | Some(dir) => dir,
360 | None => {
361 | error!("Could not determine config directory");
362 | std::process::exit(1);
363 | }
364 | };
365 |
366 | let redirect: PathBuf = [
367 | config_dir.to_str().unwrap_or_default(),
368 | "instigator",
369 | "redirect.dll",
370 | ].iter().collect();
371 |
372 | if redirect.exists() {
373 | info!("Injecting redirect library.");
374 | inject(redirect, pid);
375 | } else {
376 | warn!("No redirect library found. You can ignore this message if you are using Fiddler or similar.");
377 | }
378 |
379 | for line in stdout_lines {
380 | let line = match line {
381 | Ok(l) => l,
382 | Err(e) => {
383 | error!("Failed to read stdout: {}", e);
384 | info!("Reading console failed. This can happen when a DLL unlocks the console.");
385 | continue;
386 | }
387 | };
388 | info!("{}", line);
389 |
390 | // We are looking for a safe state to unlock console.
391 | // If this is too early or too late for some versions let me know :).
392 | if line.contains("LogInit: Display: Starting Game.") {
393 | let console: PathBuf = [
394 | config_dir.to_str().unwrap_or_default(),
395 | "instigator",
396 | "console.dll",
397 | ].iter().collect();
398 |
399 | let server: PathBuf = [
400 | config_dir.to_str().unwrap_or_default(),
401 | "instigator",
402 | "server.dll",
403 | ].iter().collect();
404 |
405 | let launch_type = client.launch_type.as_deref().unwrap_or("client");
406 |
407 | if launch_type != "server" {
408 | if console.exists() {
409 | info!("Injecting console unlock.");
410 | std::thread::sleep(std::time::Duration::from_secs(5));
411 | inject(console, pid);
412 | } else {
413 | warn!("No console library found. You will have to inject this manually.");
414 | }
415 | } else {
416 | if server.exists() {
417 | info!("Injecting headed server library.");
418 | std::thread::sleep(std::time::Duration::from_secs(5));
419 | inject(server, pid);
420 | } else {
421 | warn!("No game server library found. You will have to inject this manually.");
422 | }
423 | }
424 | }
425 | }
426 |
427 | if let Err(e) = fortnite.wait() {
428 | error!("Error waiting for Fortnite process to exit: {}", e);
429 | }
430 |
431 | process::kill_all();
432 | info!("Game closed, Instigator cleaning up.");
433 | }
434 |
--------------------------------------------------------------------------------
/src/process.rs:
--------------------------------------------------------------------------------
1 | use std::path::PathBuf;
2 | use std::process::Command;
3 |
4 | use log::{error, info};
5 | use winapi::shared::minwindef::FALSE;
6 | use winapi::um::handleapi::CloseHandle;
7 | use winapi::um::processthreadsapi::{OpenThread, SuspendThread};
8 | use winapi::um::tlhelp32::{
9 | CreateToolhelp32Snapshot, Thread32First, Thread32Next, TH32CS_SNAPTHREAD, THREADENTRY32,
10 | };
11 | use winapi::um::winnt::HANDLE;
12 | use winapi::um::winnt::THREAD_SUSPEND_RESUME;
13 |
14 | use sysinfo::System;
15 |
16 | pub fn kill_fortnite() {
17 | let mut system = System::new_all();
18 | system.refresh_all();
19 |
20 | for ac in system.processes_by_name("FortniteClient-Win64-Shipping.exe") {
21 | info!("Killing process: {}", ac.name());
22 | ac.kill();
23 | }
24 | }
25 |
26 | pub fn kill_all() {
27 | let mut system = System::new_all();
28 | system.refresh_all();
29 |
30 | for launcher in system.processes_by_name("FortniteLauncher.exe") {
31 | info!("Killing process: {}", launcher.name());
32 | launcher.kill();
33 | }
34 |
35 | for ac in system.processes_by_name("FortniteClient-Win64-Shipping_EAC.exe") {
36 | info!("Killing process: {}", ac.name());
37 | ac.kill();
38 | }
39 | }
40 |
41 | pub fn start_ac(path: &PathBuf) {
42 | let mut ac_path = PathBuf::from(&path);
43 | ac_path.push("FortniteGame\\Binaries\\Win64\\FortniteClient-Win64-Shipping_EAC.exe");
44 |
45 | let mut cwd = PathBuf::from(&path);
46 | cwd.push("FortniteGame\\Binaries\\Win64");
47 |
48 | let process = Command::new(ac_path).current_dir(&cwd).spawn();
49 |
50 | match process {
51 | Ok(result) => suspend_process(result.id()),
52 | Err(_err) => {
53 | error!("Could not start EAC process. Make sure it exists before trying again.");
54 | (0, false)
55 | }
56 | };
57 | }
58 |
59 | pub fn start_launcher(path: &PathBuf) {
60 | let mut launcher_path = PathBuf::from(&path);
61 | launcher_path.push("FortniteGame\\Binaries\\Win64\\FortniteLauncher.exe");
62 |
63 | let mut cwd = PathBuf::from(&path);
64 | cwd.push("FortniteGame\\Binaries\\Win64");
65 |
66 | let process = Command::new(launcher_path).current_dir(&cwd).spawn();
67 |
68 | match process {
69 | Ok(result) => suspend_process(result.id()),
70 | Err(_err) => {
71 | error!("Could not start FortniteLauncher process. Make sure it exists before trying again.");
72 | (0, false)
73 | }
74 | };
75 | }
76 |
77 | // Credit: afc11hn. https://www.reddit.com/r/rust/comments/xu2hiw/comment/iqtrpb5
78 | pub fn suspend_process(pid: u32) -> (u32, bool) {
79 | unsafe {
80 | let mut has_err = false;
81 | let mut count: u32 = 0;
82 |
83 | let te: &mut THREADENTRY32 = &mut std::mem::zeroed();
84 | (*te).dwSize = std::mem::size_of::() as u32;
85 |
86 | let snapshot: HANDLE = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
87 |
88 | if Thread32First(snapshot, te) == 1 {
89 | loop {
90 | if pid == (*te).th32OwnerProcessID {
91 | let tid = (*te).th32ThreadID;
92 |
93 | let thread: HANDLE = OpenThread(THREAD_SUSPEND_RESUME, FALSE, tid);
94 | has_err |= SuspendThread(thread) as i32 == -1i32;
95 |
96 | CloseHandle(thread);
97 | count += 1;
98 | }
99 |
100 | if Thread32Next(snapshot, te) == 0 {
101 | break;
102 | }
103 | }
104 | }
105 |
106 | CloseHandle(snapshot);
107 |
108 | return (count, has_err);
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/src/utils.rs:
--------------------------------------------------------------------------------
1 | use crate::config;
2 | use log::{error, info};
3 |
4 | pub fn run_bwc_checks() {
5 | let mut clients = config::get();
6 |
7 | let mut any_updated = false;
8 | clients.iter_mut().for_each(|client| {
9 | if !["server", "client", "headless"].contains(&client.name.as_str())
10 | && client.launch_type.is_none()
11 | {
12 | client.launch_type = Some("client".to_string());
13 | any_updated = true;
14 | }
15 |
16 | // Check if client has email if it doesnt set it to localhost
17 | if client.email.is_none() {
18 | client.email = Some("localhost".to_string());
19 |
20 | any_updated = true;
21 | }
22 | });
23 |
24 | if any_updated {
25 | config::save(clients);
26 | }
27 | }
28 |
29 | pub fn folder() {
30 | if let Err(e) = std::process::Command::new("explorer")
31 | .arg(crate::config::app_directory())
32 | .spawn() {
33 | error!("Could not open File Explorer: {}. Please navigate to %appdata%\\instigator manually.", e);
34 | } else {
35 | info!("Opened Instigator directory.\n");
36 | }
37 | }
38 |
--------------------------------------------------------------------------------