tutorial · bandit

Bandit Level 12

Reverse ROT13 using tr to rotate letters back.
banditrot13tr
Optional narration
Marks this level complete in your browser.

Goal

data.txt contains text where letters have been rotated by 13 positions (ROT13).

Hints

  • ROT13 is symmetric: applying it again “undoes” it.
  • tr (translate characters) is the simplest tool here.
  • Only letters are rotated; numbers/symbols stay the same.
Solution (click to reveal)
  1. SSH in:
ssh bandit12@bandit.labs.overthewire.org -p 2220
  1. Decode ROT13:
cat data.txt | tr 'A-Za-z' 'N-ZA-Mn-za-m'

That output is the password for Level 13.

Notes

  • If you want to verify quickly: the decoded output should look like a normal password line.