Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
cedws committed Apr 8, 2023
1 parent 4b34936 commit ca0ff81
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pubkey-extract
pubkey-extract.exe
ki-keyring
ki-keyring.exe
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ all: release
.PHONY: release
release:
mkdir -p bin
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/pubkey-extract-windows-amd64.exe $(GOFLAGS)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/pubkey-extract-linux-amd64 $(GOFLAGS)
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/pubkey-extract-darwin-arm64 $(GOFLAGS)
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/ki-keyring-windows-amd64.exe $(GOFLAGS)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/ki-keyring-linux-amd64 $(GOFLAGS)
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/ki-keyring-darwin-arm64 $(GOFLAGS)

.PHONY: clean
clean:
Expand Down
20 changes: 16 additions & 4 deletions README.md
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
{...}
```
2 changes: 1 addition & 1 deletion cmd/eject.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/cedws/pubkey-extract/keyring"
"github.com/cedws/ki-keyring/keyring"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/cedws/pubkey-extract/keyring"
"github.com/cedws/ki-keyring/keyring"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/cedws/pubkey-extract/keyring"
"github.com/cedws/ki-keyring/keyring"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
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

Expand Down
2 changes: 1 addition & 1 deletion keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"
"fmt"

"github.com/cedws/pubkey-extract/scan"
"github.com/cedws/ki-keyring/scan"
peparser "github.com/saferwall/pe"
"golang.org/x/arch/x86/x86asm"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
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() {
Expand Down

0 comments on commit ca0ff81

Please sign in to comment.