Daftar isi
Bandit Level 0
Bandit Level 0 → Level 1
Bandit Level 1 → Level 2
Bandit Level 2 → Level 3
Bandit Level 3 → Level 4
Bandit Level 4 → Level 5
Bandit Level 5 → Level 6
Bandit Level 6 → Level 7
Bandit Level 7 → Level 8
Bandit Level 8 → Level 9
Bandit Level 9 → Level 10
Bandit Level 10 → Level 11
Bandit Level 11 → Level 12
Bandit Level 12 → Level 13
Bandit Level 13 → Level 14
Bandit Level 14 → Level 15
Bandit Level 15 → Level 16
Bandit Level 16 → Level 17
Bandit Level 17 → Level 18
Bandit Level 18 → Level 19
Bandit Level 19 → Level 20
Bandit Level 20 → Level 21
Bandit Level 21 → Level 22
Bandit Level 22 → Level 23
Bandit Level 23 → Level 24
Bandit Level 24 → Level 25
Bandit Level 25 → Level 26
Bandit Level 26 → Level 27
Bandit Level 27 → Level 28
Bandit Level 28 → Level 29
Bandit Level 29 → Level 30
Bandit Level 30 → Level 31
Bandit Level 31 → Level 32
Bandit Level 32 → Level 33
Bandit Level 33 → Level 34
Bandit Level 0
Level Goal
The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.
Commands you may need to solve this level
ssh
Solusi
Dari level goal diatas kita harus mengkoneksikan dengan ssh dimana hostbandit.labs.overthewire.org port 2220 lalu login dengan username
bandit0 dan password bandit0
untuk melalukan koneksi ke ssh adalah ssh username@host -p <[port]>
| |
Bandit Level 0 - Level 1
Level Goal
The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solusi
Dari level goal diatas password disimpan dalam direktori home serta nama file readme.
Setelah berhasil mengkoneksikan, kita cek menggunakan pwd untuk melihat dimana kita berada lalu ls untuk melihat list direktori maupun file serta terakhir kita cat untuk mencetak isi file dalam kasus ini yaitu mencetak password.
| |
Password
boJ9jbbUNNfktd78OOpsqOltutMc3MY1
Bandit Level 1 - Level 2
Level Goal
The password for the next level is stored in a file called - located in the home directory
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solusi
password tersimpan dalam file - di direktori home. ketika saya mencoba menjalakan dengan perintah file
| |
tidak menampilkan password. tapi yang menarik adalah file tersebut adalah file stdin.
untuk mencetak file tersebut gunakan perintah ./ yang berati menjalankan suatu file di direktori itu sendiri.
| |
Password
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
Bandit Level 2 - Level 3
Level Goal
The password for the next level is stored in a file called spaces in this filename located in the home directory
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solusi
Setelah menggunakan ls ada file space. untuk menjalankannya cukup kita beri tanda petik(’) atau dobel petik(").
setelah itu kita cek tipe file didapatkan ascii text. langsung kita cetak file untuk mendapatkan password.
| |
Password
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK
Bandit Level 3 - Level 4
Level Goal
The password for the next level is stored in a hidden file in the inhere directory.
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solusi
Setelah masuk kita gunakan perintah ls untuk list direktori atau file. lalu perintah cd untuk pindah direktori.
saat kita melihat list tidak ditampilakan adanya file maupun direktori. lalu gunakan opsi -l untuk mencetak bentuk list dan a menampilkan file atau direktori tersebunyi.
| |
Password
pIwrPrtPN36QITSp3EQaw936yaFoFgAB
Bandit Level 4 - Level 5
Level Goal
The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solusi
Setelah masuk dan list file didapatkan banyak file -file01-09
level ini seperti level sebelumnya yaitu level 2.
untuk mendapatkan password kita menggunakan perintah cat ./-file0* tanda * yang berati semua file01 sampai file09.
| |
Password
koReBOKuIDDepwhWk7jZC0RTdopnAYKh
Bandit Level 5 - Level 6
Soal
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:
human-readable 1033 bytes in size not executable
Commands you may need to solve this level
ls, cd, cat, file, du, find
Solusi
Ada banyak sekali direktori dan file. tidak mungkin kita cek satu persatu.
disini kita memanfaatkan peintah find
pada Level Goal ada bebrapa ketentuan, kita cukup mencari berdasakan size.
setelah itu saya lihat manual page find terdapat beberapa opsi yaitu:
-size n[cwbkMG] File uses less than, more than or exactly n units of space, rounding up. The following suffixes can be used:
`b’ for 512-byte blocks (this is the default if no suffix is used)
`c’ for bytes
`w’ for two-byte words
`k’ for kibibytes (KiB, units of 1024 bytes)
`M’ for mebibytes (MiB, units of 1024 * 1024 = 1048576 bytes)
`G’ for gibibytes (GiB, units of 1024 * 1024 * 1024 = 1073741824 bytes)
Karena bytes kita menggunakan c
| |
Password
DXjZPULLxYr17uwoI01bNLQbtFemEgo7
Bandit Level 6 - Level 7
Level Goal
The password for the next level is stored somewhere on the server and has all of the following properties:
owned by user bandit7 owned by group bandit6 33 bytes in size
Commands you may need to solve this level
ls, cd, cat, file, du, find, grep
Solusi
Karena password disimpan di suatu tempat server kita perlu menggunakan perintah find pada level sebelumnya yaitu level 6.
| |
/ = berati ditektori root
-user = namaUser
-group = namaGroup\
didapatkan direktori /var/lib/dpkg/info/bandit7.password
lalu kita cetak didapatkan password
| |
Password
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
Bandit Level 7 - Level 8
Level Goal
The password for the next level is stored in the file data.txt next to the word millionth
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Solusi
Setelah masuk, saya mengecek tipe file didapatkan data.txt: UTF-8 Unicode text
lalu saya cat file terdapat banyal sekali text yang mana membuat laptop tiba-tiba hang (jangan dicoba) :(
disini kita bisa mengakali untuk mendapatkan password yaitu menggunakan perintah grep untuk mencari pola dari inputan
| |
perintah | merupakan pipe digunakan untuk lebih dari 2 perintah.
| |
Password
cvX2JJa4CFALtqS87jk27qwqGhBM9plV
Bandit Level 8 - Level 9
Level Goal
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Solusi
setelah saya mencoba mencetak langsung menampilkan banyak sekali text yang mirip password.
Untuk mendapatkan password yang asli kita gunakan perintah piping | pada level sebelumnya lalu kita sort dan uniq
permasalahannya masih banyak text yang bertipe password.
setelah membaca referensi manual dari uniq ada salah satu opsi -u digunakan hanya untuk mencetak baris yang unik.
setelah dicoba password berhasil didapatkan.
| |
Password
UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
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, preceded by several ‘=’ characters.
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Solusi
Karena tipe file data.txt merupakan file data jadi untuk menampilkan format untuk bisa dibaca manusia menggunakan perintah strings Pada Level Goal diatas atas petunjuk bahwa password diawali dengan karakter ‘=’ disini kita bisa menggunakan grep untuk mendapatkan password.
| |
Password
truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
Bandit Level 10 - Level 11
Level Goal
The password for the next level is stored in the file data.txt, which contains base64 encoded data
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Solusi
Password diencode base64 kita bisa melakukan decode untuk mendapatkan password
| |
Password
IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR
Bandit Level 11 - Level 12
Level Goal
The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Solusi
Password terencode rot13.
inti dari encode rot13 yaitu mengganti setiap huruf ke-13 setelahnya dalam alfabet.
kita bisa mendecode dengan menggunakan perintah tr atau bisa memakai tools online.
| |
Password
5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu
Bandit Level 12 - Level 13
Level Goal
The password for the next level is stored in the file data.txt, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!)
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd, mkdir, cp, mv, file
Solusi
buat direktore baru di tmp
| |
Setelah itu kita cetak didapatkan header kalau data.txt merupakan file binary.\
| |
kita ganti data.txt menjadi data.bin menggunakan xxd -r untuk convert file menjadi binary
| |
didapatkan file gzip compressed data
kita ganti dan lakukan decompress
| |
Ternyata didapatkan file bzip2 compressed data
kita ganti dan lakukan decompress lagi
| |
Didapatkan file gzip compressed data kita ganti dan lakukan decompress lagi
| |
didapatkan file POSIX tar archive
lalu kita decompress lagi
| |
dimana:
-x = ekstrak file
-f = file
setelah kita decompress didapatkan file data5.bin tapi setelah diidentifikasi ternyata file beripe tar kita ganti dan lakukan decompress lagi.
| |
Setelah didecompress didapatkan file data6.bin yang mana setelah diidentifikasi merupakan file bzip2 compressed data
kita ganti lalu lakukan decompress
| |
Didapatkan file data6 yang mana data tersebut POSIX tar archive
kita ganti lagi lalu lakukan decompress
| |
Didapatkan file data8.bin setelah dicek file tersebut gzip compressed data
kita ganti lalu lakukan decompress lagi
| |
didapatkan file data8 setelah dicek merupakan file text. setelah saya cetak menampilkan password
| |
Saya menyimpulkan bahwa password dicompress sebanyak 8 kali jadi harap sabar dan teliti untuk level ini:)
Password
8ZjyCRiBWFYkneahHwxCv3wb2a1ORpYL
Bandit Level 13 - Level 14
Level Goal
The password for the next level is stored in /etc/bandit_pass/bandit14 and can only be read by user bandit14. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. Note: localhost is a hostname that refers to the machine you are working on
Commands you may need to solve this level
ssh, telnet, nc, openssl, s_client, nmap
Solusi
karena tidak ada password yang dibutuhkan dan diberi sshkey.private kita cukup masuk menggunakan ssh untuk mengakses bandit14.
| |
lalu kita cetak password yang ada di /etc/bandit_pass/bandit14
| |
Password
4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e
Bandit Level 14 - Level 15
Level Goal
The password for the next level can be retrieved by submitting the password of the current level to port 30000 on localhost.
Commands you may need to solve this level
ssh, telnet, nc, openssl, s_client, nmap
Solusi
Kita masuk ke bandit14 cek password lalu, kita lakukan perintah *nc digunakan untuk r/w data menggunakan tcp/ip atau bisa digunakan untuk membuat koneksi dengan jaringan lainnya.
| |
sintaks:
| |
Password
BfMYroe26WYalil77FoDi9qh59eK5xNr
Bandit Level 15 - Level 16
Level Goal
The password for the next level can be retrieved by submitting the password of the current level to port 30001 on localhost using SSL encryption.
Helpful note: Getting “HEARTBEATING” and “Read R BLOCK”? Use -ign_eof and read the “CONNECTED COMMANDS” section in the manpage. Next to ‘R’ and ‘Q’, the ‘B’ command also works in this version of that command…
Commands you may need to solve this level
ssh, telnet, nc, openssl, s_client, nmap
Solusi
Dari level goal diatas kita kita harus melakukan koneksi dengan menggunakan SSL encryption untuk mendapatkan password pada level berikutnya.
kita bisa menggunakan ncat dan opsi –ssl
berikut sintaks:
| |
lalu kita masukkan password pada level sebelumnya.
| |
Password
cluFn7wTiGryunymYOu4RcffSxQluehd
Bandit Level 16 - Level 17
Level Goal
The credentials for the next level can be retrieved by submitting the password of the current level to a port on localhost in the range 31000 to 32000. First find out which of these ports have a server listening on them. Then find out which of those speak SSL and which don’t. There is only 1 server that will give the next credentials, the others will simply send back to you whatever you send to it.
Commands you may need to solve this level
ssh, telnet, nc, openssl, s_client, nmap
Solusi
kita disuruh mencari password di server menggunakan host localhost port 31000-32000
kita bisa menggunakan nmap untuk mencari port yang aktif
| |
nmap menampilkan beberapa port, disini saya fokus pada port 31790 karena ada pesan please correct password.
lalu saya gunakan perintah ncat lalu munculah private key
| |
lalu saya copy ssh private key setelah itu saya buat file dan set permissions menjadi r/w
| |
lalu berhasil masuk ke bandit17
setelah itu saya masuk disana ada file passwords.new passwords.old setelah dicoba tidak berhasil, lalu saya lihat pada level sebelumnya yaitu
The password for the next level is stored in /etc/bandit_pass/bandit14
saya langsung cetak pada folder tersebut.
| |
Password
xLYVMN9WE5zQ5vHacb0sZEVqbrp7nBTn
Bandit Level 17 - Level 18
Level Goal
There are 2 files in the homedirectory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new
NOTE: if you have solved this level and see ‘Byebye!’ when trying to log into bandit18, this is related to the next level, bandit19
Commands you may need to solve this level
cat, grep, ls, diff
Solusi
Saat masuk ke bandit18 disana ada file passwords.new dan passwords.old
kita bisa melakukan perbandingan pada file tersebut menggunakan diff
| |
kita coba masuk ke bandit18 menggunakan password diatas ternyata berhasil.
Password
kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd
Bandit Level 18 - Level 19
Level Goal
The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH.
Commands you may need to solve this level
ssh, ls, cat
Solusi
Setelah login ke ke bandit18 langsung keluar. kita bisa menggunakan perintah dengan memanfaatkan ssh
sintaks:
| |
| |
kita coba cek list file atau direktori
| |
langsung saja kita cetak file readme untuk mendapatkan password
| |
Password
IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x
Bandit Level 19 - Level 20
Level Goal
To gain access to the next level, you should use the setuid binary in the homedirectory. Execute it without arguments to find out how to use it. The password for this level can be found in the usual place (/etc/bandit_pass), after you have used the setuid binary.
Solusi
Setelah dicek ada file bandit20-do dan file merupakan file ELF
| |
setelah menjalankan file tersebut ada petunjuk penggunaan
| |
ternyata untuk mendapatkan password kita harus menjalankan file tersebut.
atau biasanya disebut setuid dimana pengguna diizinkan menjalankan file executable dengan file sistem hak akses.
langsung saja lakukan cetak password sesudah kita menjalankan file tersebut
| |
Password
GbKksEFF4yrVs6il55v6gwY5aVje5f0j
Bandit Level 20 - Level 21
Level Goal
There is a setuid binary in the homedirectory that does the following: it makes a connection to localhost on the port you specify as a commandline argument. It then reads a line of text from the connection and compares it to the password in the previous level (bandit20). If the password is correct, it will transmit the password for the next level (bandit21).
NOTE: Try connecting to your own network daemon to see if it works as you think
Commands you may need to solve this level
ssh, nc, cat, bash, screen, tmux, Unix ‘job control’ (bg, fg, jobs, &, CTRL-Z, …)
Solusi
Pada level ini localhost dijadikan connect dan listen.
kita buat 2 terminal
Terminal 1
| |
Terminal 2
| |
lalu masukkan password level sebelumnya di terminal 1
| |
didapatkan password.
Password
gE269g2h3mw3pwgrj0Ha9Uoqen1c9DGr
Bandit Level 21 - Level 22
Level Goal
A program is running automatically at regular intervals from cron, the time-based job scheduler. Look in /etc/cron.d/ for the configuration and see what command is being executed.
Commands you may need to solve this level
cron, crontab, crontab(5) (use “man 5 crontab” to access this)
Solusi
masuk ke direktori
| |
kita cek file didapatkan
| |
lalu kita cetak file didapatkan
| |
lalu kita coba lihat isi file tersebut
| |
kita cetak yang ada di direktori tmp didapatkan password
| |
Password
Yk7owGAcWjwMVRwrTesJEwB7WVOiILLI
Bandit Level 22 - Level 23
Level Goal
A program is running automatically at regular intervals from cron, the time-based job scheduler. Look in /etc/cron.d/ for the configuration and see what command is being executed.
NOTE: Looking at shell scripts written by other people is a very useful skill. The script for this level is intentionally made easy to read. If you are having problems understanding what it does, try executing it to see the debug information it prints.
Commands you may need to solve this level
cron, crontab, crontab(5) (use “man 5 crontab” to access this)
Solusi
Hampir sama seperti level sebelumnya kita telusuri satu persatu
| |
Setelah itu kita cetak file didapatkan
| |
setelah itu kita cek siapa kita
| |
setelah kita jalankan didapatkan
| |
yang mana kita adalah masuk sebagi bandit22 untuk itu kita salin sedikit code seperti
| |
password terletak di direktori tmp/8caxxx\
| |
Password
jc1udXuA1tiHqjIsL8yaapX5XIAI6i0n
Bandit Level 23 - Level 24
Level Goal
A program is running automatically at regular intervals from cron, the time-based job scheduler. Look in /etc/cron.d/ for the configuration and see what command is being executed.
NOTE: This level requires you to create your own first shell-script. This is a very big step and you should be proud of yourself when you beat this level!
NOTE 2: Keep in mind that your shell script is removed once executed, so you may want to keep a copy around…
Commands you may need to solve this level
cron, crontab, crontab(5) (use “man 5 crontab” to access this)
Solusi
kita telusuri seperti level sebelumnya didapatkan isi shell script
| |
intinya shell tersebut mengekskusi dan menghapus script yang ada di direktori /var/spool/bandit24
untuk itu kita buat direktori baru di tmp dan membuat shell script di /var/spool/bandit24
yang mana untuk copy password pada /etc/bandit_pass/bandit24 ke direktori tmp
kita buat direktori dan atur permissions menjadi r/w
| |
script seperti ini
| |
kalo kita coba listing direktori default tidak bisa, harus secara eksplisit
| |
kalo kita eksplisit didapatkan
| |
langsung kita cetak didapatkan password
| |
Password
UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ
Bandit Level 24 - Level 25
Level Goal
A daemon is listening on port 30002 and will give you the password for bandit25 if given the password for bandit24 and a secret numeric 4-digit pincode. There is no way to retrieve the pincode except by going through all of the 10000 combinations, called brute-forcing.
Solusi
password didapatkan ketika kita berhasil memasukkan pin yang valid. permasalahan kita tidak tau pin berapa yang valid.
kita bisa lakukan bruteforce untuk level ini
berikut script
| |
lalu kita simpan menjadi txt file
| |
lalu kita lakukan pipe
| |
didapatkan password untuk masuk ke bandit25
Password
uNG9O58gUE7snukf3bvZ0rxhtnjzSGzG
Bandit Level 25 - Level 26
Level Goal
Logging in to bandit26 from bandit25 should be fairly easy… The shell for user bandit26 is not /bin/bash, but something else. Find out what it is, how it works and how to break out of it.
Commands you may need to solve this level
ssh, cat, more, vi, ls, id, pwd
Solusi
diberikan file bandit26.sshkey
langsung kita koneksian tiba tiba langsung keluar
| |
kita lihat apa yang terjadi
| |
kita cetak untuk informasi detail
| |
kita resize pada terminal paling kecil pada saat login ke bandit26 lalu tekan v lalu tekan :
| |
dimana e digunakan untuk edit
didapatkan password
Password
5czgV9L3Xx8JPOyRbXh6lQbmIOWvPT6Z
Bandit Level 26 - Level 27
Level Goal
Good job getting a shell! Now hurry and grab the password for bandit27!
Commands you may need to solve this level
ls
Solusi
login pada bandit26 dengan resize terminal tekan v lalu :
| |
lalu tekan : lagi
| |
coba kita cat pada text.txt
| |
lalu kita cek file pada bandit27-do ternyata seperti level sebelumnya (setuid).
| |
langsung kita cat dengan menjalanakan file tersebut, didapatkan password
| |
Password
3ba3118a22e93127a4ed485be72ef5ea
Bandit Level 27 - Level 28
Level Goal
There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo. The password for the user bandit27-git is the same as for the user bandit27.
Clone the repository and find the password for the next level.
Commands you may need to solve this level
git
Solusi
Pada level ini kita dituntut untuk bisa menggunakan git
langsung saja, buat direktori di tmp lalu lakukan git clone untuk password memakai password level sebelumnya
| |
kita pindah ke direktori dan list direktori didapatkan
| |
langsung kita cetak file tersebut didapatkan password
| |
Password
0ef186ac70e04ea33b4c1853d2526fa2
Bandit Level 28 - Level 29
Level Goal
There is a git repository at ssh://bandit28-git@localhost/home/bandit28-git/repo. The password for the user bandit28-git is the same as for the user bandit28.
Clone the repository and find the password for the next level.
Commands you may need to solve this level
git
Solusi
Hampir mirip seperti level sebelumnya, tapi pada level ini password tidak ditampilkan
| |
kita bisa cek history dengan perintah git log
| |
ada beberapa log, disini menurut saya yang mencurigakan adalah add missing data
langsung saja kita lihat isi commit tersebut dengan perintah
| |
didapatkan password
| |
Password
bbc96594b4e001778eee9975372716b2
Bandit Level 29 - Level 30
Level Goal
There is a git repository at ssh://bandit29-git@localhost/home/bandit29-git/repo. The password for the user bandit29-git is the same as for the user bandit29.
Clone the repository and find the password for the next level.
Commands you may need to solve this level
git
Solusi
Sama seperti level sebelumnya, tapi permasalahannya adalah tidak ada password pada commit.
kita cek pada semua branch dengan opsi -a untuk menampilkan semua branch
| |
lalu coba kita ganti branch dengan menggunakan perintah checkout
| |
lalu kita lihat semua log
| |
disini yang cukup menarik menurut saya yaitu add data needed for development kita coba lihat isi dari commit tersebut, maka didapatkan password
| |
Password
5b90576bedb2cc04c86a9e924ce42faf
Bandit Level 30 - Level 31
Level Goal
There is a git repository at ssh://bandit29-git@localhost/home/bandit29-git/repo. The password for the user bandit29-git is the same as for the user bandit29.
Clone the repository and find the password for the next level.
Commands you may need to solve this level
git
Solusi
Hampir sama pada level sebelumnya, tapi permasalahan tidak ada password pada semua branch. kita bisa menggunakan git-show-ref untuk list referensi pada lokal repo
| |
ada beberapa commit, kita cetak yang bawah sendiri, karena itu mencurigakan
| |
dan itu merupakan password
Password
47e603bb428404d265f59c42920d81e5
Bandit Level 31 - Level 32
Level Goal
There is a git repository at ssh://bandit31-git@localhost/home/bandit31-git/repo. The password for the user bandit31-git is the same as for the user bandit31.
Clone the repository and find the password for the next level.
Commands you may need to solve this level
git
Solusi
setelah kita clone repo, kita coba cetak README.md didapatkan
| |
untuk mendapatkan password, kita buat file key.txt isinya yaitu May I come in? pada branch master
| |
maka didapatkan password.
Password
56a9bf19c63d650ce78e6ec0354ee45e
Bandit Level 32 - Level 33
After all this git stuff its time for another escape. Good luck!
Commands you may need to solve this level
sh, man
Solusi
Setelah login dengan bandit32 didapatkan tampilan
| |
saya lakukan apapun tidak bisa :(
lalu melihat pada literatur di internet bahwa untuk escape dari itu kita bisa menggunakan $0 yang mana itu merupakan bash special parameters. $0 ketika dijabarkan menjadi nama dari sebuah shell atau shell script jadi kita bisa escape dari tampilan UPPERCASE SHELL tadi.
default dari $0 apabila kita tidak set maka itu menujuk ke shell.
| |
langsung saja kita cetak password bandit33
| |
Password
c9c3199ddf4121b10cf581a98d51caee
Bandit Level 33 - Level 34
At this moment, level 34 does not exist yet.
Setelah saya masuk dengan bandit33 didapatkan sebagai berikut:
| |
Selamat teman-teman yang sudah sampai sini. semangat terus.
Catatan
Jika ada yang tidak cocok bisa dilihat disini
karena disana saya jelaskan satu persatu.
Terima kasih