mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-06 03:50:56 -07:00
14 lines
417 B
Bash
Executable file
14 lines
417 B
Bash
Executable file
#! /bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
[ -r /etc/passwd ] || echo 'root:x:0:0:root:/tmp:/bin/sh' > /etc/passwd
|
|
|
|
# Always do this, in case something else set a root password
|
|
echo 'root:$1$i/EeZyl6$5C6Z8s0ftEdTKFLUli1wP1' | chpasswd --encrypted
|
|
|
|
# Bring up the NIC; this will get us at least a link-local address, and
|
|
# hopefully a global address with stateless autoconfiguration.
|
|
ip link set eth0 up
|
|
|
|
exec dropbear -r ./rsa.key -E -F
|