Flight HTB

IP

10.129.31.185

initial nmap scan

sudo nmap -p- --min-rate 10000 10.129.31.185 | cut -d"/" -f1 | tr '\n' ','

we have the following ports open

53,80,88,135,139,389,445,464,593,636,3268,3269,5985,9389,49501,49666,49675,49676,49700
  • Most likely a domain controller given the presence of DNS, LDAP, KERBEROS etc

Lets run a more in-depth scan of the target

sudo nmap -sCV -p53,80,88,135,139,389,445,464,593,636,3268,3269,5985,9389,49501,49666,49675,49676,49700 -oA port_scan 10.129.31.185

results

PORT      STATE SERVICE       VERSION
53/tcp    open  domain        Simple DNS Plus
80/tcp    open  http          Apache httpd 2.4.52 ((Win64) OpenSSL/1.1.1m PHP/8.1.1)
| http-methods: 
|_  Potentially risky methods: TRACE
|_http-server-header: Apache/2.4.52 (Win64) OpenSSL/1.1.1m PHP/8.1.1
|_http-title: g0 Aviation
88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2024-01-14 05:21:18Z)
135/tcp   open  msrpc         Microsoft Windows RPC
139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn
389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: flight.htb0., Site: Default-First-Site-Name)
445/tcp   open  microsoft-ds?
464/tcp   open  kpasswd5?
593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
636/tcp   open  tcpwrapped
3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: flight.htb0., Site: Default-First-Site-Name)
3269/tcp  open  tcpwrapped
5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
9389/tcp  open  mc-nmf        .NET Message Framing
49501/tcp open  msrpc         Microsoft Windows RPC
49666/tcp open  msrpc         Microsoft Windows RPC
49675/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
49676/tcp open  msrpc         Microsoft Windows RPC
49700/tcp open  msrpc         Microsoft Windows RPC
Service Info: Host: G0; OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
|_clock-skew: 6h59m54s
| smb2-time: 
|   date: 2024-01-14T05:22:18
|_  start_date: N/A
| smb2-security-mode: 
|   3:1:1: 
|_    Message signing enabled and required

what can we see

  • we have a window's server, most likely a domain controller

  • we have a domain name of flight.htb we can add this to our hosts file

  • we have a http web server Apache 2.4.52 (win64)

  • we have a time difference with kerberos

Lets see if there is anonymous access to any of the services

DNS

Lets see if we can perform a zone transfer

  • transfer failed

RPC

Lets see if we can access RPC via an anonymous bond

  • No luck

LDAP

Lets see if we can find any information via a anonymous bond

results

  • other then the domain name we dont really find any new information

SMB

  • No luck

Lets check out the web server

we are greeted with a static page, pretty much no functionality

.

Lets see if we can find any sudomains

we do find one subdomain

Lets check out this subdomain

we do find what looks to be like a PHP function, that loads the pages on the server

could be a possible LFI situation here,

Which it is indeed

Last updated