Rev 1.8.1a IoT and Hardware Hacking Course Setup - Menu option Y or y

This commit is contained in:
Dewalt 2024-08-15 05:43:26 -05:00
parent 0389d7c24b
commit 4492c21fec
1 changed files with 1 additions and 0 deletions

View File

@ -2338,6 +2338,7 @@ peh_weblab_setup() {
} }
fix_ghidra() { fix_ghidra() {
eval apt -y install jq curl
LATEST_URL="https://api.github.com/repos/NationalSecurityAgency/ghidra/releases/latest" LATEST_URL="https://api.github.com/repos/NationalSecurityAgency/ghidra/releases/latest"
JSON_DATA=$(curl -s "${LATEST_URL}") JSON_DATA=$(curl -s "${LATEST_URL}")
DOWNLOAD_URL=$(echo "$JSON_DATA" | jq -r '.assets[] | select(.name | test("ghidra_[0-9]+\\.[0-9]+\\.[0-9]+_PUBLIC_[0-9]{8}\\.zip")) | .browser_download_url') DOWNLOAD_URL=$(echo "$JSON_DATA" | jq -r '.assets[] | select(.name | test("ghidra_[0-9]+\\.[0-9]+\\.[0-9]+_PUBLIC_[0-9]{8}\\.zip")) | .browser_download_url')