DEV Community

Cover image for Bandit Level 0 Level 1
Christian Paez
Christian Paez

Posted on • Edited on

2

Bandit Level 0 Level 1

Introduction

Bandit Level 0 → Level 1 is the second level of the OverTheWire Bandit wargame. In this level, we will learn how to use the "find" command to search for files and how to use the "cat" command to read the contents of a file. By completing this level, we will gain access to the password for the next level.

Steps

  1. Open your terminal application.
  2. Enter the following command to ssh into the remote server:
ssh bandit0@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode
  1. You will be prompted to enter a password. Enter the password from the previous level, "bandit0", and hit enter.
  2. You are now connected to the remote server and are able to execute commands.
  3. Enter the following command to search for the file "readme" in the /home directory:
find /home -name readme 2>/dev/null
Enter fullscreen mode Exit fullscreen mode
  1. The output should show the path to the "readme" file. In this case, the path is /home/bandit0/readme.
  2. Enter the following command to read the contents of the "readme" file:
cat /home/bandit0/readme
Enter fullscreen mode Exit fullscreen mode
  1. The output should show the password for the next level: NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL.

Congratulations! You have successfully completed Bandit1 and gained access to the password for the next level.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more