text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
set it to be zero and I'm going to do this slf to force we're going to query it again we see the value is set to zero so now we want to create a uh document um and to do the very quick way I'm just going to use metas so we're going to do pseudo um msf DB run and this is going to uh just make it easier if you want to ma... | 3,195.96 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
to set the server port to be 8081 I don't think the server port's really even used um because I think this is like hosting the document off a web server or just set it just in case so now if I do show options we should have a document so we can run it and the document is stored there so let's copy that somewh we can ac... | 3,269.2 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
I just wanted to double check looks like it did so I think we're good let's see byy CD zamp HT docs notet Pub uh what do I want to go to internal applications we can see my resume still exist let's see that still at zero that's good so I think we got to wait a couple minutes again to see uh this actually go away it pro... | 3,363.48 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
as pts that way um the next step of the Box is doing a query user and actually discovering you're in a interactive session which is going to come in handy for this next part right because whenever we um land on domain join machines we should always start looking at like dppy keys so if I did like a I think it's Vault C... | 3,453.799 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
download these files whenever you do something because I'm sure if you go to ic. ro typ dpy we go over a better explanation of what we're about to do uh definitely check out like access that is a really good one um but you should always download these because these are going to be like your windows and built-in passwor... | 3,566.68 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
like that so I would highly highly highly recommend always looking in these directories to um pillage all the Deep happy blobs so if we do a DI here let's see we have Vault and I want to say that's where we want to go uh no credentials right we're in C colon roaming Microsoft then credentials credentials there we go um... | 3,616.68 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
or the um secret out of these we need to know the user's password but before I said we're currently logged in so we can actually query the domain controller which then will use Windows nlm authentication to ask the domain controller to retrieve blob for us and since we're logged in that's already cache so we already ha... | 3,698.88 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
not so there we go we're downloading mimik cats and now we can execute it and what we want to do is list the blobs um before we do this let's see okay so the command we're going to run is going to be deppy master key we're going to do n I deleted the file what oh no here it is okay so we want D papy master key in C col... | 3,799.24 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
that's going really fast okay that seems to be fun hope this is right yep everything seems to be going fine and now let's grab this one okay so now we have all the master keys uh let's now go to the credentials and see if we can grab those so that is CD back SL users pts app data roaming Microsoft credentials GC I forc... | 3,962.4 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
decrypt but we don't have any thing really useful decrypting credential generic Enterprise the target is my target username my user there's no blob so that's probably not a good file let's see where we grab them let's try the 841 F I think we did 18 so we can grab this and I'm not an RL W so I can't use the up and down... | 4,148.319 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
but um I really like the shell that run SCS gives so we'll do this then power shell - R 10148 91 and we got the shell so if I do a Who Am iall we can see what we're a member of and we see we're a member of the GP managers and if we actually ran Blood Hound on this we'd see there was also an attack through this being a ... | 4,248.159 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
commands through schedule tasks but I do um so if you're doing GPO things my recommendation is um to add local admins so we do Shar collection and this if you just Google sharp collection you'll find it on GitHub it's just a bunch of pre-compiled net binaries I always use theet framework any and then let's do um sharp ... | 4,314.84 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
I'm doing a backslash did I do that on netcat as well I did not so I don't know exactly uh what the issue is here but we have it so let's do sharp GPO abuse. exe add local admin user account Hogan and then we'll tag it to the default domain policy and this is going to just mean on every computer in the domain um Hogan'... | 4,410.84 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
shell again we just do groups so let's exit connect back and we should have built in administrators now so we have successfully added Hogan to the administrator group so we can now go users administrator then desktop and get root. text and that is going to be the box so hope you guys enjoyed it take care and I will see... | 4,527.679 | 0 | {
"video_id": "RZi77SG5KKg",
"title": "HackTheBox - Office",
"url": "https://www.youtube.com/watch?v=RZi77SG5KKg"
} |
what's going on YouTube this is iping Ouija from hack the box which is a very particular box because there are two exploits both are integer overflows that the data you send it is very very particular a very small mistake will just mean the exploit doesn't work the first one is in Haj proxy there's an integer overflow ... | 0.16 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
they actually coded a PHP library that has an integer overflow that enables you to do a buffer overflow and how you just do this is very wonky um it's hard to explain so let's just jump in as always we're going to start off with an end map so- SE for default scripts SV enumerate versions - VV for double ver this is goi... | 49.079 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
maybe it's um a firewall we don't know exactly we just know the packet is making an extra hop when it talks to Apache which just is interesting what I would normally do here is try to match up these banners so I would take like 8 n P1 ubun 231 and we'd go to this Google like Launchpad and from here it'll tell us what l... | 105.6 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
really do like adding this flag so this is just the default Ubuntu page and then we have the third port is 3,000 it's HTTP and it is the nodejs framework so let's just start off with checking out 10 10 11244 it is the default Ubuntu page there's not much we can do with this so let's do 10 10 11 244 Port 3000 and we jus... | 169.879 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
11244 Port 3 th000 then I'm going to do a fuzz in all caps word list opt SEC list Discovery web content API and then I'm going to do let's see the API end points and then D res the difference between like API endpoints and API endpoints d reses uh let's just share that real quick if we do a less on this one we see it's... | 237.68 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
there's a log so let's go to log it says uname and up pass is required so I'm going to do AME is equal to ipac and up pass is equal to uh nothing and we get disabled it is under development so there's not much here and this next step I really hate in the Box um I don't know how we missed it but you have to do the virtu... | 304.68 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
really see anything too interesting we look at Services technical support design perfect pricing it looks pretty boiler platy contact us nothing here if we look at the page source to see if there's anything interesting I always like looking at the headers to see if it leaks anything this just looks like St uh standard ... | 377.319 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
JavaScript right so we would see it multiple ways um you could look at source or through burp Suite but we have another domain so let's check this out so let's do pseudo VC host and then we can add G OU htb G.W htb and we get a get T page now since we have a domain I always like doing a um domain Brute Force so I'm jus... | 424.199 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
header like that okay so what do we want to filter for probably going to be size 10671 and we get Dev and development gives 403s everything looks like starting with Dev we get a 403 which is interesting but we'll get to that in a minute let's check out get T if we try to register an account looks like we can let's do i... | 507.28 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
contact form lib index is this going to be the homepage of the site it is looking like this is the homepage but if we look they have installation instructions and they say PHP 82 which is a bit odd because there no PHP on this maybe the contact form no so OD the running PHP on a static website um Apache version then th... | 583.12 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
post and this is going to be a lot to read I'm not going to go over it it is an integer overflow I don't fully understand it but um let's see we can kind of explain it so we have a request and Haj proxy you can bundle up multiple requests and one big one and what they're saying is if there is a deny there's a way to by... | 650.8 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
header which is a overflow I think and gets translated to one so this kind of gets just dropped there's no body here and then this content length goes down here well this isn't used name where it only reads the first one and then does the second request so we just completely bypassed the request because ha proxy splits... | 706.04 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
Dev and we don't have have the server header anymore right over here we have the server as Apache over here we don't this one we don't have the server header because it's Express this is probably just running straight Express not going through any type of proxy and keep in mind this port 3000 had a different TTL than P... | 777.24 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
but standardly they don't let you do that I don't think you can either like say Apache or can remove the version but you can't remove it all together easily to my knowledge so this really bolsters the claim that ha proxy is a thing that's denying us and it's not going to be an Apache rule because it's not advertising a... | 833.759 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
send it here we'll paste it whoops paste it here and let's do a get on slash the host um Ouiji htb they're missing one of the content links this one there we go like this we don't want the x fored four I think this is fine let's do Dev Ouija hdb we don't need that we don't want any data on those lines okay so the last ... | 882.639 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
Dev so we didn't um exploit it right because it processed the reject rule if I change that to get T um we're not getting a double thing we're just getting bad request that is really bizarre why it did that but okay um so what we want to do is set this content length and the content length is this data here so I'm going... | 967.639 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
Dev we can make this a little bit more reliable by um well before we make it more reliable let's show that if we swap this and did the dev first it's always going to get forbidden it never works because again how this exploit is working it processes this packet in uh two waves or I forget the like two cycles right the ... | 1,034.679 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
actually going out to make the HTTP request instead of just examining the data then this header gets ignored this one gets used this isn't overflow it's going to just get set to zero so this whole body doesn't get treated as a packet and the second pass separates this into a second HTTP request and since it's on the se... | 1,100.039 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
second request gets here and we have Ouiji Dev so this like you could do it without this one but it's not reliable you just make the request multiple times and eventually you win the race or you just add this and then it's always appending to the bottom I don't understand what's going on in HJ proxy but um it is intere... | 1,163.919 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
a look at what this looks like so we do file is equal to app.js or file is equal to a.sh let's try a.sh first uh what's the path we want editor PHP file whatever okay so I'm going to go to before the G holding shift up up here one more so my cursor's on line five that dat data is 64 so I'm going to put 64 here and then... | 1,231.72 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
that should be like to a log file we're making a directory config dobin config dolo config do share and ver log zapi now we're going to cat opt off API key so we probably should try to read this API key right uh we have credentials bot one and Bot so if we wanted to we could go back here to Port 3000 we get log in unam... | 1,322.559 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
do Etsy passwd we want to make sure we can like do directory traversal right um so we do one file that we know exists that length is 68 and let's see I'm going to search for text editor so we always go to that go here here text editor Etsy passwd we don't see anything so we'll do two do do slashes and now we are at 74 ... | 1,392.279 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
directories exist what if I just gave it Etsy and man maybe I should really automate this 72 nothing okay so it doesn't show if like the directory exists or not I don't know what you can do with that but API key doesn't look like it exist um so let's try grabbing the api.js I think that was the other one API JS so this... | 1,486.6 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
ja so okay we have app.js the other thing I want to do is try including editor. PHP because I want to see if this is a um lfi where it's an include or it's just a file disclosure vulnerability so let's include editor. PHP the self so this is going to be uh yeah we can do this probably should do index.php does that exis... | 1,570.279 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
file that's doing the inclusion uh let's see this is 66 index PHP let's add a DOT do slash cuz maybe it's going into like the files directory so we add three text index.php and let's see I don't see any PHP tags but this looks like it's a static page so that's not a good one to do um let's roll the dice and include its... | 1,661.64 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
D and all it's doing is taking base 64 undoing it then undoing hex and returning what that is so I'm going to guess maybe like d is decode I would say decrypt but I mean it's base 64 and hex so I would guess DSD code uh we have generate cookies and we're creating a sh 256 Ash we're going to update it with the key and t... | 1,744.519 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
identification um identification let's see where is that identification where are you uh that comes from the header right Q headers identification and then we do this hash which is a Shaw 256 digest so this is vulnerable to a hash extension um you should always when doing this things is use like hmac and if for some re... | 1,804.039 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
right so if we knew like the output of the hash if this was a like if that's the hash um then we could add to the string so we could add data right and then just continue the function it is doing hashing with the output and we'd get a new hash but we'd still be able to validate it so that's going to be the hash length ... | 1,874.519 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
authentication so we need the iash header and the identification header we got log in register users and a file get so I'm going to start with this users even though I know as soon as we pass Ure off we go straight to databases unavailable but this tells me my q and R is correct and I understand exactly how the authent... | 1,935.72 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
decrypt identification or decode I guess uh we got to hexit and then base 64 it so let's do uh Echo dasn bot onebot then xxd r-p is it RP like that okay xxd DP we don't want R because that's reverse and then we base 64 okay so identification like this and we get insufficient privileges that's odd so I guess this Source... | 2,024.559 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
so what we need to do is have our identification become um bot one bot let's see where is it let's just do this so we need to make is it like that is that the string we need to make if we C admin and capital T so we need this string right and we can't just use this because that's not going to um match the hash right I'... | 2,139.72 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
tool okay so we need data original signature aend hash format so the data we know this is going to be the known plane text right we'll do bot one bot and then the original signature that is going to be this then we want to append admin true the format was what sha 256 and we don't know the length of the secret so I'm g... | 2,243.68 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
because that's hex I don't think we yeah I think we just do Echo dasn b64 w0 think so this is what we're going to have to do and go for everyone and you know I don't like doing things manually like this so invalid token that makes sense so what I'm going to do is use FFF and the reason why I'm not going to do a D- requ... | 2,337.96 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
um it's reading by line it is so we can do Echo ni b64 w0 and this will be encoded strings. out okay and let us copy this to a file so let's see what is it copy the file Ouiji uh we'll do file get. | 2,425.8 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
request v file git and the identification what we want to change let's make sure that hash is correct new string 14b CZ okay that looks good so let's see we have that so we can do F request request Proto request file get. request request Proto HTTP DW hash extender what do we call this uh encoded strings I think yep en... | 2,464.56 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
extender uh this is here Quest file is it there we go the length was 23 so is this one so let's see let's try to get the what is it um opt we cat and nit it's in files it was opt off api. key off API key action not allowed so if we look at this we do a file get so if the file starts with a slash has two dots or two dot... | 2,597.48 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
key um no directory I guess so there is no API key here now the really weird thing is we went back to a.sh remember they created this Sim link from proc to config bin process informations right so if we put the config bin process informations we're going to be in slpr of the box so if we do lspr this is where we are so... | 2,687.8 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
that file that works iser so that is B that's a directory if we go to this doesn't exist I'm looking at the code okay let's try this I bet I added a proc so that's directory self that's a direct I probably did this then proc self that's probably what I was doing so we do this that's a directory root directory now I can... | 2,814.72 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
key no oh we don't have root access so there a file we just don't have access to read it so we can't get the key um let's see we could do instead of root we can do inv iron and if we look at this we can see we're executing as Leela our home is home Leela so might as well try seeing if Leela has an SSH key right so let'... | 2,916.359 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
600 and now sh- I and then Leela at 1010 11244 and we get into the box as Leela so let's take a look at our directory we do have user. text but there's not much there if we do a find on local it's just Nano stuff so it's probably just files they edited here uh what's in here nothing so the first thing I was like doing ... | 3,011.319 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
is in a Docker container um so since we can't see running processes I'm going to check for ports and we can see a handful of ports are list we have a bunch of Docker ones I say Docker because this is the default like Docker network 17217 but I see 8080 on Local Host that we didn't see um I also see quad 9 on Local Host... | 3,078 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
going on there but that is what 8080 is okay that makes sense so let's go to this PHP directory so if we go in here this is what's listening on Local Host 9999 we do a lsla it is all root can we write anything here so silly thing but this is always one of my first things is I check if there's any writable files and the... | 3,150.88 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
is messing with it but um admin password we try logging in and I don't know what just happened we just got a white screen so let's go take a look at this index.php okay testing login nothing interesting there so including utils debug. PHP I'm guessing that's why the debug directory got created if is set username passwo... | 3,220.92 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
debug and let's see we make the debug we copy maps to it I I don't know what that's doing um so let's just do a g- capital R saycore Elver because I don't want to type verifier because I may make a typel and the only thing we see is it in there let's see I wonder if there's any like l verifiers so we do see this map fi... | 3,289.599 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
unfortunately we can't so we want to grab L verifier doc or the whole Library so I will cat this to Dev TCP 10148 91 let's stand this up NCL vnp 91 uh L verify .o okay we can send it and there we go if we wanted to confirm this is actually loaded we could go into Etsy PHP um it's 8.2 let's see mods available and there'... | 3,364.4 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
default and then we have a lot here so okay um I guess we have to get to reversing this Library which is the part of this box that I do not look forward to because it is not the easiest to reverse um trying to think of the first place we want to start I guess we can load it up in gidra so do opt gidra gidra run and we'... | 3,456.72 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
verifier and it goes to validating user input and we have local 28 and 18 um let's see when we say l verify we gave it a username and password so we can rename these real quick and then let's go in validating user input and again username password okay so if we look at this um we have this SAR getting the length of the... | 3,547.88 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
uh let's see up here size T so this is just an unsigned int I want to say so it can be very very big um but we take the short of it which is going to be 16 bits so it's probably going to be like either uh let's see what is this um we go from a length of 8 Bits to two bits so if we give it a um large integer it will go ... | 3,634.359 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
if we went to the Box let's go here we cat ver log is it l verify do we not have access to it I don't see the log file okay this the data it's writing to the log so we'll say log data I hope I'm those are right variables okay so in here if we have a username that's longer than 800 it's going to do this this is essentia... | 3,707.079 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
load user log path the short length username and then I think that's adding on the password there so if we go to event recorder let's see what is this doing we essentially open up the file and write data so let's talk about the whole um what is it here this whole integer overflow thing and then once you understand this... | 3,794.68 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
it was 32-bit machine or Os it would probably be a 32bit value um I'll specify I definitely want a short variable which is only going to be 16bit I hope it's bit maybe it's bite um I think it's bit I always get those intertwined so now we can just call um Define SZ is equal to 65535 and that's going to be the maximum v... | 3,864.88 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
the semicolon I we'll do GCC test.c I'm going to disable all optimizations or it disables a lot not all of them there's a bunch of just default ones I'm also going to do dasg so we add the source code lines and then we'll call this um test if I execute test we see the size is 65535 but when we defined a short variable ... | 3,941.16 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
64 there's also eax which is 32 right so um saving that one over to there and now we're going to take z um RBP minus 0xa put that into edx and 0xa this is going to be the short version so we put the the short version in edx then we put the um longer version or the 64-bit version in Rax so I'm just going to step over th... | 4,020.64 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
over do this again uh GCC that's one so hopefully you understand that whole thing and now that you understand that What's Happening Here is this short length username the debugger doesn't show it well we'll have to uh G doesn't show well we have to kind of Step through in a debugger to see it but it's changing the link... | 4,111.64 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
essentially what this is allowing us to do is um that's not what I want V call it notes I guess we have the username the log path and log data and when we're doing the mem copy for the username that is I think right around here um we can tell it the length of the username is whatever we want because this is the short i... | 4,195.4 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
that goes into these variables and we can actually overwrite what log path and log data is that is going to be what this whole exploit chain is about so um now that we're super confused with all this like static analysis and me poorly describing it let's go over and do some Dynamic analysis of this because we can do th... | 4,268.159 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
quickest way uh press enter we added the repo then all we have to do is app update which I think it's doing for me it is so we'll do pseudo AP install PHP 8.2 I'm also going to want to install GDB on this box yes and I will probably pause the video we resume once PHP has been installed okay PHP has been installed I'm j... | 4,345.52 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
doso and then we want to go into the config going go in the CLI because that's how we're going to call PHP and we want to add um enable DL it's going to let us load that Dynamic library and we're going to turn that on okay and the last thing I want to do is install gu for Jeff out of GitHub let's see how to install thi... | 4,441.719 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
say l verifier and then say IFC um nothing error reading shat file and craft we do that with sudo let's load this we run it again we get nothing if we do a v dump on it it's a Boolean false if we put the password in which is just password we get true so it's just doing a local validation is all this does so we can easi... | 4,515.96 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
break point on what function is this uh verify login is that what we want no that's not um validating user input is the one we're looking at so a break on validating what is that v a is it a star no validate oh it's not loaded yet let's do run- a okay we'll do DL and then uh verifier dos no it's l verifier okay now we ... | 4,594.199 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
X's continue and we're just passing nulls I would expect it to pass the actual log line length but if we set it to over 800 and it goes into this function then that will work so I'm just going to do that so we can see the intended way this works so hopefully that makes sense it sucks that if we just gave it a short thi... | 4,716.44 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
point we overwrote the two things so now it's writing to all A's and writing the content all A's as well so what we have to do is use the pattern create to find out where this is and then we can manipulate this right we have a file write as root so we could either just like write a root SSH key or write a new PHP scrip... | 4,808.8 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
okay there we go so since we restarted we have to reload L verifier then I'm going to create a variable um I'm going to call this we'll call it um data I guess I couldn't think of anything witty and we'll paste that so now when we do the say l verifier we're just going to pass it data okay and we want to go to that sam... | 4,899.96 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
and then just put the file we want which is probably going to be over here let's see ver development uh no it was just SL development right then server management zero and we'll call it pphp so let's just create a PHP script so what we want to do is do a bunch of slashes then this then P PHP p and then at where 128 sta... | 5,008.88 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
to um um we'll do c times let's see what do we want to do the we'll do 128 minus the length of out minus the length of data okay and now we can say out plus equals data and I just want to see if this worked how I did it um so let's do Python 3 p.p and that looks good right we should have 16 A's here so if we copy this ... | 5,093.199 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
65,535 so let's do out plus equals um we did AB C we'll do D times um 65535 minus the length of out like that data is not defined length of log name there we go we have 36 but there is a line break here so that seems fine so let's copy this now and I'm going to just run it and see what happens it won't actually be able... | 5,216.679 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
contents out where is this directory where was I when I opened GDB I guess we have to restart oh I'm in SL root probably of my Ubuntu machine that's right n cvnp let's get my IP there's got to be a better way to do this but I think I had both quotes in p. | 5,360.76 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
Pi didn't I you have double quotes and single quotes so getting rid of this is the easiest um cat out to Dev TCP 91 okay we did not direct it to a file okay I hope it having the line break doesn't screw anything up I don't think it will um GDB PHP run- a let's do DL L verifier doso break on validating user input have t... | 5,388.119 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
path so we can say log name is going to be this path sl. | 5,522 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
PHP Python 3 p.p uh let's do xclip selection primary and clipboard I don't know which clipboard will be pasting but we'll do them both so now we should be able to trigger this from our browser let's see Local Host let us intercept this request proxy intercept on okay I'm going to paste our payload wonder if I have to y... | 5,538.44 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
still nothing what is going wrong here there's something bad see a AA that looks fine to me so what I'm going to do is we're going to go back to a debug session and we're going to test this out so we're going to change out to be this that is not it there we go development server that looks fine we want to make this dir... | 5,665.48 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
B Star 45b continue okay we do the file open command see X SLS RDI 63 times of a slash and then we have this I wonder if we have to set like send a null Buton B CU I wonder if it's attempting to open this and then also this so we probably have to send a put a all bite in there I think so we terminate the string because... | 5,815.56 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
see we just do like that see should be turn. PHP we have a all bite okay oh let's copy this over pseudo Su n cvnp 901 to out sent it data is now that let's run this again continue let's see I have no idea where we are event recorder is the F open I don't think the Nite did it cuz that's not even going to a string anymo... | 5,938.04 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
data run this and let's see so event record that's looking maybe better F open see did that work LS development server there we go that's it if we cat this now we have what we want so we have it working um let us Python 3 p.p we'll grab this and we'll run it on the server see I was using xclip wasn't I xclip selection ... | 6,065.719 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
don't know why it added that let's see we do back SLR back sln or yeah let's try that see I want going to do my primary and we'll see if that works um was it in repeater it was paste get rid of that line break Ur en code send it did not create a new file I wonder if it was clipboard is what I want maybe try it again co... | 6,204.48 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
Cod our self so let's see 3F is a question mark see 3F we want what a line break is 0 a like that there we go it was just burp site doing a bad job in coding that was it so if we now go to own. PHP that is a file CMD equals ID we ow root so now we can just get a shell that was an odd thing um glad you stuck with me the... | 6,406.239 | 0 | {
"video_id": "kPk583rXcoA",
"title": "HackTheBox - Ouija",
"url": "https://www.youtube.com/watch?v=kPk583rXcoA"
} |
what's going on YouTube this is IP we doing PC from hack the box which was a nice easy machine but used a technology not many people are familiar with and that grpc which is a remote procedural call server that was created by Google RPC servers are very common you see them on almost every Windows box but many people do... | 0.08 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
database and then the root step it's just a web service that is running on Local Host the web service is pylo if you look at exploit DB you can pull down a POC which just works out of the box so with that being being said let's jump in as always we're going to start off with an M map so- SE for default scripts SV enume... | 46.96 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
and then I want to also say-- m- rate is equal to 10,000 and that's going to send um 10,000 packets per second so now we put the IP address and I wouldn't always recommend doing this Min rate thing it can miss ports when you do it this quickly so definitely use it at your own caution also on fragile network devices it ... | 96.32 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
back I'm going to pipe that over to xxd to get a hex dump of it and we can see some hex here we could try like Googling this to try to find out what this handshake is but I don't think you get anything really and burp sweet or not burp sweet um end map isn't really telling us anything either I don't know why I said bur... | 156.959 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
that um you normally see it like on back ends like whenever you do a Windows box and you see I think it's like Port 139 um it's going to be like the RPC interface it's not HTTP it's just a way to make request so I'm going to go to the package grpc and then curl which is on GitHub and this is just a command line tool th... | 218.72 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
I'm going to add a/ CMD and then grp curl again and it will go out and build this now we can't execute it right off the bat if we don't have our go install um or go path in our path or the go binary path so if we go to CD slash my default is just home go and then you have a bin here and that's where grp curl got set so... | 283.32 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
can run this we can do a D- help and see like the syntax it wants so we have Flags the address then we can either list or describe and then the symbol so let's just try connecting to it we'll do grp curl 10 10 11 to14 and then the port 5 50,51 too few arguments I'm going to try list and we get an error about TLS first ... | 356.12 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
and I always like attacking the custom created things first because we're more likely to find a vulnerability right so if I list Simple app we see three functions login user register user and get info odly enough the get info has a lowercase G um if this was goang then that would mean it's not a global variable I belie... | 423.52 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
login user request and we see it wants a message and we have username and password uh we could also look at the response and we just have message so I'm going to now describe the register user request and the same thing username password if we do response we have just the message and then if we do get info uh oh um let... | 480.759 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
want to start off with register user so register user accepted two parameters it accepted a username and password and we can just go back to register user request and see that so let's do um grp curl d-el I did it in different window going to grab my export going to copy it and let's just put it here so grp curl help t... | 558.8 | 0 | {
"video_id": "AQSLvalzW8g",
"title": "HackTheBox - PC",
"url": "https://www.youtube.com/watch?v=AQSLvalzW8g"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.