text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
Uh, username root form build ID. Let's see. Error message.
452.8
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Um, maybe we could search for this.
459.28
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Right. There we go. I'm going to Let's send this uh copy to file. And it's not cat. This one's going to be dog. I'm going to call this like login request.
462.72
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And let's edit this. So, let's do cd dov login.request.
476.24
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And then name. I'm going to put uh fuzz here.
483.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And now we can do uh fuff- request login request. Uh we want to set request proto just be http and then I'm going to do dash h real quick. Um let's see word list. We'll use op seclist discovery.
491.44
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Um there should be a usernames, right?
510.96
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Maybe it's under discovery usernames.
513.519
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And let's see, I'm just going to do names and names.ext. Normally, I would use like the Zato net 10 million, but this word list is pretty big to do over HTTP and it could take a long time. This one is much shorter. So, um, always kind of play with the word list you want. And then what we want to do is find a string on ...
517.36
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Uh, filter reg x. There we go. So, we probably want to do match reg x. Uh, no, filter out. We'll do filter rag x and error message.
546.24
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And let's see if we get any hits. We're doing about 70 requests per second. And there's a total of 10,000 here. Um, so I'm going to pause the video and we will resume once it is complete. Actually, um, I realized I just made a mistake, right? Because, uh, we're filtering out for error message, but when we had a valid u...
559.76
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
It was like cannot send mail or something like that. So, we have to really fine-tune our regular expression.
583.6
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Um, so instead of error message, maybe we should just do is not recognized as a username, right? So, if we copy this and then let's go back and replace the filter regax for this one and we get a bunch of hits. Um, that is odd. Let's turn our proxy off. Go over to the page and oh, this is rate limited. So, we have some ...
589.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Too many password reset attempts from your IP address. Uh, please try again later. We could attempt the login, but I'm going to guess it's going to have the same behavior. Um, so let's test this out real quick. I'm going to intercept this. Let's just do root uh password attempt to log in.
614.399
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
We'll send this to repeater. There's probably going to be a error message here, right? Um, no. Let's just turn that off. Unrecognized username. So, let's go back to repeater unrecognized username.
636.959
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
There we go. This is what we want. So, I'm going to now copy where's to file.
654.64
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
There it is. And I should move login.request to forgot password.request.
660.079
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Sorry for any confusion if that confused you earlier. But now I can just save login.request. And this one is a login. And I'm going to change the name to be fuzz.
671.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
I'm going to run the fuff again, but this time we're just going to paste uh not error message. That's definitely not it. It was like invalid username, right? Let's just send this again. Uh unrecognized username.
685.92
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
I hope it's not unrecognized username or password. Um, let's go ahead and find that valid user real quick.
705.839
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Or like, yeah, let's do that. Um, there's this.
715.04
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Let's now change this to be the username.
722.24
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Unrecognized username. Okay, we don't have a match. I was kind of concerned it would be like unrecognized username or password or something like that, but it's not. So, we can use this error message. We run this and we start getting a bunch of 403s. So, I'm going to guess we have a rate limit. Uh, we could just attempt...
728.32
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Let's do root password. Uh, too many failed attempts for my IP address. So, we keep getting rate limited. And at that point, it's now time to see if there's any scripts to like scan backdrop things. So, I'm just going to do backdrop uh CMS scan GitHub uh fix that typo and let's search. Let's see. Anti-can black uh bloc...
749.76
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Let's see. Maybe I should add like scanner uh backdrop scan. Here's a program. I should probably zoom in to make this bigger for you. And it's by FSMATHack, who is also the creator of this box. But if we look at backdrop scan, we should be able to see what this looks like. Um, so we can scan, looks like we can enumerat...
780.16
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
There we go. So, that's okay. There we go. 1.27.1.
828.16
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
So, we have a way to list the version a new user. So, it uses slash Q accounts and then the username.
835.36
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
So this is going to be a get request as well. So let's just do change request method and we can just do Q accounts and then I'm going to do root. We get a 404. If we go back, what is the valid username?
843.36
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Uh let's just go to dog. Copy this.
864.16
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Paste 403. So this is what we want. We want a 403 forbidden. So let's go ahead and uh copy the file and this will be a nume user request.
868.079
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And I'm also kind of curious, can we specify by that? No. I was hoping we could do like user ID and would spit out what the account is, but it doesn't look like we can. So let's see. Let's go back to a fuff.
883.76
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And we will want to do two things.
897.279
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
First, change the file to be user. What I call it user enume request, I think.
901.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Uh, let's just do a ls an user.
909.6
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
There we go. And then we can do a MC for match code because a invalid one is 404.
915.68
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And then what was the valid one? We get a 403 forbidden onv valid. So we'll get a match code 403 and hopefully this works. Um it just immediately stopped. Where did we screw up? Oh uh yeah we have to edit the new user and then specify where we want to fuzz. So we'll do it after the accounts. There we go.
923.36
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
And it's going to start enumerating this. And this is a good sign so far. We don't have a bunch of um like invalid hits right here. So, I'm going to pause the video and we'll resume once this um fuff either finds something or completes.
959.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Oh, as I was about to, we get one hit axle. So, let's go ahead and try this.
978.399
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
So, let's go cat. Um, what is it? Source settings.
984.88
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Uh, let's grab password on it. There we go. Uh, nope. We want to grab my SQL.
991.519
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
There we go. So, we want to try Axel as a username. So, let's go ahead and log in. Axel, paste this password.
1,000.16
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
and incorrect password. But we know that was a valid account because it didn't say um unknown user, right? So, we're making progress. We just have to wait till we get a hit. So, now I'm going to pause the video and we'll resume um either the time next time a user comes up or when this thing finishes.
1,012.88
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Okay, it is now finished and we have a few accounts we can try. I'm going to attempt to log in with Tiffany. So, let's go back here. Let's change the username to Tiffany. Put in that same password and we get logged into the backdrop page. Now, um, from previous exploitation of Backdrop, I mentioned Carpey DM's machine....
1,032.64
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
create the module for us and then automatically do it. Now, I don't find a lot of value in this cuz I don't see exactly kind of how it works. So, what I did on the Karp DM machine is I looked for an older exploit and we see this CSRF torce on backdrop CMS and this one just gave us the module as um a reference file whic...
1,091.28
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
So, I could read the whole description.
1,117.679
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
It would tell me this tart is what it uploads. And if we just download it and look at it, it'll be a bit um self-explanatory, right? So, uh actually I download the page. We go here and we can download reference.tar. This is what I want. There we go. So, I'm just going to untar it. So we do this and it just has the stru...
1,119.6
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Right? So if we looked at shell.php um we see it's just uh system get command. Right?
1,153.44
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
So let's go ahead and upload this tart archive. So we can go install module um let's see manual installation install.
1,163.039
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Let's do There we go. Upload. And what I want to do is http dog and then let's see reference.tar install.
1,174.64
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Okay, installation was um completed. And how we access this is we just go to um the backdrop and then I think it's modules the name of the plugin and then we can do shell.php because that's the file. Um was it module reference?
1,192.799
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
That did not work. I wonder if the cleanup script blocked us. I'm going to try this again real quick. We may have to be fast on this. So I can do manual installation again. Upload browse reference.tar.
1,217.44
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Okay.
1,232.64
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Paste. There we go. So we can do cmd equals id. And we have it. Now we could just send this over to burpswuite to get the reverse shell, but I'm going to use curl um just because I've shown how to do it in burpswuite a hundred times. So what we want to do is tell uh curl to do a get request because the actual um module...
1,236.24
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
right? So, let's do Python 3- C import pty pty spawn if I can spell spawn bin bash like that. There we go. Stdy raw minus echo for ground. Uh let's do export term is equal to xterm. So now we can clear the screen and let's see um normally the very first thing I like doing is um dumping all the hashes. So I'm going to d...
1,302.4
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Let's specify this password.
1,336.96
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Copy paste.
1,340.799
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Then what was that database name? um use backdrop and we can say describe uh it's probably users.
1,343.2
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
There we go. So I could just do select let's do name pass from users and we get a list of hashes there. We could send this over to hashcat. Um but this isn't really going to help us too much because it is password reuse. I just kind of wanted to show this is something I would normally do. Um but one of the other import...
1,357.919
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Paste this. Um, let's get that password again.
1,411.2
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
It was this backdrop one.
1,417.36
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Copy.
1,421.039
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
I can't remember if there was an exclamation point at the end of this or not, but let's try it without. Um, 10 10 1158 users.ext P. put this in and this will just attempt to log in via SSH with um this password for all three users that have a shell. You could also upload a program called like surack to the box and then...
1,423.28
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
uh put in that password again and we get in with password reuse from the my SQL.
1,461.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Uh if we do a pseudo-l we can see we can run the program B. So let's see exactly what this is. So I'm going to do B-H and let's scroll up to the top and let's see it looks like a command line thing to manage backdrop, right? So global options root set the root directory of backdrop to use. If not set we'll try to find ...
1,466.64
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Information, we can get logs, version, run, acron, let's see, download, permissions, state, themes, adding, deleting users. I'm kind of skipping through this because we already have admin on backdrop. So, we could do all this functionality anyways, right?
1,520.08
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
we could just create a user through the um admin access we had here. So, it's not really that interesting right off the bat. Um we do have at the bottom a way to eval. So, we're going to be able to execute PHP code. So, let's try what this is. Um we'll do a pseudo bal and code is required. Um so if I just do dash code ...
1,541.279
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Now remember at the very top of um the help it said something right I should probably enable debug mode as well but we had this d-root specify the root directory of backdrop to use. If not it'll be uh do it based upon the current directory. So, we should try that. I'm also going to do dash d for debug because I'm curio...
1,575.679
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Um, I guess it doesn't do anything. But we could also say d-root and then it's probably under ver dubdubdub html would be my guess. Um, one is not a valid directory.
1,600.4
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
What?
1,616.72
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Um d-root var dubdubdub html do we do it before do I not do dash code okay so we definitely need it after eval root ver dubdubdub html So, what I'm going to do, let's not use that flag.
1,621.6
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
I'm sure there's a way to use it, but let's see if this gets off. It looks like this works. So, use of undefined constant test. So, that's not valid PHP code. So, let's just do something PHP like um PHP info. That sounds like a PHP command to me. And we get the results.
1,658.4
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
So all I'm going to do now is a system command and I'm going to do system and we'll say bash, right? So we're going to run the bash command through PHP and because we're pseudo this should run as root. So hit enter and there we go. Root at dog. So that's the box, right? Uh we can now catroot.ext and get it. Um, there i...
1,677.279
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Um, we could have also went into the source directory where we pulled the source and I've did like a GP and let's just grab for an email on the box like dog.htb.
1,711.12
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
Uh, we can see Tiffany at dog. So, that's another way to find out the user exists, right? But I like enumerating the valid username through fuff more than this. That's why I showed it first.
1,721.52
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
But that's going to be the box. Hope you guys enjoyed it.
1,731.44
0
{ "video_id": "Z24FN8qqngY", "title": "HackTheBox - Dog", "url": "https://www.youtube.com/watch?v=Z24FN8qqngY" }
What's going on YouTube? This is IPSC and today we'll be doing down on Hack the Box. This box did come from Vaughn LLabs. If you didn't hear, Hack the Box acquired Von Labs a couple months ago and we'll be releasing the content on HTB throughout the rest of the year.
0.16
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
This box is pretty simple. It starts off with a is it down type of site which if you put your IP address in, you can see it uses curl to check if a page is there. We can inject arguments but are unable to drop a shell because we don't have right permissions to the web route.
11.36
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
it does allow us to perform local file disclosure because when it does that curl request it outputs the content of that page. So we can um leak the source of index.php which reveals a hidden argument that will switch it from curl to netcat and through argument injection we can get a shell. Looking at the box with the s...
24.64
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
As always, we're going to start off with an end map. So, - sc for default scripts. SV enumerate versions vv for double verbose. This gives us things like the ttl oa upput all formats print the end mapap directory and call it down. And then the IP address. And uh this is a von lab box. So there are no static IP addresse...
53.6
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
is is it down or just me? So, let's just go ahead and take a look at the page.
98.159
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And we get just a simple page. We could enter a URL here, but the first thing I like doing is taking a look at the page source just to see if I can identify like how the page is built. Um, the thing that sticks out to me is we have index.php. So, this is telling me it's a PHP website. The other things I would do is lik...
102.64
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
we'll do 1010484 and I'm going to listen on port 8000.
151.92
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And then we can click is it down and we see how the page is making a request to us. Um, the user agent is curl. So, I know the page is probably doing a system command to like run things, right? So, let's go ahead and send this over to Burpswuite and play with command injection. So, I'm going to go over here. Burp.
157.599
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
Uh, that not send it. Click on that.
179.519
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
There we go. HTTP. Am I intercepting? I am.
182
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
Send.
187.92
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
Okay. So, I'm going to put this in the repeater.
189.519
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And if we just send this, let's see. We sent the page.
193.44
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And what size do we get back? Um, 1064.
201.04
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
So, I always like looking at the size we get back. Um, now let's do a semicolon sleep one. And then I'm going to URL encode that semicolon.
204.879
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And it's taking way longer than a second.
216.799
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
Um, did the page just like completely crash? I wonder if this is doing some type of DNS resolution now or something.
222.08
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And it's taking a while. Uh, let's see.
230
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
While this goes, let me ping this IP address. We have a ping going. Um, open a new pane. Get rid of this.
233.28
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
I'm going to do a Python 3-m h before I do that, I'm going to make dur. And what I'm doing here is um I just want to make a request, have it come back to us, verify the server is up. We see it there. So now I'm going to try my sleep again. So when I put that semicolon there, this is when the server stopped responding t...
243.04
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
Um, let's see. I'm going to do a plus then sleep. And I'm just putting a space after that semicolon.
276.16
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And that seems to come back, but we're still not getting any results. So, this semicolon is breaking things in a weird weird way. Um, let's see. We can do slash and then I'm going to do like ID like this. And I'm trying for like command injection here. So if we send this, we see we just get ID. So that's not command in...
284.639
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
And then I'm going to say, uh, let's see. It's doing curl and then the URL here. So, I bet if I do like a -x, uh, let's change this to a post request and we can do pluses for spaces.
332.56
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
We don't get anything.
347.28
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }
We get an error message here that says only protocols HTTP or HTTPS is allowed.
350.8
0
{ "video_id": "mi_t2Nz8dPk", "title": "HackTheBox - Down", "url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk" }