Skip to content

Instantly share code, notes, and snippets.

# Update an EOL Ubuntu install who's APT sources file no longer contains repos with a release file
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
sudo do-release-upgrade
@callrbx
callrbx / objhunter.py
Created January 23, 2022 05:30
GDB Kernel Object Hunter
# written by icon
# adapted from work by pagabuc
# change your kernel to be your kernel binary with debug symbols
# change low-high bounds to be the relevant slab you are trying to fit
# gdb --nx -q -x extract_offsets.py | tee offsets
import gdb
KERNEL = "./vmlinux-5.4.0-81-generic"