View frida_server_install.sh
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
OS='android';PARCH=`adb shell getprop ro.product.cpu.abi`;\ | |
curl -s https://api.github.com/repos/frida/frida/releases \ | |
| jq '.[0] | .assets[] | select(.browser_download_url | match("server(.*?)'${OS}'-'${PARCH}'*\\.xz")).browser_download_url' \ | |
| xargs wget -q --show-progress $1 \ | |
&& unxz frida-server* \ | |
&& adb root \ | |
&& adb push frida-server* /data/local/tmp/ \ | |
&& adb shell "chmod 755 /data/local/tmp/frida-server" \ | |
&& adb shell "/data/local/tmp/frida-server &" |
View ComputeHmac256.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
func ComputeHmac256(message string, secret string) string { | |
key := []byte(secret) | |
h := hmac.New(sha256.New, key) | |
h.Write([]byte(message)) | |
return base64.StdEncoding.EncodeToString(h.Sum(nil)) | |
} |