RustScan


┌──(kali㉿kali)-[~/archive/thm/yearoftheowl]
└─$ rustscan -a $IP
________________________________________
: http://discord.skerritt.blog         :
: https://github.com/RustScan/RustScan :
 --------------------------------------
I scanned ports so fast, even my computer was surprised.
 
[~] The config file is expected to be at "/home/kali/.rustscan.toml"
[~] Automatically increasing ulimit value to 10000.
Open 10.10.150.245:80
Open 10.10.150.245:139
Open 10.10.150.245:443
Open 10.10.150.245:445
Open 10.10.150.245:3389
Open 10.10.150.245:3306
Open 10.10.150.245:5985
Open 10.10.150.245:47001

Nmap


┌──(kali㉿kali)-[~/archive/thm/yearoftheowl]
└─$ nmap -p- $IP                   
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-09 16:18 CEST
Nmap scan report for 10.10.150.245
Host is up (0.030s latency).
Not shown: 65527 filtered tcp ports (no-response)
PORT      STATE SERVICE
80/tcp    open  http
139/tcp   open  netbios-ssn
443/tcp   open  https
445/tcp   open  microsoft-ds
3306/tcp  open  mysql
3389/tcp  open  ms-wbt-server
5985/tcp  open  wsman
47001/tcp open  winrm
 
Nmap done: 1 IP address (1 host up) scanned in 320.09 seconds
 
 
┌──(kali㉿kali)-[~/archive/thm/yearoftheowl]
└─$ nmap -Pn -sC -sV -p80,139,443,445,3306,3389,5985,47001 $IP
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-09 16:19 CEST
Nmap scan report for 10.10.150.245
Host is up (0.039s latency).
 
PORT     STATE SERVICE       VERSION
80/tcp   open  http          Apache httpd 2.4.46 ((Win64) OpenSSL/1.1.1g PHP/7.4.10)
|_http-title: Year of the Owl
|_http-server-header: Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.10
139/tcp  open  netbios-ssn   Microsoft Windows netbios-ssn
443/tcp  open  ssl/http      Apache httpd 2.4.46 ((Win64) OpenSSL/1.1.1g PHP/7.4.10)
| ssl-cert: Subject: commonName=localhost
| Not valid before: 2009-11-10T23:48:47
|_Not valid after:  2019-11-08T23:48:47
|_http-server-header: Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.10
| tls-alpn:
|_  http/1.1
|_ssl-date: TLS randomness does not represent time
|_http-title: Year of the Owl
445/tcp  open  microsoft-ds?
3306/tcp open  mysql?
| fingerprint-strings:
|   NULL, SMBProgNeg:
|_    Host 'ip-10-9-3-3.eu-west-1.compute.internal' is not allowed to connect to this MariaDB server
3389/tcp open  ms-wbt-server Microsoft Terminal Services
| ssl-cert: Subject: commonName=year-of-the-owl
| Not valid before: 2024-09-08T14:17:42
|_Not valid after:  2025-03-10T14:17:42
| rdp-ntlm-info:
|   Target_Name: YEAR-OF-THE-OWL
|   NetBIOS_Domain_Name: YEAR-OF-THE-OWL
|   NetBIOS_Computer_Name: YEAR-OF-THE-OWL
|   DNS_Domain_Name: year-of-the-owl
|   DNS_Computer_Name: year-of-the-owl
|   Product_Version: 10.0.17763
|_  System_Time: 2024-09-09T14:20:06+00:00
|_ssl-date: 2024-09-09T14:20:44+00:00; 0s from scanner time.
5985/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
47001/tcp open  http    Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port3306-TCP:V=7.94SVN%I=7%D=9/9%Time=66DF0409%P=x86_64-pc-linux-gnu%r(
SF:NULL,65,"a\0\0\x01\xffj\x04Host\x20'ip-10-9-3-3\.eu-west-1\.compute\.in
SF:ternal'\x20is\x20not\x20allowed\x20to\x20connect\x20to\x20this\x20Maria
SF:DB\x20server")%r(SMBProgNeg,65,"a\0\0\x01\xffj\x04Host\x20'ip-10-9-3-3\
SF:.eu-west-1\.compute\.internal'\x20is\x20not\x20allowed\x20to\x20connect
SF:\x20to\x20this\x20MariaDB\x20server");
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
 
Host script results:
| smb2-time:
|   date: 2024-09-09T14:20:08
|_  start_date: N/A
| smb2-security-mode:
|   3:1:1:
|_    Message signing enabled but not required
 
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 52.90 seconds

The target system appears to be a Windows host The hostname appears to be year-of-the-owl

The hostname has been appended to the /etc/hosts file on Kali for local DNS resolution

UDP


┌──(kali㉿kali)-[~/archive/thm/yearoftheowl]
└─$ sudo nmap -Pn -sU -top-ports 10 $IP --open
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-09 18:41 CEST
Nmap scan report for year-of-the-owl (10.10.150.245)
Host is up.
 
PORT     STATE         SERVICE
53/udp   open|filtered domain
67/udp   open|filtered dhcps
123/udp  open|filtered ntp
135/udp  open|filtered msrpc
137/udp  open|filtered netbios-ns
138/udp  open|filtered netbios-dgm
161/udp  open|filtered snmp
445/udp  open|filtered microsoft-ds
631/udp  open|filtered ipp
1434/udp open|filtered ms-sql-m
 
Nmap done: 1 IP address (1 host up) scanned in 3.12 seconds

Lots of false-positive Nmap is unable to detect if those ports were indeed open and active But there is SNMP