mirror of https://github.com/dirtbags/moth.git
create passwd file in ctf package
This commit is contained in:
parent
d82e06f413
commit
774d90c7bd
|
@ -0,0 +1,2 @@
|
||||||
|
root:$1$bEGCYemG$pAo9KXWQKgQNijRGKSb7e1:0:0:root:/:/bin/ash
|
||||||
|
nobody:x:65534:65534:nobody:/:/bin/sh
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
||||||
|
# Make user accounts
|
||||||
|
if ! [ -r /etc/passwd ]; then
|
||||||
|
cat passwd >/etc/passwd
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up networking for all CTF ip
|
# Set up networking for all CTF ip
|
||||||
ip link set eth0 up
|
ip link set eth0 up
|
||||||
if ! ip route | grep -q default; then
|
if ! ip route | grep -q default; then
|
||||||
|
|
Loading…
Reference in New Issue