Bandit Level 2


Bandit 2


root@kali:~# ssh bandit2@bandit.labs.overthewire.org -p 2220
 _                     _ _ _   
| |__   __ _ _ __   __| (_) |_ 
| '_ \ / _` | '_ \ / _` | | __|
| |_) | (_| | | | | (_| | | |_ 
|_.__/ \__,_|_| |_|\__,_|_|\__|
                               
a http://www.overthewire.org wargame.

bandit2@bandit.labs.overthewire.org's password: 
Welcome to Ubuntu 14.04 LTS (GNU/Linux 4.4.0-71-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

bandit2@bandit:~$ ls
spaces in this filename
bandit2@bandit:~$ cat ./'spaces in this filename'
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

This is the last time I'll leave in how to ssh into a device. The 'ls' command list the contents of our directory. When using the cat command to display that file we use "./" before our file name, remember that from the previous level? The "./" tells the command "Hey! look from where we are in this directory right now!" It may not have been needed here but knowing that will help us in the future and make a little more sense later.

We need to put quotations (either a ' or ") around the file name we want to open, otherwise and the first space our command line would assume we are trying to use a different command. So this would likely work as well


bandit2@bandit:~$ cat 'spaces in this filename'
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK




Glowfish Contrast

Comments

Popular posts from this blog

Thoughts on ISSA talk on using AI to automate security

Bandit 12

Bandit level 14