text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
I'm trying to think, should I like strip it? I probably should. | 1,413.28 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
So, what I'm worried about is when I'm looping this, the loop actually containing the line break after the word. And if it does that, then it'll never decrypt because we have a special character at the end of everything we're doing. So, that's why I'm just adding the strip here just to be safe. | 1,421.2 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
And now, let's go ahead and run this. | 1,438.799 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
And I'm going to Oh, it looks like it already cracked. I was about to say I'm going to pause the video, but we have flower. So that's going to be the decrypted key. Then we have PSWM talex flower Alex at down. So this is probably the host. | 1,443.919 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
So tab is going to be like tab delineated, right? So I can probably just do a uh print f on this. Let's just copy this. | 1,461.36 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
Print f. | 1,470.88 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
I don't think I need a spa. Uh that right. There we go. So we have Alex at down Alex and then this which is probably going to be the password. So let's go. We can just try SSH. So sh a l e ks at 10129. | 1,475.279 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
Uh let's see. 234143. | 1,492.48 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
Yes. Paste. | 1,498.4 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
And we're in. | 1,501.84 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
So let's see. It says pseudo as admin successful. If we do pseudo-l, put this in, uh, Alex can run anything. So, if I do pseudo su, go into the roots home directory, and we have root.ext. So, that's going to be the box. Hope you guys enjoyed it. Take care and I will see you all next | 1,503.84 | 0 | {
"video_id": "mi_t2Nz8dPk",
"title": "HackTheBox - Down",
"url": "https://www.youtube.com/watch?v=mi_t2Nz8dPk"
} |
what's going on YouTube this is ipack I'm doing download from hack the box which starts off with attacking a file upload service there is a file disclosure of vulnerability that lets you leak the source code of the application and so you can get the signing key of the cookies and become any user you want with that you ... | 0.199 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
vulnerabilities it's a TTY push back attack essentially there is a root user that does SU down to a lower user doesn't use the dash P flag to assign a new pseudo terminal so you can inject into the root S of that Su with that being said let's jump in as always we going to begin with an end map so- SCC for default scrip... | 46.559 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
11226 put download. htbn and let's go take a look at the website so let's go to download htb and burp Suite is on so let's turn that off there we go and we just have a file upload site it looks like there's a few actions this one looks like it is log on or upload uh both these are the same so we got upload and log in s... | 101.72 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
we don't have that type of attack and I always like having some type of Recon going on in the background so let's go ahead and St up gobster so HTTP download. htb word list up SEC list Discovery web content um raft small words. | 162.76 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
text uh matches everything hold on a second if we get something that doesn't exist oh it's redirecting us saying 200 okay so there is no concept of a 404 um let see does the content size change it doesn't we could like use FFF to Brute Force this and set the content length actually let's do that um because that's a goo... | 182.08 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
going to click browse let's go htb uh this Box's name is download and we can do file. text make sure I'm still on intercept mode click upload now let's see don't need that one it deleted my file upload and we can see what the upload looks like so I'm just going to click forward now we're going to get a file page I'm ju... | 250.04 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
interesting if we do this files view it looks like it's just going to show us information about the file so I'm going to click on download go back to proxy put this over to repeater and it is downloading let's see let's file view okay I was just kind of comparing the headers we have 12 headers on that and 10 headers he... | 321.96 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
like this is no HTM at all compared to what we see um let's refresh so you can see this like this is the 404 page that we just looked at that's 200 and a lot of data so this is odd this is indicating that maybe the um query is just getting a file off the web server right it may not be in a database at all so the file n... | 387.96 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
to um let's Echo PWD real quick or we'll just do PWD and if I try to get file I can do I'm looking at fuff real quick there's nothing interesting so we can cat file like that I can also put a slash and we'll always get file right um if we put a slash at the end that's when it's not going to be a file so that's what I'm... | 450.96 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
that may just be a quirk of Express right like um for instance in like Java when you open a directory you get contents of all the files in the directory sometimes programming languages just have odd quirks and you learn them out by just playing with things like this right right so let's do do slash and see if we get a ... | 523.279 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
us out of the directory so we can only go up to directories um so let's try to get files that are interesting to us and since this is um Express I'm going to go with I think it's packages. Json let's go up two directories uh not found let's see what is the expresses packages file is it like package.json maybe uh we nee... | 583 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
should just download this um let's see copy the file we'll call it's not intentions this is download I'm going to make a directory called source and we'll go in there and save app.js there we go V app.js delete this header okay so let's see what do we have we have a few other file so we have routers off files and home ... | 669.48 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
to Let's actually like sign up to the website and log in because I'm guessing there's other users on this site and if we can forge a cookie we can become them and then if we become them uh we can see what files they've uploaded right so let's do IPC password to password and then let's log in and it says your uploaded f... | 755.32 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
and get rid of the username and like if we do id1 we're probably going to be the very first user um what we have to do is figure out exactly how this is signed we could probably dig through a lot of of the express source code to figure out exactly how it signed but I don't like doing that um this does look like B 64 to... | 827.56 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
input there we go um the equals is just padding at the end of a Bas 64 string so it goes either 0 to three equals but now that we have B 64 decoded it we can pipe it to xxd to get the hex digest and then if we do wc- c we have 41 characters so that's going to be 40 characters and then the line break so we know that's a... | 897.68 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
okay so let's go back to cyber stff paste this in and then they could be um let's see they could just sign this straight away so if we do hmac here uh let's see it's definitely sha one sum the key let's go back and grab it since this is all digits I'm guessing it's not going to be hex um it would just be odd that it's ... | 974.079 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
um that is really big I think we're doing something wrong instead of two hex from hex there we go that looks about right so this does not match so they could have also like base 64 decoded this first so let's do from base 64 that's not SV uh that's from base that's not base 64 there we go still not um they could sign t... | 1,045.039 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
let's just create a file called exploit. open up vs code and we're going to attempt to become other users so let's import the libraries we need I know I need hm and hash lib uh we'll also need probably base 64 we don't need requests just yet because all we want to do is sign a cookie right so um it knows what we want a... | 1,133.559 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
pass in this object right so we'll have to base 64 encode it so let's say message is equal to um base 64 do URL safe incode message and let's call this cookie and then we can say uh we'll call it cookie value and then cookie is going to be equal to the download uncore session I think it was let's see download uncore se... | 1,205.919 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
be fine and I'm just going to execute it in a terminal because it's a little bit quicker so we just get um straight hex so what we want to do is base 64 and code that right so we can say um signed is equal to that and then return base 64. URL safe incode um then signed I think that's probably already a bite object it i... | 1,326.6 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
CT wo yep the only thing is I think we strip equals most things in like web do not like an equal sign right so let's look at this the signature does not have equals so we can just replace uh let's see let's decode it first so that takes in from bite to a string and then we can replace equals with nothing so now when we... | 1,435.159 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
so I guess it's kind of like nosql injection right because it's just passing in our raw thing we can probably put anything we want and by raw I mean it's grabbing user and it's got this object right so it's um translating this object to be um where ID is 16 and username is equal to IC so I bet if we just change this to... | 1,509.799 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
first and then we can copy the download session then refresh the page and it no longer says hey I we have uploaded by I session and then the file right so I guess this is the nunchuck their templating language putting the username from the session but we can get all our files right so why don't we get other users files... | 1,600.679 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
working oh uh we need to put ID that's how we had it right yeah ID was in quotes my bed there we go cookies the sign then let's get slome there we go so we can see um Wesley is the user of this and we can download the safety manual annual report and see what it is just a sample PDF um so let's try just leaving a blank ... | 1,694.64 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
or not uh download session and download session. Sig awesome so that should work so we can say request.get http download. htb slome cookies is equal to cookies print r. | 1,809.6 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
text set object let's see I screwed this up um there we go want a string I think and that's a bite there we go I'm going to grap uploaded by we can do a sort U to get unique and then let's see um let's just use said said s let's grab the string place it with nothing let's see s oh I wonder if we have to escape those le... | 1,841.96 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
Boolean injection I should say so if we go back here we were able to just um insert anything we want here right so we could also insert the password variable right and leak it one character at a time uh there's two things we're going to have to figure out number one is how the password is stored is it just plain text o... | 1,980.72 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
890 there we go and then the other thing we wanted um exactly what query that is so if we went back to home um this isn't just straight SQL right so they're using something called Prisma so let's search Prisma queries maybe Prisma API query and see what it is cu all we need to do is find like wild Cur characters alike ... | 2,045.639 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
we can do Echo password um md5 sum and I'm guessing our password in the database starts with five so we can grab that see and I think that will be fine let's try this real quick so we're going to run exploit. bu grap uploaded by and we don't have anything I wonder we probably have to make it a another dictionary no let... | 2,144.04 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
ID is equal to 16 which was my ID I believe so now when I run this we just have me so this locks us into which user right so if we go back to this query we have um it was here right so we did where the author the ID is equal to 16 and their password starts with five um if we change that to a different character so we d... | 2,260.76 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
avoiding that just because it uses these but we can just put um brackets around everything because that's how you escape the bracket in an F string so around every bracket we want we do doubles I hate the IDE adding something for me and then we want to do three two three so that should be six 1 2 3 1 2 3 okay so here w... | 2,359.88 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
request okay so what we're going to have to do now is um identify if the request was good and if we see a uploaded by because that's what we're grapping for in our terminal we know um it was successful right so we just want to look for this string so if in our. text we can return true else or we don't even need else we... | 2,473.359 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
uh probably 0 through 32 then for C and caret so test password 1 C let's see how do we want to do this we can say password plus C and then if it's correct we can say password is equal to or we can just say plus equal C break and we should say print C end with nothing and flush true and this is going to slowly get us th... | 2,577.04 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
allows us to use the async library uh that's probably not going to be right uh let's see we're going to import import a sync IO okay and then let's see every function we want let's just make it all asynchronous do we only have two I guess we only have two awesome then what we need is um if name name is equal to main as... | 2,655.8 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
don't go to the next line until this finishes that's all that's doing so the next thing we need trying to think the best way to do this um I may create another function so we got test password async def I'm going to say guess character and we'll say that with password okay and then we want to do async with htpx async c... | 2,755.16 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
return um let's see do we do password Here return password so if result then return result and we can yeah that should be fine wonder if this is going to work so we go in this range and then I'm going to say um password is equal to a weight password and then we just want to print the very last character of password we'... | 2,871.24 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
this is going to get the password so we can say for user in users then print user let's do F user like that and let's see we do guest password where do we give it the ID we want have to pass the user in here as well okay guess password we gave it a user test password user there we can rename ID to user I think it was j... | 3,014.76 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
is or a do text redirecting so we have the payload wrong because we don't have the username in quotes um the ID was not in quotes because it was just a integer but the username is in quotes there we go so now it's working it's threaded it's a little bit quicker um we could make this go even faster if we want to do mult... | 3,211.76 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
so I'm going to pause the video okay so now that this is done we can just go over to like crack station and crack it we could also do um hashcat but since it's all md5 sums I typically just use crack station for it it doesn't accept the username colon format so let's just do password. text paste this in C it and we wil... | 3,295.24 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
the third time I do a better job explaining it than the other two so we use this async and what that allows to do is run things in the background or run things concurrently right and then whenever we do await it means we're going to wait for it to finish so this guest password function this is going to guess a characte... | 3,369.92 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
put them here and then we Loop through the results and if it's not false then we're going to record it and only one of the 16 is not going to be false right that's going to be the correct character for the password so the test password function um we're just going to do in a wait to sign the payload this is creating it... | 3,427.839 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
successful request it returns a 200 on an unsuccessful one I want to say it was a 302 and directed us back to the login that'd be a much better way to do it than uploaded by but when we were coding we were kind of in a rush and that was what worked right and then we return the password if we have that right so in our s... | 3,484.64 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
through F or Zer through f is and then at the end of that we look for which job was successful and move on to the next character so now that hopefully you understand that we can go on to the next step if you have questions leave let me know in the comments below I'll look over them all try to answer them in the comment... | 3,542.079 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
forest that's going to show me all the processes on the box and makes it organized in a easy to read way and we can see right off the bat we have a lot of SSH connections almost every 2 minutes we have root at naughty on an SSH so let's see what time it is now uh 20352 I'm just going to run it right at four right so if... | 3,592.799 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
entire time and because it does that it enables us to have a script that will background the session and then send a command back up all we have to do is be able to run a script as the postgress user so the next step will probably be like logging into the postgress database and getting rce that way um but first let's l... | 3,659.44 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
how to pronounce it but this is going to send commands to the terminal so what we do is send this os. kill with the Sig stop that's going to background the process and then we essentially just type commands into the terminal and since we backgrounded the Su process now we're the previous user and we can type commands a... | 3,718.44 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
Dash and then we can do an echo this and that's going to Echo my current P ID so now when I do a ps- EF -- Forest we can GP after three before three on this we probably don't need that after actually we can probably just do before three there we go so we can see this is my terminal and then we will do as pseudo su su b... | 3,767.2 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
Forest grp B3 on this we can see I started as root Root Root now we downgraded to ipac and I'm still on PTS 6 so I'm going to create temp. piy we're just going to drop the script in we'll do Python 3 temp. piy and say who am I and we can exactly what happened it backgrounded the terminal and then ran who am I we could ... | 3,840.24 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
going to foreground and then reset the terminal and then it also says we should wipe our payload from bash RC right but let's just take the lazy way instead of doing all of that and after this let's see we can say we send the new line then we can say FG new line and I guess we can type reset uh new line so now when I r... | 3,920.52 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
go in engine x uh sites enabled uh let's grap everything that has a comment and we don't have Port 30,000 at all gp-r 3000 it is in the def engine x.com I don't know why it's in there but okay so that's just going to go to Port 3000 the root is ver dubdub duub app so that's probably where it is okay so this is where al... | 4,019.359 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
sure the usernames between six and 64 characters that's probably for both username and password I would guess but I don't see it connecting the database no uh let's grp-r database database URL I'm guessing Prisma 2 is configured to pull it from the environment variable unfortunately we don't have a EnV file normally en... | 4,111.319 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
- capital u the username uh probably- for host 1271 or host - capital W for password and then we want to connect to the download database and then we'll copy the password of coconut pineapple watermelon and now we're in so we can do backd to see what we are a member of and we're a member of PG WR server files we don't ... | 4,217.12 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
so that's not really that interesting what we want to do though is write to a file because if we write to a file we can write to post's um bash RC file and execute commands right so that is what we want to do uh let's see I'm going to S Wesley at 101 11 12 226 right I just want to get two shells on this uh his password... | 4,294.6 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
file we don't want SL o I guess we could have done that see copy two maybe single quotes there we go I did not actually think the single quotes would change that we can see we wrote one so we can say select please subscribe and now we wrote that so what I'm going to do is um create a script in Dev shm called test.py we... | 4,389.199 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
poql and then I'll call this is it profile I said okay if we look we do have a profile we can also say bash RC and then what we want to do is wait the 2 minutes because it looked like every 2 minutes that SSH session um came through right so let's do a date and I'm going to sleep for for 90 seconds then we'll resume ok... | 4,522.199 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
poned we'll open that in right mode and say as f f dot oh we got a shell as we were talking it doesn't look like we could send any commands though and it's probably just the weird state or terminal is in we can do f.r um please subscribe I was going to write the username but that's easy enough okay so instead of the co... | 4,622.44 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
to do privileged we can see our effective euid is root which lets us go in root and get root. text so hope you guys enjoyed that um hopefully the whole TTY push back exploit makes sense so that'll be it take care and I'll will see you all next week | 4,740.32 | 0 | {
"video_id": "UUn9x7mw1i0",
"title": "HackTheBox - Download",
"url": "https://www.youtube.com/watch?v=UUn9x7mw1i0"
} |
what's going on YouTube this is ipag I'm doing drive from hack the box which starts out with a file upload site it has an ID door vulnerability so you can look at any file that has been uploaded and one of those files has credentials to log into the box once you logged in you discover there are some backups but they ar... | 0.12 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
fun to do the second one is a traditional buffer overflow and we're going to be showing you um three ways there's two different ways we can exploit this through SQL and then the Third Way is going to be through binary exploitation so with that being said let's just jump in as always we going to start off with an end ma... | 44.399 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
directing us to drive. htb so let's go ahead and add this to our host file so we have that DNS entry so 10 10 11235 drive. htb save it and then the final thing is Port 3000 and that is filtered it's probably not going to be PPP which I think is point to point protocol it's probably some type of web server and the defau... | 93.92 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
to fingerprint the server so I'm going to turn nmap on and inspect the headers just to see if there's like an X powered by header I'll go over here send it over to repeater looking at this we have XF frame but that is not powered by nothing really is leaking too much um there is one thing I notice that kind of leaks wh... | 154.44 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
know it's an x- something I know don't know if it's x- csrf or xsrf I have burp site intercepting let's turn that off let's see it's probably not going to be that easy to find Cookie name there we go X x- xsrf token is default for larval so these type of things just help you fingerprint the application if you understan... | 218.879 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
is Jango and let's just try logging in to see if we have anything if we do admin admin um enter a correct username and password we can try the register here to create an account I'm going to do IPC root i.r and the password is going to be password and let's intercept this so we can kind of see what the request is oh so... | 272.88 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
information right so let's send this over into repeater intercept on I don't have it here so what I'm seeing right now is we have a file ID and then we have get file detail right the very first thing I do is this is probably going over to a database as the ID let's just try a SQL injection and we get an internal server... | 364 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
probably look for some type of um idor vulnerability right let's send this over to fuff and send one through 2,000 and see what we get back right and before I do that I'm going to get rid of the Cerf token to see if I need it it looks like maybe I do it says hello IPC so if I leave this in get file ID 100 okay so we do... | 427.52 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
but put the output to a file so if I did like Echo SEC 010 it creates this temporary file and if you viewed this file when this command was running it would be the output of this command so it comes really handy to make this word list because we don't have to go find a word list that has Z to 2,000 on it we just specif... | 497.96 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
this and 500 is here with that filtered we are now filtering that out and we can see all the IDS that have something we have 79 9899 and 101 so far um let's see V IDs text 7998 19911 okay so those are going to be the valid IDs um what happens if we create our own let's go to files upload I think I'm still intercepting ... | 578.079 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
license get home and we have the test file here we can look we have a few more options when we have our test file when welcome to do a drive we have just view if we go over to a test file we have change properties which is update we have delete edit content and View and I guess we could have looked at exactly what 79 o... | 640.16 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
slash uh the other thing I want to see is case sensitive if I do a capital it's not found so this is a case sensitive thing we can go to edit content let's go back here unauthorized see what happens if we change property so I'm going to now intercept apply and let's see how we specify it so we make a post to update let... | 712.959 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
way to do it is just through fuzzing right um let's actually exit this Sate session to go back to a fuff so we're going to fuzz what is our ID of the one we uploaded 112 and then I'm going to put the fuzz here and then we're going to change the word list to opt SEC list Discovery web content API there it is API and we ... | 813.32 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
of these a API word list so maybe you're best off using raft small words let's use that one web content raft small words. text and that will take a while because we have 43,000 things to go and there we go we have a block I enough block redirects us because block has a trailing slash but update didn't weird and no file... | 898.04 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
deleted our post and then everything subsequently just didn't respond so whenever you do fuzzing always be careful with that um I'm going to do 100 for that reason because delete isn't a thing to us in 100 so if I went to let's try the objects again and I'm going to change it to 100 do we hit more things there's delete... | 982.92 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
79 then block I want to say 79 block there we go let's view it copy this password again so we can SSH um hopefully you enjoyed that small tid bit or rant there uh did not expect that to happen but I'm always glad when things fail in a CF because it's a good learning opportunity right so as Martin let's see what we have... | 1,045.799 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
Drive cat drive. | 1,120.679 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
Pub the authorized keys there we go this will just make it easier for me to SSH um copy things right we'll do Martin it was v dubdub dub backups need specify d r for recursive Martin at 10 10 11235 there we go it's copying each of these backups so let's go in and we can do 7z X to extract these I don't know why it wasn... | 1,127.2 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
change strong password don't try to crack it nothing interesting so the password was under what was it a accounts custom user so we can do select star from this and there we go we have a few hashes see is there password guessing username there we go so we have some creds here I'm going to go over to the Kraken and this... | 1,246.2 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
compare hashes this just makes it so much easier it tells me oh this password went to this user so let's do hashes Drive opt wordlist rocky. text does it have a autodetect mode for this it looks like it does it is cracking in mode 124 Django sha one so while that goes let's keep poking at this um server so back in SSH ... | 1,328.679 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
then it you drop you in this command line mode where you can just enter the SSH flag um I think you do DH it gives you the helps to do Port forwards so definitely helps I now have Local Host bound to my host and it looks like there is get T and this is a goang version of let's say GitHub so let's try signing in usernam... | 1,403.52 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
not work I will save us the five minutes it would take to test um we have this repo highly enough it goes to 404 so whenever I specify Local Host it isn't going I don't know what's happening but we have to specify 1271 um that is bizarre I'm guessing what's happening is um Local Host on my box could be going to IPv6 an... | 1,488.399 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
zip and it's probably oh that looks better htb drive save let's see if it downloads or downloaded the 404 page uh file doodle looks like it's a zip so we'll make a directory Source 7zx doodle go in here and I'm just going to open this up in Visual Studio code to explore it it's G to take a second to open up hopefully w... | 1,583.6 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
few seconds because I think updates are being installed at visual studio and just hung things okay it looks like my computer has calmed down we still have the code scanning going on one thing we could also do since it was a get repo is do like a get log um I wonder oh because I downloaded at as I did I don't have the g... | 1,659.12 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
7z uh 7z X I guess it did not like how I did that 7z oh is is every file going to be db. SQL 83 or is it this I think it I'll put it here um so let's do SQL 8 3 doodle Drive DB select was it password from account custom was that what it was called uh let's just do dump strong password account custom user accounts custo... | 1,726.36 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
going to do hashes Drive 2 put these and then we want to replace all the pipes with colons just like we did the last time and now we can crack this so let's do hashes drive to opt wordless rock. text and we'll see if it detects the correct mode we have it in 10,000 which is D Jango pbkdf2 sha 256 so it looks like we ar... | 1,871.12 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
password on the box so we go back here and we can do su- Tom hands oh it's probably just Tom let's cat Etsy pass WD uh it is just Tom we see it right here so we can do su-tm put in this password and we get logged in as him if we look at the readme here it looks like there is a binary of Google gr doodle grive if we try... | 1,945.919 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
901 looks like it's sent let's just md5 some both files to make sure they are the same thing and it looks like they match so let's go open up gidra and see exactly what this binary is about so let's do file new project doesn't matter what we put here cuz I'm not saving any of my analysis open up the little dragon and t... | 2,011.76 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
give it a couple seconds for this to finish loading and then we will look at what gidra says about this okay so now gedra is loaded I'm going to go over to the exports and let's see is there an entry how about main if we go here it looks like there is a main so we can see the code here here's it loading it's doing the ... | 2,086.119 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
this so so if we went back here we can now um execute this enter the username and then enter the password looks like Sherlock Holmes themed and then we have options right we can show user list we can show the group list check the server Health um look at the request log active uh like activate accounts I bet if we read... | 2,155.8 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
have a pseudo Rule Do we have any access to um the web server right if we go over dubdub duub doodle Drive no we did HTML can we drop files in HTML let's see tou T permission denied who can write in here uh only root so let's see yeah only root can write there so we don't have any way to drop a file and what I was thin... | 2,228.88 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
username so this is going to be let's see it's loading the username where is it um 148 here this is probably it it does fgs yeah so username activate so let's look at the sanitized string because right away this looks like we could just do Straight command injection right because we got a system command here we're inpu... | 2,304.76 | 0 | {
"video_id": "HM8_Pf8zxko",
"title": "HackTheBox - Drive",
"url": "https://www.youtube.com/watch?v=HM8_Pf8zxko"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.