Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh -i bandit26.sshkey -t bandit26@localhost /bin/sh [doesn't work]
- cat /etc/shells <-- Display shells on system
- bandit25@bandit:/home/bandit26$ cat /etc/shells
- # /etc/shells: valid login shells
- /bin/sh
- /bin/dash
- /bin/bash
- /bin/rbash
- /usr/bin/screen
- /usr/bin/tmux
- /usr/bin/showtext
- ^^^ showtext seems to be unique...
- bandit25@bandit:~$ /usr/bin/showtext
- more: stat of /home/bandit25/text.txt failed: No such file or directory [because we're not logged into bandit26...]
- bandit25@bandit:~$ strings /usr/bin/showtext
- #!/bin/sh
- export TERM=linux
- more ~/text.txt
- exit 0
- ssh -t localhost -l bandit26 -i bandit26.sshkey bash --norc [doesn't work]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement