ssh -p 2223 leviathan0@leviathan.labs.overthewire.org
pw: leviathan0
현재 디렉터리에서 정보를 확인한다.
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 ..
drwxr-x--- 2 leviathan1 leviathan0 4096 Aug 26 2019 .backup
-rw-r--r-- 1 root root 220 May 15 2017 .bash_logout
-rw-r--r-- 1 root root 3526 May 15 2017 .bashrc
-rw-r--r-- 1 root root 675 May 15 2017 .profile
leviathan0@leviathan:~$ cd .backup/
leviathan0@leviathan:~/.backup$ ls -al
total 140
drwxr-x--- 2 leviathan1 leviathan0 4096 Aug 26 2019 .
drwxr-xr-x 3 root root 4096 Aug 26 2019 ..
-rw-r----- 1 leviathan1 leviathan0 133259 Aug 26 2019 bookmarks.htmlleviathan0@leviathan:~/.backup$ file bookmarks.html
bookmarks.html: HTML document, ASCII text, with very long lines
home 디렉터리에는 .backup 디렉터리가 들어있고, 그 디렉터리 안에는 bookmarks.html이라는 html 파일이 들어있다.
해당 파일 내용을 확인해보니까 여러개의 a 태그가 있고, 그 태그 안에 add_date, last_charset, id등의 속성이 있다.
해당 파일 안에서 password 문자열을 검색해보자
leviathan0@leviathan:~/.backup$ cat bookmarks.html | grep password
<DT><A HREF="http://leviathan.labs.overthewire.org/passwordus.html | This will be fixed later, the password for leviathan1 is rioGegei8m" ADD_DATE="1155384634" LAST_CHARSET="ISO-8859-1" ID="rdf:#$2wIU71">password to leviathan1</A>
leviathan0@leviathan:~/.backup$
password를 획득했다.
id: leviathan1
pw: rioGegei8m