Bandit 14
Objectives
Level GoalThe password for the next level is stored in /etc/bandit_pass/bandit14 and can only be read by user bandit14. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. Note: localhost is a hostname that refers to the machine you are working on
Solution
let's figure out how to script in in python
os.system("ssh -q -i ./sshkey.private bandit14@127.0.0.1 cat /etc/bandit_pass/bandit14")
Objectives
Level GoalThe password for the next level is stored in /etc/bandit_pass/bandit14 and can only be read by user bandit14. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. Note: localhost is a hostname that refers to the machine you are working on
Solution
bandit13@bandit:~$ ssh -q -i ./sshkey.private bandit14@127.0.0.1 cat /etc/bandit_pass/bandit14The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.ECDSA key fingerprint is SHA256:98UL0ZWr85496EtCRkKlo20X3OPnyPSB5tB5RPbhczc.Are you sure you want to continue connecting (yes/no)? yes4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e
let's figure out how to script in in python
Comments
Post a Comment