This vuln target have an interesting Description: This VM tells us that there are a couple of lovers namely Alice and Bob, where the couple was originally very romantic, but since Alice worked at a private company, “Ceban Corp”, something has changed from Alice’s attitude towards Bob like something is “hidden”, And Bob asks for your help to get what Alice is hiding and get full access to the company!
Princeling-Mac at ~ ❯ nmap -T5 -sP 192.168.56.0/24 Starting Nmap 7.80 ( https://nmap.org ) at 2020-08-21 17:38 CST Nmap scan report for promote.cache-dns.local (192.168.56.1) Host is up (0.00073s latency). Nmap scan report for promote.cache-dns.local (192.168.56.100) Host is up (0.00033s latency). Nmap scan report for promote.cache-dns.local (192.168.56.102) Host is up (0.00050s latency). Nmap done: 256 IP addresses (3 hosts up) scanned in 1.84 seconds Princeling-Mac at ~ ❯ nmap -p- 192.168.56.102 Starting Nmap 7.80 ( https://nmap.org ) at 2020-08-21 17:48 CST Nmap scan report for promote.cache-dns.local (192.168.56.102) Host is up (0.0034s latency). Not shown: 65533 filtered ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http
80 端口应该是我们的突破点
nikto 扫描了一下、发现了几个 php 文件,但没头绪,机智的我打开了网页源代码。
1
Who are you? Hacker? Sorry This Site Can Only Be Accessed local!<!-- Maybe you can search how to use x-forwarded-for -->
alice@gfriEND:~$ ls -al total 32 drwxr-xr-x 4 alice alice 4096 Dec 13 2019 . drwxr-xr-x 6 root root 4096 Dec 13 2019 .. -rw------- 1 alice alice 10 Dec 13 2019 .bash_history -rw-r--r-- 1 alice alice 220 Dec 13 2019 .bash_logout -rw-r--r-- 1 alice alice 3637 Dec 13 2019 .bashrc drwx------ 2 alice alice 4096 Dec 13 2019 .cache drwxrwxr-x 2 alice alice 4096 Dec 13 2019 .my_secret -rw-r--r-- 1 alice alice 675 Dec 13 2019 .profile alice@gfriEND:~$ cd .my_secret/ alice@gfriEND:~/.my_secret$ ls flag1.txt my_notes.txt alice@gfriEND:~/.my_secret$ cat flag1.txt Greattttt my brother! You saw the Alice's note! Now you save the record information to give to bob! I know if it's given to him then Bob will be hurt but this is better than Bob cheated!
Now your last job is get access to the root and read the flag ^_^
Flag 1 : gfriEND{2f5f21b2af1b8c3e227bcf35544f8f09} alice@gfriEND:~/.my_secret$ cat my_notes.txt Woahhh! I like this company, I hope that here i get a better partner than bob ^_^, hopefully Bob doesn't know my notes
😂,原来是 Alice 不要 Bob 了!!最后一个问题,flag 是什么,这需要我们拿到 root 权限。
Yeaaahhhh!! You have successfully hacked this company server! I hope you who have just learned can get new knowledge from here :) I really hope you guys give me feedback for this challenge whether you like it or not because it can be a reference for me to be even better! I hope this can continue :)
Contact me if you want to contribute / give me feedback / share your writeup! Twitter: @makegreatagain_ Instagram: @aldodimas73
Thanks! Flag 2: gfriEND{56fbeef560930e77ff984b644fde66e7}
Comments