text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
come on give me a Shell back it's still trying to copy let's go back get a shell again do we still have e we do so what was that command we did like that let's copy to C back SL program data is that going to work it looks like it does it's probably copying in a folder um let's see we did Rob copy now we want to do the ...
5,096
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
ntds.dit e colon windows I'm guessing the ntds is not a directory here it looks like it is actually copy ntds.dit program data permission denied so we may have to do something else I don't want to do a type against that let's just run the command as they wanted to but on C colon maybe the issue was when we ran this we ...
5,263.719
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
system so C colon system okay so that's probably in the dubdub duub directory now it is let's move ntds and system up One Directory move that out of the web and now we can do secret stump I think it's local ntds.dit um security security uh we probably need the system Hive so I don't think we grabbed everything how is t...
5,360.88
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
doesn't so this one should have a better result um DH I think we just specify the hash this way um at 101015 it is- hases and there we go so if we do a CD users administrator desktop dir we can get root. text so that is the intended way to do this box but not the end of the video because there is a unintended solution ...
5,473.88
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
here do I still have it mounted cd/ Mount M it looks like I do so I forget exactly where I have mounted this but let's just go with it um when you mount the memory dump we went into the pi and then was it reg secrets and got the files that way right we did a CAT security. text um this required having a lot of the Pytho...
5,547.6
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
do um secret stump. piy and you can do Sam find the Sam file where is that I guess we can do system first so let's do das system then the Sam is right here and we can say security and we give it all these high files oh we Al to also have to specify the target which is local we get pretty much the same thing we're missi...
5,607.719
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
dangerous right right um let's go back over to our box so let's go here let's just create a new pane um I'm going to do password. text do we have that we did not put the full password so that should be fine and now we want to um install Blood Hound I'm going to do that first before we collect the data because Blood Hou...
5,676.239
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
binary and I think I have some issues with my install process it may not be the same on yours but we'll see if it happens so I'm going to clone this repo and I probably should have still been root to do this we'll do get clone and I'm going to make my IPC user and owner of this directory once it's there so CH own IPC i...
5,735.04
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
pole and then up I want to say it's a period you may have to do a dash d as well let's see Blowfish no there's the service did we do what it said Docker compose pole okay Docker compose up I don't think this give me my terminal back I probably need to do a d d oh well we'll leave this be so this should start the docker...
5,797.92
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
docker composer or Docker files down and then also delete them but the thing I want to do is go into burp suite and we're going to disable our proxy on 8080 because by default um blood Hound's going to want to bind on port 8080 so that's why I had done that but I'm just going to do the docking POS up- D it's going to s...
5,883.32
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
GitHub if we go to this ingestor it's going to say it's only compatible with um Blood Hound 42 and 43 oh wait there may be a python Blood Hound P tree Blood Hound C so there's a branch here I have not used this yet let's try this um we got to just switch the branch to Blood Hound dce sweet um let's do it live I haven't...
5,921.52
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
then the default email address is in this config it's spam at example.com that is a funny default email address but now we can log into blood hound if we set our password so copy this and the password has to be 12 characters so I'm going to do password 2024 if I can type reset let's see that is what it is okay so no da...
5,997.719
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
py and doesn't look like it's going to tell us but okay so we'll say- NS the name server 101011 do what was it 5 DC freelancer htb um I'm going to also give it the domain name of freelancer htb and then I want to say we want to add zip and give it the um credential so we're going to use let's use masa's password so we ...
6,082
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
Branch so now we have blood hound let's go back here and we can go to file inest upload file and let's see is that the file where are we we're in opt blood hound. going to grab this file upload and it is currently ingesting so it take a little bit to ingest probably about a minute and then once it does we'll be able to...
6,158.599
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
don't know why that is but um yeah let's see I want to see if our file has been ingested yet because I want to say the shortest path should look a little bit different uh let's see my profile download collectors these are the supported collectors where is file inest it is save layout export you run this it definitely s...
6,224.119
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
on this going to reclone and when I clone it I'm going to specify the branch just in case my checkout didn't work I think I did it correct but I am not positive because normally The Blood Hound python just works flawlessly so we'll do dasb so we specify the branch as we pull it Blood Hound dce okay let's go let's see w...
6,351.52
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
and sorry for that sloppy cut but we have the container built now when I did this Docker build I probably should have done a tag to call it like blood hound ingester because now I have to specify the image name when I try to run it because we don't have any name here at least I think I have to so we're going to copy th...
6,447.8
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
in case maybe the default collection method wasn't getting the constrain delegation this should definitely work so if you ever wanted to run a clean install of The Blood Hound container this is probably going to be it I'm guessing we were doing the Community Edition because oh never mind this is probably just the compu...
6,542.639
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
this Blood hound. zip and I'm also going to copy this users. Json because I'm not sure why that didn't put it in the zip file as you can see um not really an expert when it comes to Blood Hound I'm just kind of playing as we go especially with this new addition so we want to go to home ipac htb freelancer and then I'm ...
6,606.44
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
up so I'm going to pause the video we'll probably wait a minute and then I will refresh this page and hopefully it says completed and we can move on okay we have the duration actually took a minute here so we took longer to process this maybe that's a good thing if I go to explore Cipher let's do shortest path to domai...
6,693.84
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
definitely different right we have 69 and 12 of these object controls and we had none before but we can add this to own um we also have aasa and I'm sure this should look prettier because there's probably a special like owned graphic there but oh well so glancing at this it doesn't look like we have any as owned becaus...
6,751.48
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
freelancer htb and we should add this to a host file I probably should have done that way back when we did like impacket because impacket told us the host name if we did um not n packet nxe um nxc SM SMB 101015 when we run this it all tells us the name is DC so ad recycle bin has generic right if I click this we can go...
6,800.199
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
this generic right so go Linux abuse we're going to want to do this add computer so we're going to copy this let's see do we have ADD computer.
6,876.88
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
py in our path we do let's see we probably don't need ldaps we can say computer name we're going to say U doesn't really matter what the computer name is because we're adding a computer to the domain as long as we have the ability to add a computer we can do this so we're going to set the computer password to uh we wou...
6,887.52
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
users grab floor grab this and then the password it's going to be this pwned okay that should be it I'm really not sure if net buyers is do like the actual domain name or the hear name we're adding of the computer if it errors then we know what to change I guess uh we have successfully added the machine attacker system...
6,966.079
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
freelancer htb and then the username and password we will put the thing we had before paste this and account to modify does not exist did I forget maybe net bios should be just the domain okay let's go back to add computer we'll say IPC and then oh wait DC is not found freelancer HTP let's try IPC real quick okay so it...
7,023.52
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
freelancer htb um is that lowercase is this going to be a case thing I don't think so Windows normally isn't K sensitive um delegate 2 maybe it's just DC dollar because that's the actual computer name okay that's what it is um we can also do attacker system I'm doing it for both just because I don't know if the domain ...
7,096.36
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
first okay we have the CC cache so now we should be able to um DC sync we could also use Pi whisker to log in but we can just um secret stump this does this have the exact syntax it does so we just pretty much do what is it export or we can say kabbe 5 CC name equals administrator I don't know if there's an underscore ...
7,180.56
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
net bios does matter um I'm sure it does something I just don't know exactly what it does I think it's s the net bios of the computer name which um it should just be the computer name I don't know why it's saying domain inside of Blood Hound right but we can get the password right there and now it's dumping the cach do...
7,269.639
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
in um that config file if well the config file had a SQL Express password it didn't have the current one I should say but if we had the current one we may have been able to do a silver ticket soon as we exploited the database but since we never got it um we couldn't do that and let's see we got the hash here so you can...
7,326.239
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
and I think we can say like get 80 computer does that work hipc there we go Sam account name let's see is there like a property star there we go um net no I was hoping there was a net buyers see DNS hear name this is looking fine let's see the other computer was attacker system same account name CN so I'm relatively co...
7,392.199
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
it's useful when the forest handles multiple domains so this is probably just making sure that you add the computer into the right domain right so if I just specified a parent domain and then it had a child or something um it may be added to the parent not the child so net bio seems like it just is a filter on the doma...
7,496.4
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
care and I will see you all next time
7,551.76
0
{ "video_id": "NcicYfFofS4", "title": "HackTheBox - Freelancer", "url": "https://www.youtube.com/watch?v=NcicYfFofS4" }
What's going on YouTube? This is IPSC and we're doing ghost from hack the box which if you can't tell from the video link, this is an extremely large box with lots going on. It'll start off with LDAP injection with which lets us not only bypass authentication but also Xfill the password attribute which gets us into git...
0.32
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So we can use the file disclosure to read the API key, exploit the command injection and land in a Linux container.
23.68
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
There's a handful more lateral movement steps, but that leads to dumping the Active Directory Federation services.
29.279
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, we can perform a golden SL attack to trick a website into thinking we're the administrator. This website is an online SQL shell. We can use that to enumerate link databases, permissions, and discover. We can impersonate SA, which leads us to a shell on this box. However, it's the admin of a child domain, but there ...
34.399
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
we scanned all ports, we'd get more open. But let's just go take a look at what we have. We have DNS on port 53.
81.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
The banner says simple DNS plus. This is the default banner for Active Directory. So, we know this is going to be a uh Windows box running Active Directory. We also see HTTP on port 80. The banner tells us it's Microsoft HTTP API 2.0, which means there's no routes configured here for this um endpoint. So, there's proba...
87.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I'm not exactly sure what's going on here, but that is just something to note. We do have a web server running.
111.04
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's see. We have kerros. That's standard for an active directory. Here is LDAP. It's giving us the domain name.
116.72
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, let's go ahead and add this to our host file. So, pseudo vets host. And then we can add 10 10 1124. Put that in.
122.56
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And let's see on the certificate, we also get the um DNS name, which includes the host name of the box. So, we can go ahead and add that. DC1.go.htb. And I'm just going to add dco1 as well. Let's see certificate we have 443. So we have HTTPS running. It's not giving us any host name or anything like that. It's odd that...
132.319
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So we're not getting any additional um box name or anything like that. So, it's just a self-signed certificate on SSL.
199.519
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I'm not sure what port 2179 is. Uh 3268. Another LDAP port that is all standard.
207.12
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
More LDAP. We have remote desktop giving us all the same information that is DC1. Uh port 808. This is interesting. We have the bander telling us it's Ubuntu running on Engine X and the TTL is 127. So, um, I expected since this is probably going to be a VM, I expected to see it decrement by one, so it would be 126. I'm...
214.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And I'll also add core as well. Let's see. And that's it for the ports. So we had a lot of data in that end map. I'm just going to do a sanity check. So we'll do grep uh ghost.htb.
266.8
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's do a dash i on the end map. And that's a lot of data. I'm going to add a - o capital p. And that's going to show me only what my GP is. So right here we'll just get a lot of ghost.htbs. But I can add a through zero through nine. And then ghost htb. Uh we actually want to add a star here to match all those charact...
280.16
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Sort-u and core dco1 ghost. So I think we've got all the host names out of um the admap results. So let's go to 101011.24. This is the um HTTP page. We can try other host names. So we could do what is it? Uh ghost.htb not found. We could do dco1. Try core as well. See if we get any other pages. We do not. There was als...
312.039
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And we have AD federation login here. So we have some type of federation going on there. We have a blog here. And glancing at the post, we have a potential username. And this just looks like it is some type of ghost hunting blog. So, what I want to do is see if we have any other virtual host. Um, if I click home, it go...
362.16
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And what I want to highlight that I don't like about Go, I don't know if this is just because I'm on a really old version, but it's not telling me the status codes it's matching right in the vhost. I think if we did like the um durbust mode to like go with files, it would show status codes. It's matching, but that's ca...
422.56
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
It's -ash-u http goes to http port 808 like that. Let's just put this in quotes. Um, the header is going to be a host header. So, do fuzz.go.htb and the word list opsec list discovery DNS uh subdomains top million 5000. And then let's do a I'm going to filter size 7676. And then we also see um we're only matching a few...
450.08
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
at once, it slows them all down and then we start getting error messages as well and that just becomes a mess. So, I'm going to pause the video for a minute. Okay, we can see that the fluff has finished and Gob Buster is just wrapping up. GoBuster still hasn't found anything because the response code that matched was 3...
515.279
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
had core, right? And I don't want to fuzz um every single web service because I think there were four different ones. There is a like single point of truth and that is going to be the Windows DNS server that we have and we could just easily enumerate that. The first thing I'm going to do is open up nsookup and just see...
566
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
custom DNS server. So we'll do 1010 1124. The domain is ghost.htb. And then the word list that's going to be the obseclist discovery. So now we're just going to do just DNS request. And we find internet.go.htb. Let's go ahead and add that. We find core. We find core.
617.839
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
There's the global catalog, which is just standard in Active Directory. And there's probably going to be a few more.
636.32
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, let's just start adding to our host file. Uh core, let's do internet.go.htb.go.htb. Uh core is already there. These are standard active directory. We don't have to worry about those. Um and if we start going to these, so let's go um internet. Corp HTTP port 808. Uh, that's not what I want to do. http internet dot u...
642.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Did I not save this yet? Yep, I did not save the domain. So, we have a different login here. Let's see what else we found. Uh, it doesn't look like anything else. Um, I don't know what corp is. Let's see. Can we do corp ghost http? See if we get any pages here. Nothing. Um, let's do HTTPS. Secure connection failed. 844...
695.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
in repeater. And let's see. Uh, we see headers. It's using probably Nex.js here. We see looking at it, we have LDAP username, LDAP secret, and um since it's LDAP, we can probably try like wild cards. So that's just going to be a single star as a wild card. So we're testing for LDAP injection here. And if I hit enter, w...
769.12
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
have a list of usernames. We can see git tag temp principle is a username. And we can also go back to our LDAP injection and try this out. Right? If we do a username that does not exist, we're going to get that error message of invalid combination. But if we do a user that does, let's try Katherine Holland. Paste this....
833.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
need to use this for get t and we haven't found a get t um DNS name but that may just not be in our word list right if I uh grap- I get t on this we have nothing so I'm just going to test this out let's go Um, let's just add it to our host file and see if it works. So, it's probably going to be gett.go.htb. Save that. ...
896.56
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
okay. Um there's also no like um question mark to match a single thing. The only wild card is star. In some LDAP implementations, you can do reg x, but that's not exactly common. So, what we could do is um like see if the password begins with something. So, we could go like a star, invalid combination, b star, and even...
964.16
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
like examine um, let's see. Where is it? Examine the users and find a character that's only in one uh thing.
1,019.759
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Oh, I found it. Z. Let's see. It would have to be at the start.
1,033.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, okay. No other username has F in it. So, that's a good one to test. So, we could do star FS star and that matches and it's really Florence. Ramirez, right? There's no other Fs here. So, that completely matches. Um, also it is not case sensitive. So we can say it begins with F begins with capital F that matches and ...
1,039.64
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
going to do two requests actually because I'm going to be butchering this one. We want LDAP username. That's going to be star. We want to get the secret as well. So we'll copy this. And then I'm going to delete everything below. We'll copy here.
1,116.4
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
highlight. Uh that is erroring. So we missed a field. Let's look at other things we have. I'm going to try let's see invalid combination. Is that it? That should let us log in. Okay, that's the login. I'm going to try this action one one. So, we'll go here like this. Is that going to let us? It does not. Let's see.
1,145.16
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's try zero. Uh, we need to copy this. There we go. So, we need this variable as well. And this is just like a flash message. I don't think we actually need that whole string. I think we got that because that was the last message the web application sent us. I wonder if we even can we just do like an empty list. No....
1,203.76
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Because we can now brute force characters. Yep, this is working just fine. So what we want to do is move over to Python. So I just want to write this principle and let's go open up a new pane. Make dur we'll call this LDAP brute. Go here touch. Um I'll just do app.py. So I'm going to open up zed which is just another I...
1,243.76
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
http.go.htb. It's got to be port 808. I want to say it's /lo. And then we got to send the data.
1,306.919
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
We'll say that's equal to payload. And we'll say payload is equal to go back over to B. We'll copy this. And we will paste this in. Okay. And then we want to print R.
1,313.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Status code. And I'm also going to print R.ext.
1,333.039
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
text. Now, let's run this. And that's not what we expected.
1,338.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, we're getting a bunch of uh text and we get this page could not be found. So, we get some type of 404. I bet if I scroll all the way up, uh, it's a 200, but we're missing something in a request. I'm going to add the content type of x dubdubdub just because that's generally like how form data is, right?
1,344.159
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, we can add this content type, add it to the post message, save it, and we'll see if that fixes it. It does not. Um, it could be one of the like next.js um routing headers. If we go back over to burpuite, we do have like next action, next router state tree. So, I'm going to start adding these to it cuz I don't think...
1,371.84
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, we need a comma. There we go. Awesome. That works. So if I change the password to be does not exist. Save it. This should be the 200. Yes. So now what we want to do is move this over to a function. So we can say uh defaf we'll do test password and we'll pass in the password and the username will have a default vari...
1,416.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Change this to be username and password. And then this one we have to escape. And we escape by just doing doubles. Okay. And now we need a return. So we'll do our status code is equal to 303. And we're doing that because we're returning the value of this. If it's not 303 then it's not a login success. So that's why we'...
1,463.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So that should be fine. So we can now do a print test password of star and we'll do a test password of not the password. Save. Run it. There we go. That looks good. So now the next thing is I'm going to do something called character set pruning. And um I'm doing that because um let's say we know it's not case sensitive...
1,495.76
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
* 10 and that would be 136 maximum request. So theoretically, if we do request um a character set pruning, we're lowering the number. Now I would prefer to do like um binary search or divide and conquer and that would be um you make a request and you divide like you eliminate half every time. But since LDAP doesn't sup...
1,566.08
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
then you'd have 70 requests total. So divide and conquer would be the quickest, but LDAP doesn't support that.
1,629.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So let's go ahead and make a prune care set. So we'll do definition prune car set and let's see I'm going to import string and we'll say result is equal to nothing and then we'll say for c in string dot um is Is it lower asy lowercase plus string digits and if test password C that's almost good. Uh we need to make that...
1,637.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay. And then we can say carouset is equal to prune carouset. And we probably should add username is equal to like that. Username is equal to username and print carouset. Hopefully this works. Let's just time it. I think this takes probably around 10 to 15 seconds would be my guess. So while that goes, let's start wor...
1,699.64
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, let's see what are we passing in. We'll do the character set and default username and I don't know why it's leaping by 10. I guess it knew the output I did before. That is weird. Um let's see. We want to do a while true and then uh let's see for C in carouset like that. Oh, this is going to get messy.
1,747
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, I'm probably have to break this out in another function because what I kind of want to do is like put found is equal to false here. Then we do um found is equal to true. And if we exit this, if not found break, does that work? Don't know if this will work. Uh, we can try though.
1,790.279
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, password is equal to that. Print password. Save it. It may work. It may not. I really hate when you do like these infinite loops and have like multiple breaks because I just it's hard for me to figure out where like what break is going to break out. I'd rather put this into its own separate function. So do defaf te...
1,817.919
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
loop. So that's totally fine. I think this is just more readable. So do test password in the carouset and then what we have for the password so far. And then we'll say um password plus equals say result if result does not I think that'll work. What is happening? There we go. I think that's good.
1,912.32
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, yeah, I think this is pretty much doing the same thing, but I think it's a bit easier to read. Let's just save that and test this out real quick. It should take 40 seconds. So, I'm going to pause the video and I will resume when this finishes. Okay, it finished and we still got the same result. So, I liked writing ...
1,984.84
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
on sign in. And we have two projects. We have blog and internet. So um I'm going to look at internet first because that's what we have been hitting. And it looks like we're adding new features that integrate into the blog and internet. See the blog for more details. Until development is done, we'll expose the API at in...
2,035.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, I'll download the tar. I think that's downloaded. Oh, there we go. Save. And now let's go here. I'm going to t Let's just make a directory real quick. Um, get tur xvf downloads. Was it internet something? There we go. Okay, so let's look at the back end. And looks like the source code is here. So, let me close out ...
2,061.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So if we look at login uh let's see we have the function login and it's just going to take the body of LDAP username and LDAP secret and then run it against LDAP connect which is this function and this is how like the thing we were attacking in Python Right. So we're going to go this is our LDAP query and then we take ...
2,143.359
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So we have LDAP using get tap principle the secret. I'm going to do a star and then single um parenthesy and then we can say um let's copy Sam account name. So let's do uh Sam account name is equal to star as well. Does that work? It does. So what we did was just change um this right we're injecting here we exited out ...
2,201.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
itself. That's not a default LDAP attribute. Um, I'm talking about like um, NLM or other passwords of the user.
2,271.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, um, hopefully that makes sense. We can play with LDAP more if we wanted to, but um, I don't really want to. So, let's move on. Uh, the API dev endpoint sounds interesting. So, let's look at scan. So, I'm going to go into um, scan.rs and we'll see what this does.
2,278.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, scrolling down, we can see right off the bat, um, we have this public function. I don't know exactly what guard a devguard is. Uh, we could always like ask AI. I think I have that set up. Um, let's do add the file scan to my question. And what is Devguard doing here?
2,298.72
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
and devguard looks like it is a request guard and rocket used to enforce certain conditions like authentication. So we'll look at that in a minute. I just wanted to show like how you go to um AI and other things other than VS Code. Um why is that? There we go. Close that. So let's see. We have result is equal to comman...
2,325.92
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I'm going to go look at what this devguard module is. And if we look at it, uh we take the request and we're getting the header xdev internet key. And then um comparing that against what the environment variable is and if they don't match, then we get unauthorized.
2,409.68
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So for this request to work, we need to know what this um xdev internet key is, right? If we go back to burp suite, we can add this is equal to um none null equal to nothing null. So we need to know what this key is. So, we need to find some type of directory uh file disclosure on this um server so we can read the envi...
2,429.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
We can see the database connection file name. This is a SQLite database. They've redacted the dev internet key here. We could just test that out to make sure that isn't the actual key. Nope. And then let's see. I bet in the Docker file that's where they're copying it. Maybe that was the compose, right?
2,511.76
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, copy post public over top of that is there something that has environment. Maybe it's in volumes or something. But let's look at what this postpublic.js is. So, we're looking for something that could be a file disclosure because we know that's what we need for the Rust service. And we have something here. So if ext...
2,539.24
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, so looking at this, let's see the post public and they give us an API key. So, we have to figure out how to hit this um JavaScript file. So, I'm going to do ghost API um post maybe. Let's see. Content API for ghost.
2,594.68
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }