OverTheWire: Bandit Level 2
The article provides a walkthrough for completing Level 2 of the OverTheWire: Bandit security challenge. It guides users through logging in via SSH, navigating the command line, and retrieving a password from a file named with a hyphen. The instructions emphasize proper syntax, such as using 'cat ./-' to read the file and saving credentials for future use.
- ▪The challenge requires SSH access to bandit.labs.overthewire.org on port 2220 using the username 'bandit1' and a provided password.
- ▪Users must use 'ls' to locate a file named '-' and use 'cat ./-' to read its contents due to shell parsing rules.
- ▪The password obtained from the file is used to log into the next level, bandit2, completing Level 2 of the challenge.
- ▪Saving passwords in a note app is recommended for progression through future levels.
- ▪The tutorial is aimed at beginners learning command-line operations in a Linux environment.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3025754) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Amanda Igwe Posted on May 1 OverTheWire: Bandit Level 2 #beginners #cli #linux #security Using ssh, ls, cat, cd on Command Line Things to do: ssh into bandit1 host bandit.labs.overthewire.org (incase you are not logged in. But if you are already logged in, skip this step and go to number 5) port 2220 username bandit1 password ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If Use ls to find - Now you cannot use cat - to open the file because it will return an error.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV Community.