-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
0fab822
commit 2005e59
Showing
4 changed files
with
38 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,4 +1,4 @@ | ||
all: build-windows | ||
|
||
# Not powershell compatible. Meant to be used from unix shell | ||
build-windows: | ||
env GOOS=windows GOARCH=amd64 go build -o ./build/universal-checksum-patcher.exe *.go |
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,16 @@ | ||
package main | ||
|
||
const limit = 14 | ||
const ( | ||
limit = 14 | ||
startLength = 3 | ||
endLength = 6 | ||
) | ||
|
||
var ( | ||
start1 = []byte{0x48, 0x8B, 0x12} | ||
start2 = []byte{0x48, 0x8D, 0x0D} | ||
start3 = []byte{0x48, 0x8B, 0xD0} | ||
end = []byte{0x85, 0xC0} | ||
replacement = []byte{0x31, 0xC0} | ||
start1 = []byte{0x48, 0x8B, 0x12} | ||
start2 = []byte{0x48, 0x8D, 0x0D} | ||
start3 = []byte{0x48, 0x8B, 0xD0} | ||
|
||
end = []byte{0x85, 0xC0, 0x0F, 0x94, 0xC3, 0xE8} | ||
replacement = []byte{0x31, 0xC0, 0x0F, 0x94, 0xC3, 0xE8} | ||
) |
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 |
---|---|---|
|
@@ -43,5 +43,5 @@ func main() { | |
} | ||
|
||
fmt.Println("Press enter to exit") | ||
fmt.Scanln() | ||
_, _ = fmt.Scanln() | ||
} |
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