Dewguy

Bandit Level 1 -> 2

Table of contents

Target: : bandit1@bandit.labs.overthewire.org

port: : 2220

Objective

find the password located in a - file

Recon

after connecting to the machine, we see nothing but a file name -, we can't just use the cat command because it reads (-) as STDIN and waits for input

Exploitation

just using the path prefix fixes it

Result

password : PK8fYLZg2hnHSz83plBL1iEPKdD3QToB

What I Learned

Tags: #OverTheWire #file-system #easy