Bandit Level 9 → Level 10
Level Goal
The password for the next level is stored in the file data.txt in one of the few human-readable strings, beginning with several ‘=’ characters.
Level Answer
1. strings data.txt | grep [-E] [PATTERN]
- [-E] Interpret PATTERN as an extended regular expression
$ strings data.txt | grep -E "=+"
nfZ=
U=R*q
=-VW+
========== theP`
=uN
\<P5J7=^
========== password
L='.
L========== isA
G&eB_=
9T=8?
9=!/"
========== truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
2. ssh [-p port] [user@]hostname
- [-p port] Port to connect to on the remote host.
$ ssh -p 2220 [email protected]
Level Password
truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk