From 05f298aa9ab10188a524e443e8e2e3fc547913fd Mon Sep 17 00:00:00 2001 From: YASH PATEL <121890726+yp969803@users.noreply.github.com> Date: Mon, 17 Apr 2023 21:32:45 +0530 Subject: [PATCH] Add files via upload --- bandit sol.txt | 153 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 bandit sol.txt diff --git a/bandit sol.txt b/bandit sol.txt new file mode 100644 index 0000000..3857fca --- /dev/null +++ b/bandit sol.txt @@ -0,0 +1,153 @@ +sudo 1st year + +0.ssh bandit0@bandit.labs.overthewire.org -p 2220 + NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL + +1. cat readme + ssh bandit1@bandit.labs.overthewire.org -p 2220 + NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL + +2. cat < - + rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi + +3. ssh bandit2@bandit.labs.overthewire.org -p 2220 + rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi + cat "spaces in this filename" + aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG +4.ssh bandit3@bandit.labs.overthewire.org -p 2220 + aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG + cd inhere + cat .hidden + 2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe + +5. ssh bandit4@bandit.labs.overthewire.org -p 2220 + 2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe + cat < -file07 + lrIWWI6bB37kxfiCQZqUdOIYfr6eEeqR + +6. ssh bandit5@bandit.labs.overthewire.org -p 2220 + lrIWWI6bB37kxfiCQZqUdOIYfr6eEeqR + find ./ -type f -size 1033c ! -executable + cat ./maybehere07/.file2 + P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU + +7. ssh bandit5@bandit.labs.overthewire.org -p 2220 + P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU + find / -user bandit7 -group bandit6 -size 33c + cat /var/lib/dpkg/info/bandit7.password + z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S + +8. ssh bandit7@bandit.labs.overthewire.org -p 2220 + z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S + grep -w "millionth" data.txt + TESKZC0XvTetK0S9xNwm25STk5iWrBvP + +9. ssh bandit8@bandit.labs.overthewire.org -p 2220 + TESKZC0XvTetK0S9xNwm25STk5iWrBvP + cat data.txt | sort | uniq -c + EN632PlfYiZbn3PhVK3XOGSlNInNE00t + +10. strings data.txt| grep = + G7w8LIi6J3kTb8A7j9LgrywtEUlyyp6s + +11.strings data.txt| base64 --decode + 6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM + +12. cat data.txt + JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv + +13. Written commands but forget to save + + wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw +14.ssh bandit14@localhost -p 2220 -i sshkey.private + cat /etc/bandit_pass/bandit14 + fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq + +15. nc localhost 30000 + fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq + jN2kgmIXJ6fShzhT2avhotn4Zcka6tnt +16. openssl s_client -connect localhost:30001 + jN2kgmIXJ6fShzhT2avhotn4Zcka6tnt + JQttfApK4SeyHwDlI9SXGR50qclOAil1 + +17.nmap -p 3100-3200 + openssl s_client -connect localhost:31790( hit and trial) + JQttfApK4SeyHwDlI9SXGR50qclOAil1 +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAvmOkuifmMg6HL2YPIOjon6iWfbp7c3jx34YkYWqUH57SUdyJ +imZzeyGC0gtZPGujUSxiJSWI/oTqexh+cAMTSMlOJf7+BrJObArnxd9Y7YT2bRPQ +Ja6Lzb558YW3FZl87ORiO+rW4LCDCNd2lUvLE/GL2GWyuKN0K5iCd5TbtJzEkQTu +DSt2mcNn4rhAL+JFr56o4T6z8WWAW18BR6yGrMq7Q/kALHYW3OekePQAzL0VUYbW +JGTi65CxbCnzc/w4+mqQyvmzpWtMAzJTzAzQxNbkR2MBGyS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Xw9a/9p7ftpxm0TSgyvmfLF2MIAEwyzRqaM +77pBAoGAMmjmIJdjp+Ez8duyn3ieo36yrttF5NSsJLAbxFpdlc1gvtGCWW+9Cq0b +dxviW8+TFVEBl1O4f7HVm6EpTscdDxU+bCXWkfjuRb7Dy9GOtt9JPsX8MBTakzh3 +vBgsyi/sN3RqRBcGU40fOoZyfAMT8s1m/uYv52O6IgeuZ/ujbjY= +-----END RSA PRIVATE KEY----- + cd /tmp/b17key + vi ff.txt + chmod 400 ff.txt + ssh -i ff.txt bandit17@localhost -p 2220 + + + +18. diff passwords.new passworfs.old + hga5tuuCLF6fFzUpnagiMN8ssu9LFrdg + +19. ssh bandit18@bandit.labs.overthewire.org -p 2220 ls + ssh bandit18@bandit.labs.overthewire.org -p 2220 cat readme + awhqfNnAbc1naukrpqDYcF95h7HoMTrC + +20. ./bandit20-do cat /etc/bandit_pass/bandit20 + VxCazJaVykI6W36BkBU0mJTCM8rR95XT + +21. + ./suconnect 8001 + nc -lvp 8001 + NvEJF7oVjkddltPSrdKEFOllh9V1IBcq + +22. cd /etc/cron.d + ls + cat /usr/bin/cronjob_bandit22.sh + cat /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv + WdDozAdTM2z9DiFEQ2mGlwngMfj4EZff + +23. cd /etc/cron.d + ls + cat /usr/bin/cronjob_bandit23.sh + echo I am user bandit23 | md5sum | cut -d ' ' -f 1 + cat /tmp/8ca319486bfbbc3663ea0fbe81326349 + QYw0Y2aiA672PsMmh9puTQuhoz8SyR2G + +24. cd /etc/cron.d + cat cronjob_bandit24 + + + + + + + + + + + + + + \ No newline at end of file