IoT Hacking - Making Mipsel VM's in Qemu

Опубликовано: 23 Май 2026
на канале: giuseppesec
2,178
54

Download the netinstall ISO here:
http://cdimage.debian.org/cdimage/rel...

Download the kernel and initrd files here:
http://ftp.debian.org/debian/dists/De...

Create empty qcow2:
qemu-img create -f qcow2 myMipselVM.qcow2

Install Debian in the empty qcow:
sudo qemu-system-mipsel -cdrom debian-*-mipsel-netinst.iso -hda myMipselVM.qcow2 -M malta -kernel kernel-file -boot d -initrd initrd.gz -m 512 -append “root=/dev/sda1 nokaslr” -nographic

Follow the instructions to install.

Install libguestfs-tools:
sudo apt isntall libguestfs-tools

Mount qcow to extract kernel and initrd files:
sudo guestmount -a /path/to/your/qcow -m /dev/your-dev /path/to/mount/point

Extract kernel and initrd from the /boot directory.

Unmount the qcow:
sudo guestunmount /mnt

Boot into your mipsel vm:
sudo qemu-system-mipsel -hda myMipselVM.qcow2 -M malta -kernel vmlinuz-5.10.0-18-4kc-malta -initrd initrd.img-5.10.0-18-4kc-malta -m 512 -append "root=/dev/sda1 nokaslr" -net user,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=tcp::2222-:22 -net nic -nographic