일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- C++
- C언어
- 시스템
- 컴퓨터구조
- 시스템 프로그래밍
- 시그널
- pwncollege
- write up
- 어셈블리어
- wargame
- 워게임
- 리버싱
- kernel
- css
- Leviathan
- 알고리즘
- Bandit
- 프로그래밍
- 시스템해킹
- 리눅스 커널
- 시스템프로그래밍
- pwn.college
- 커널
- 리눅스
- radare2
- 취약점
- 리눅스커널
- Pwnable.kr
- 드론
- px4
- Today
- Total
목록radare2 (4)
Computer Security

Level6 -> Level7 1. ls -al 을 확인해보니, leviathan6 라는 파일이 있고, 얘도 역시 setuid 이다. leviathan6@leviathan:~$ ls -al total 28 drwxr-xr-x 2 root root 4096 Aug 26 2019 . drwxr-xr-x 10 root root 4096 Aug 26 2019 .. -rw-r--r-- 1 root root 220 May 15 2017 .bash_logout -rw-r--r-- 1 root root 3526 May 15 2017 .bashrc -r-sr-x--- 1 leviathan7 leviathan6 7452 Aug 26 2019 leviathan6 -rw-r--r-- 1 root root 675 May 15 ..

Level3 -> Level4 1. ls -al 을 살펴보니 level3 의 setuid 파일이 있다. leviathan3@leviathan:~$ ./level3 Enter the password> Ahdiemoo1j bzzzzzzzzap. WRONG leviathan3@leviathan:~$ r2 level3 leviathan3@leviathan:~$ ls -al total 32 drwxr-xr-x 2 root root 4096 Aug 26 2019 . drwxr-xr-x 10 root root 4096 Aug 26 2019 .. -rw-r--r-- 1 root root 220 May 15 2017 .bash_logout -rw-r--r-- 1 root root 3526 May 15 2017 .bash..

Level2 -> Level3 1. ls -al 을 이용해 살펴보니 printfile 이 setuid 이고, 실행시키면 leviathan3 권한으로 실행되는 것을 알 수 있다. leviathan2@leviathan:~$ ls -al total 28 drwxr-xr-x 2 root root 4096 Aug 26 2019 . drwxr-xr-x 10 root root 4096 Aug 26 2019 .. -rw-r--r-- 1 root root 220 May 15 2017 .bash_logout -rw-r--r-- 1 root root 3526 May 15 2017 .bashrc -r-sr-x--- 1 leviathan3 leviathan2 7436 Aug 26 2019 printfile -rw-r--r-- ..
일단 leviathan 같은경우 힌트가 주어지지 않는다! Data for the levels can be found in the homedirectories. You can look at /etc/leviathan_pass for the various level passwords. /etc/leviathan_pass 에 해당 leviathan의 비밀번호가 있다 한다. Level0 -> Level1 1. 가장 기본적으로 ls -al 명령어를 이용해 어떤 파일들이 있는지 확인 해보자. leviathan0@leviathan:~$ ls -al total 24 drwxr-xr-x 3 root root 4096 Aug 26 2019 . drwxr-xr-x 10 root root 4096 Aug 26 2019 .. ..