# OverTheWire

<https://overthewire.org/wargames/bandit/>

***

## Bandit Level 0 → Level 1

```bash
ssh bandit0@bandit.labs.overthewire.org -p 2220
ls
cat readme
```

{% hint style="success" %}
ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If
{% endhint %}

## Bandit Level 1 → Level 2

```bash
cat ./-
```

{% hint style="success" %}
263JGJPfgU6LtdEvgfWU1XP5yac29mFx
{% endhint %}

## Bandit Level 2 → Level 3

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

{% hint style="success" %}
MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx
{% endhint %}

## Bandit Level 3 → Level 4

```bash
cat inhere/...Hiding-From-You
```

{% hint style="success" %}
2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ
{% endhint %}

## Bandit Level 4 → Level 5

```bash
for f in ./-file*; do file "$f" | grep -q "ASCII text" && cat "$f"; done
```

{% hint style="success" %}
4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw
{% endhint %}

## Bandit Level 5 → Level 6

```bash
find inhere/ -readable -size 1033c -not -executable -exec cat {} \;
```

{% hint style="success" %}
HWasnPhtq9AVKe0dmk45nxy20cvUa6EG
{% endhint %}

## Bandit Level 6 → Level 7

```bash
find / -type f -user bandit7 -group bandit6 -size 33c 2>/dev/null
```

{% hint style="success" %}
morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj
{% endhint %}

## Bandit Level 7 → Level 8

```
```

{% hint style="success" %}

{% endhint %}
