Bait A Phish
Bait A Phish
Security Pulse
tutorial · bandit

Bandit Level 19

Bypass an auto-logout .bashrc by running a command non-interactively over SSH.
banditsshbashrc
Narration (cached)
Marks this level complete in your browser.

Goal

The password is in a readme file in the home directory.

But someone modified .bashrc to log you out when you SSH in.

Hints

Solution (click to reveal)

Run the command directly via SSH:

ssh bandit19@bandit.labs.overthewire.org -p 2220 "cat readme"

The output is the password for Level 20.

Notes

Bandit Level 18Bandit Level 20