Skip to content

Instantly share code, notes, and snippets.

@0xor0ne
Last active January 14, 2024 16:35
Show Gist options
  • Save 0xor0ne/11a8a845ee4cb9e1973e3cf4f2517547 to your computer and use it in GitHub Desktop.
Save 0xor0ne/11a8a845ee4cb9e1973e3cf4f2517547 to your computer and use it in GitHub Desktop.
One liner for getting the latest Ghidra release

Shell one-liner for downloading the latest Ghidra release and extracting it in ghidra directory:

wget -O ghidra.zip -c \
  "https://github.com/$(wget -O - --quiet \
  https://github.com/NationalSecurityAgency/ghidra/releases/latest | \
  grep 'releases/download/' | sed 's/.*href=..//' | \
  sed 's/".*//' | tail -1)" && unzip -d ghidra-tmp ghidra.zip && \
  mv ghidra-tmp/* ghidra && rm -rf ghidra-tmp ghidra.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment