Over The Wire


Bandit

Host: bandit.labs.overthewire.org

Port: 2220



Level 18

ssh bandit18@bandit.labs.overthewire.org -p 2220
password: hga5tuuCLF6fFzUpnagiMN8ssu9LFrdg

Objective:

The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH.

  • SSH also allows you to execute commands such as ls or cat.

CLI:

kali@Kali:~/Documents/CTF/OverTheWire$ ssh
bandit18@bandit.labs.overthewire.org -p 2220 cat readme
bandit18@bandit.labs.overthewire.org's password:
awhqfNnAbc1naukrpqDYcF95h7HoMTrC
kali@Kali:~/Documents/CTF/OverTheWire$

Bandit