Skip to main content

Posts

Showing posts with the label Bandit1

Over the Wire - Bandit 1

Bandit 1 The goal of this level is for you to log into the game using SSH. The host to which you need to connect is  bandit.labs.overthewire.org , on port 2220. The username is  bandit0  and the password is  bandit0 . Once logged in, go to the  Level 1  page to find out how to beat Level 1.  Since this isn't the first time I've done a lot of the bandit levels I knew I was going to be constantly creating new SSH connections to the bandit servers. So I wrote this little python script that will prompt for the level and password and automatically connect my SSH connection to the bandit server. If you don't have sshpass you can apt install it                                              sudo apt install sshpass import os banditvar = raw_input("Banditlevel?") #print banditvar banditpass = raw_input("Levelpass?") banditdomain = "@bandit.labs.overthewire.org " banditport ="-p 2220" bandittotal = "bandit" + banditvar +