Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. ssh -i bandit26.sshkey -t bandit26@localhost /bin/sh [doesn't work]
  2. cat /etc/shells <-- Display shells on system
  3.  
  4. bandit25@bandit:/home/bandit26$ cat /etc/shells
  5. # /etc/shells: valid login shells
  6. /bin/sh
  7. /bin/dash
  8. /bin/bash
  9. /bin/rbash
  10. /usr/bin/screen
  11. /usr/bin/tmux
  12. /usr/bin/showtext
  13.  
  14. ^^^ showtext seems to be unique...
  15.  
  16. bandit25@bandit:~$ /usr/bin/showtext
  17. more: stat of /home/bandit25/text.txt failed: No such file or directory [because we're not logged into bandit26...]
  18.  
  19. bandit25@bandit:~$ strings /usr/bin/showtext
  20. #!/bin/sh
  21. export TERM=linux
  22. more ~/text.txt
  23. exit 0
  24.  
  25. ssh -t localhost -l bandit26 -i bandit26.sshkey bash --norc [doesn't work]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement