Add bash script that creates regedit script

This commit was merged in pull request #1.
This commit is contained in:
2023-02-19 22:41:54 -05:00
committed by Gitea
parent 7609059efa
commit 5865f75186
Executable
+17
View File
@@ -0,0 +1,17 @@
to_hex () {
echo $1 | while read -n 1 char; do
echo -n $char | xxd -p | tr \\n ","
done
echo -n "00"
}
base0="1001"
base1="00"
servername=$1
region="1"
url=$2
echo "REGEDIT4
[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III]
\"Battle.net Gateways\"=hex(7):$(to_hex $base0),$(to_hex $base1),$(to_hex $servername),$(to_hex $region),$(to_hex $url),00"