Cicada HTB Walkthrough

Nov 1, 2024    #box   #htb   #easy   #windows   #active-directory   #ldap   #rpc   #sebackupprivilege  

Cicada Hack The Box Walkthrough/Writeup:

How I use variables & Wordlists:

1. Enumeration:

NMAP:

Basic Scans:

Comprehensive Scans:

LDAP 389:

Using LDAP anonymous bind to enumerate further:

DNS 53:

Kerberos 88:

Using Kerbrute to bruteforce Usernames:

RPC:

SMB 445:

Attempting to connect with NULL & Guest sessions:

Enumerating the HR Share:

Finding a hard-coded cred in “Notice from HR.txt”:

Using impacket-lookupsid:

Password Spraying:

Why does guest appear beside all the names?

2. Foothold:

Enumerating as michael.wrightson:

Enumerating users using RPC:

As we have credentials we can perform credentialed RPC enumeration now.

Finding a password in the description field via RPC:

Enumerating as david.orelius:

Finding a backup script in the DEV share.

Finding credentials in the backup script:

Authenticating as emily.oscars:

3. Privilege Escalation:

Discovering we are part of the backup operators group:

Backup Operators & SeBackupPrivilege Primer:

4. Ownership:

Dumping Registry Hives & extracting creds using secretsdump:

5. Persistence:

Dumping NTDS.dit:

Creating a Kerberos Golden Ticket:

Golden Ticket Curiosities:

I always get the error [-] Kerberos SessionError: KDC_ERR_TGT_REVOKED(TGT has been revoked) when trying to use the mimikatz generated one. I have done various testing and unsure as to why.

Lessons Learned:

What did I learn?

  1. This was mainly about enumeration. Enumerating well and thoroughly.

What silly mistakes did I make?

  1. Frustratingly trying to determine the mimikatz ticket issue, it’s annoying me. So it’s not a mistake. Just grinding my gears until I figure it out.

Sign off:

Remember, folks as always: with great power comes great pwnage. Use this knowledge wisely, and always stay on the right side of the law!

Until next time, hack the planet!

– Bloodstiller

– Get in touch bloodstiller at proton dot me



Next: Authority HTB Walkthrough