Skip to content

Instantly share code, notes, and snippets.

@h4x5p4c3
h4x5p4c3 / glibc_debug_symbols.sh
Last active July 28, 2022 06:44
script to build glibc with debug symbols on arch linux
#!/bin/bash
# Check if script runs as root
if [ "$(id -u)" = 0 ]; then
echo "##################################################################"
echo "This script MUST NOT be run as root user since it makes changes"
echo "to the \$HOME directory of the \$USER executing this script."
echo "The \$HOME directory of the root user is, of course, '/root'."
echo "We don't want to mess around in there. So run this script as a"
echo "normal user. You will be asked for a sudo password when necessary."
@h4x5p4c3
h4x5p4c3 / solve.py
Last active January 25, 2023 18:14
solve script for QilingLab x86_64
#!/usr/bin/env python3
# https://www.shielder.it/blog/2021/07/qilinglab-release/
from qiling import Qiling
from qiling.const import QL_VERBOSE
from qiling.os.mapper import QlFsMappedObject
import struct
def u8(inp):
return struct.unpack("<Q", inp)