mirror of https://github.com/dirtbags/moth.git
14 lines
298 B
Bash
Executable File
14 lines
298 B
Bash
Executable File
#! /bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
read password < /opt/00admin/password
|
|
|
|
printf 'root:%s' "$password" | chpasswd --md5
|
|
|
|
# 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
|