From 3df6eea92654d7c6110ce4398a629017f0c5b124 Mon Sep 17 00:00:00 2001 From: Deep Umrajkar <121167625+the-geek-deep@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:19:30 +0530 Subject: [PATCH 1/3] Update README.md --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/README.md b/README.md index efade42..8af8bea 100644 --- a/README.md +++ b/README.md @@ -1 +1,53 @@ Assignment submissions here + +Q.0-1] ls , cat readme +Q.1-2] ls , cat ./- +Q.2-3] cat ‘spaces in the file name’ aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG +Q.3-4]ls, ls -a, cd inhere, cat .hidden 2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe +Q. 4-5]file cd inhere , file ./* , cat ./-file07 lrIWWI6bB37kxfiCQZqUdOIYfr6eEeqR +Q.5-6] ls , cd inhere, ls , find . -size 1033c , cat ./maybehere07/.file2. + Password : P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU + +Q.6-7] ls , cd inhere , file./* , cat ./-file07 z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S +Q.7-8] data.txt grep millionth TESKZC0XvTetK0S9xNwm25STk5iWrBvP +Q.8-9] sort data.txt , uniq data.txt EN632PlfYiZbn3PhVK3XOGSlNInNE00t +Q.9-10] strings grep = data.txt G7w8LIi6J3kTb8A7j9LgrywtEUlyyp6s +Q.10-11] base64 - -decode data.txt 6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM +Q.11-12] cat data.txt | tr a-zA-Z n-za-mN-ZA-M JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv +Q.12-13]ls, mkdir /tmp/mdg , cd /tmp/mdg, cp ~/data.txt, ls, mv data.txt mdg1, xxd -r mdg1 > mdg2 , file mdg2 , mv mdg2 .gz , gunzip mdg2.gz , repeat these zipping until you get the file. wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw + + +Q 13-14].Do same as done in lvl 16-17 after we gett the rsa private key  fGrHPx402xGC7U7rXKDaxiWFTOiF0EN + +Q.14-15] nc localhost 30000 jN2kgmIXJ6fShzhT2avhotn4Zcka6tnt + +Q.15-16] openssl s_client -connect localhost:30001 , JQttfApK4SeyHwDlI9SXGR50qclOAil1 +Q.16-17] nmap -p 31000 - 32000 localhost + we’ll get 5 ports individually tryout each port with openssl s_client -connect localhost:port. + now in the fourth port we’ll get la rsa key , + save it using echo “privatekey” > private16.key + ssh bandit17@bandit.labs.overthewire.org -p 2220 -I private16.key + +Q.17-18] diff passwords.new , passwords.old hga5tuuCLF6fFzUpnagiMN8ssu9LFrdg + +Q.18-19] ssh bandit18@bandit.labs.overthewire.org -p 2220 cat readme. awhqfNnAbc1naukrpqDYcF95h7HoMTrC + + +q.19-20]id ./bandit20-do id , ./bandit20-do cat /etc/bandit_pass/bandit20 VxCazJaVykI6W36BkBU0mJTCM8rR95XT + +Q.20-21] Use two terminals + . on one command: nc -lvp 1234 + on two command: ./suconnect 1234 +Now provide the terminal 1 the password for lvl 20 it will return back password for lvl 21 +NvEJF7oVjkddltPSrdKEFOllh9V1IBcq + +Q.21-22] cd /etc/cron.d/, cat cronjob_bandit22 , cat /usr/bin/cronjob_bandit22.sh , cat /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv +Password : WdDozAdTM2z9DiFEQ2mGlwngMfj4EZff + +Q.22-23] cd /etc/cron.d/ , cat cronjob_bandit23 , cat /usr/bin/cronjob_bandit23.sh , echo I am user bandit23 | md5sum | cut -d ' ' -f 1. , cat /tmp/8ca319486bfbbc3663ea0fbe81326349 + +QYw0Y2aiA672PsMmh9puTQuhoz8SyR2G + + +Q.23-24] VAfGXJ1PBSsPSnvsjI8p759leLZ9GGar + From fe7781c59f661131cdda64ea5e293ea76e19d9f2 Mon Sep 17 00:00:00 2001 From: Deep Umrajkar <121167625+the-geek-deep@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:31:31 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8af8bea..45a6afb 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,31 @@ Assignment submissions here Q.0-1] ls , cat readme + Q.1-2] ls , cat ./- + Q.2-3] cat ‘spaces in the file name’ aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG + Q.3-4]ls, ls -a, cd inhere, cat .hidden 2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe + Q. 4-5]file cd inhere , file ./* , cat ./-file07 lrIWWI6bB37kxfiCQZqUdOIYfr6eEeqR + Q.5-6] ls , cd inhere, ls , find . -size 1033c , cat ./maybehere07/.file2. Password : P4L4vucdmLnm8I7Vl7jG1ApGSfjYKqJU + Q.6-7] ls , cd inhere , file./* , cat ./-file07 z7WtoNQU2XfjmMtWA8u5rN4vzqu4v99S + Q.7-8] data.txt grep millionth TESKZC0XvTetK0S9xNwm25STk5iWrBvP + Q.8-9] sort data.txt , uniq data.txt EN632PlfYiZbn3PhVK3XOGSlNInNE00t + Q.9-10] strings grep = data.txt G7w8LIi6J3kTb8A7j9LgrywtEUlyyp6s + Q.10-11] base64 - -decode data.txt 6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM + Q.11-12] cat data.txt | tr a-zA-Z n-za-mN-ZA-M JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv + Q.12-13]ls, mkdir /tmp/mdg , cd /tmp/mdg, cp ~/data.txt, ls, mv data.txt mdg1, xxd -r mdg1 > mdg2 , file mdg2 , mv mdg2 .gz , gunzip mdg2.gz , repeat these zipping until you get the file. wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw @@ -21,15 +33,19 @@ Q 13-14].Do same as done in lvl 16-17 after we gett the rsa private key  fGrH Q.14-15] nc localhost 30000 jN2kgmIXJ6fShzhT2avhotn4Zcka6tnt + Q.15-16] openssl s_client -connect localhost:30001 , JQttfApK4SeyHwDlI9SXGR50qclOAil1 + Q.16-17] nmap -p 31000 - 32000 localhost - we’ll get 5 ports individually tryout each port with openssl s_client -connect localhost:port. + we’ll get 5 ports individually tryout each port with openssl s_client -connect localhost:port. now in the fourth port we’ll get la rsa key , save it using echo “privatekey” > private16.key ssh bandit17@bandit.labs.overthewire.org -p 2220 -I private16.key + Q.17-18] diff passwords.new , passwords.old hga5tuuCLF6fFzUpnagiMN8ssu9LFrdg + Q.18-19] ssh bandit18@bandit.labs.overthewire.org -p 2220 cat readme. awhqfNnAbc1naukrpqDYcF95h7HoMTrC From 37c75d27ae68b760592a868aa3ddf27a42039ef2 Mon Sep 17 00:00:00 2001 From: Deep Umrajkar <121167625+the-geek-deep@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:46:59 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 45a6afb..a2f5dd2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ Q.10-11] base64 - -decode data.txt 6zPeziLdR2RKNdNYFNb6nVCKzphlXHBM Q.11-12] cat data.txt | tr a-zA-Z n-za-mN-ZA-M JVNBBFSmZwKKOP0XbFXOoW8chDz5yVRv -Q.12-13]ls, mkdir /tmp/mdg , cd /tmp/mdg, cp ~/data.txt, ls, mv data.txt mdg1, xxd -r mdg1 > mdg2 , file mdg2 , mv mdg2 .gz , gunzip mdg2.gz , repeat these zipping until you get the file. wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw +Q.12-13]ls ,mkdir /tmp/mdg , xxd -r data.txt > mdg , file mdg , mv mdg mdg.gz , gzip -d mdg.gz , file mdg , mv mdg mdg.bz2, bzip2 -d mdg .bz2 , file mdg , mv mdg mdg.gz , , gzip -d mdg.gz , file mdg. , mv mdg mdg.tar ,tar xvf mdg.tar, file data5.bin , mv data5.bin data6.bz2 , bzip2 -d data6.bz2 , file data6 , mv data6 data6.tar , tar xvf data6.tar, file data8.bin , mv data8.bin data8.gz , gzip -d data8.gz , file data8 , cat data8 + wbWdlBxEir4CaE8LaPhauuOo6pwRmrDw Q 13-14].Do same as done in lvl 16-17 after we gett the rsa private key  fGrHPx402xGC7U7rXKDaxiWFTOiF0EN