┌──(mikannse㉿kali)-[~/HTB/celestial] └─$ sudo nmap --min-rate=10000 -p- 10.10.10.85 Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-16 11:40 CST Nmap scan report for 10.10.10.85 Host is up (0.074s latency). Not shown: 64359 closed tcp ports (reset), 1175 filtered tcp ports (no-response) PORT STATE SERVICE 3000/tcp open ppp
Nmap done: 1 IP address (1 host up) scanned in 12.83 seconds
┌──(mikannse㉿kali)-[~/HTB/celestial] └─$ sudo nmap -sT -sC -sV -O -p3000 10.10.10.85 Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-16 11:41 CST Nmap scan report for 10.10.10.85 Host is up (0.072s latency).
PORT STATE SERVICE VERSION 3000/tcp open http Node.js Express framework |_http-title: Site doesn't have a title (text/html; charset=utf-8). Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Aggressive OS guesses: Linux 3.12 (96%), Linux 3.13 (96%), Linux 3.16 (96%), Linux 3.2 - 4.9 (96%), Linux 3.8 - 3.11 (96%), Linux 4.8 (96%), Linux 4.4 (95%), Linux 4.9 (95%), Linux 3.18 (95%), Linux 4.2 (95%) No exact OS matches for host (test conditions non-ideal). Network Distance: 2 hops OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 17.11 seconds
Web
扫描结果得知是一个express框架,进去之后页面只有一行”Hey Dummy 2 + 2 is 22”
ReferenceError: awfawgwagawfawgwag is not defined at eval (eval at <anonymous> (/home/sun/server.js:13:29), <anonymous>:1:1) at /home/sun/server.js:13:16 at Layer.handle [as handle_request] (/home/sun/node_modules/express/lib/router/layer.js:95:5) at next (/home/sun/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/home/sun/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/home/sun/node_modules/express/lib/router/layer.js:95:5) at /home/sun/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/home/sun/node_modules/express/lib/router/index.js:335:12) at next (/home/sun/node_modules/express/lib/router/index.js:275:10) at cookieParser (/home/sun/node_modules/cookie-parser/index.js:70:5)