akde/infosec

Information security is ultimately about managing risk


First, try to deter­mine the shell

echo $PATH
echo $SHELL

Try to set the PATH variable

export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin

Upload the escape_from_restricted_shell.c pro­gram (scripts directory).

Have a look into a local bin direc­to­ry and see if you can use any bina­ry there to escape.

Leave a Reply

About

Personal collection of some infosec stuff. Primary purpose of this site is to collect and organize for myself.

Note: Some content is not publicly visible due to copyright issues. Therefore, some links could be broken.

Checklists

Categories

Checklists: Ports

python -c 'import pty;pty.spawn("/bin/bash")';

python3 -c 'import pty;pty.spawn("/bin/bash")';