Skip to content

st_shell

Davide Depau edited this page Apr 13, 2018 · 1 revision

/bin/st_shell is lanadmin's default shell.

# cat /etc/passwd
admin: ... :0:0:Administrator:/:/bin/sh
support: ... :0:0:Technical Support:/:/bin/sh
user: ... :0:0:Normal User:/:/bin/sh
nobody: ... :0:0:nobody for ftp:/:/bin/sh
lanadmin: ... :0:0:SSH User:/:/bin/st_shell  ←

Note: admin has UID 0 ⇒ is root

It's the shell you're dropped into when you connect from SSH.

Hidden commands

Hidden commands don't show up in the help page and require authentication.

  • sh - Runs a root/admin shell
  • ifconfig - Tries to run ifconfig, miserably failing as it's not in $PATH

NVRAM config vars

  • STshell_dbg - Seems to enable debugging output in some cases.
  • username.hiddencmd, password.hiddencmd - Login info (in clear text, obv) for hidden commands.

Shell scripts

While a bunch of st_shell's commands are written in C (all voice subcommands), a lot of them are shell scripts.

/usr/sbin/stshell/

Clone this wiki locally