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
#!/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." |
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
#!/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) |