Skip to content

Instantly share code, notes, and snippets.

@LloydAsp
LloydAsp / takeover.sh
Last active February 3, 2024 17:15
takeover.sh
#!/bin/sh
set -e
TO=/x
OLD_INIT=$(readlink /proc/1/exe)
cd "$TO"
if [ ! -e fakeinit ]; then
./busybox echo "Please compile fakeinit.c first"
exit 1