Rev 1.8.1b

This commit is contained in:
Dewalt 2024-10-10 05:23:37 -05:00
parent e10cf78c5f
commit 18c7f344d5
2 changed files with 6 additions and 3 deletions

View File

@ -46,6 +46,9 @@ sudo ./pimpmykali.sh
# Writeups / Honorable Mentions
- ip3c4c_n00b https://ip3c4c.com/2202_homelab_vmware/
# Revision 1.8.1b - Updated Ghidra Download function
- corrected download
# Revision 1.8.1a - Added Andrew B's IoT and Hardware Hacking Course Setup
- Menu option Y or y
- stand alone function

View File

@ -2339,10 +2339,10 @@ peh_weblab_setup() {
fix_ghidra() {
eval apt -y install jq curl
LATEST_URL="https://api.github.com/repos/NationalSecurityAgency/ghidra/releases/latest"
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')
LATEST_URL="https://api.github.com/repos/NationalSecurityAgency/ghidra/releases/latest"
JSON_DATA=$(curl -s "${LATEST_URL}" | tr -d '\000-\037')
DOWNLOAD_URL=$(echo "$JSON_DATA" | jq -r '.assets[] | select(.name | contains("_PUBLIC_")).browser_download_url')
GHIDRA_INSTALL_DIR="/opt/ghidra"
GHIDRA_TMP_ZIP="/tmp/ghidra.zip"
GHIDRA_TMP_DIR=$(mktemp -d)