create passwd file in ctf package

This commit is contained in:
Neale Pickett 2011-09-20 09:21:11 -06:00
parent d82e06f413
commit 774d90c7bd
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,2 @@
root:$1$bEGCYemG$pAo9KXWQKgQNijRGKSb7e1:0:0:root:/:/bin/ash
nobody:x:65534:65534:nobody:/:/bin/sh

View File

@ -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