sudo apt
-
get install qemu
sudo apt
-
get install qemu binfmt
-
support qemu
-
user
-
static
wget https:
/
/
people.debian.org
/
~aurel32
/
qemu
/
mips
/
debian_squeeze_mips_standard.qcow2
wget https:
/
/
people.debian.org
/
~aurel32
/
qemu
/
mips
/
vmlinux
-
2.6
.
32
-
5
-
4kc
-
malta
sudo apt
-
get install bridge
-
utils
sudo brctl addbr Virbr0
sudo ifconfig Virbr0
192.168
.
10.1
/
24
up
sudo apt install uml
-
utilities
sudo tunctl
-
t tap0
sudo ifconfig tap0
192.168
.
10.11
/
24
up
sudo brctl addif Virbr0 tap0
apt install qemu
-
system
-
mips
sudo qemu
-
system
-
mips
-
M malta
-
kernel vmlinux
-
2.6
.
32
-
5
-
4kc
-
malta
-
hda debian_squeeze_mips_standard.qcow2
-
append
"root=/dev/sda1 console=tty0"
-
netdev tap,
id
=
tapnet,ifname
=
tap0,script
=
no
-
device rtl8139,netdev
=
tapnet
-
nographic
ifconfig eth0
192.168
.
10.2
/
24
up
ping
192.168
.
10.1
-
c
10
scp
-
r squashfs
-
root
/
root@
192.168
.
10.2
:~
/
mount
-
o bind
/
dev .
/
squashfs
-
root
/
dev
mount
-
t proc
/
proc .
/
squashfs
-
root
/
proc
ssh root@
192.168
.
10.2
chroot squashfs
-
root
/
bin
/
sh
.
/
bin
/
upnp
.
/
bin
/
mic
ifconfig eth0
192.168
.
10.2
/
24
up
ifconfig br0
192.168
.
10.11
/
24
up
至此,环境搭建成功,存在漏洞的服务已经启动