# Nmap 7.95 scan initiated Fri Apr 11 14:44:10 2025 as: nmap -e utun4 -sC -sV -vv -oA nmap/default 10.10.11.55 Increasing send delay for 10.10.11.55 from 0 to 5 due to 11 out of 31 dropped probes since last increase. Increasing send delay for 10.10.11.55 from 5 to 10 due to 11 out of 20 dropped probes since last increase. Nmap scan report for 10.10.11.55 Host is up, received echo-reply ttl 63 (0.53s latency). Scanned at 2025-04-11 14:44:24 CST for 52s Not shown: 998 closed tcp ports (reset) PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 8.9p1 Ubuntu 3ubuntu0.10 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 256 73:03:9c:76:eb:04:f1:fe:c9:e9:80:44:9c:7f:13:46 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGZG4yHYcDPrtn7U0l+ertBhGBgjIeH9vWnZcmqH0cvmCNvdcDY/ItR3tdB4yMJp0ZTth5itUVtlJJGHRYAZ8Wg= | 256 d5:bd:1d:5e:9a:86:1c:eb:88:63:4d:5f:88:4b:7e:04 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDT1btWpkcbHWpNEEqICTtbAcQQitzOiPOmc3ZE0A69Z 80/tcp open http syn-ack ttl 63 Apache httpd 2.4.52 |_http-title: Did not follow redirect to http://titanic.htb/ | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-server-header: Apache/2.4.52 (Ubuntu) Service Info: Host: titanic.htb; OS: Linux; CPE: cpe:/o:linux:linux_kernel
Read data files from: /opt/homebrew/bin/../share/nmap Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . # Nmap done at Fri Apr 11 14:45:16 2025 -- 1 IP address (1 host up) scanned in 66.11 seconds
站点有一个表单可以填写,提交会重定向到下载文件的接口,接口参数是完整文件名故尝试目录穿越 developer:x:1000:1000:developer:/home/developer:/bin/bash 可知用户名为 developer,暂无 user shell 但可拿到 user flag 获取源码
# Generate a unique ID for the ticket ticket_id = str(uuid4()) json_filename = f"{ticket_id}.json" json_filepath = os.path.join(TICKETS_DIR, json_filename)
# Save the data as a JSON file with open(json_filepath, 'w') as json_file: json.dump(data, json_file)
# Redirect to the download URL with the ticket filename return redirect(url_for('download_ticket', ticket=json_filename))