# Overthewire bandit level 0->5

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/ce6fd1ce-a5fa-495d-bd22-214af37d89e9.png align="center")

## **Bandit0**

Connect to the server:

```plaintext
ssh -p 2220 bandit0@bandit.labs.overthewire.org
```

using secure shell to connect to [bandit.labs.overthewire.org](http://bandit.labs.overthewire.org) through port 2220 with the username : bandit0

```plaintext
ls
```

listing files and sub-directory located in the directory

```plaintext
cat readme
```

cat : command commonly used to display file's content

displaying the content of file name's readme

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/51b45f20-9d26-4041-afea-b9b75d797fe3.png align="center")

## **Bandit1**

Connect to the server:

```plaintext
ssh -p 2220 bandit1@bandit.labs.overthewire.org
```

using secure shell to connect to [bandit.labs.overthewire.org](http://bandit.labs.overthewire.org) through port 2220 with the username : bandit1

```plaintext
ls
```

listing files and sub-directory located in the directory

```plaintext
cat ./-
```

cat : command commonly used to display file's content

using ./ = current directory

so cat ./- => displaying the content of "-" located in the current directory

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/fd665a5e-70b6-4712-a13e-190d867bc2db.png align="center")

## **Bandit2**

Connect to the server:

```plaintext
ssh -p 2220 bandit2@bandit.labs.overthewire.org
```

using secure shell to connect to [bandit.labs.overthewire.org](http://bandit.labs.overthewire.org) through port 2220 with the username : bandit2

```plaintext
ls
```

listing files and sub-directory located in the directory

```plaintext
cat ./"--spaces in this filename--"
```

cat : command commonly used to display file's content

using "" => the inside of the double column is the file name

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/a19e3c41-bddf-489f-b8f7-9a1a36f500ef.png align="center")

## **Bandit3**

Connect to the server:

```plaintext
ssh -p 2220 bandit3@bandit.labs.overthewire.org
```

using secure shell to connect to [bandit.labs.overthewire.org](http://bandit.labs.overthewire.org) through port 2220 with the username : bandit3

```plaintext
cd inhere
```

change directory to inhere

```plaintext
ls -a
```

listing all files and sub-directory located in the directory

```plaintext
cat "...Hiding-From-You"
```

cat : command commonly used to display file's content

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/6a45eb69-c07d-4720-b6a1-a513c384e5b6.png align="center")

## **Bandit4**

Connect to the server:

```plaintext
ssh -p 2220 bandit4@bandit.labs.overthewire.org
```

using secure shell to connect to [bandit.labs.overthewire.org](http://bandit.labs.overthewire.org) through port 2220 with the username : bandit4

```plaintext
cd inhere
```

change directory to inhere

```plaintext
cat ./-file07
```

display it manually

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/9c8b5583-aad1-40e1-929d-111b21e5aca3.png align="center")

## **Bandit5**

Connect to the server:

```plaintext
ssh -p 2220 bandit4@bandit.labs.overthewire.org
```

using secure shell to connect to [bandit.labs.overthewire.org](http://bandit.labs.overthewire.org) through port 2220 with the username : bandit4

```plaintext
cd inhere
```

change directory to inhere

```plaintext
find -readable -size 1033c
```

find = command to find a file with certain requirement

\-readable = readable file

\-size 1033c => size 1033 byte

so find -readable -size 1033c => find readable file with the size of 1033 byte

![](https://cdn.hashnode.com/uploads/covers/6676c539ed293927a99fb0a5/ddd51165-f04b-41b0-8d59-a1e244d195fa.png align="center")

> **"No one knows what the future holds, that's why its potential is infinite." ~My Goat => Okabe Rintarou (Hoouin Kyouma)**
