Bandit 2
Objectives
The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.
Solution
I used my bandit.py script to connect to level 1 using the password we retrieved from level 1
Let's ls to see what is in the home directory for bandit1
that's a bit funky it just lists a hyphen as the content of the home directory, lets look at the file named -
okay so we know it just a txt file.
but I'm trying to force myself to learn python so even though we have the answer I'm not going to stop there.
pythobandit1@bandit:~$ python
Objectives
The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.
Solution
I used my bandit.py script to connect to level 1 using the password we retrieved from level 1
Let's ls to see what is in the home directory for bandit1
bandit1@bandit:~$ ls-
that's a bit funky it just lists a hyphen as the content of the home directory, lets look at the file named -
bandit1@bandit:~$ file ./-./-: ASCII text
okay so we know it just a txt file.
cat ./-bandit1@bandit:~$ cat ./-CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
but I'm trying to force myself to learn python so even though we have the answer I'm not going to stop there.
Comments
Post a Comment