Is there a way to inject the 00-header to trigger a script that executes a shell upon ssh login.
Im facing a scenario where the 00-header has root privileges and I can modify it. Im trying to have it spawn a root shell when I ssh into the machine as a regular user.
sysadmin@********:/etc/update-motd.d$ echo "/bin/bash -i" >> 00-header
That didn’t work….