DEV Community

Cover image for OverTheWire- Bandit 0 to 5
Akshay Rao
Akshay Rao

Posted on

1 1

OverTheWire- Bandit 0 to 5

Note:- don't forget to logout before moving to next level
Level0
Question:-The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0.
Answer:-ssh bandit0@bandit.labs.overthewire.org -p 2220
Level0 -> Level1
Question:-The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.
Answer:-

ls
cat readme
ssh bandit1@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode

Level1 -> Level2
Question:-The password for the next level is stored in a file called - located in the home directory.
Answer:-

cat ./-
ssh bandit2@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode

Level2 —> Level3
Question:-The password for the next level is stored in a file called spaces in this filename located in the home directory.
Answer:-

cat spaces\ in\ this\ filename
ssh bandit3@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode

Level3 —> Level4
Question:-The password for the next level is stored in a hidden file in the inhere directory.
Answer:-

ls -a
ls -a
cat .hidden
ssh bandit4@bandit.labs.overthewire.org -p 2220

Enter fullscreen mode Exit fullscreen mode

Level4 —> Level5
Question:-The password for the next level is stored in the only human-readable file in the inhere.
Answer:-

ls -a
ls -a
file -/*
ssh bandit5@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode

Image description

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more