text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
next variable which is stream so we'll just rename this one so we'll do dollar stream is equal to uh we'll call this please sub okay let's look for the next unique thing uh we may want to rename bytes but I don't think we'd have to we can do data um we'll do dollar data the stuff okay I'm going to do send back as well ...
3,037.359
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
lucky and um don't have to modify the get DEF right that's why I wanted to do it this way because it just makes it so much quicker and oh shoot we forgot to listen I still caught it and we got the shell so let's do who am I and we can see we are c/ um service team city so we have successfully got access to this account...
3,137.319
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
the password um we can also just do further enumeration right um we are in C colon team City build agent work um if we look at anything else here um what is in Old we do cd. old nothing um if we go to program data program data that's it right yeah uh let's see there is a jet brains and the thing I was looking for when ...
3,228
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
of doing these videos live uh let's do program data I guess the easiest thing we do would be like upload netcat 64 and then just run that right um like uh cmd.exe C SP a new process and run it that way would probably be the easiest we don't have to do that um if we went in system let's see what is here artifacts there ...
3,312.799
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
go on the mount um and we want to find where that is if that does have a repository if we go to migrations there is adcs reporting and get adcs report so it's probably going to be this so let's cp-r adcs reporting back to our box and then we're going to apply this diff and extract the files out of it um I'm sure we cou...
3,389.559
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
then cred to pull this password so we essentially want to copy this and um just output the password right and we can't decrypt it on our machine because um the secure string uses a variable that's on the host itself but because we can go on the host and run it as other users we can safely do all of this so what we want...
3,471.44
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
specify all the files so we'll do encrypt text key key um no I bet we just did the head which would be compare it against the last commit it looks like that does it so let's do get to this to.get so now when we get the shell it will automatically have um some things we want right and did I have yeah I do right here oka...
3,544.799
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
it we can just copy this then we copy the password and then we can do cred and if we output cred um write post cred is it cred do password that doesn't seem good um Echo pass Echo key so key worked password did not um not sure exactly why that's cat. text this is the file it's reading I wonder if this is all just one f...
3,650.319
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
put it on one line so um shoot I did not mean to delete that pan I want to create a new diff doget let's remove those we say get diff head then diff doget that looks good so now what we want to do is get the password and make sure we can um decrypt it so let's go back here get our shell personal build run okay we have ...
3,780.48
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
11207 e black and the password this I'm guessing both these people using the same password manager the passwords look um eily familiar just based upon the length and types of characters uh let's see we have success but we can't log in with SMB if we do wi RM it looks like we can so the other user we could not do winrm ...
3,932.359
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
Blood Hound so we do have um I think Blood Hound python uh oh I run it and Docker that's it so if I go opt Blood Hound that's not it let's do Blood Hound P we have this um we could install it with imping and everything but I've gotten the Habit more of just using the docker files because it will automatically like keep...
4,001.4
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
specify what directory we want to share with this container so I'm going to share home IPC htb and the box which is coder and then a colon where we want to share it to I think the correct place is like Bloodhound data but it really doesn't matter I'm always in the habit of just mounting to SL Mount then we say we want ...
4,060.48
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
in then we want to specify the name server of 1010 11207 uh the domain c. htb the DC we do dco1 cter htb and zip so I think this will run it says ldap authentication is refused because ldap signing is enabled and it goes to use ldaps and starts dumping everything we could do it with each user but blun Hound doesn't rea...
4,127.199
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
um it's a bloodhound and then once this opens we just want to drag and drop our data into it so I can go here drag this and it will upload all The Blood Hound data and we can begin looking at it um spoiler we don't really get that much but there's some cool things we can look at that I don't think I've shown before um ...
4,188.64
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
so we can add him Merk as owned uh we also have the team City account we can Mark as owned who else do we have we have the Sarah blade Mark as owned okay and then you could click around and do the shortest path from like own principles and you'll find there's really no paths um I did not click that uh own principle the...
4,272.52
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
when it was still loading so there's 55 groups one computer Five O three gpos one domain so what we want to do is show me all the OU in this um we could look also before we do that I guess look at the group so what I would normally do is look at outbound control and see what things are so we have eblack here and E blac...
4,357
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
eake enroll computers because if he can that's an easy one to exploit so let's go back to the net exac that was three I think do I have it here um I guess we just type it again cat SMB or creds so we can do net exact um ldap then 1010 1121 207 dasu E black-p put in his password - capital M maq this is going to get the ...
4,420.88
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
account or service team City let's go to outbound transitive object control doesn't show me anything so let's go to the next one um s blade let's go to Sarah guess I have to click here there we go oh it's Sona Sonia I thought it was Sarah for some reason but it's Sonia uh let's see click here and we can see what Sonia ...
4,509.159
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
agent management so there's not really any information the one thing that it's we haven't been able to see right now is U and think of that as just like the folder structure within active directory um Blood Hound can show it we just have to go to do a raw Cipher query and when you have debug enabled you can see all the...
4,617.96
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
is I think the local administrator one right um this is going to be the domain Sid so that's why it's a wild card so that's how that query Works we're going to kind of change it up and the best place I think to learn the cipher syntax is the hack the Box Academy course um I know it's one of the higher tiers a lot of pe...
4,678.719
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
has items and if it doesn't have items it doesn't matter we're not showing what's underneath OU right because um forg getet what I'm saying um like the OU could contain other things like you put groups in OU users in OU right we're just looking at OU right now so we'll do that return like that so this is going to be th...
4,731
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
groups and like the groups has software developer build agent management there's also this OU that has nothing in it um we want to see exactly what the purpose of this OU is and unfortunately we can't do it from Blood Hound this is where we go into um the when RM component right so let's go over to when RM let's see th...
4,805.679
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
we want to do there now is do a pipe and say where identity uh reference is equal to um the group right so we want to do coder which is the domain back slash let's see what group do we want we can do software developers so software developers uh maybe I have to put this in caps or it's possible software developers does...
4,883.159
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
spelling correct if we go back to softare developers and fix that typo we get nothing so what this is showing is we have two permissions to this as build agent management um the first one is this object type and if we search what this object type is I think that's going to be um computers so let's just Google that um g...
4,984.92
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
our current user doesn't have uh isn't in this group right this is the do we have notes here right here we're e Blake we have pki admin um s blade is a software developer and is a member of this group so what we could do here is from eake we can create a certificate that will um or enrollment policy I guess I should sa...
5,059.52
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
will um as the malicious machine and enroll machine I should say well create malicious machine object is enrolling it great computer we will do certify to go to DC so that's going to be the attack path um again I think we're over complicating it a little bit here maybe we'll get simpler but I really did um like showing...
5,133.159
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
search certified and then we'll go to this article I'm not going to read everything this is a patch thing but the way it was patched does allow it for still configuring it to be vulnerable which is why we're going to abuse this right this whole post is good essentially um when you create a certificate for a machine you...
5,201.32
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
talk about this uh let's see where is it there we go on this patch so the flag it says it was patched but it's been done in a way let's see so essentially if Ms pki enrollment flag is equal to the CT flag no restriction extension ID which is 0x 80,000 and hex um then it will be vulnerable uh it says it is unlikely this...
5,260.56
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
so let's see um the first thing we will want to do is um I guess we can run certify first try to think of a good path so I think we're going to run certify show it says it's not vulnerable run it again after we create the malicious cert and we see it is I think that sounds fun so we do certify f-u ec. htb the password ...
5,332.76
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
clone and then let's CP adcs template up One Directory okay so now we want to download these two things to the box so we go back to our winrm let's make dur adcs now we can curl 10 10 14 8 8,000 uh what were those file names psd1 and psm1 - L there we go then psm1 and let's grab the curl okay so now we want to do a imp...
5,427.28
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
post uh what was it let's see do we still have certified up we want this enrollment flag so it's set to 32 so let's do a vau template dot um Ms pki enrollment flag does that pull it let's put it in quotes because we do have dashes and that is a dangerous character um I'm just going to copy it just to make sure we have ...
5,538.639
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
so now if I do let's see certificate enrollment flag there we go 32 so now we can set it to that so now we have a template we have changed the enrollment flag so now we want to um import the template so let's convert this to Json we don't want to convert just the variable we want to convert everything we can call this ...
5,683
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
will um flag it wherever we ran that there we go so it's going to find them all and there we go we have a ESC for um template it's owned by Aaron black it actually says the name not the um account but that template is owned by him now in order to exploit this esc4 we have to create the machine with a um spoof DNS name ...
5,786.76
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
py oh I should have just copied it my bad there we go and what we're doing is I just search for DNS and what this is by default going to do is create the DNS HST name of the computer HST name whatever computer H name we set it to um we want the computer H name to be different than the DNS so I'm just going to um get ri...
5,886.36
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
group and this is going to be that OU so let's go here we can grab the OU that we have permission to add in hit enter and still debug let's see that is not helpful I think this may mean it's going through SMB we want to change the method to L probably and before I do that I want to get rid of this computer group so we ...
5,967.56
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
ldaps command so we have method ldaps computer group we do this and before I add it let's do a get 80 computer pone PC we see it does not exist so we can run this it added it and now the computer exists so let's make sure um we have a template still so get adcs template because we've spent some time um select display n...
6,051.8
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
to our impacket and we want to run certify now so we'll do certify dasu and I'm going to specify Pon PC dollar DP please sub-ca um this is in the certify output if we just do uh this it's almost always going to be like uh the domain let's see do we have certify vulnerable yep there it is let's see come on give me the o...
6,158.32
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
htb uh unrecognized arguments oh uh certify request right right we did something wrong certify request own PC certify let's See's request yeah and then I thought we would give it username doesn't not like the dollar what argument is bad C PRI request oh ca name that's probably it no let's see I must have a weird versio...
6,224.44
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
on because when I loaded this GitHub page so I'm not sure what happened I did a p kill Firefox and it seems to be fine um the downside is I lost the link so let's add this again certify GitHub see can I just copy the URL I don't want to go to this page again so let's add this get clone there we go so let's do a pip 3 u...
6,427.76
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
certificate so now we should be able to do certify off pfx dco1 doc. uh dco1 pfx it's going to get the TGT thinking about it um clock SK so we can do pseudo ntp date and we fix the clock SK and we've got the ntlm hash of the um DC so this should allow us to do a secret stomp so hold on let's do veds dco1 like that okay...
6,545.56
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
HTP see let's do that and then at curent htb there we go um so what was happening there let's just pause that output um I was just specifying this thinking impact it would be smart enough to go just to dco1 but of course it's not so we have to do the at to specify where to DC sync to right and we have the administrator...
6,637
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
quick SMB dialect and if this doesn't work we can probably use evil winrm right but we do who am I and we are c/ administrator so that is the Box through the intend way and now let's talk about the unintended way right so the intended way is we had to use both of these accounts right e Blake was the pki admin so you co...
6,763.36
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
there isn't one um I'm not sure how everyone like purposely makes these misconfigured now that like the defaults isn't vulnerable but um I digress so this does give us some useful output it's from certify right and it tells us what we need to be esc1 so if we went back and we do this certify fine command I'm going to g...
6,822.96
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
needs to be true it is currently false so we have to flip this bit um certificate name flag oh wait enly supplies okay yeah this is true and then certificate name flag also needs enolly Supply subject that is not here so we will add that enrollment flag is set to none we have a few things here so we want to unset this ...
6,885.48
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
right we did export last time wonder if I could have just done get I think I could so this is even easier I don't know why I used export before I do a.name that works so we now have the computer sh so the flag we need to change we have enabled is true right so we can do a do enabled see wonder if I want to do export so...
6,984.719
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
subject we want to set that to true so what would be enrol supplies subject here I'm going to guess it's going to be enrollment Flags because that's the only thing that has enroll in it so let's just Google this and let's see so this is going to be a bit mask um it's set to 32 which would be 20 so it's set to Auto enro...
7,082.44
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
enrollment flag To None So we still want to modify this but that wasn't the modification I was looking for so we can set that To None which would be zero okay okay then let's see I don't know how to do that one certificate name flag here we go let's search this so we get name flag attribute there we go so the bit mask ...
7,172.36
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
that just to show you how like bit masking works right so we just flip the very first bit which is one so we know that's now going to be set um what else do we need from this required management approval and authorized signature so let's see we set that signature zero I think we may be good let's just do um convert to ...
7,270.44
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
and look at the settings or let's do that anyways it is vulnerable so we know we can do esc1 but I do want to look at the settings to show you um how that changed right so we can do a less on this our name was esc1 and remember I just added the enolly supply subject here so you can still see the other two are there and...
7,377.36
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
htb so just go to request and it did not like that I get this era on and off I don't know exactly what it is wonder if this user just can't request so what I'm going to do is add a name server to be 101 11207 uh we probably should say search uh what is it c.
7,448
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
HTP does this work better now no if we give it a bad password we still get that error does debug tell us anything of course it doesn't I haven't actually done the uned way so I don't know if something's broken on the box or my library cat creds e black that is the password the requested certificate is not supported so ...
7,498.76
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
pfx um we do certify off- pfx certify couldn't find identification I think that's because we forgot to do one thing uh when we request this we also have to specify the user we want to impersonate so let's do administrator at um C.H HTP okay so now we save the certificate to administrator. pfx so if we do this principal...
7,612.04
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
sure the black hilles post does say it does when we do a request we're now impersonating a user right um before I want to say we exploited was it esc4 um it was either esc4 or esc6 so that's why we didn't have to specify the UPN because we are writing on the DNS attribute of the computer object we created this we're no...
7,695.159
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
then we'll do I think it's- Capital H for the hash I don't think I specify the hash that maybe I do let's see there we go pwned so you can see we definitely have the ntlm for administrator so take care guys hope you enjoyed it and I'll see you all next time
7,759.92
0
{ "video_id": "uZiEKiG96VI", "title": "HackTheBox - Coder", "url": "https://www.youtube.com/watch?v=uZiEKiG96VI" }
what's going on YouTube this is IP I'm doing codify from hack the box which starts out with a web page that allows you to upload JavaScript to node.js code and have it run the server and give you output in order to try to do this securely the author used the vm2 library which is a Sandbox and prevents things like file ...
0.08
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
and then from there it does a MySQL dump and you have to examine the password MySQL dump will mask the password but if you use P spy you can intercept it before and then we'll go into exactly how my SQL spoofs arguments so with that being said let's jump in as always we're going to start off with an end map so- SCC for...
47.48
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
going to go ahead and add this to my host file so let's do a pseudo VY host and then we can add 10 10 11 to39 codify htb and the second website is just a node website listing on Port 3000 so let's go take a look at both sites so I can do HTTP 10101 11239 redirect us to cy. htb so let's try taking a look at this on Port...
96.2
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
just go take a look at what this website is uh it says test your nodejs code easily this website allows you to test node.js in a sandbox if we go to try it now we can try uh console.log hello world and we can run that we could try getting files um I think it's like what is it require file system. read files sync I thin...
160.599
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
we can't access the file system and child process they've weight listed these modules so it is potential that we could um use these modules to execute code uh but first I want to see if there's any way to identify exactly how they are doing the white list because I don't want to go do a bunch of research on each of the...
234.519
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
repository and going to the parent project um instead of the release we can see the project is discontinued and it's discontinued because it contains critical security issues it recommends using isolated VM instead so no longer really that trusted if we look at it that read me was updated let's see where is it 9 months...
289.88
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
run and we just get this object back that says it's a promise and in JavaScript promises or just something that promises to return something eventually um it's an asynchronous operation so we'd have to like put a then statement before this catch and do a bunch of fancy stuff to try to catch it and get the output it's a...
353.36
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
feel like living in this web browser so I'm going to do bash DC then single quote B- I Dev TCP 10 1048 Port 910 and one like that and then let's make sure our shell is listening so NCL lvmp 901 run this and we get a shell back awesome so let's just upgrade this so I have like tab auto complete so python 3- C UT PTY the...
416.8
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
then what is it sites enabled and we can look at the default and we see uh it's just a straight proxy pass to Lo um Local Host 3000 so I'm guessing there's no like development version of the website the Apache and Port 3000 is the same thing uh we can look at all the ports on the box and we see my SQL uh pm2 is running...
490.039
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
110 now I do that same less command it looks a bit better so if I didn't do the- s right here where we have it going off the screen I wouldn't be able to hit the right arrow and see all the out um so let's see we see Docker I don't know what Docker is running it looks like it's just the mySQL database Let's see we have...
556.76
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
a database so we have tickets. database so I'm going to do SQL light and then tickets db. dump so we can just dump the database and we see there is a user Joshua he has a b crypted hash right here for a password it looks like um and we see two tickets Tom Hanks says they need networking modules uh Joe Williams wants it...
632.12
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
specify the actual mode because the autod detect failed I'm going to do 3200 because this is what the hash looks like um it could be a form camur e-commerce but uh just looking at like these files I don't think it's a main like form or something like that I don't even see like a do get directory or anything so let's ju...
692.48
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
htb and then putting in the password there and logging in this way so as Joshua let's see what we have bash histories to Dev null if we do pseudo- L we can see we can run the script my SQL backup so let's take a look at this so right off the bat we're going to set DB user to root and then we have the password it's goin...
759
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
quoted then we have a make dur it's going to um do my SQL and right here is the second vulnerability uh because we can see the processes by other users by just doing a ps- EF right and it's putting the MySQL password just on the command line so if we run APS as this command runs we'll be able to see this variable which...
832.88
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
a fuzzy comparison there we go this is the wiki I wanted if this actually loads hopefully the page loads it's going awfully slow I guess while it loads we can show this so let's do this V I'm going to call it p. sh b bash okay let's see how do we want to do this I'm just going to say if it's confirmed and we can say uh...
911.639
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
entered um like this so this will let us see um what we put in if I do the asteris it's saying end map because bash is actually reading this and it's a special character so it's grabbing the first directory it sees so if we wanted to use that we'd have to put it in single quotes um oddly enough when I do the echo it ec...
997.36
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
here right here 34 oh this is redirecting us to that Wiki uh stop 34 period there we go pattern matching is what it calls it right so that is that vulnerability let us exploit this now so let's see if we do pseudo- L can say pseudo this put in any password it failed I'm going to put in a star and it runs so let's run t...
1,089.24
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
going to censor this I want to say if we do PE by it's automatically not going to do that but we could also go in/ proc and on this PID and get it that way but I think PE bu is going to be the easier option let's just try that real quick um so let's do make D dub dub dub and then we can say CP opt piece by do I not hav...
1,198.88
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
in Linux there is a hide proc flag that you can add to like FS tab that will hide the process of other users so if we just Google like H proc FS tab um go over to the Linux system hardening and it will tell us how we can set that um and normally you should reboot if you edit like FS tab you want to reboot for it to tak...
1,314.039
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
slpr to have hide P ID equals 2 now the permissions are going to change on the slpr directory and we can only see things that we have started if we do lsla on slpr uh do we even see the pids we don't even see the PID like the directories here right we only see our directories so that is a really good thing to do just o...
1,379.2
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
some of those issues it's not bulletproof right the correct answer is just never pass the password as an argument because you don't know if that's being logged in the history file other places right but I do think it is good practice to remove the ability for users to see other users processes so now let's go just talk...
1,452.679
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
ID is equal to a number we can say say get PID like that close that off return zero and we need to just create a loop so all this four command is going to do is make me control C out of the program it's a hacky way to do like an infinite Loop so let's uh do it includes since we use print F we need string uh we need sta...
1,524.559
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
right so in order to start this off we have to get where the pointer is so let us do a um care rv0 is equal to arv like that and all this is is going to be where um RV's location is so we can just say RV that's now a pointer rv0 like that so at this memory location is where a.out begins right that's what that's saying ...
1,606.48
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
please subscribe this is um argv Z arv1 right so we can overwrite or read each of these so it's just looking for where an argument is- P for the password and it goes to the next one and does what we're about to do so now that we have that um let's grab the length so we'll do uh the STL so we get the length of what the ...
1,697.919
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
what happens here and then psf grap 7047 It's All Stars right and this is a.out and this is please subscribe so we have just um erased that right if you're curious if we go man aski search 42 uh let's see the star right here uh what format is that it is the decimal version right so if we wanted to put that as what my S...
1,796.88
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
see EF I'm confused right now uh 7100 I thought I could overwrite RV that way let's know that out was I not saving it no I was okay I am screwing something up here oh I am I am an idiot this is where it's like breaking so we can't control C okay PF grap 7133 so we overwrote the first argument um um right thanks for wat...
1,905.08
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
like making the X's nulls or um doing other things but you should get the um point of that right you could also just take a longer string right so this one then we'll overwrite those X's but that's all my sequals doing is when it boots up it is um going through all the arguments and doing a rewrite and Peace by is usin...
2,038.84
0
{ "video_id": "wH1Lp-sEVv4", "title": "HackTheBox - Codify", "url": "https://www.youtube.com/watch?v=wH1Lp-sEVv4" }
what's going on YouTube this is IPC and today we'll be doing compiled from hack the box which the hardest part of this machine is probably the prives because most Windows privilege escalation involves misconfigurations or running processes this is vulnerable just because a piece of software is installed it's not runnin...
0.16
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
states it's possible to abuse Sim links with sub modules on case insensitive file systems to write files in theg directory which can lead to code execution after that we'll discover the g t database and create a python script to dump the hashes in a hashcat format which lets us on the box as Emily and allows us to expl...
43.44
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
web server since we see HTTP here we can also look at the response and it's trying to set the cookie iight g t so most likely this is the G web service which is like GitHub gitlab or something like that it's just a um code repository thing we also see a TTL of 127 so most likely this is going to be a Windows box if it ...
91.72
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
Port 3000 and then we also want to go to Port 5000 and on 3,000 we have g t if I go over to explore there are two repositories we have compiled and calculator if we look at compiled we can go to app.py and see yes this is indeed a flask web service and then we see let's see if the request is a post um it looks like it'...
147.08
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
a.get here and I also want to do pseudo NC lvmp on Port 80 and then submit this to see what reaches out to us because based upon this code all it's doing is writing the repo URL over to a text file we don't see anything in this code of it reaching out to us so there probably a Chron job that goes over this um file and ...
217.879
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
telling us um ensure Visual Studio code is updated to the latest version so we know Visual Studio is running on the back end somewhere here that may be important later down the line I look at the calculator it looks like this is just a simple program doesn't really give us that much information um looking at the instal...
274.96
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
some time to understand so if you don't understand exactly what's going on don't feel stupid like it took me probably an extra like two hours to just walk through this and fully understand it I'll do my best to explain it in 5 to 10 minutes but you may want to um work walk through it yourself to fully understand what's...
335.84
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
there actually to be a way to execute code this way and a lot of projects will tell you just to run with the recursive flag so you download all the dependencies as well such as like um net exec famously does this because you want to download the net exec code and then impacket is a subm module and you need impacket to ...
378
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
these hooks are local if I create a post commit hook and then commit my repository or commit my changes to the repo it doesn't upload my hooks to the repo that's just something I can do locally so if we can trick get into wrting to this file then when git is running we can just say hey now there's a post commit hook an...
430.52
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
component because you can trick things into going into directories that um just aren't possible on Linux because Linux is K sensitive so what's going to happen here is we have this directory called a and this is where we're going to write our subm module right but we make a Sim Link at directory lowercase a and then po...
486.36
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
essentially all this is doing is checking if the the directory they just create is empty if it's not then they're going to exit um let's see that's clearly shown right here I wish um let's see if I make it smaller is a bit easier to read I don't know but um this is one of the new things added um directory contains only...
543.279
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
reruns the exploit to make sure it's not vulnerable and this ensures that the vulnerability doesn't get reintroduced at a later point in time which is a pretty cool thing to do but also it makes reversing it somewhat trivial because they put the PO essentially in the git repo right um I'm not saying they shouldn't do t...
608.2
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
path exist and then they add it and they create this local file now they're going to set the main repository so they go in they add the subm module of their hook they commit it now they're creating a um doget and they're going to Hash it and now this print F I think this is probably just writing it in a format that get...
661.68
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
right so I'm going to do root atp. roxs we'll do a password of password and the reason why I'm doing this is um we have to point the website to something that host a get server right I don't want to stand up G or gogs locally because that's just extra work I can just use this G repo and then point it to this when I'm d...
720.959
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
now it's creating this post checkout file what we want to do is run code so I'm going to have it run Powershell so let's do um let's see what do we want to run we let's just edit this file real quick I'm still going to going to do bin bash which I know is weird on Windows but I'm assuming this is running git bash becau...
788.16
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
PS1 so this should now EX our Powershell that looks good to me and then let's make this executable so we do Cod plus X on this so we're right here so we what we want to do is a get add to add the file and then we push it so we'll do get add I'm just going to do a period to add all files get commit uh we'll do create ho...
836.72
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
we're going to do a get some module ad and then the repo path so we do this and the hook repo path we're going to put as um let's see this and then it was SL Hook was the name of the module okay so we have added that so if we look what happened um that adds the directory capital A if we go into a that's going to be or ...
904.88
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
test there's a line break in that file so that's probably why they just use print F they could do like Echo dasn there's no real difference between that um then we're going to get hash object and they say from standard in so all they're doing here is hashing um the file right they're going to do that and direct it to u...
978.759
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }
files anymore I really hope we don't because I'm going to go ahead and delete these uh we don't need index. info as well because we added it to um or get a file right that's my understanding right now we can do get commit get push okay so now we just have this and if we look at this we do have a create mode 12,000 so t...
1,040.679
0
{ "video_id": "aG_N2ZiCfxk", "title": "HackTheBox - Compiled", "url": "https://www.youtube.com/watch?v=aG_N2ZiCfxk" }