This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |