Pranav's OverTheWire Walkthroughs
  • 💡Getting started
  • INTRODUCTION
    • 📚Basic Setup
    • ✍️Documentation Status
  • 🕵️‍♂️Bandit
    • Level 0
    • Level 1
    • Level 2
    • Level 3
    • Level 4
Powered by GitBook
On this page
  1. Bandit

Level 1

Read a file!

PreviousLevel 0NextLevel 2

Last updated 6 months ago

We need to read a file that contains the password! Lets start by listing all the files in the current directory (folder).

# -a => All files
# -l => Long List (formats output)
ls -al

Here we see the readme file mentioned on the OTW page.

We will use the cat command to print the password:

cat ./readme

Then we simply type exit to exit the shell and reconnect as bandit1 and use the provided password

exit
ssh -p 2220 [email protected]    

🕵️‍♂️
OverTheWire: Level Goal
Level 0 -> Level 1 Hints @ OTW
Logo
Listing of home directory
Output of solution