text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
filtered which probably just means there's an IP table rule dropping all packets to this port it's not really that important it's just something to keep in the back of our mind in case there's like a service side request forgery we get on the box we probably should take a look at why they decided to block this port in ...
91.799
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
uh Port it's most likely this is just going to be a Docker container and then Docker is just redirecting or the socket on the host is forwarding to The Container directly it doesn't mean that 80 is not going to be in Docker since we see the TTL at 63 a lot of times the Hurst OS will install engine X and then do a proxy...
144.599
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
at the doca registry so we'll do magic gardens. htb Port 5000 do http and let's see what we get uh first my B Suite is set to intercept so we can disable that and it wants htps so we'll do that and we don't get anything I want to say it's like slv2 for the doco registry it looks like it is and we get username and passw...
203.4
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
because we may see like PHP session ID and we don't get anything uh we could go over to WAP and see what it is and it identifies jeno I don't know exactly how it's identifying jeno this quickly there's probably something in the source if I search for Jango I don't see it maybe like a Javascript file that Jango uses um ...
263.44
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
they're all kind of like nondescript I'm going to look at flask and Jango here but we can see what flask looks like we have um the request what do we have the requested resource was not found so flask little bit more descriptive there or more words I guess I should say and jango's here and it also gives the HTML so we ...
321.039
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
type of enumeration based upon forgetting passwords and since it's going to email we don't have email like that's dead in the water we could try just guessing like default credentials but that seems um ify so I'm going to go to create new account and just see what we have so I'm going to do IPC password of password um ...
375.96
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
since it's not sending data as we type I'm guessing there's no aut complete to enumerate users um let's do subscription upgrade your subscription to get a QR code if I click on upgrade it wants me to put some information here so let's just do um all the defaults of what it says and if it gives me invalid credit card I'...
448.479
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
typed is an actual valid credit card that's what the L algorithm's purpose is so you don't send um typers over to the credit card processor but I digress let's now turn intercept on click subscribe and it says please select one of these options and it's odd if I leave my mouse over I can see that's plunger. htb magical...
504.96
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
htb I like red so I'm going to go with plunders htb and click subscribe and we can look at the request so I'm going to send that over over to the repeater Tab and we see C serf token session ID um some middleware we have the bank is equal to plungers htb and then all my information so the first thing I'm going to do is...
530.279
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
see if we can control the port to if not then we know um we can make it talk to us on Port 80 but I always like seeing if we have full control and that is sending a lot more d data that is weird uh do I have something going on where is all that data coming from I'll just contr C out of this and we'll look at the top le...
589.079
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
and then all this data so what I want to do is send this data over to plungers htb and see what its response would be so let's do pseudo V Etsy host um I already have one open plungers HCB we're going to save that and now I'm going to do a curl I'm going to say- D for data um I'm going to set the header I don't know if...
657.72
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
normally okay so I'm going to put the message as okay because I can see the message here is up where the message is so that's why I'm going to guess that has to be okay but most of the time when you're dealing with an API if you want to trick it it normally only deals with status code so the message probably isn't requ...
738.76
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
payment and then we need to get the data so we'll do data request.get Json and we have to import this Library so this will be request I'm also going to respond back with Json so I'm going to add the jsonify library as well and if you use like co-pilot or something it'll probably automatically generate all this code for...
804.68
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
the card name so we do card name and this will be data card name like this and then it's also going to be card number there we go and I think that is is it for this response so we're going to return jsonify response as long as I did not make any typos I think that is good we can print spaces here after the colons becau...
871.6
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
see we got message status it's kind of in the wrong order but that definitely should not matter card number card name so this looks definitely good so let's go ahead and fire this off so let's change the port to be 5,000 and that looks good and right here when we're sending it to us we can see the location it's sending...
969.04
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
off for a second let's see what this subscription page says my subscription is being processed let's set a cookie and see what happens we may also be able to like relog into the application set that cookie refresh subscription is still being processed huh doesn't let me redo anything so what I'm going to do actually le...
1,035.48
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
everything correctly the very first time so IPC I wish it save that output September 2026 352 okay so let's turn intercept on there we go double check we're intercepting here we are subscribe and then we're going to change the bank to be 101 148 or 5,000 for that subscription is currently being processed action success...
1,117
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
it's in this weird limbo state try it again on a new one right because you may have done something that put your account in a weird spot so we have a coupon now for 25% off any item and it's this QR code so I'm going to save the QR code let's go to htb magic gens QR code that should be fine save it and then if I go bac...
1,197.159
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
manager will contact us so if we look at this we do have a message now and it's Morty so we have the first potential user of this uh box is Morty hello thank you for the order please send me your QR code to get the discount so here my first guess is probably going to be like we sending the code is it going to display t...
1,263.64
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
installed via apt and then how do we use this tool d o the file name and then I think we just put data QR incode test.png data and if I do zbar image test.png we get that awesome so we'll do QR encode that and then I'm going to say this and we're going to append data so we'll do script and the first one we'll do is the...
1,328.96
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
Gardens test okay so hopefully we see a response back back there but I don't think we will so we're going to use a slightly different payload and this one will be friendly to the Cross origin request policy because we're just going to um pull an image so we're still using the script tag I'm going to say image is equal ...
1,431.72
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
JavaScript Right image and I'm just putting this here so when I look at the messages later um I know which one is which right so there we go we have sent him two messages the first one is the one using the fetch payload the second one is with JavaScript and let's just wait probably uh we'll do 2 minutes and while we wa...
1,513.64
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
Bas 64- D and the reason why I always do this is because it's going in the URL and cookies can have some characters that aren't safe for URLs so it's always just safer to base 64 and code it right and here we go we have the session are there periods in this I don't know exactly how the Jango session works I wonder let'...
1,588.919
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
I'm going to have my console tab up I'm going to click on this test and nothing happened if I do check QR code there we go so here where this digest is is going to be what we put right and we can see in the console window the cross origin request was blocked because of that policy so that's why the fetch does not work ...
1,649.799
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
like script and document. write and then write directly to the document of an image there's a lot of ways you can do it um but yeah so let's now go ahead and check out the D Jango Administration page so the very first thing we look at probably is going to be the users if we look at the default user table for jeno we ha...
1,718.399
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
a vulnerability in itself just how it's handling the password so I'm going to go over to the Kraken which is just another box on my network and attempt to crack this so we'll do CD hashcat vhes and I'm going to call this um magic gardens. Jango I guess and then we can do Morty colon there we go that's the correct passw...
1,779.279
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
text and it should start cracking and if you um no hash mode matches the structure huh let's see pbk oh we probably want to specify D- user because we put the username in with a hash so there we go um it's attempting to crack now so this hopefully won't take too long it says a Max of 33 minutes but chances are the pass...
1,813.159
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
over to the box and the first thing I always like doing is trying to dump the database right so let's go in Etsy engine X we can look at sites enabled and what I'm doing here is looking for where the um python application is so we can see on Port 80 it is doing a proxy pass to Port 8000 I'm going to do ps- efrp 8000 an...
1,880.84
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
same um so that's the password I was trying to get right let's see y one aju um let's see sh Kraken we can go back in cat hashes magic garden I don't even know what I called that oh we have to go CD ashat hashes magic garden GP y1 I'm guessing those are two different accounts but it's a mute point since uh we can't get...
1,935.6
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
10 10 119 Port Le and that is open to us so that's interesting PF grap Le does not show anything let's do PF forest and see what is running on this box so let's see we have Laurel that's audit d a bunch of KRON this is probably going to be the cross Sate scripting right um it's automating Firefox and order to hit that ...
2,008.519
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
Harvest is in usel local bin so let's go in this directory and then let's do a file against it not found that's odd I thought file was like a builtin so this is going to be a elf so let's go ahead and just download this binary so I'll do NC lvmp 991 we'll direct this to harvest and then we can cat Harvest over to Dev T...
2,092.52
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
Network analyzer um server runs it in server mode client client mode on server we can probably specify a log file and interface so let's see Harvest client let's do 10 10 119 and it connects and just outputs a bunch of information so let's go with um server mode so we do DH we'll say server test.log raw socket prob has...
2,165.76
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
various functions but let's see what I'm going to do is use a gidra plugin to see if there's any like um quick vulnerability or quick wins so I'm going to go over to Firefox and let's go to Google and I'm going to search for vulnerability analysis with gadra scripting and hope I can pull up the blog post I found earlie...
2,253.68
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
things that people commonly exploit and then they talk about how to script it in gedra and then also um give you the program here so we're just going to copy this and run it so I'm going to go back in my gidra let's go to window um script manager and let's see that's actually the script but I'm going to create a new th...
2,318.48
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
on the actual memory address it'll go to where that is where I thought it would there we go let's see we're in log packet right here and right off the bat this is going to be the vulnerable function I know a lot of people think stir a copy here but that's not going to be the vulnerability so if we look at this it's tak...
2,398
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
10 this going to be filed Handler so that makes sense so local ff88 this is going to be the data we write into the file right we're doing fprint F this is going to be where it gets written to the destination this is the source so ff88 is going to be data so that's making more sense uh we don't know what U of R1 is it's...
2,468.56
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
do that let's see what was it 65 380 I want to say 65 360 like that there we go so that's looking better we still don't know what Pam 2 is it copies this got to be file name right because we're copying the file name into this I don't know why but that's what it looks like we're doing right uh destination source so that...
2,545.2
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
data so we can write more data into what we're allocating here and then the next thing on the stack is file name so when we overflow the data we reach file name so if we send it more than 65360 uh bytes then we're going to start writing into file name and it's going to then open the file name we want so this vulnerabil...
2,621.599
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
this looks like a MAC address right we have uh 2x 2x 2x with colons so this is going to be a Mac and this is also a Mac um I don't know what is the source what's the destination but that is definitely Mac addresses so 68 I hate how it's doing this let's see 2 two two I think these are the lower ones on the stack so I'm...
2,678.839
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
I probably mix these up because now this is very apparent this is the lower one I don't know if Source comes before destination I guess we can open up wire shark and figure that out let's see what else do we have that may be all we need so I'm going to open up wire shark real quick so we can step through this but right...
2,788.8
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
probably two eight so this will be where we start reading from the 45th or 14th so that's going to be 45 if we do an IPv6 um let's try this I'm going to do if config so I get my IPv6 of loop back where are you I don't have one there um I'm just going to do this because I can't remember loop back of I6 but we can do a u...
2,863.559
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
anything that really we need to know I don't think so we could try to figure out exactly what all these variables are but it's not important we know if we send it IPv6 data we can get into log packet we're sending it the um packet and we're skipping some data Maybe skipping 14 okay yeah we're sending it the packet and ...
2,948.839
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
packet so I'm going to go over to Google we could do chat gbt but I'm not logged in um so I'm just going to do Google maximum size of IPv6 packet and let's see it is 65,535 bytes so um if we can send more than 65360 bytes we have an overflow so let's try sending this data so I'm going to go onto this box let's see actu...
3,028.119
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
do python 3- C print a * 65,500 and what was the max size 35 to dump so if I cat dump we have all those A's so what I'm going to do is cat dump then we'll say NC do I have that NC I probably don't let's do if config we should be able to send it here and see the malicious data right so cat dump nc- 6 uh Port leite it do...
3,123.119
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
Python and see if we can do it this way because we're not exactly sure what net cat's doing um it may actually not be working because it's doing an SSL handshake or something but let's just go to um python because I can be more certain exactly what we're sending on The Wire the first thing we do is import socket becaus...
3,248.559
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
it's going to be like socket dot what like AF inet 6 that's right I don't think sock stream is right that's going to be like TCP um dgr so I think socket stream requires a connection to be made where dgram is going to be more like UDP and it just writes it straight to the wire I think that's right and then now we have ...
3,316.92
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
Pi message is too long um 535 let's do like that there we go and we get a Segall if I do LS now we can see there's a list of A's so we have overflowed the application if I look at this that file is also all A's because that's the data so let's delete this file and what we want to do is is control it so let's see exactl...
3,381.48
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
put this and then I'm going to run this exploit again seg F if we do LS we have aa4 so if we look into here this is where we overwrote so we can probably do the msf pattern offset is it- q for query we can do the whole thing but it looks like it's at by 12 doesn't even find the whole thing that length 100 weird but 12 ...
3,472.079
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
file I guess because we didn't write enough to cause a huge problem huh okay I'm fine with that uh we didn't smash like the stack completely to where it would actually seg because we didn't overwrite the variable after this and somehow it lived magic so we still have data here so let's do that pattern again so we'll do...
3,586.44
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
sln so that's two we times it by six so that should be 12 and then we can put IPC and then we'll do like that so I just want to see IPC on a single line than a bunch of A's so that is my goal because if I can get this then we can just d a SSH authorized key right um are we ready to Please Subscribe we are let's delete ...
3,693.16
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
B because I think you need something in this field for the key to be valid and that looks good so this will be the file name we'll do SSH um home X SSH authorized Keys how big is this can we do the full path I think we had 40 characters space we'll check in a second uh that's going to be probably 32 because this is onl...
3,791.68
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
p.p there we go and let's see down here we're going to do Harvest client 10 10 119 so we have a connection there so we can do Python 3 p.p and before we do that let's just prove this works so we'll go CD pone s-i Alex Alex at 101 119 we see that fails so we don't have the key there we're going to run this and it looks ...
3,882.319
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
on the box and if I was doing this blind I would probably run like Lin p at this point however when we first sshed in there was something a little bit odd it says we have mail so I'm going to go and Cat verse bu male Alex I think it is yep and that's going to show us what male we have we could have also probably use li...
3,951.279
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
I'm going to just try Jonas Brothers because that was the password of Morty I didn't see exactly who sent that mail if we look I don't think oh that's content ID oh root did so we don't know exactly who sent it so let's go ahead and use zip to John on the zip file because that's going to give us a hash that we can then...
4,016.559
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
um like maybe zip John has a hashcat format or something but it looks like it does detect it it's just got conflicting hashes so I'm going to try both of these I'm going to guess it's the first one if this doesn't work then I would definitely try the second one I don't know the difference between those two Zips maybe l...
4,094.039
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
potential user on this there was Morty and still oh wait um there was a zip file I was getting ahead of myself um I'm going to make directory off CD 7zx a.zip and this password was Real Madrid and then then side of al.zip there's a HT PWD and we get Alex miles and then a bcpt hash so we have something else we have to c...
4,162.52
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
authentication um we have diamonds and the user was what is it Alex miles um I have it right there so let's try this curl again and we'll do Alex miles diamonds and there we go we authenticate so we could mainly go and dump this I think it's like catalog and we see repositories magic gardens. htb and in the Box registr...
4,237.76
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
pull uh what get clone is it yeah and then we go in doco registry Grabber and then it's going to be dear G.P so let's make sure we can run this no module named Rich so let's do python 3- MV vm. VM Let's uh create a virtual environment for this Source VM bin activate FP 3 install requirements.
4,296.76
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
text and then now we should be able to do Python 3 D.P awesome and let's see it wants username Alex miles password was diamond or is it diamonds Diamond and let's see we can do the list and where's the host go or the is at the end HTTP 10 10 119 P 5,000 and that's htps there we go uh something screwed up I don't know w...
4,329.92
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
that is finished if we do a LS we have a new directory magic gardens. hdb which is the um Docker container that we dumped and if we CD into it we have a bunch of tar files so I'm going to extract all these so we can do four I well first you may try like t-x F star. tar.gz but um I don't think Tara supports like multipl...
4,415.639
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
versions and yeah we're just waiting for that to extract I guess we could kind of look at it while it extracts let's see if we do um actually my computer just hung while it was extracting so I'm just going to uh wait for this command to finish oh it's already done awesome so we have all the files here I'm just going to...
4,485.4
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
don't have any hashes here uh LS root nothing here LS home nothing there LS opt nothing there um let's see find do- name star. piy so we have a lot of python here let's see what do we have I'm going to get rid of everything with lib and we have a user Source app so if we go user Source app this is going to be the the u...
4,549.96
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
dump and we can get extra users here let's see we have Mor ID we probably should do like a select statement we probably can get passwords um let's see g-i pass let's see off user SQL 3 DB SQL Light Select star from off user and there we go we have a the password hashed for Morty and this doesn't actually get us anythin...
4,630.159
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
settings we look at this there we go we can see it's using the pickle serializer for the session and this is actually going to be deprecated and I bet if we use like any type of like code scanning tool um it would Auto detect this do I still have it hooked up in Visual Studio let's see go up one directory open it up ho...
4,725.44
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
pickle and if you know anything about python pickles if you control like what gets decaled you can get code execution so I'm going to Google um Jango rce pickle serializer to see if we can find any scripts that have a thing and looking at thist blog we have remote code execution on a Facebook server and this is the blo...
4,809.88
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
this and let's go back to our box we have that secret key um I'm going to go to move Jango we'll call it exploit. and we'll open this up in Visual Studio code actually I can move it into pone move exploit. P pone we'll call it Jango p.p there we go so if we open this I'm going to comment out the secret key just so we h...
4,876.92
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
from here is my terminal going to be in it so it has it I don't know source. VM bin activate and pip 3 install Jango double equals and we want to do that version 4113 so we have successfully installed it use existing VM there we go and let's see are we using the C pickle anywhere I don't think so so I can just remove t...
4,969.56
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
is a python 2 script maybe so let's see if we can run this Python 3 Jango pone and let's see we have something not liking janger session where is this erroring contrib backend signed cookie time stamp see copy this can you help me fix this here is the error man that is there we go let's see if co-pilot lets us fix this...
5,065.159
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
disabled so yeah let's go ahead and try a different payload so let's do a F string here and I'll do B- C b-i then we'll do Dev TCP and I want to do cy.
5,245.119
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
argv we'll grab the second one and then we can do sis did I screw that up I did here we go AR V3 Z and one probably have to import sis there we go see that looks good I did not close out my single quote that looks better and what I also want to do is attempt to send the cookie so I don't have to go and edit my browser ...
5,267.159
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
scope sis has I need RV index out of range let's get rid of that two okay I need to change this to be ar V1 R V2 there we go and we got a shell so if we want to leave it as 2 three we would just probably have this request get we can do cy.
5,408.6
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
arv1 so if we exit we can start that up then we run it again HTP m magic garden I thinkal there we go and get a shell so now we're in a Docker container we can tell because just the um username or not username the host name looks like that that's just common with Docker so I'm going to import my TTY to fix my shell tha...
5,476.44
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
that so if we clone this let's do get clone deep C Dr in Python 3 HTTP server curl 10 10 14 84 8000 is it deep CSH pipe it over the bash and then it's just going to immediately run and let's see what it finds and I think Lin peas will automatically use this tool now as well so um yeah so we have exploitable that's just...
5,552.199
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
build the kernel module and if you wanted to deep C also has the ability to do this so if we look at Deep C or looked at the pages they have a exploit we can go back real quick downloading screenshots so here they're exploiting the sock exploiting privil Ed so it has an exploit flag and if we look at the source code se...
5,668.52
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
file to disk and then uh compile and run it so it's doing everything we're going to do manually so that's why I'm not going to show using it in deep C because we're just going to do it all by hand so let's see PX there we go this page may actually have St override let's see Mission any file you so you can write might h...
5,756.4
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
C are you gonna make me use an Nano okay can't use either of them so let's go ahead and make a dubdub duub directory we'll just copy it here and then uh Cur or W get them so reverse shell. C paste this and then let's see we already got the IP address but I want to use 901 instead of the 444 so this is just going to be ...
5,837.239
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
C W get same thing except make file then type make and we get missing separator stop so I'm going go ahead and replace those with a tab and see if that fixes it we can remove that W get it again make I wasn't standing the web server up missing separator should be fine by copy what if it doesn't want a do I have a line ...
5,914.96
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
spaces erase those tab there's probably some code in uh themm I can run to fix that but now let's run this cat command again see what it's supposed to look like yeah so now we definitely have a tab so if I do make there we go oh God I can't believe that that was annoying um RM make file let's stand up my HTP server WG ...
6,099.32
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
care and I'll see you all next time actually wait one second I just want to test something real quick if I edit this make file then I write okay the tab still there I was curious if um that would happen whenever I wrote the file but you can see this is definitely a tab now instead of space so with that being said that'...
6,180.28
0
{ "video_id": "nsg3RYiZ_oQ", "title": "HackTheBox - MagicGardens", "url": "https://www.youtube.com/watch?v=nsg3RYiZ_oQ" }
what's going on YouTube this is ipack doing mailing from hack to box which is focused around exploiting office applications that being said it does start off with a PHP web app that is vulnerable to a file disclosure you use this to leak the credentials of an email server that's running on the back end that you can use...
0.16
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
vulnerable to a rce and there's also a directory called C colon back/ important documents that if you upload a document to the administrator will open it with open Office so you just create a malicious document and you can get that way so with that being said let's jump in as always we're going to start off with an end...
47.28
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
server runs much better than exchange so um that's just what that is it is SMTP so this is going to be mail it is leaking the host name of the box which is mailing. htb so I'm going to go ahead and add that into my host file so pseudo VY host and then let's add 10101 11.14 mailing. htb and take a look at what else we h...
95.88
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
address this is going to be leaking the username format because we just have Roy mailing. htb so chances are they use just first name to log into their company this isn't a guaranteed thing because a company could set up like an alias so he could have um his login be like first initial last name first name last name bu...
152.12
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
not part of a domain so we know that we could try like shares to see if like Anonymous authentication is enabled and whenever doing this you normally want to specify a user that doesn't exist as well um I forget exactly what this is testing maybe it's guest or something like that but make sure you get a login failure w...
208.48
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
employees we have Roy which is the IT team Maya which is support support team and Gregory Smith the founder and CEO so what I'm going to do is I'm going to start adding valid users to this we have Roy um Maya and Gregory I'm also going to add Greg there because maybe he's just formal on the website right so always like...
266
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
is something at the very bottom of this though what was that highlighted U make sure to check all boxes so that's not too important um if we go to the bottom they're also um showing another email address Maya at mailing. htb so this is just confirming they're using the first name format in case we missed it on their SS...
315.16
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
target you never know when that's going to be handy right so let's go and um look at the metadata so if we do exi tool on that PDF uh instructions.pdf um we can see just the Creator is Roy Alonso so I was hoping we get like potentially another username here uh they are using the Microsoft Word product 365 I want to say...
368.72
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
when we just clicked it and downloaded it cuz it kind of just opened the PDF but if we turn intercept on we forgot to do that let's go and turn intercept on and then click download again and see this in BP Suite it's actually going to go to instructions.pdf and this is going to be funable to file disclosure but I want ...
423.639
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
not I've talked about this before in old videos I'm sure if you go to ic. ro you can find me just talking about it but we'll just show right here real quick so if I do a WG against this PDF and then run a um stat and WG saved it as that weird file name we see the access modify change and birth is all the same this is e...
487.84
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
file off the server apache's actually going to send all the metadata with that file as well so um when you see when you do a WG against a file and see the modifi date is kind of like this you have a relatively um confident understanding that that is indeed a static file on the server and if the modified datee is the ti...
545.56
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
with download.php let's try it including itself we get file not found let's go up one directory and we get a PHP header in the script so what this is telling us is we do have a file disclosure vulnerability I don't call it a lfi because we're not executing code if this was an include statement on the file then we would...
603.16
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
that always exists on Windows and we can see we can get the um windows license off of this I'm sure if we opened it it would actually tell us the version of Windows I don't know off the top of my head and that formats a pain to read so let's just move on we know it's Windows if we didn't know that we could go like Etsy...
654.399
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
common One DB we don't have anything I probably should be running gobster to do a durust on this to see if there's anything else but let's just um kind of move on on so they are using hmail server so my first step is hmail server configuration file to see where this is stored to see if I can download the hmail configur...
707.92
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
server bin file not found this could be um x86 right so let's try program files x86 file not found is there not a space here let's see am I getting the any file right uh let's see bin oh I have bin we should do any let's just paste because typing leads to mistakes I'm going to do a space again here and we can get the a...
782.56
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
to crack it as well but if it's just md5 normally my first thing is just going to crack station and we get one crack so the administrator password is home networking administrator so let's go and see if we can log into this box now so we'll do nxc um was it SMB 101 11 14- administrator DP home networking administrator ...
862.519
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
test it for authentication so we're going to do swacks D server mailing. htb um off is we want the login method then the Au user we do administrator at mailing. htb needs to be the fully qualified name um all password is going to be uh what do we have it was home networking administrator let's just copy and paste so we...
920.48
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
one's clicking a link so the next thing is to think back to that PDF that we downloaded um is it uh what's the hotkey for downloads I thought I hit it but maybe not oh control shift y I guess I was is hitting Chrome's hotkey or something but they use Windows Mail and Thunderbird and also keep in mind we saw in the time...
974.959
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
started getting developed on right if we add GitHub we get a PO from February so let's look at this one real quick um let's see I'm trying to think of a good place to start because I really hate just running exploits because you don't really learn much about the exploit um I guess we can talk about uh the checkpoint ar...
1,041.36
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
word but um everything kind of used the same like preview pane for code right if you try to click a link that um Outlook doesn't really expect it normally pops this up that just says something went wrong right but the actual bug is if you put a exclamation point and then something there that kind of disables that check...
1,092.44
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }
if we actually need it if we can just send the HTML if we can just send the HTML we could probably also just use swwa to send this if swwa can do HTML um swwa DH uh maybe help see does this have HTML let's see HTML body I'm not exactly sure how to use SWS to send HTML but let's let's just download this p and then remov...
1,145.36
0
{ "video_id": "hHBkx31XuDw", "title": "HackTheBox - Mailing", "url": "https://www.youtube.com/watch?v=hHBkx31XuDw" }