Skip to main content

Posts

Showing posts with the label Bandit 14

Over the Wire - Bandit 14

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 bandit13@bandit:~$ ssh -q -i ./sshkey.private bandit14@127.0.0.1  cat /etc/bandit_pass/bandit14 The 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)? yes 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e 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") >>> os.system("ssh -q -i ./sshkey.private bandit14@127.0.0.1  cat /etc/bandit_pass/bandit14") The authenticity o