2021-04-12 09:02:52 +02:00
|
|
|
# Notes
|
|
|
|
|
|
|
|
## Rules
|
|
|
|
* USERNAMES are somegame0, somegame1, ...
|
|
|
|
* Most LEVELS are stored in /somegame/.
|
|
|
|
* PASSWORDS for each level are stored in /etc/somegame_pass/.
|
|
|
|
|
|
|
|
It is advised to create a
|
|
|
|
working directory with a hard-to-guess name in /tmp/. You can use the
|
|
|
|
command "mktemp -d" in order to generate a random and hard to guess
|
|
|
|
directory in /tmp/. Read-access to both /tmp/ and /proc/ is disabled
|
|
|
|
so that users can not snoop on eachother.
|
|
|
|
|
|
|
|
## /tmp folder
|
|
|
|
/tmp/lolipopzalondo
|
|
|
|
|
|
|
|
## Passwd
|
2021-04-12 16:32:17 +02:00
|
|
|
- bandit0 = bandit0
|
|
|
|
- bandit1 = boJ9jbbUNNfktd78OOpsqOltutMc3MY1
|
|
|
|
- bandit2 = CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
|
|
|
|
- bandit3 = UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
|
|
|
|
- bandit4 = pIwrPrtPN36QITSp3EQaw936yaFoFgAB
|
|
|
|
- bandit5 = koReBOKuIDDepwhWk7jZC0RTdopnAYKh
|
|
|
|
- bandit6 = DXjZPULLxYr17uwoI01bNLQbtFemEgo7
|
|
|
|
- bandit7 = HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
|
|
|
|
- bandit8 = cvX2JJa4CFALtqS87jk27qwqGhBM9plV
|
|
|
|
- bandit9 = UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
|
|
|
|
- bandit10 = truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
|
|
|
|
- bandit11 = IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR
|
|
|
|
- bandit12 = 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu
|
|
|
|
- bandit13 = 8ZjyCRiBWFYkneahHwxCv3wb2a1ORpYL
|
|
|
|
- bandit14 = 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e
|
|
|
|
- bandit15 = BfMYroe26WYalil77FoDi9qh59eK5xNr
|
|
|
|
- bandit16 = cluFn7wTiGryunymYOu4RcffSxQluehd
|
|
|
|
- bandit17 = kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd
|
|
|
|
- bandit18 = IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x
|
|
|
|
- bandit19 = IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x
|
|
|
|
- bandit20 = GbKksEFF4yrVs6il55v6gwY5aVje5f0j
|
|
|
|
- bandit21 =
|
2021-04-12 09:02:52 +02:00
|
|
|
|
|
|
|
## CMD
|
|
|
|
5. find . -size 1033c
|
|
|
|
7. find / -size 33c -type f -group bandit6 -user bandit7
|
|
|
|
8. cat data.txt | sort | uniq -u
|
|
|
|
9. at data.txt | strings | grep ====
|
|
|
|
10. base64 -d data.txt
|
|
|
|
11. alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'" && cat data.txt | rot13
|
|
|
|
|
|
|
|
12. xxd -r data.txt reverse.tgz
|
|
|
|
file reverse
|
|
|
|
mv reverse reverse.gzip
|
|
|
|
gzip -d reverse.gz
|
|
|
|
tar -xvf data6.tar
|
|
|
|
file data8.bin
|
|
|
|
mv data8.bin data8.gz
|
|
|
|
gzip -d data8.gz
|
2021-04-12 16:32:17 +02:00
|
|
|
|
2021-04-12 09:02:52 +02:00
|
|
|
14. echo 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e | nc localhost 30000
|
|
|
|
15. openssl s_client -crlf -connect localhost:30001
|
|
|
|
18. ssh bandit18@bandit.labs.overthewire.org -p 2220 cat readme
|
|
|
|
19. ./bandit20-do cat /etc/bandit_pass/bandit20
|
|
|
|
|
|
|
|
## Questions
|
|
|
|
- tr function
|
|
|
|
- nc
|