k3nn3dy commited on
Commit
ad86d76
·
verified ·
1 Parent(s): 8f00830

Add HackTheBox_-_Voleur.jsonl

Browse files
Files changed (1) hide show
  1. HackTheBox_-_Voleur.jsonl +155 -0
HackTheBox_-_Voleur.jsonl ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"text": "What's going on YouTube? This is IPSG me doing Valora from Hack the Box, which is a nice active directory box that's all about lateral privac and pillaging shares. It starts off with discovering a document in a fileshare, giving us credentials to a deleted user and two service accounts. One of these accounts is for LDAP and this account is a member of a group called restore users. So, it's likely we can restore a deleted user. This is automated in Net Exec, but not on the main branch yet. So, I don't expect many people to know about it. The intended path is to use this LDAP account to perform a targeted Kerros attack against the WinRM account, letting us get a shell on the box, then use run CS to switch to LDAP, giving us the ability to use PowerShell's AD module to restore the user. From here, we get access to the deleted users", "start": 0.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
2
+ {"text": "profile, which contains DPappy encrypted blobs, one of which to another user that can download an AD backup so we can run secret stump to get root. Uh, one quick note, my old keyboard failed, so I switched to acquired a keyboard for this video. Hopefully the clicketity clack is back next video. So with all that being said, let's jump in. As always, we're going to start off with the end map. So - SC for default scripts, SV enumerate versions, - VV for double verose. This gives us things like the TTL OA output all formats put in the end map directory and call it Valor. And then the IP address of 10101.76. This can take some time to run, so I've already ran it. Looking at the results, we have 12 ports open. The first one being DNS on port 53. And the banner tells us it's simple DNS plus. And whenever seeing this, I always scroll down and look to confirm. Yes, active", "start": 39.92, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
3
+ {"text": "directory is at play. It's giving us the domain name of valor.htb. And that's it. Normally, we're used to seeing like an SSLert with this LDAP that also gives us the host name of the box because that's going to be the common name. Um, also like if you have that SSLert, you can see the certificate authority. And oftentimes it would be like the host name-ltda or something like that that indicates active directory certificate services installed. We don't have any of that. So, um, yeah, I'm just going to go ahead real quick and add it to my host file. So, pseudo vty host. Then we can add 1010176.", "start": 86.24, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
4
+ {"text": "We'll put valor.htb. And I also always like adding the host name of the box since um the LDAP certificate's not giving it. We can just use something like net exec to pull it, right? So, we'll do net exec SMB 101176.", "start": 120.719, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
5
+ {"text": "And that will connect us over to the SMB service on this box. and we get the host name which is just DC. Additionally, it tells us NLM is disabled. So, we can't do any NLM authentication. We'll have to be using Cobros. So, let's just go ahead and add the DC. And I'm also going to do DC.valor.htb. So, we have all three ways we could reference this machine. So, let's see what else we have, right? Um, Kobos, nothing too interesting. A bunch of RPC stuff. Lap, we already talked about 445. So we have SMB which we connected to via net exec. So we know that um nothing really too interesting here. The odd thing is on port 2222 we do have SSH.", "start": 136.08, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
6
+ {"text": "The TTL is 127 and then the banner is also telling us it's Ubuntu. So I don't know exactly what's at play here. Maybe it's like WSL, the Windows Subsystem for Linux or something because if this was a complete VM, I would expect the TTL to be decremented an extra time because you got an extra hop. Additionally, um Linux's default TTL is 64. So, I'd really expect to see this TTL to be like 62 or something like that. So, it's odd that it's 127. I know it's not running like the um SSH for Windows because we have the banner telling us it's Ubuntu. So, I can't really explain what's going on here other than um it's odd and we have an SSH with a Linux server. Uh other things to note, uh we have another LDAP port. Um nothing really too interesting, right? So scrolling down, uh, we do see a clock skew of eight", "start": 179.68, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
7
+ {"text": "hours. So before doing anything Kerros related, we'll probably have to run NTP date to sync the time. And we know we're probably going to have to run Kerros stuff because well, uh, we saw NLM authentication was disabled, right? So let's just go ahead real quick and generate our Kerros host file. I like using net exec for that. So we'll do net exec SMB10101.76. Really, whenever doing Kerros stuff, you should use the um host name. So we'll do that instead. You don't have to because Net Exec is smart enough to pull it, but a lot of tools aren't. So, um, it's nice habit to get into. And then we'll do the gen kob 5 file. I want to say this is I probably got this name wrong, but let's just see. Um, I did.", "start": 228.239, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
8
+ {"text": "Is it KB file? NXE-h. Oh, we have to do SMB.", "start": 271.36, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
9
+ {"text": "KB UC cache generate. I have to spell it. Okay, there we go. So, that's going to give us the Kerros file. And if you want to look at it, you can. It's just this, right?", "start": 279.12, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
10
+ {"text": "Um, the key thing is it just configures Kerros for us. So, any like default Linux tool we use should just magically work, right? So, let's just do CP um this Valor Kobe B over etsy karobb5.com and then we can start progressing. This is an assumed breach box. So, we start out with a set of credentials. So, I'm just going to go plug these in. So, we can do Ryan Naylor. So, let's go back to our um net exec command and get rid of this dash Ryan Naylor. And the password is going to be this hollow October 31yt.", "start": 294.72, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
11
+ {"text": "And we run this and oh, S's not supported. We have to add the Kerros flag, right? So, that's going to um tell us the clock is wrong. Let's do this. The third time is the charm, right? Uh so we're setting the time now with NTP date. Running it again. And come on. Authentication success.", "start": 330.96, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
12
+ {"text": "That was odd. Okay. I'm not sure exactly what went on there, but there we go. We have an authentication. Um it doesn't say prone because we don't have any type of shell. Um we could also test SSH. So, I think it's SSH and then um maybe it's like d-port222.", "start": 351.919, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
13
+ {"text": "Let's see if that works. There we go. And we don't get in.", "start": 371.919, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
14
+ {"text": "Um I think Net Exec does does support Keraros over SSH. I don't know if it does. I know there's APR in order to do that, but um I don't think that um disabling NLM would block us from using a username password on SSH. So, let's go back to the SMB. We can run a d-shares to see if there's any open file shares.", "start": 377.84, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
15
+ {"text": "And oh, I'm on port. Okay. I was like, something is going weird. But that is just me forgetting I had that flag in. And we have to do the dash k.", "start": 403.039, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
16
+ {"text": "There we go. So, let's see. Do we have any file shares on this box?", "start": 416.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
17
+ {"text": "Um, it's pulling. It's thinking.", "start": 421.759, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
18
+ {"text": "Let's see. We have admin. See, there's a default. Finance, HR. We don't have read permissions there. We have an IT share which we can read net login and cisvall.", "start": 427.199, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
19
+ {"text": "So let's go ahead and run rust town. So I'll do um rust town ce the domain valor htb user ryan nailer and the password is not that. We'll delete this and then go ahead and grab that password again.", "start": 439.039, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
20
+ {"text": "Save that. And while that's running, let's just go into my opth blood hound server directory. We can do a docker compose up-d to start the Blood Hound service. And we're going to start importing um these files, right? So, let's just click here and then we're going to go to HTB valor, give it all these JSON files, upload, close. And if I go over to the administration service, it is ingesting and it'll take a a minute or two to upload. So while that goes, let's just take a look at that SMB, right? We had I think it was the um it share. I'm going to run that again while we just type out this SMB client command. And we have to remember we have to use Kerros. So with SMB client, I'm going to use realm is equal to the domain and then u um the username or the domain is valor.htb. htb Ryan nailer percent the", "start": 460.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
21
+ {"text": "password which is hollow 31 night like that. Let's put this in single quotes. I'm going to add the dash l. It's going to show me all the shares because I just want to make sure I did this um command correctly. So, we run this. You could also use like SMB client.py. Um, I just like using SMB client because I'm used to all the syntax, right? Uh, it's also got a little bit less signatures because a lot of times, um, impact itself will be signed, uh, or not signed, but like heavily sigged things like the, um, Kerros ticket options. Uh, it even looks different on like the actual um, wire. There's a like process ID, I want to say, in Wireshark that it's going to be unique to impact it. There's a bunch of ways you can say impact it. So when I can, I normally avoid using it um just in case the client has heavily signatured it. Um SMB client itself can", "start": 522.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
22
+ {"text": "also be signatured, but it's more legitimate use case than impact. Right? You may see CIS admins using SMB client, especially when we see there is an SSH server here on port 2222. Um you'll almost never see a CIS admin just randomly deciding to use MP packet, right? That just doesn't happen. Uh we do have an Excel file. So let's go ahead and download this and we can exit out of SMB client. And let's see if we try to open access review. Liberty office is thinking.", "start": 580.8, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
23
+ {"text": "Um we need a password to open it. So we can't open this. Uh let's cancel out whatever. Um, we're going to use is it office to John? There we go. On this file, that's going to give us a hash which we can just pass into hashcat. So, I'm going to do sh to the kraken. Um, you can run hashcat anywhere. I like running it on a different host, especially when I'm recording because cracking is a very CPU intensive process, which could lead to just random issues like drop frames and things like that. Um, I just recommend doing it on anything but a VM because it is CPU intensive and likes to use the GPU and VMs don't play well with that. So, let's do hashcat the file opt word list rocku. We'll see if this ends up cracking. Uh, we need to specify the hash. What be hashes? I did not expect that honestly.", "start": 617.839, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
24
+ {"text": "Um, maybe we need to say d- user because it did put the uh file name and then the hash. Uh, it's probably going to be now mode 9600 ms office. That looks much better than generic hash, right? Um, hopefully this cracks. If it doesn't, then I'll probably just switch over to use John.", "start": 677.12, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
25
+ {"text": "But I know hashcat can crack office files. So, um, those other modes are definitely confusing me. The Python interpreter, free threading, things like that. Um, there we go. It has started. How long does this think it will take? Uh, where is the time? Uh, come on. Where's time recovered? I must be blind. We're Oh, we're done. Um, so we can do dash user d-show.", "start": 699.2, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
26
+ {"text": "I probably have to get rid of the word list. There we go.", "start": 736.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
27
+ {"text": "Um, show with username and diamond calls. Oh, we need the hash. There we go. Um, the password is going to be football one. So, let's go ahead and try this.", "start": 749.279, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
28
+ {"text": "So, I'm going to open this file back up. Football one.", "start": 764.32, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
29
+ {"text": "And it opens this Excel document. Awesome. So, let's see. Ryan Naylor has Kerros pre-off disabled. Let's see. We have Todd Wolf um who left and it says the password, but the user account is disabled. So, if we try to use this, it's probably just not going to let us.", "start": 770.32, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
30
+ {"text": "Um, so let's just go back over to our net exec.", "start": 788.56, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
31
+ {"text": "Uh, what is it? Todd dot is it two? Did I spell that correctly? Yep. Wolf with a e. Let's just confirm they have deleted him.", "start": 794.32, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
32
+ {"text": "Every now and then you see like they say the account is deleted, but it's not really deleted. Um, but we get a principal unknown. So, chances are this account is definitely gone, right?", "start": 805.519, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
33
+ {"text": "Uh, let's see. Jeremy Combmes has access to software folder administrator not to be used for daily tasks. Uh, service backup password is speak to Jeremy. Um, let's see. Service LDAP. And we got a password. So, let's try this. So, svc LDAP. Try this password.", "start": 817.279, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
34
+ {"text": "And that works. So we have an LDAT password service IIS and we got this password. So let's see I put this in and we get the password and then WinRM need to ask Lacy if she has reset this recently. So, we got two credentials out of this, LDAP and IIS. Let's go over to the Blood Hound data now that it's definitely done ingesting. And we can set all our users to owned. So, what was our first user? Or Ryan. So, let's go to Ryan. We'll mark Ryan as owned.", "start": 844.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
35
+ {"text": "And then we have the service LDAP. We can mark them as owned.", "start": 886.32, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
36
+ {"text": "I also want to see what groups LDAP is a part of. So let's just say owned member of users. There is a restore user group and domain users. So it looks like LDAP can undo deletes in active directory. We saw Todd Wolf in the Excel was deleted. So chances are we can use this service LDAP in order to restore them, right? Um we also got a service III. So let's see what this is. And we can say add to owned.", "start": 893.44, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
37
+ {"text": "And I like seeing what members this is of only two. Um is going to be users and domain users. So now let's go run our cipher query and we can say shortest paths from owned principles or owned objects I guess it is. Now run this. And we don't want to restore pages. Let's see. Okay, there we go. So, let's see what we have. Um, three users are a member of domain users. So, that's not too interesting. Um, service LDAP can write the SPN of service winrm and winrm is a member of remote management users. So, this is going to be the intended path. We can use service LDAP to take over the WinRM user and then get remote access into it. There is another path. Um, we can use service LDAP directly to restore the user and then restore Todd Wolf's account. Right?", "start": 926.639, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
38
+ {"text": "The intended path is meant to be easier. We jump through LDAP to WinRM. We get access to a shell and then we can use run as CS to switch to the LDAP user.", "start": 990.72, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
39
+ {"text": "And then with PowerShell on the domain controller, it's much easier to restore the object, right? But there are tools within net exec to automatically restore objects without needing a shell. So the only reason we're going to be doing this whole targeted CBRO step with write SPN is because um it's not common knowledge on how to restore deleted objects without having a shell on a Windows box.", "start": 1001.36, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
40
+ {"text": "Hopefully that makes sense. So we're going to go through this path first and then after we get um the object restored through the PowerShell, we're going to go and show the other way, right? So we want to do a targeted kerros attack from service LDAP to write SPN because that's how we get remote access to this box. Right? If I went to um service LDAP and we change this to winr RM, it's going to um say we can't log in.", "start": 1026.559, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
41
+ {"text": "Uh, invalid NTM challenge. That should have used Kerros.", "start": 1055.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
42
+ {"text": "Um, okay, that's fine. Uh, let's see. So, we want to do a targeted Karost attack. So, I'm going to use bloody AD and we'll use um what is the flags?", "start": 1061.84, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
43
+ {"text": "We have to specify the host and domain I want to say. So dash D and then we'll use um DCIP. Oh no, host. There we go. So let's do bloody ad- dalor.htb host DC valor htb and then um user is going to be svc_ld.", "start": 1079.2, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
44
+ {"text": "The password is where is that? right here.", "start": 1105.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
45
+ {"text": "We can grab this. Paste that in.", "start": 1112.32, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
46
+ {"text": "Uh let's see. We also want to add dash k for kerros. And then we want to set object. And then was it service winrm and then the service principle name. And we're going to set that attribute http slash uh please subscribe. It doesn't matter what we set the um attribute to.", "start": 1118.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
47
+ {"text": "It can be anything. Um because once it's attributes here, that's going to be what enables us to do the code roasting attack. I think the default thing would be http dc.valor.http would be the most common. There's also a python script called targeted karost which would um automatically do all this for you, but I like just doing it manually. Um not exactly sure why. I think it's mainly just because I don't like having to like download 50 scripts. I just like having as little tools as I can. So, we can do nxc. I want to say it's LDAP and then d- ker roasting, right? Uh ker roast expects one argument. I'm just going to give it a dash. And that should I need the k.", "start": 1140.799, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
48
+ {"text": "There we go. We get a hash. Did that save a file as a dash? It did save a file as a dash. I was hoping that would be like just output the standard out, but it did not do that. Maybe I need to give it like dev null. So, let's save this and then let's go back into the Kraken. Um, go in hashcat v hashes valor uh ker roast. I guess uh that's a password.", "start": 1192.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
49
+ {"text": "paste that hashc cat um the file opt word list rock and we'll start cracking this and while it cracks mode wonder if something's going wrong why is that detecting everything I didn't rebuild hashcat lately I have no idea Um, okay. But while that's going, I'm going to use bloody AD again. And if we give it the set object, this is going to unset the service principle name. So if we run this whole net exec command again, it's not going to be able to get the um hash because we unset the principal name. So there's no more um coarosing. It looks like it has cracked. So, let's just do a d-show. And let's delete the word list.", "start": 1221.6, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
50
+ {"text": "And let's see this password. Um, a fire inside.", "start": 1286.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
51
+ {"text": "I'm guessing maybe I don't know what this is. Maybe that's an album name. Um, I'm just saying album name because AFI is at the end of it. Uh, let's see.", "start": 1294.48, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
52
+ {"text": "service winrm. Paste this in.", "start": 1308.159, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
53
+ {"text": "We can get rid of kerber roasting winrm.", "start": 1314.799, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
54
+ {"text": "Let's see. It says dash k for kerus.", "start": 1327.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
55
+ {"text": "Wonder if something's wrong with my net exec.", "start": 1335.28, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
56
+ {"text": "Oh, nx winm only supports nlm. Okay, helps to read. So let's now switch over to um evil winrm and we can give it dash i dc valor htb user service winr rm the password this and let's see how do we specify keraruse um there we go dash r required if not using curro There's it looks like we have to use um the Ccash Kache files.", "start": 1342.96, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
57
+ {"text": "Let's try this real quick. Set the realm. Yeah. So, I'm going to do a get TGT. Um and this is going to be valor http service winrm the password. And this should get us a C cache file.", "start": 1389.6, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
58
+ {"text": "We can say evil winrm. We no longer need the password. I don't think we need the username as well. I think we just use realm. Um, KB 5cc name is equal to the cache file.", "start": 1409.2, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
59
+ {"text": "And awesome, we get in. So what we want to do now is get run as CS on this box so it can switch over to the LDAP user. So let's go ahead and make a directory dubdubdubdub. And then I'm going to cp opt collection.", "start": 1429.44, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
60
+ {"text": "Um is it net framework for let's just use five I guess. Really doesn't matter what version of net to use as long as it's on the box. Um I hate the file name for this. I'm just going to do run as cs.x. exe. There we go. Python 3. Start up our web server.", "start": 1448.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
61
+ {"text": "And then we can w get http 101048 8000.", "start": 1466.799, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
62
+ {"text": "Run as cs.exe. Run as cs.exe.", "start": 1472.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
63
+ {"text": "Save that. And we should be able to run this tool, right? Yep. Um, what are the options we need? We need the username. So, service lap. And then we need the password for this user. Let's just go ahead and copy this again.", "start": 1478.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
64
+ {"text": "Uh that's not the password. That is WinRM's password. There we go.", "start": 1497.36, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
65
+ {"text": "And then after this, um we need to know what we're executing, which is going to be PowerShell.exe.", "start": 1503.2, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
66
+ {"text": "And we're going to send it to 1010148 port 8000.", "start": 1508.48, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
67
+ {"text": "Uh not 8,000. um due to 9,0001 and I like using RL wrap with this. So we run this uh helps if I don't type things.", "start": 1514.559, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
68
+ {"text": "PowerShell. There we go. And we get a shell. Awesome. So let's go ahead and uh what do we want to do? Um we had a deleted user. So we want to restore that. So I'm going to get adob object uh filter is deleted is equal to true.", "start": 1535.36, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
69
+ {"text": "Uh we also have to add include deleted objects.", "start": 1561.279, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
70
+ {"text": "And let's see we have this uh we have a deleted container as well. Um, we could also change the filter to only show users. Uh, so if we wanted to, we could also say um dash and object class is equal to I want to say we have to do it in quotes. There we go. So that'll only show users, right? So we have this deleted object. The gooid is right here. So all we have to do is a restore object. So we can say restore 80 object then identity and then the GID. And now that Todd Wolf account isn't um reinstated. Uh that's funny that my Oh, I guess run as CS like it was tied to that. Um that's weird. Uh let's do Todd Wolf. So, we do this and it hopefully will let us on. Right. So, now we have restored access to Todd Wolf. Um, I'm going to revert the box and we're going to do this without getting a shell on top of", "start": 1568.24, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
71
+ {"text": "the Windows. We'll do it completely through um net exec. Okay, the box should be reverted now. So, if I try running this with Todd Wolf again, it's just going to give us the principal unknown error. Now, all this is doing under the hood is really issuing some LDAP commands, right? I'm going to let's go over to Google, not duck.go. Um, I'm going to search Mubix's LDAP because he has a pretty good LDAP reference of things to run. Um, if we look at deleted tombstone objects, we can't run his command verbatim because it's using NLM authentication. That's disabled. But we can see we specify um this deleted objects thing and then give it this weird thing. And this is going to be like an extended code or something like that that um just enables us to search for deleted objects. I'm trying to find a reference", "start": 1638.96, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
72
+ {"text": "to it online. Um there we go. So that's going to be the LDAP server show deleted oid um key.", "start": 1691.36, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
73
+ {"text": "And you can see right here it's defined as this long string of numbers. So that's all that's doing. Um let's go ahead and run the LDAP command ourself. Um the first thing we need to use is kerbur with LDAP search. So I'm going to do kob 5cc name is equal to service. Um we don't want to use winrm. We have to get a tgt. So let's do get TGT uh valor let's do service LDAP and then the password like that and then we can say kob 5cc name is equal to service LDAP cache.", "start": 1703.679, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
74
+ {"text": "There we go. And then we want to run um it was LDAP search then capital H and we can specify LDAP/valor HDB. Um we have to specify we want GSS API authentication and then the actual query. Uh let's go back to the reference this paste that in uh let's see we had some error generic failure server not found in Kerros database that's not what I expected Um, we have the date set.", "start": 1753.12, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
75
+ {"text": "Oh, I bet this is that stupid. Um, if I ping, let's see, 10 10 1176.", "start": 1814.159, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
76
+ {"text": "Uh, it's not doing it. Um, I bet it's resolving the host name, like the DNS name based upon the first entry in my host file, and it's getting the domain name when it's expecting to get the fully qualified name. So, let's actually put the FQDN first and the host name. I know this is going to sound silly, but bear with me. Let's see what happens. Run the same command, and there we go. It works. Um, so that is the issue. Um I've ran into that issue so many times in um Linux stuff. So but we can see the user account is deleted in LDAP search. So if we're really good at LDAP search like command line, we can just manually restore it. Um I'm not. And thankfully if we go to um GitHub uh net exec, there is a PR request and I already have this in my history file. So I'm going to cheat a little bit. We'll just go directly to um the create", "start": 1822.799, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
77
+ {"text": "tombstone module and it gives us a way to do this. And the interesting thing is like this box was actually used. Um you can tell because they did a good job censoring a lot like the password, the username, but we can see the output right here of valor.htb.", "start": 1883.679, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
78
+ {"text": "So someone had created this module and used this machine as testing it, right? And they're talking about some error here in Kerros. And then the author of the poll request is saying, \"Yep, I used this box as well.\" Um, but yeah, so let's go ahead and install this version of impact. So let's do a get clone.", "start": 1902.799, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
79
+ {"text": "Paste this in. Then we can switch to net exec. And I'm going to do a get pole origin pole. That was 736.", "start": 1923.679, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
80
+ {"text": "Um. Uhoh. I never know what to do with this option. Um, let's go rebase. True. Maybe that sounds less dangerous. Maybe rebasing. Let's see. Find grap tombstone. Okay, we have the module there. Awesome. Um, they also talk about a unique version of impact. So I'm also going to clone this. So I'm just going a get clone on the penny worth impact. Uh and then we want to do a Python 3 module VM.VM and we can say source bin activate. So bin activate. I'm going to go into impact. We can say pip 3 install dot. And let's install this. Um it shouldn't take too long. Let's install net exec as well. And this is going to take some time to install. Probably like two to three minutes. So I'm just going to pause the video while this installs.", "start": 1938.159, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
81
+ {"text": "Okay, mpacket is installed. So now we should be able to do a net exec SMB. Uh we want to go the service LDAP. And it's not SMB, it's LDAP.", "start": 2005.36, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
82
+ {"text": "Um net exec. And then the password is this.", "start": 2018.96, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
83
+ {"text": "Run it. And I also want to say which NXC are we using mine? Yes, I am. I just want to make sure I'm using my virtual environment, not the one from uh UV, which is how I think I installed net exec. Or I can do the I think it's dash capital L to list modules. We see there is a tombstone module. So if we do - capital m tombstone and let's see how they do it. There's an action flag, right?", "start": 2026.399, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
84
+ {"text": "Um let's see. They do dash o action equals query.", "start": 2062.72, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
85
+ {"text": "So action is equal to query. And I know in the screenshots they're saying they called it the gravedigger module. um they renamed it to tombstone in this PR. So we have this and we have the ID here. So the next one is action is equal to restore. ID is equal to this. And let's see we have a SSL socket wrapping error. And the reason it's doing this is because net exec is switching over to LDAP S and the LDAP didn't have certificates installed. So that's not just configured. So what we want to do is um set a scheme. And if you want to look at the options because I don't think the scheme is actually referenced at all in the PR um let's see there should be an options flag, right? Options to play with. So we do the d- options and that's going to give us all the options for a module. Um, so we have where is scheme", "start": 2070.079, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
86
+ {"text": "ID? I know there's scheme. Oh, there we go. Uh, scheme force to use LDAP or LDAPS. By default, it uses LDAPS. So, we want to do is um go back to our action and can say scheme is equal to LDAP.", "start": 2136.48, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
87
+ {"text": "And hopefully this restores. Uh, there we go. Success. Todd Wolf has been restored. So if I do a controlr Todd Wolf um it does not like something.", "start": 2153.68, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
88
+ {"text": "I'm not sure what happened, but that's probably because my pip install broke something. Um maybe I don't have SMB modules in my environment. Don't know. Let's just see if this works.", "start": 2174.64, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
89
+ {"text": "Awesome. There we go. So we have restored the Todd Wolf account. So that is doing it through um net exec. There is one other thing. If you uh still get errors uh you probably have to install a library. Um I did a pseudoapp install uh what was it like python 3-gs API. I want to say um let's do app search. That's what it is on parrot. But you want to install this if you have errors even when specifying scheme is equal to LDAP. I think that's what fixed my box.", "start": 2187.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
90
+ {"text": "But now that we have Todd Wolf, we can look at what they can do. So let's go back to Blood Hound. We can do search.", "start": 2221.599, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
91
+ {"text": "Specify Todd.", "start": 2229.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
92
+ {"text": "What? Oh, that's funny. Um, Blood Hound did not grab Todd Wolf because they were disabled. Um, so let's go back to Rust Hound.", "start": 2235.04, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
93
+ {"text": "I don't want to put it in net execs directory. Make d rust. That's probably a bad name for this, but I just want to have a unique JSON file.", "start": 2249.52, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
94
+ {"text": "So now we can go back into administration, upload files, http valor, and go to this directory. Upload all of these. Close out. And we're going to wait for this to finish ingesting so we can take a look at what information Todd Wolf has. And now that that's done, let's go over to Explorer and search for Todd Wolf. There we go. He appears. And let's see what they have access to. So let's see. They are a technician member of. There's no outbound controls. If we look at member of uh remote user managers, uh there is a second line technician. If we remember the folder for the very first user was a firstline technician. So let's go take a look at um the SMB client. So let's do SMB client- capital U was it? Um I could have swore I had it. Um let's see. Maybe my pip virtual M is screwing me up. So let's just get a clean slate. And then we can do SMB client realm is equal", "start": 2261.839, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
95
+ {"text": "to valor httpb-u valer htb uh Todd Wolf. I think that's how you uh spell it. And then the password that was in the spreadsheet, right? The nighttime pigeon. Paste that.", "start": 2340.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
96
+ {"text": "And then that was DC valor HTB it.", "start": 2359.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
97
+ {"text": "Let's see. If we do a diir, there is a second line support. So if we do a cd to go in here, um I wonder if I can just do a space, put it in quotes.", "start": 2365.52, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
98
+ {"text": "There we go. There is an archived users and we're probably going to get a lot of files here, right? Um if I do a diir.", "start": 2380.16, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
99
+ {"text": "Yeah, it's his user directory. So instead of doing this all through SMB client, I'm going to switch and use um Spider Plus from Net Exec. So we're going to do NXC SMB DC valor HTB user Todd Wolf the password of that. And then I'm going to specify um the module spider plus. And I also want to change some options real quick. Um, I want to see what the default excluded directory is first. So once this starts, I'm going to kill it. Um, to odd dwf. That is right. Let's do the net exec to reenable the account again. There we go.", "start": 2390.8, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
100
+ {"text": "Run this and let's see what this does. Okay, so there is this exclude filter, right? And I want to add two directories to it because um if we exit this, we can just do a l because there's always going to be like the sysvall and net login. I also don't want to crawl those. So we're going to do a dash o exclude filter is equal to print dollar ipc dollar s cisvall and net log on because that's just going to like make our script take longer. Um, not a values to unpack. That is a equals, not a colon.", "start": 2446.16, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
101
+ {"text": "And cancel cuz I typoed. There we go.", "start": 2496.96, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
102
+ {"text": "So, let's go back into SMB client. I'm going to go second line support.", "start": 2504.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
103
+ {"text": "Then it was archived users.", "start": 2513.44, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
104
+ {"text": "And we're going to wait for this um to finish. We can see the exclude filter does have all these directories. So we should only crawl the it share. And then once we have this, we're going to have a list of every file on the share, which is going to make it a lot easier for us to navigate instead of just like doing CDs and going through a file browser. So I'm going to pause the video. We're going to let this finish. It'll probably take like 5 minutes. I think it's not the quickest, but it is nice.", "start": 2519.2, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
105
+ {"text": "Okay, the spider plus is done. It saved everything to this file. I'm just going to copy it to my directory. So, I have it here. And then we can cat the file and do jQ. And we get quite a lot. Um, I don't like how it shows all the timestamps like this. So, we could just put it to um keys and that's going to show the file shares. If we do map values to the keys, we're going to get a list of every file. This is the way I like viewing it. Um, so if we look at the top, let's see, does anything stick out? We do have something that sticks out. So this is going to be the users directory, right? It's a full backup of it. And right here, we have the dpappy master key. We also know the user's password. So if that password goes to this key, then we'll be able to access um anything they have saved in DPappy. So, I'm going to go ahead and uh save", "start": 2547.359, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
106
+ {"text": "this note. So, V files. I'm just going to put that there. And the next thing we want to look at is anything DPAPY related. Um I'm just going to do a quick GP for what is it? S1521. That's what every SID begins with, I want to say. Um and then here we go. I knew the like dpappy blobs were stored in um files in the UU ID or not UID the SID. So we can see we do have one blob for it. Uh we could also try to pillage um like uh Chrome or Internet Explorer passwords. There's a lot of things that Dappy just stores, but um we have this blob too. So let's just go ahead and see if we can enumerate their credentials. Um, if I exit this, I'm just gonna cat files here so I have it in a better location. So, I'm in archived users. I want to go to Todd Wolf. Um, and go into this directory. Actually, let's just go here. And then I should be able to just do download, right? Or get", "start": 2603.839, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
107
+ {"text": "I think it's a git and SMB client. Um, error opening local file app data. Uh, let's see. I'm in Todd Wolf CD app data. Okay, I must have typed something.", "start": 2675.76, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
108
+ {"text": "Um, we should be able to download this local Microsoft credentials. I think it's trying to like create the whole directory structure and that's where it's failing. I don't know exactly, but this hopefully works. There we go. Uh let's go up a bunch of directories.", "start": 2699.359, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
109
+ {"text": "We want to go into roaming Microsoft protect.", "start": 2727.68, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
110
+ {"text": "Do wild cards work? No. Uh let's just copy and paste this and then we can do a get on this.", "start": 2735.28, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
111
+ {"text": "Okay. So we should have two files. This is going to be the um encrypted blob and this is the master key I want to say. So, let's do packet dappy master key. Uh, no, I have that mixed up. Master keys are UU IDs.", "start": 2753.839, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
112
+ {"text": "So, we'll do this dash SID. Um, grab this paste and then after SID is their password which we have in this.", "start": 2774.96, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
113
+ {"text": "So hopefully this works. Um, we need dash file. There we go. we have decrypted with this key. So now we should be able to decrypt all the blobs. So let's do pretty much the same thing. So impact dappy credential file uh what file do I have? It is df. Okay. Um dash key. Paste that in.", "start": 2798.64, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
114
+ {"text": "And let's see Microsoft all state. Al state seeing if we have any credential.", "start": 2840.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
115
+ {"text": "Uh does not look like Oh, there we go. We have a persistent credential of this.", "start": 2856.079, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
116
+ {"text": "I don't have a username. Virtual app did logical. Um, not sure what this is. And that's not even a password. That's a weird username.", "start": 2871.04, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
117
+ {"text": "Just going to put odd and have that there. Um, let's go back to my jq and what is that file?", "start": 2884.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
118
+ {"text": "So, we want to look for something like this 32 characters. So, let's try something.", "start": 2897.44, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
119
+ {"text": "Let's do a GP for all capitals of hex 32.", "start": 2913.28, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
120
+ {"text": "That did not work. Do we want it in a toz 0932?", "start": 2926.559, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
121
+ {"text": "Okay, we have a few hits. Um, let's see.", "start": 2940.48, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
122
+ {"text": "Uh, what do I want to call this? I'll do potential blobs.", "start": 2948.559, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
123
+ {"text": "And then we can do a grap. I think dash f is for file.", "start": 2957.119, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
124
+ {"text": "Let's see. Man grap lowerase f. Maybe there's a pattern file. Okay, so these are potential blobs. We did support app local credentials. Um, remote script URL cache. We have another one as well. Um, let's see. Todd Wolf and roaming Microsoft credentials.", "start": 2965.92, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
125
+ {"text": "There's one that begins with 77. So, let's try going to this one.", "start": 2997.599, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
126
+ {"text": "Uh, let's go. I think it was roaming Microsoft credentials. I said, and now we can do a get on this.", "start": 3002.72, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
127
+ {"text": "And where is our DPappy? There we go. We'll do file 77 and we have another credential um jeremy.coms and a password. So this is why I like having just files because um or a file listing because I really like using GP and then changing it up to see like how it can find other things. One thing just stood out that wasn't the thing I needed, but it told me, hey, Dappy's in play, so let's change up our GP and find other keys. Um, so just being good with GP and having files is very very underrated. But let's just test this out. So we'll do net exec again. Um, Jeremy Combmes, the password of this. And we also need dash k.", "start": 3020.8, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
128
+ {"text": "So that's working. um principal unknown because I probably cannot type. We've already found that out.", "start": 3074.8, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
129
+ {"text": "There we go. So, let's go ahead and go here and see what we have. So Jeremy Kums and my mouse is like double clicking here. There we go. Member of third line remote management. But now that we're third line, I guess we should take a look at what we have access to. Um, so let's go here. Delete that. Not Todd Wolf. Jeremy Combmes.", "start": 3091.52, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
130
+ {"text": "Copy. Paste diir third line support.", "start": 3140.079, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
131
+ {"text": "And we have a SSH key and a note. So let's get ID RSA get note.ext.ext C the note. Um it looks like it is WSL. Um so this is probably going to go to the Linux. Uh so I've partly configured WSL to see if we can utilize any backup tools from Linux.", "start": 3154.48, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
132
+ {"text": "So we do have an ID RSA key. And if I cat this, um, let's see.", "start": 3180.72, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
133
+ {"text": "I'm going to show two ways we can see where this key goes. Um, I'm just going to edit the fact real quick. We can delete that. If we base 64 decode an SSH key or a private key, right? And then we pipe it to xxd. Um, we can see we have svc_backup.", "start": 3190.559, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
134
+ {"text": "This is going to be part of the public key, right? Uh, I think that's at the bottom.", "start": 3210.0, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
135
+ {"text": "Yeah. So, this is how we know where it goes. So, SVC_backup at DC. You could also just use SSH key gen. So, if we just did SSH key gen-y and the file ID RSA um, chmod 600. Let's give it the right permissions. It'll give us the public key, right? So, we know this goes to service backup. So, let's do SSH-ID RSA SVC backup at uh was it 1010 1176? I guess I could have used the host name as well. I think it's capital P for port because SH was listing on port 2222. It is thinking um I don't like how long it's taking.", "start": 3216.16, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
136
+ {"text": "SH-H grip- I port uh lowerase P. Maybe SCP used the uppercase P. Yes.", "start": 3268.72, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
137
+ {"text": "And there we go. Now we have SSH to the DC. Um if we go to CD slash, let's see. Run mount. It looks like the C drive is mounted on mount C. So let's see can we just go cd users um administrator permission denied. So we don't have permission to go there.", "start": 3281.119, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
138
+ {"text": "Uh let's see when our e agent recycle bin see is there any interesting files. We go in it there is the third line support and here there is a backups directory. I don't know why this didn't show up on SMB. Um, but if we go into backups, we have active directory and registry.", "start": 3308.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
139
+ {"text": "So, if we do find-f, we have the ntds.dit and the security and system um hive keys. So, this is going to enable us to um back up the or run secret stump against the domain controller. So, let's just go and um copy this. So, we'll do SCP- ID RSA SVC backup at 1010 11176. I'm going to do capital P because I'm pretty sure this one is uh port. And we want to back up this directory or copy it. Um I think dash r for recursive uh oh wait it is colon that it's taking a long time maybe it's still lowercase p scp-h nope uppercase Maybe it has to go before.", "start": 3334.559, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
140
+ {"text": "And let's see. There should be a recursive flag. I think that's dash r.", "start": 3410.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
141
+ {"text": "See, third line, we have to put this in quotes because there's a space. We could probably just escape it with the backslash as well. Um, don't know what that's from.", "start": 3417.04, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
142
+ {"text": "Okay, like the fifth time is the term, right? There we go. Now it's telling NTDS.", "start": 3435.839, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
143
+ {"text": "So, we can do a um secret dump.py system specify the system file. Um, I think it's lowercase actually.", "start": 3441.28, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
144
+ {"text": "system security NTDS. Uh, and then I think we specify local.", "start": 3457.839, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
145
+ {"text": "Did I do this correctly? Um, no such file or directory system.", "start": 3473.359, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
146
+ {"text": "Let's see. It looks like it saved it to backups. Uh, let's just cp backups registry.", "start": 3479.359, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
147
+ {"text": "cp backups active directory ent.dit.", "start": 3489.599, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
148
+ {"text": "Okay, now they're all in my working directory and we're now dumping everything.", "start": 3496.24, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
149
+ {"text": "Awesome. So, if I go search for administrator, you can see the administrator hash is this e whatever.", "start": 3502.319, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
150
+ {"text": "So let's go copy this and we'll try it to net exec. So nxc SMB 1010 1176 administrator the hash and we probably have to specify kerbur uh I think I fat fingered a character s not supported can we do dash k and there we go. So let's do ps exec hashes put this hash in um I think dash k for kerros administrator at dc valor htb um something errored.", "start": 3510.319, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
151
+ {"text": "This is probably going to fail.", "start": 3560.4, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
152
+ {"text": "Do I do hashes with a colon? There we go.", "start": 3568.799, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
153
+ {"text": "Empty domain not allowed in Kerros.", "start": 3577.04, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
154
+ {"text": "Is there like a realm DCIP port service hashes? Maybe it wants Valor HTTP like that.", "start": 3583.2, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}
155
+ {"text": "There we go. Now it's uploading psac and we get in. So here's users administrator desktop and we should be able to type root.ext and get the flag. So with that being said, um the box is done. So hope you guys enjoyed it. Take care and I will see you all next", "start": 3598.88, "duration": 0.0, "meta": {"video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I"}}