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

 


비밀번호는 inhere 디렉토리에 존재한다.

bandit3@bandit:~$ ll
total 24
drwxr-xr-x  3 root root 4096 Oct  5 06:19 ./
drwxr-xr-x 70 root root 4096 Oct  5 06:20 ../
-rw-r--r--  1 root root  220 Jan  6  2022 .bash_logout
-rw-r--r--  1 root root 3771 Jan  6  2022 .bashrc
drwxr-xr-x  2 root root 4096 Oct  5 06:19 inhere/
-rw-r--r--  1 root root  807 Jan  6  2022 .profile
bandit3@bandit:~$ cd inhere/
bandit3@bandit:~/inhere$ ll
total 12
drwxr-xr-x 2 root    root    4096 Oct  5 06:19 ./
drwxr-xr-x 3 root    root    4096 Oct  5 06:19 ../
-rw-r----- 1 bandit4 bandit3   33 Oct  5 06:19 .hidden
bandit3@bandit:~/inhere$ cat .hidden
2EW7BBsr6aMMoJ2HjW067dm8EgX26xNe
bandit3@bandit:~/inhere$

.(dot)으로 시작하는 파일은 숨김파일로 ls명령으로는 볼 수 없다.

ls -a 혹은 ll 명령어를 사용하면 숨김 파일을 볼 수 있다.

 

ls -a: 모든 파일 보기

ls -l: 파일정보 보기

ls -la: 모든 파일과 파일정보보기

 

다음 레벨로 GO

'WarGame > Bandit WarGame' 카테고리의 다른 글

Bandit WarGame 5 -> 6 (find -size -exec sh -c "file {}" \;)  (0) 2023.11.10
Bandit WarGame 4 -> 5  (0) 2023.11.10
Bandit WarGame 2->3  (0) 2023.11.10
Bandit WarGame 1->2  (0) 2023.11.10
Bandit WarGame Level0 -> 1  (0) 2023.11.10

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


비밀번호는 홈 디렉토리의 spaces in this filename 파일 내부에 있다.

파일 명에 공란이 들어간경우 \를 사용한다.

bandit2@bandit:~$ ll
total 24
drwxr-xr-x  2 root    root    4096 Oct  5 06:19 ./
drwxr-xr-x 70 root    root    4096 Oct  5 06:20 ../
-rw-r--r--  1 root    root     220 Jan  6  2022 .bash_logout
-rw-r--r--  1 root    root    3771 Jan  6  2022 .bashrc
-rw-r--r--  1 root    root     807 Jan  6  2022 .profile
-rw-r-----  1 bandit3 bandit2   33 Oct  5 06:19 spaces in this filename
bandit2@bandit:~$ cat ./spaces\ in\ this\ filename
aBZ0W5EmUfAf7kHTQeOwd8bauFJ2lAiG

 

다음 레벨로 GOGO

'WarGame > Bandit WarGame' 카테고리의 다른 글

Bandit WarGame 4 -> 5  (0) 2023.11.10
Bandit WarGame 3 -> 4  (0) 2023.11.10
Bandit WarGame 1->2  (0) 2023.11.10
Bandit WarGame Level0 -> 1  (0) 2023.11.10
Bandit WarGame 접속  (0) 2023.11.10

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

Helpful Reading Material


비밀번호는 bandit1의 홈 디렉토리에 -라는 파일안에 있다.

bandit1@bandit:~$ bandit1@bandit:~$ ll
total 24
-rw-r-----  1 bandit2 bandit1   33 Oct  5 06:19 -
drwxr-xr-x  2 root    root    4096 Oct  5 06:19 ./
drwxr-xr-x 70 root    root    4096 Oct  5 06:20 ../
-rw-r--r--  1 root    root     220 Jan  6  2022 .bash_logout
-rw-r--r--  1 root    root    3771 Jan  6  2022 .bashrc
-rw-r--r--  1 root    root     807 Jan  6  2022 .profile
bandit1@bandit:~$ cat ./-
rRGizSaX8Mk1RTb1CNQoXTcYZWU6lgzi

 

다음 레벨로 GOGO

'WarGame > Bandit WarGame' 카테고리의 다른 글

Bandit WarGame 4 -> 5  (0) 2023.11.10
Bandit WarGame 3 -> 4  (0) 2023.11.10
Bandit WarGame 2->3  (0) 2023.11.10
Bandit WarGame Level0 -> 1  (0) 2023.11.10
Bandit WarGame 접속  (0) 2023.11.10

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

 

find(1) - Linux manual page

find(1) — Linux manual page FIND(1) General Commands Manual FIND(1) NAME         top find - search for files in a directory hierarchy SYNOPSIS         top find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression] DESCRIPTION

man7.org

 

다음 레벨로 가는 비밀번호는 사용자 홈 디렉토리의 readme 파일에 기재 되어있다. 

다음 사용자는 bandit1이다.

 


readme 파일의 비밀번호와 다음 레벨로 접속하는 ssh

 

참고로 bandit0에서 바로 bandit1로 갈 수 없다 접속 해재 후 다시 badnit1로 접속해야함

비밀번호: NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL

Level 1->2 GOGO

'WarGame > Bandit WarGame' 카테고리의 다른 글

Bandit WarGame 4 -> 5  (0) 2023.11.10
Bandit WarGame 3 -> 4  (0) 2023.11.10
Bandit WarGame 2->3  (0) 2023.11.10
Bandit WarGame 1->2  (0) 2023.11.10
Bandit WarGame 접속  (0) 2023.11.10

+ Recent posts