Skip to main content

Posts

Showing posts with the label Bandit2

Over the Wire - Bandit 2

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 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. pythobandit1@bandit:~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Type "h