text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
yes we do so if I wanted to reverse this I can just do Hex dump D r-p data. heex or is it xxd my bad not XX dump there we go and we have the hash so this matches with the strings - L we had just done but um yeah where's my Crypton notes we have it in six probably and we'll say pin protected hash there awesome so we'll ...
4,685.84
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
we do corporate Milla that's going to create a new Firefox directory and I'm going to execute it with the profile manager flag this way when Firefox starts up it'll ask me what profile I want to load and I'm going to select default release first and if this one doesn't have any history then I'm going to switch to the t...
4,774.239
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
this may not be the repository I saw this is one that will work we have to edit the source but when I was recording the video I found a much better program I haven't actually ran it yet um because this one we have to edit it and manly put like the email and everything else but I'm G to go back and maybe I need a space ...
4,842.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
working uh they have instructions on disk as well but I didn't have actually did on this method I just saw this uh GitHub page and thought this would be a cool thing to show but um C the demo Gods maybe and we have the brute forcer now there's one cool thing about rust of well one thing you should know is if you were c...
4,925.88
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
going to do this um once it's done we can run the tool right so we go to Target and I'm going to go to release and then bit word and pin and we need what is it D- email let's go cat Crypt notes email is lwin Jones and then I think it's Dash do they say on this easily um- e for encrypt and M is email we can do- m and- e...
4,980.88
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
it's probably processing that back tick when I do double quotes so I'm going to switch to the other brute forcer and we'll see if that one works uh because that looks like it's supposed to be base 64 which would be really odd let's go back to the data actually um here's the data he dump data zero p is there a back tick...
5,100.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
out okay let's do strings encoding little Indian grab this we don't have the back dick so however we grab that out I don't know what we screwed up we screwed something up uh let's go back here here let's do V crypto notes let's fix this we definitely want to edit this take that out Force the right okay so let's go back...
5,196.04
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
a hash a second that is incredibly slow compared to release right I think this will take like probably six or seven minutes maybe even longer estimated 8 hours um but that's just eight hours to do the entire key space since it's going sequentially 02 is it where is the P found yeah 02 is pretty early so it's not going ...
5,280.04
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
corporate. htb so this is what we have to access and there's a piece of this box that I don't exactly like that took me a little while to figure out because I can't access get this way and we can't also access it from the workstation um if I can remember which terminal it's probably the one that says SSH there I would ...
5,321.08
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
htb and we have to make sure we remove it from the 1010 111 so now in Firefox when we go to get corporate htb we're still getting forbidden I'm going to do control shift R to force a refresh and there we go we get access to get we can do sign in and we already knew his password but we have the um onetime pin that's goi...
5,389.119
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
two things we can do from this we can either look for vulnerabilities in the code and try to exploit it which would land us on 10901 or we can pillage it looking for any type of secret um that may be in a commit now this is a very tedious process looking through all the commits manually so what I want to do is get all ...
5,463.36
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
just fine so let's go and get our people in corporate SSL so our people and then corporate SSO as well and when I was doing the Box the first time my first thought was let's find an automated tool to scan all this and truffle hog is normally my go-to but I don't think it finds anything let's just get the release and se...
5,537
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
uh corporate SSO see if it finds anything here unverified secret zero um let's try support and again we have nothing found through an automated tool so when I was doing the box I just manually looked through commits and eventually had found it I think if we went to like our people looked at package.json this is one of ...
5,623.04
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
um regx entropy false I don't think that's it that's definitely not it this is it probably this gray corner and this has a bunch of Handy scripts but this one really caught my eye um this get grap feature and doing all revisions so let's go into one of these and do our people I'm going to paste this and what do we want...
5,693.84
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
dot um we can now Forge this so we could remove required current password equals true and then what this should do is when we go to the password thing not require us to enter the current password so if we do that and combine it with changing the um username to be someone else we can now change someone's password right ...
5,759
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
lwin and that's because it's through um some type of ldap that is in Etsy sssd but we can't view that um there is a command called get ENT and then we can do get n Etsy or I think it's just get past WD and does this show us more users it does not um let's see group is it groups let's do get an group it so we can list a...
5,822.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
awesome so 500 is this admin is 409 anything it is not so I can do 500 501 502 503 4 5 six and enumerate this way so we could do find sl- group sis admin they can probably just pseudo on the box um sis admin owns my user. text interesting enough let's see is there anything by Finance Finance nothing and let's do engine...
5,908.36
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
do the casing just like they have it and ID what is Stevie's ID um get an user Stevie Rosen bomb uh thought that was how I did it ID Stevie Rosen bomb there we go 57 so 07 we can change this to false and then we want to sign this so where was our signing key is that this window that is not our people we can grab this I...
6,010.679
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
I'm going to change the password to password uh we can't change the password to high privileged accounts apparently so let's change a user and we're going to go to um what is it one of the engineers so that was group 502 I think and we can say ID we'll do Arc Ryan this is going to be idid 5042 so go back to Firefox 504...
6,129.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
but here we go we get logged in as AR Ryan and we have access to the docker sock right if I just do groups I am a member of engineer and what is it run doer. sock um yes we can access we can write to the socket that is the key piece we have right access so let's try running Docker I'm going to do a Docker ps-8 to list ...
6,307.599
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
it easy to copy around so I'm going to do Docker save Alpine on the latest to Alpine do tar and let's do a duhs to see how big this is it's only eight Megs right so let's do we can prob just copy Alpine dot to dubdub dub because I think I have a web server already running uh let's let's go to the ss8 session WG 101148 ...
6,363.199
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
as rout just to have a clean terminal um let's do sh key gen uh- file and I'll call this corporate cat corporate. Pub let's grab this key V authorized Keys we can paste PS in and now if we do sh- corporate then rout at 10904 this should let us in there we go so now we're not in the CH rooted environment um I guess it's...
6,441.08
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
other thing we can do is probably just switch to any user we want right um if we do su was it Arc Ryan as a user we can magically become them so what I want to do is become a CIS admin and the CIS admin was group 500 so we can do get an group 500 and we have to do 500 because if we type CIS admin CIS admin is also a Li...
6,519.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
600 and we probably should have named that like CIS admin. RSA or something but that's fine sh- I CIS admin sis admin at 10901 and we get logged into the main box so normally CIS admin can run pseudo so that's going to be the first thing I try but we need to know the CIS admin's password and since we used a SSH key to ...
6,593.679
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
anything no history file hidden files we do see things like Vlog PVE this is going to be relative uh related to proxmox we also have PVE cluster um searching that's normal and looking at backup files we have some interesting ones we have ver backups proxmox corporate um there's some anable stuff here so we should proba...
6,653.719
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
out I don't know but let's look at the other backups so if we cat notes where was the actual proxmox backup ver backups so if we go to ver backups and list we can see uh two things that stand out all these I say they don't stand out because um it's just standard backup things right but these are not like if we could ge...
6,737.639
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
get http 10901 91 save that okay we got bir those files and let's take a look um make backups go in here and we can do a t XJ VF is it xvf to extract that and then we have ver temp proxmox and a few TS so let's do for I in ls. tar do txf I done so now we have a list of all those files if we go into Etsy we have the uh ...
6,831.76
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
is empty uh PVE would be proxmox if I do pr there's nothing related to proxmox there so let's now go over into user see what's here user local bin just a get t uh let's do VAR stilling user nothing really too interesting here I think uh we could look at this config DB and that is a lot of data we do have off key.
6,923.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
key so it looks like we have something interesting there we should extract this um let's see insert into tree I do select star from Tre okay so that's the off key. Pub and this is off key. key so we can grab this RSA key and I'm actually just finding this for the first time I think this o key is also stored somewhere e...
6,965.32
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
same so you can either get the off key out of that um SQL backup database or you can get it from um the other backup file so there's two places you can get this off key and what this off key allows us to do is it allows us to actually Forge tokens or Forge cookies for the proxx API so if we and Googled let's say like e...
7,052.8
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
essentially one in this blog post they're doing is using this to grab the priv key and then using that priv key to forge a cookie so you can actually access proxmox so we're just going to take the code that um forges the cookie so I'm going to grab this generate ticket real quick and then let's do V test.py and we can ...
7,125.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
key and now we can do a print generate ticket like this and if we execute this uh we have to import time I missed One Import hopefully just one there we go so the other issue we have is this is PMG this is the mail Gateway we're actually doing PVE and I forget exactly what uh PVE stands for uh it's probably virtual som...
7,201.44
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
that is where we want to access um we have to stand up a socks proxy because prox MOX is listening on Port 806 and that's not open to us right I wonder if it is on 10901 is it 806 it looks like it may be yeah so we can actually access it on 806 so that's how we'll access it so we'll do htps 10901 806 if we couldn't do ...
7,294.4
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
PVE off cookie paste that and I think they did in equals right yeah okay we send this oh we don't even need those two other headers so we get access here if we didn't have this cookie let's just delete it we still get a 200 okay what if we did API or is it API 2jon access password we try accessing this we have no ticke...
7,389.719
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
slash so we do get slash search for csrf and we have a csrf prevention token so we can just paste that there and then copy this okay and we can go back to that part request and I didn't mention it this is a way to change passwords in proxmox this is I think the only way we can really escalate to get code execution I'll...
7,489.84
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
to copy this password paste it and we change the password so that is how to do the Box uh the other thing I was playing a lot with is when I was clicking around on the API I had noticed underneath of nodes there was a execute option where is that a nodes execute and I spent a lot of time trying to get this working but ...
7,576.159
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
git and it's so nice the csrf does not update unexpected content forget there we go data nothing maybe it's down here oh resources this is it because we return like a node list so we get cluster resources so let's copy this what do I have copied up to Cluster paste and this is going to list all the resources we have so...
7,661.079
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
probably say can't find node right it's waiting does it actually return anything if that's wrong yeah host lookup name failed so a node is definitely going to be corporate and we want to try to run execute so this piece confused me like the data it has so I just want to see if we can get it validated um we'll do corpor...
7,740
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
commands is equal to that there we go so we have parameter validation failed let's see commands is not a valid array 400 type check oh the field argument failed so it's not a string let's just give it a blank thing um not valid Json maybe it's a dictionary there we go so we have passed all the like um validation and we...
7,824.679
0
{ "video_id": "R7mkgYcFcZ0", "title": "HackTheBox - Corporate (FIXED)", "url": "https://www.youtube.com/watch?v=R7mkgYcFcZ0" }
what's going on YouTube this is ipack I'm doing cozy hosting from hack the box which starts out with just a web page and the next step can be pretty tough to find if your recon game isn't good because um you have to identify the framework being used which is spring boot because if you use that it points you to a spring...
0.12
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
the Java app look at the properties get the postgress credential which lets us crack a password and then we get to another user that can do a GTFO bin with SSH through the proxy command functionality and we'll spend a little bit of time explaining what a proxy command is in SSH so let's just jump in as always we're goi...
43.079
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
Cozy hosting htb so let's go ahead and add this to our host file so Pudo V host then we can do 10 10 11 to30 and cozy hosting htb so let's just go take a look at the website because there's not much else for us so I'm going to go to http 1010 11230 it's going to redirect us over to Cozy hosting once I tell burp site no...
91.159
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
Recon running in the background so I'm going to do a gobster directory mode dasu cozy hosting htb opt secist Discovery uh web content then raft small words. text okay so now that we have that running it is going to tell us all the pages we have there is a/ admin but we get a access to n message um SL era goes to 500 bu...
152.44
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
by slash thing but um there is kind of a way we can check that if you look at the headers we see there are 12 and let me change this over to a get request real quick uh change request type method there we go it's not going to be valid for this this one but I like doing a get because eventually I'm going to try to get t...
220.64
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
we're seeing um engine X is just saying this is a bad request right away if I add a semicolon here now we hit the Tomcat server but because um we're at slash there's no chance for an off by SL vulnerability that would allow us to do directory traversal here right because for that off by SL thing to happen it needs to h...
283.96
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
request and odly enough I think I don't know why this oh that's a 400 not four or four so Tom Cat just doesn't know how to handle that um but let's go back to what we saw before with manager HTML we have this 404 error page and this string is indicative to Spring boot um if we Google White Label Aerospace uh let's turn...
350.4
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
that and we see they left the actuators open um the actuators are mainly debug endpoints for spring boot applications they really should not be accessible but in this case they are so if I go to actuator and we see it giving us information about the environment right um let's see the path let's see what this one looks ...
428.12
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
right now uh post and if you're familiar with like other API things this would be like getting a Swagger documentation because it's just telling us a list of all the end points so if we do Post execute SSH we sent it and we still get a error Let's see we have to figure out exactly what this URL is Handler method does i...
501.319
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
successfully I just don't understand why we're getting a white label aace I would expect something slightly different but oh well I don't know spring boot but I would look at each of these endpoints we have SL admin there is a ad host um it's not telling us if that's a get or a post same with login so I guess if it doe...
593.32
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
Anderson's session here hoping um it wouldn't give the white label error space but it still does so I have no idea um what the mapping thing is in this so I'm going to right now I went in my developer tools I'm going to change my J session to J Anderson's then we're going to refresh and I noticed the disappeared and if...
661.839
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
added um let's go do burp suite and intercept this request so 127 01 hipac send it on over and let's see can I change the port so SSH does allow for ports so if I do man SSH um lowercase p so if I do lower case P let's change it to 8,000 and I want to see if I can uh make the server connect back to me so we do this we ...
739
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
there it's a tricky way to get um spaces in another way is using the ifs operator so we can just do um ifs like this I want to say we we have to use brackets as well so I don't think this is going to work either we still see invalid host name so we can't do anything there um I was still even going to 1271 but um invali...
818.32
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
for user and then like that right but most people when they SSH they use the at right so of course that's a bad host name but what if we put the- P back here right that's my next logic so let's do- P 8000 IPC and and we say username can't contain white spaces so let's do that brace expansion thing again and we have bad...
881.92
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
one and let's see I'm going to do a semicolon sleep one no let's do semicolon there and here and there we go so now we have command execution right um when you do this break expansion you have to keep it on the same thing so um when I was doing uh this it was treating this as part of the argument let's see if it shows ...
967.279
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
90001 Z and one like that okay base 64- w0 shell and I'm going to get rid of all the pluses because that's a dangerous character in HTTP that I just hate dealing with um that's probably right here okay and we got another Plus that's probably right here and we can get rid of those equals it's got two padding so if I add...
1,057.2
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
my payloads as simple as possible because I knew the air wasn't going to be around this right um I'm going to take a step back and I want to see if I can prove a point real quick so if I do v shell or let's do CP shell to uh vanilla shell and I'm going to have spaces in my payload and if we copy this and we paste this ...
1,173.6
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
no let's see list on 90001 oh we still have it twice so 302 I'm going to URL encode this still 302 that should have worked I have no idea what just happened there we execute vanilla shell that does work base 64- W vanilla shell we need to say zero this little proving a point thing took a little bit longer than I wanted...
1,245.76
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
beneficial to spend the extra couple seconds to make your payload um more flexible and get rid of those encodings before they even start right um so let's listen there we go so I'm going to upgrade my shell let's do Python 3 import PTY PTY spawn bin bash okay then stty raw minus Echo FG enter enter export term is equal...
1,344.4
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
hosting jar and normally when you host a Java app it will um expand the jar somewhere so I'm going to do a fine SL pipe errors to Dev null and I'm going to GP for cloud hosting and that did not work like that there we go and the only thing is this one jar file so we could just start um extracting this jar and looking i...
1,403.88
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
them's probably going to stick out let's see do we have it um my terminal size is bad the other way you could list the services that are running would just be f/ Etsy then Dame star. service and that will list all the services here right and if we go through let's see do we have anything that sticks out grub oh cozy ho...
1,487.6
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
I'm going to make Source I guess and then we can say NCL lvmp 90001 um cat Cloud hosting to my IP I did not direct it to a file uh to Cozy hosting dojar that would definitely help there we go so it's sending me the file and this should finish um give me a prompt back when it's done copying there we go and then we can s...
1,560.72
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
credentials right here so the first thing I do is try su- postgress pasted in the password to see if we can get a shell does not look like we can uh we could probably do a psql dasu p um let's see is it- capital u then H Local Host let's see perer authentication failed we probably need a password is it lowercase p for ...
1,638.679
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
commands memorize how to get to them so you can do Dash list or slash list to list the databases so you have cozy hosting postgress template1 template2 so we want to um use cozy hosting and then let's see Slash D is going to list the tables I thought I'm going to exit I'm going to specify the database cozy hosting copy...
1,768.159
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
hosting paste and now we can crack so I'm going to do hashcat D- username I think it's username for the flag um it's username because whenever I use hashcat I like putting username colen then the hash that way when it cracks it stores the username it went to it just makes life easy um hashes cozy hosting and opt word l...
1,868.519
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
because the application itself could always be doing something weird like um putting a hash beforehand like ing it in a non-standard way which would then uh break cracking Until you realize what it's doing so we have one hash Manchester United we don't know the username though um we could just look at the hash file and...
1,937.6
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
it um let's grab it there we go Su Josh paste it in and we get access as Josh if we do lsla uh we can see user. text we can try a pseudo- l and C we can run SSH as root so let's go over to gtf Obin and see if there's any known prives there right if I go to SSH we see a pseudo Rule and through pseudo we can use prox com...
2,001.279
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
over here this is our client and we want to SSH to web which is over here however there's some type of uh fire wall in play that is preventing us from just going straight here um this blocks the connection so we can't just SSH directly to web however there is a Bastion host that we can SSH to because this guy has um be...
2,073.56
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
web type this command over here first and make sure that gets established because then we can just go to web and we don't have to worry about the Bastion because it's automatically going to um run that beforehand and it just makes life really easy and if you don't see that making your life easy I'm guessing you're thin...
2,142.839
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
like that and then I want to say the syntax would be like- Capital w%c H colon percent P for host and port and then it would be bason right so whenever I ran the um command SSH Kraken beforehand it would set up the tunnel with proxy command to Bastion to get it set up right so that is how most people use proxy command ...
2,203.48
0
{ "video_id": "okTl6kWrncg", "title": "HackTheBox - CozyHosting", "url": "https://www.youtube.com/watch?v=okTl6kWrncg" }
what's going on YouTube this is ipag I'm doing crafty from hack the box which if you just do the default end map scan you'll only get one port back and that's a website however the website advertises there's a Minecraft server running so if you do a full end map scan you discover what port that is and if you had script...
0.359
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
written uh pulling down that jar decompiling it you can discover some hardcoded credentials that is the administrator password and you can use that to login as root so with that being said let's jump in as always we start with an end map so- for default scripts SV enumerator versions dvv for double verose that way we g...
43.8
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
11249 we can add that in and then let's go take a look at it so I'm going to go HTTP cy. htb and it looks like we have a portal to like a Minecraft server there's a form store and voting and each one of those just says coming soon there's also another domain play. cy.
97.439
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
htb so let's go ahead and add that to the host file as well and taking a look at this website we get the same thing uh we can also look at the page source to see if we can find what type of website this is maybe it looks like just a static website we can try things like index.php um aspx this is a Windows Server um HTM...
119.119
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
then- V so it shows us open ports as it finds them and we can do D- Min rate is equal to 10 th000 packets per second and then the IP address of 10101 11249 this is going to take around 7 Seconds to run because we're sending 10,000 packets at a time and normally I don't like doing this because when you send packets this...
174.04
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
map and normally when I poke at things I'm guessing this is going to be like the Minecraft server Port um because when we did the end map on that quick port scan it even told us the service was Minecraft uh we could download like the Minecraft video game but I normally like going for like a command line client or somet...
228.2
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
it's kind of funny that a video game led to like one of the bigger exploits of the decade because LJ affected a lot of java applications but uh let's just Google m inecraft client and if memory serves all we have to do to exploit this is um send a message to the chat so I'm looking for a console client so we can connec...
289.08
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
game that was quick so I'm going to do NC lvmp let's do 389 we're going to send a example payload to this so we can do slel and get a list of all the commands we can do SL send and then the log for J payload is just jndi ldap uh I think it's JL I think this is it uh 10 10 11 or 14 8 389 9 Let's test this out did I reme...
354.56
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
version but when we do this all we're getting is the very beginning of the packet right um we need to actually send the hello back so I'm going to actually Google o xdf log Forge which is another log Forge a machine I actually created this machine for the UHC um but in his blog post there is a tweet from I think hacker...
428.199
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
by doing uh CIS java. class. paath and if you want to learn more about log Forge a you can go my log Forge video where we do log for a few different ways um I'm guessing that payload did not work let's see sis do that is weird oh when I copy and pasted this I left a space on and when you have a space before the command...
498.159
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
server.jar um so we Google just a basic log forj oh let's see what is it ji I want to pull up that one exploit um is it j& exploit kit so normally in past videos I used this Jan exploit kit we're not going to be doing this first because we didn't see any vulnerable gadgets right this is like a wrapper around yo ser...
593.6
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
P um it's got a Java reverse shell program and what this is going to do is it compiles it to a class file and then just serves this off a web server um the one thing we will have to change is the CMD we want this to be cmd.exe instead of bin. bash or bsh because we're on attacking a Windows Server right so the other th...
656.36
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
version like seven8 whatever it is um um and I think that goes in the Target directory so I'm just going to do ACP user lib jvm because I have a jdk here I'm going to copy it into Target and where does it want it um I don't know where it wants me to copy it to I'll rename it after we run this so let's do p.p d-el we wa...
716.32
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
and it wants us to send this payload and what that's going to do is it calls back to the ldap server the um ldap server sends another request that tells it to go download a payload off my HTTP server and then goes and does that so let's do SL send this and we get a call back so now we have a shell on this web server we...
829.079
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
properties and see if there's any credentials in this and I don't see any credentials we can do a whoi all to see if we have like any dangerous privileges it does not look like we do we are the service Minecraft user if we do a DI um there are logs and plugins if we look at plugins uh there is this player counter 1.0 s...
877.24
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
to impact its web server I don't know exactly why um but we can xill this over HTTP easily enough um I'm going to convert this jar file into base 64 so we're going to do uh Powershell then we can say b64 is equal to system convert to base 64 string um get content path player where is the spelling okay let's make sure i...
967.04
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
b64 and we're going to do a invoke web request-uri HTP 101048 8000 we're going to tell it to post and we're going to put that in the body I'm going to give it a second and it's now just making that web request over to me I probably should have built like a proper web server to do this um properly but this is a dirty ha...
1,052.48
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
jar um if we look at this it starts with PK we see Meta this looks like it could be an actual jar file right so it looks like we did copy it we have player counter. class so what we want to do now is get JD goey so we can open up this jar file and see what is there so here let's go download JD goey save it move downloa...
1,100.32
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
everything string host so you got host port and password so we know this is a password so let's try this out for various accounts so I'm going to go back to my Powershell and we're going to do a net user and we want to try this for administrator and Jacob it could be one of those right um the 445 wasn't exposed we coul...
1,189.48
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
so we can create our credential object so we can do new object um system management automation PS credential and then the username so administrator and then the um password object so we can do secure pass if we look at this we have a credential object so now we could like try enter PS session um- cred cred that's what ...
1,249.72
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
to suck because i' have to get my shell again uh let's see yeah we can't connect so another way we could do this is through start process um I'm going to get some base 64 of a reverse shell so I'm going to copy user share Nang uh shells invoke Powershell TCP on line PS1 and let's edit it and let's see I'm going to chan...
1,336.039
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
process Bith Powershell then argument list dasc paste credential cred I wonder if this is too long of a command let's see I'm going to try it with the other one CP user let's just rerun this copy and I'm going to use the smaller payload because maybe there's like a buffer of how long argument list can be oh bollocks le...
1,443.76
0
{ "video_id": "sdV8s6EtJ9I", "title": "HackTheBox - Crafty", "url": "https://www.youtube.com/watch?v=sdV8s6EtJ9I" }
What's going on, YouTube? This is IPSC, and we'll be solving an easy web challenge that was created as a teaser for the Hack the System CTF, Hack the Box is running between June 27th and 29th. This CTF contains five web challenges based upon real bug bounty reports. It's free to join and the winning team will get up to...
0.08
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
to the Hack the System Bug Bounty CTF playground and then click play CTF.
39.68
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
You'll probably have to join the event first if you haven't joined it, but that will get you to this page where we can spawn the machine. Um, if you want to, while you're here, you can go to the upcoming, click on the one without a playground, the hack the system bug bounty CTF, and click it, and they can join the even...
43.84
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
I'm going to do the critical ops one.
73.76
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
So, I'm going to click on that, then click spawn docker, and it spawn near instantly. It normally takes like 10 to 15 seconds. If after 30 or 45 seconds you don't have an IP, just try refreshing the page and that's normally enough to fix it, right? And before we start, we should always read the scope or the description...
75.52
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
the site. And it also gives us a bug bounty report that this challenge was inspired by. If we click that, it's going to tell us it's client side JWT, which makes this challenge really easy.
117.6
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
The challenge itself is very easy, so it's not meant to be that hard. Just kind of give you a taste of the CTF platform. But this is showing a um JDT secret that was code um hardcoded in Zenesk. Um we're going to act like we didn't see this cuz if we just jump and go straight to um finding a JDT in some JavaScript sour...
128.56
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
was like a Next.js um middleware vulnerability a while ago. So, that could be something. Um, let's see. Is there anything else? I'm looking for maybe like React View or something like that. Um, but we just get a bunch of JavaScript here and reading this source is painful. So, I'm not going to really do too much. It's l...
180.959
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }
is going a little bit slow. We have a bunch of just default ones. Oh, actually 404 not found. This page, this looks very much like Laravel. So, I wonder if this is going to be a PHP backend. Um, and knowing it's PHP backend just gives us ideas of what we can exploit down the line, right? If we ever have a file upload v...
238.56
0
{ "video_id": "j7uj1f6VkSs", "title": "HackTheBox - CriticalOps", "url": "https://www.youtube.com/watch?v=j7uj1f6VkSs" }