-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pubkey-extract | ||
pubkey-extract.exe | ||
ki-keyring | ||
ki-keyring.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
# pubkey-extract | ||
Extracts obfuscated public keys from WizardGraphicalClient binaries. It can also generate new RSA keypairs and inject them into the game client. All output is in JSON format. | ||
# ki-keyring | ||
|
||
Utility for ejecting/injecting sets of obfuscated public keys ("keyring" structures) from/into WizardGraphicalClient binaries. | ||
|
||
## Usage | ||
|
||
It assumes the game client is located at the default Windows installation path but it can be overridden with `--bin`. | ||
|
||
The `eject` subcommand will print the keyring of the game client in JSON format. The `private` field for each key in the keyring will be set to `null` as this information isn't obtainable. | ||
```sh | ||
$ ki-keyring eject | ||
{...} | ||
$ ki-keyring eject --bin path/to/WizardGraphicalClient.exe | ||
{...} | ||
``` | ||
|
||
The `inject` subcommand will generate new RSA keypairs and inject the public keys into the game client. The `private` field for each key in the keyring will also reflect the new RSA private keys. | ||
```sh | ||
$ pubkey-extract | ||
$ ki-keyring inject | ||
{...} | ||
$ pubkey-extract inject --bin path/to/WizardGraphicalClient.exe | ||
$ ki-keyring inject --bin path/to/WizardGraphicalClient.exe | ||
{...} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/cedws/pubkey-extract | ||
module github.com/cedws/ki-keyring | ||
|
||
go 1.19 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/cedws/pubkey-extract/cmd" | ||
"github.com/cedws/ki-keyring/cmd" | ||
) | ||
|
||
func main() { | ||
|