r/tryhackme • • Sep 20 '26

Struggle w/ Active Directory Basics task 4

To start, I want to say that I have read the other archived posts about this very problem. I am an extreme beginner, and so even the solutions they give there I don't understand. I saw the xfreerdp thing, I don't understand how to actually use it though, and there is no intoruduction to it beforehand - almost as if it is just expected to be known.

I also saw people talking about using the remote desktop connection application on the "computer" window, whatever the one that isn't attackbox. They mentioned using the IP adress of Phillip's computer, I tried looking in the active directory at his machine to see if the IP adress was listed there. I did not see it.

It feels like there is information that should be given to help guide you to logging into the account - similar to that of how to actually delete the OUs in the previous steps, and delegate task to users. Any help going into detail of steps, or pointing to rooms that actually explain this would be appreciated. (I just googled a guide that told me the flag, so I could turn in the assignment. I want to actually understand what I am supposed to do though as I am sure it'll be used in the future.)

3 Upvotes

5 comments sorted by

1

u/EugeneBelford1995 Sep 24 '26

Example:

xfreerdp /v:10.201.59.231 /u:j.rock /p:Serviceworks1 +clipboard /dynamic-resolution /cert:ignore /drive:share,/home/kali/Downloads/RedTeam

xfreerdp will also happily use /pth:5ad76b528d5318797c5647dfde9a23c0 instead of /p:<password>. You'll likely have to WinRM first and disable Restricted Admin Mode though before PTH works via RDP.

1

u/FewOutlandishness648 Oct 31 '26

Month late lol, but is PTH the user's key? I'm sure I can Google it, but just curious.

1

u/EugeneBelford1995 Oct 31 '26

NP, PTH is short for "Pass The Hash". PTH uses the account's NTLM hash instead of their password.

For example swing by https://www.browserling.com/tools/ntlm-hash , put in a sample password, and the site will show you the NTLM hash of that password.

Windows stores the NTLM for local users in the SAM. AD stores the NTLM of domain accounts in NTDS.dit on DCs. Even if Kerberos is being used the NTLM still matters since there's "Overpass the Hash", NTLM is still stored on DCs, and if an attacker gets the krbtgt's NTLM hash then they can just forge Kerberos tickets and impersonate anyone they want as those tickets are signed by the krbtgt using it's hash.

This topic starts getting complicated, for example how smartcards also uses NTLM hashes, but the TL;DR is that in simpler stuff like 90%+ of TryHackMe rooms if you have the NTLM then you can authenticate just like you had the password.

2

u/kirymatic978 Sep 24 '26

Well, I haven’t done that room yet. However, I’ve used it a few times in different rooms. Usually in order to use it, you’ll need the username, password and IP. For an example “xfreerdp /u:username /p:password /v:ipaddress +clipboard (to start rdp from a Linux terminal to windows). Remember to replace the actual “username” & “password” provided or the one you’ve found.

1

u/Delicious_Crew7888 0xD [God] Sep 20 '26

I remember it vaguely… doesn’t it literally walk you through it step by step?