mirror of https://github.com/dirtbags/moth.git
create passwd file in ctf package
This commit is contained in:
parent
2c03710c30
commit
6ba995ae2b
|
@ -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
|
||||
|
||||
# Make user accounts
|
||||
if ! [ -r /etc/passwd ]; then
|
||||
cat passwd >/etc/passwd
|
||||
fi
|
||||
|
||||
# Set up networking for all CTF ip
|
||||
ip link set eth0 up
|
||||
if ! ip route | grep -q default; then
|
||||
|
|
Loading…
Reference in New Issue