Monday, September 19, 2022

Bandit17

 

Bandit17





bandit level17

ssh server: bandit.labs.overthewire.org port 2220

username: bandit17

password: we don't have a password but we have the private key


So now from the temp location we will ssh to our server using the private key, but before connecting with the private key we need to make it really private which mean if we ls the file now we will find it readable by any one on the server

So we need to change the permeations and access to the file restricting only the owner to the file


now we can connect using this key
$ ssh -i private_key bandit17@localhost -p 2220



And here we are, now we are logged as bandit17

the challenge this time asks us to find the only one line changed in the file password.old to be the password.new


To find the changed line we would use the command diff that finds the differences between two files

$ diff password.old password.new


 this is the password for the next level bandit18

tell we meet there


Your comments and feedback are highly appreciated

Thank You

No comments:

Post a Comment

Bandit26

  Bandit26 bandit level26 ssh server: bandit.labs.overthewire.org port 2220 username:  bandit26 password:  c7GvcKlw9mC7aUQaPx7nwFstuAIBw1o1 ...