cscg ist super
This commit is contained in:
1
2026/cscg/misc/one-bit/initfs/flag
Normal file
1
2026/cscg/misc/one-bit/initfs/flag
Normal file
@@ -0,0 +1 @@
|
||||
CSCG{dummy}
|
||||
13
2026/cscg/misc/one-bit/initfs/init
Normal file
13
2026/cscg/misc/one-bit/initfs/init
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
mount -t devtmpfs devtmpfs /dev
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
mount -t tmpfs tmpfs /tmp
|
||||
mount -t 9p -o trans=virtio,version=9p2000.L host /mnt/host
|
||||
|
||||
chmod 600 flag
|
||||
chmod +s /bin/busybox
|
||||
|
||||
setuidgid 1000 sh
|
||||
echo "Init exiting, shutting down system"
|
||||
poweroff -f
|
||||
Reference in New Issue
Block a user