Skip to content

Instantly share code, notes, and snippets.

View 0xor0ne's full-sized avatar

0xor0ne 0xor0ne

View GitHub Profile
@0xor0ne
0xor0ne / ghidra_download_latest.md
Last active January 14, 2024 16:35
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
@0xor0ne
0xor0ne / download_source_latest_stable_qemu.md
Created May 26, 2022 20:35
Download source code of the latest stable QEMU release

Shell one-liner for downloading the source code of the latest QEMU release and extracting it in qemu directory:

wget -O qemu.tar.xz -c --quiet \
	"https://download.qemu.org/$(wget -O - --quiet https://download.qemu.org/  | \
	grep -v '\-rc\|sig' | grep 'tar.xz' | tail -1 | \
	sed 's/^.*href="\([^"]*\).*$/\1/')" && \
	mkdir qemu && \
	tar xf qemu.tar.xz -C qemu --strip-components=1 && \
	rm qemu.tar.xz