App - Script
App - Script - shell Restriction step 13-14 rbash —
I’m stuck at the final step, where rbash — is executed with -14 privilege, i tried options compounded with rbash —, but the sudoer is set for option rbash — exclusively.
I’m can’t modify the home directory .bashrc at any step, because it’s read-only mount, so the privilege must be during the rbash execution, which doesn’t accept any other option... contradiction!
PATH for step 14 is set inside step14, and i have tested out all possible commands that can escalate privilege, but doesn’t seem available under this restricted PATH... any thoughts?
App - Script - shell Restriction step 13-14 rbash —
Nevermind, I found the solution.
As a hint without spoiling too much, you haven’t done anything incorrect, it is necessary to open the shell in rbash with the — argument.
You need to look for two things in the restricted shell: a command you can execute and a certain file that the user owns.