text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
user and root access must be granted manually so let's try some basic ways we could potentially bypass this check so this just checking if root user is equal to principal we could probably put a space beforehand or spacehand and no so it looks like maybe it's trimming spaces or the check is um if root user is in princi...
2,857.88
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
new one in sh key gen- LF here and we see the percent 42 so it didn't attempt to URL decode it after it went in principal so again what I was hoping is um when it does the check it sees this and then for some reason it decodes the URL and then put a character n 42 is probably a or b right it's probably a or b um let's ...
2,911.88
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
10 10 1127 make sure one port 2222 it's going to let us in because it cats the um Etsy off principle since I try to log in it cats this file looks at the principles here and says oh you have the right principle you can log in as this user right so if we look here we got user. text again we can do pseudo- L and see ZZ e...
2,991.599
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
apii server to sign with the ca so it doesn't want us to sign keys with Etsy SSH CIT um if we try to view this file do we have permission to no we don't um only root can read that file but the interesting thing here is when it was doing the comparison these are not in quotes and because it's not in quotes wild cards ar...
3,057.4
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
file so let's just do um Echo Dash to Dev shm Testa I guess I'll call it if I C that file it's just one dash awesome so we'll do pseudo opt sign key opt s keysh okay Dev shm test CA uh public key file I'm just going to give it user. text it doesn't really matter username principal serial does not matter uh the principa...
3,131.88
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
and live crypto right so if we edit this so Dev shm was it Tessa I'm going to do dashar right and we're goingon to run that pseudo again and now we have a different error message we have use API for signing this key uh key so we have just validated the first character in that is a dash if we did Dash a we're going to g...
3,208.599
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
exactly um see we have an error because we don't have a star uh we have to do a line break like that there we go and I say it's not fully random because if we grab the contents of this let's just do CP old CA old CA to T BT delete the dashes B 64- DT we see it starts off with like the algorithm and then we got a bunch ...
3,284.2
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
compare the string output and just say if we see this error then we know um it was correct if we see the other one it was bad you could also look at the exit code and that's what I'm going to do just because I like using exit codes more than like um scraping the screen um yeah scraping the screen like looking at the st...
3,353.76
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
because they didn't quote it um wild cards work and that's why we can boot force it so let's make the exploit now um I'm going to call this um key gen brute I guess I don't know exactly what to call it and we could do python but I've been using go a lot more lately than python so I'm going to create a golang program to...
3,414.28
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
is it edit preferences file edit I'm going to pause the video we're going to make this font a little bit bigger and then we will get on with coding okay so let's start the program off with the funk Main and let's create the character set so I'll do character set is equal to um it's going to do lowercase a b c numbers I...
3,480.28
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
what is a line break line breaks that decimal is 10 so that adds line break okay and I don't think I think goang if I just did back sln here it wouldn't does it add it I don't know exactly um fmt print line let's see do we get back sln or just n Go Run main oh we do get that so we don't need to do the string Rune we ca...
3,547.16
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
file started out with something we'd write to it and um we wouldn't expect the file to have contents and it may just do odd things right so this way we always whenever we open the file get a clean copy that's blank so if we can't open the file let's just Panic out and then the D first statement means when main exits it...
3,629.92
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
obnoxious so we want to do a essentially infinite Loop because we're going to exit once the file's done we don't exactly how well we don't always know how long it is we could actually not use a um blanket Loop because if we look at the Box let's see go here um lsla Etsy SSH the ca was here right GP CA C we know it's 43...
3,706.24
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
return so this breaks the um forever Loop we could also like put a n Loop here I think and we could say break and loop like that right I think that works in goang so either way works we'll do it that way um let's see we couldn't just do break because if I just did break it would break out of this Loop right so that's w...
3,776.52
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
and the reason why it's going from a um string to a rune like this and not a character is because it doesn't know um what encoding this is it doesn't know this is asy it could be like UTF um 8 and have non- asky characters which could be represented by n32 but not just a single character string um it's a weird like enc...
3,864.4
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
so error is that if for error is null return that's fine uh actually we don't so anytime the exit is not going to be zero um this CMD is going to return error so we want to actually have some error handling here so I'm going to do a switch um CMD process State exit code then case one this is going to be return true nil...
3,949.68
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
never going to successfully Complete because we're not giving it a public key here so it's going to fail trying to sign user. text um but this should work this actually case 255 right when we looked at the exit code it was one and 255 that's fine so here we just wrote the new file so we can do result error is equal to ...
4,037.72
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
build python 3M HTTP server then we'll do a curl HTP 10 1048 8,000 uh key gen brute I'll just call this exploit to make it easy run it and let's see it looks like it's working I don't like how I did print line there real quick so let's go back here um I'm just going to do print so we don't end it with a line break do t...
4,112.159
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
4 and Etsy SSH uh we're in Dev actually shm so what I to do is just show what the ca looks like right uh we could just do watch dn1 like this and you can see it attempting to Brute Force right so we've got W you can see how many characters it goes at a time I wonder if we can change n to be .1 there we go and you can s...
4,219.04
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
get the rest of that key but we should be able just to manually fill this piece in so we can copy this let's go back to our host and let's see we can just go here um I'm going to make a new directory we'll call this root I guess VCA uh that's not the right key there we go and it's probably end open S private key and th...
4,280.44
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
key now we can give it the I think it's root uncore principle or root uncore user Etsy SSH off principles root yes we can give it root uncore user so we can copy this go back here give it this principle and then the pub key there we go so now we have a key that's valid forever so if we do s key gen- LF we can see theer...
4,353.04
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
um the SSH certificate Authority makes sense um by the end of this video and yeah that's going to be the Box hope you guys enjoyed it take care and I will see you all next time
4,437.96
0
{ "video_id": "ZIzxodu8axg", "title": "HackTheBox - Resource", "url": "https://www.youtube.com/watch?v=ZIzxodu8axg" }
what's going on YouTube this is IP I'm doing runner from hack the box which starts out attacking an outdated version of Team city which is just like a cicd platform it is vulnerable to an authentication bypass allowing unauthorized users to get a authenticated session to team city as administrator and what happens afte...
0.32
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
the pesque is a vulnerable version of run C but the trick here is you're not a member of the docker's group but you can log into painer so you can set the current working directory of a container and run it and then get root that way so with that being said let let's just jump in as always we're going to start off with...
46.16
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
this to a host file so Pudo VY host and then we can add 101 1113 runner.
98
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
htb and the final one is Port 8000 end map is telling us it's nagio nsca um I don't know how it came to the conclusion this is part of nagios um whenever you go to the non-standard ports and Maps a bit flaky on the service ID ification but the first thing I would do would be trying to connect to it on with like netcat ...
105.079
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
think it's nagio maybe nmap's doing some other requests maybe like the nagio NSA has some unique thing you can request that Flags it but um I don't know we'll find out when we get a shell in the box so let's go ahead and just check out the web page so I'm going to go to http runner.
161.68
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
htb and it looks like we just have a page for cicd specialist I want to see that's like continuous integration continuous delivery um it's like automated deployments things like that so nagus doesn't really fit in cicd pipeline so I'm not sure exactly why we saw that Port 8000 Flagg do nagio still um right now I'm just...
181.36
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
the first one here the bit Quirk subdomains and we'll see if we get any hits there while we poke at this um let's see I like getting 404 Pages because sometimes you can flag exactly what it is based upon the 404 this is just going straight to engine X we could try like index.php index.html it is a HTML document I'm lea...
241.239
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
resume when it's done about 20% done and we found a subdomain team city. runner.
302.039
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
htb so let's go ahead and add this to a host file so stud VC host and then we can add team City Runner htb and let's go take a look at this actual page so if we go to Team city. runner. htb uh it looks like the site's taking a little while to load but we do get a page and it says log to team City so we could attempt to...
308.759
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
12939 we can look for exploits here so I'm going to Google the build number that exploits team City and then let's go over to Google and we see exploits right off the bat so if I look at this we have some type of exploit with a get token URL delete token URL and it looks like it is going to um potentially create a new ...
373.52
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
htb and it says it created an user City admin n1k K1 and then that password so let's attempt to log in so we going to do City admin and then put in this password and it's attempting to log in and we get logged in so before we go poking at this too much let's see exactly what we did so we can say build oh what was that ...
426.12
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
and if we read this um they talk about um how the authentication is performed within the team City application and then they have this one Interceptor which the Interceptor runs whenever like a client makes a web request it goes to this Interceptor middleware that just um determines if it needs authentication or not an...
513.88
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
authentication right so we can play with this to test real quick um if I do a curl let's actually grab that URL so we'll GP get out of that uh curl team city. runner. htb slapp rest users id1 tokens and then we say we just Cur this we need to authenticate if we do slpc we need to authenticate if we do rpc2 it says it's...
583.519
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
type it's a tcv 2 this is probably going to be some type of signature since this was just a blob we got back and then this was a ID so not exactly sure what it is but that's what we use to authenticate and we use this token in order to create a account so with this account we can go over to Administration and then we c...
674.44
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
downloads team City back up here I'm going to make a directory called back up just in case it doesn't create a directory first and then we can unzip it good thing I moved into this directory and now we have a um dump of Team City so if we go to the database dump we can cat users um permission denied that is unique uh c...
744
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
but we have three hashes so I'm going to grab these let's go vhes text paste this and now I'm going to go over to the Kraken which is just a box I running on my network um you can just run hashcat on your computer I would not run in a VM because if you run in a VMS it's going to go really slow but let's create the hash...
823.519
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
it just just means it's going to take a little bit longer to go uh so we have one already cracked Piper 123 and that is cu period M so if I just go here let's go in runner cat hashes it looks like Matthew's password is Piper something right Piper 123 so let's try logging in to the Box Matthew at 10 10 113 put in the pa...
898.759
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
period we have a list of all files I'm going to do type f and then let's see I want to just show me extensions so let's see how can I do this CU I don't want like 1.2 I'm going to said we can say um period digit plus let's see 0 to 9 and then we go like that is that just going to remove all the numbers it does not ther...
973.36
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
may be a database dump uh there's a SSH key we can look at and that's what sticks out to to me so I'm going to go back here I'm going to GP config uh let's see it ends so that's in metadata let's see metadata backup. config nothing there uh let's look at where that idsa was uh let's see config projects all projects plu...
1,069.2
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
key I I want to say this piece is public right here and we have the user that generated it JN so this is going to be J's SSH key so we can s-i let's do idsa John at 1010 1113 and it's an unprotected key file so let's chod 600 uh ID a and there we go we get logged in I'm going to copy this key real quick so we can say I...
1,143.96
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
if you didn't have a SSH key that got you anything maybe team city was um in a DMZ that you could talk to but you couldn't talk via SSH to anything it talks to right and you wanted to run commands on the team City box there is a way and it's not even an exploit so I do want to show this because there's going to be plen...
1,214.799
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
htb and then we give it this endpoint that gives us the token and we're probably going to have to run this in delete first um because the key already exists for rpc2 so going to delete that then going to get a new key okay let's just grab this and then let's see we can say DH how do they use this is it just authorizati...
1,275.12
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
happens nothing I expected it to respond with something um we just did H wonder if this needs to be a post see what do they do expost don't respond with anything they also send the content type text plane I don't think that does anything The Bu Quest will create the following under internal property so supposedly now w...
1,362.64
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
slashes there okay well we have command execution um not going to ask too many questions oh wait it looks like it's failing now um this server is not configured to allow process debug via rest debug awesome so it just took a second for it to restart so let's set this back to true and I guess it's important to know that...
1,469.32
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
exe let's just guess that and exe pams equals test uh Pam see how do we send parameters they're running the command let's see debug process let's just Google this string see if it gives us way to do arguments debug endpoint that's still loading okay they just say params Rams there we go test and then do we do two okay ...
1,556
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
had a way to um run commands in Open Office but we can only do one parameter so uh we ended up writing a file there's a way we can get around that in this though we don't have to we could just do two pams so we could say and pams equals d c and then this one ID right and that works just fine but in a case where you onl...
1,684.88
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
message so what I'm going to do is Echo and we still get an error message on this so we're going to URL encode if I press control U it doesn't encode anything let's just convert selection URL encode all characters and there we have it so if I put this back to a um we get a unexpected character it's probably going to be...
1,753.6
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
will move on and the first question I have is what was Port 8000 I do it ps- EF and we can't see processes by other users and that's just because the um proc is mounted with hide pit equals 2 so this just hides the processes from other users so we can't just do a PF and look at if Port 8,000 is in any argument right I ...
1,840.48
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
9443 and that's probably going to be an https because it ends in 443 and we get a bunch of HTML back if we look at the top of this or I just notice something right here we have painer so this looks like it is going to be a painer instance there we go what else do we have SS lntp uh let's see curl Local Host 50005 um th...
1,907.48
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
Port let's see engine X we see as sites available see let's go to Etsy engine X sites enabled uh painer that's on 9443 I was hoping to find exactly like where painer is installed there we go we found it um let's see those are all binaries right yeah that I should have just ran a file command find dot- type f I was look...
1,990.76
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
looking around what I tried to do is create a new container and find a way to map things right because painer this allows us to like run Docker images um we're not a member of the docker group but the portainer whatever user running this is so um if it can like run a dock command with- v um slash and then Mount that to...
2,066.119
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
find out exploitable if you Google run C like this let's see disable let's run this um runc this version we'll probably find many exploits um right here F descript or leak so this was a pretty big exploit around the time the box came out I believe so it's a bit easier to find I was trying to find other good ways to fin...
2,129.76
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
it this version of container D is what installs um run C so if something analyzed the D package found that then chances are um it would be able to discover the vulnerability I think the issue mainly with like all the open source software discovering these type of vulnerabilities you may think it's easy but keep in mind...
2,209.48
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
and then we'll be able to escape um we'll explain a little bit on why that's the case after we do it but I've rambled enough so let's just go ahead and um exploit it right see I guess I need to go back on the socks proxy and then we can go to Containers let's add a container uh let's see what container do we call this ...
2,278.24
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
running let's go to the console uh let's see where is console there it is connect let's try Ben sh uh root that did not actually work uh oh I'm not sure what happened here I'm probably going to end up retrying this container details there's the image let's try this again test Mo buntu and don't want to do search like t...
2,348.319
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
that root of the file system we can go CD root and then we can get root. text we could also drop a SSH key right so what exactly happened here if we look at this post this one explains it the best um when we set this proc self fd8 we're actually winning a race condition and getting the follow descriptor to I want to sa...
2,484.599
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
um super secret file here so we have this file and I'm going to move IPC to um new directory right however I'm still in IPC here if I touch new new file and we do LS on new directory it's still behaving just like that right because once we go into the directory the name is not really that important we have a handle to ...
2,548.079
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
working directory there and now um when we open the container we're on the root file system so that's essentially what is happening here you can kind of see the same thing if we did a file so we can say Echo please subscribe to I'm just going to put on IPC so we can tail-f IPC and then if we Echo more to this file righ...
2,608.96
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
we called it new file with read permissions f. read we have that let's now um Echo more stuff to new file and we're going and call read we have more stuff we're going to move new file to be um we'll call it IPC again and then we're going to say Echo please subscribe to ipac then we read it um it's probably because I di...
2,681.68
0
{ "video_id": "5G0sCI3DUtE", "title": "HackTheBox - Runner", "url": "https://www.youtube.com/watch?v=5G0sCI3DUtE" }
what's going on YouTube this is IP I'm doing sandw from hack the box which the website has a tipline you can send messages over to the earners as long as this pgp encrypted since not many people know how to do pgp encryption it offers a getting started guide where you can test out decrypting encrypting and signing mess...
0.359
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
execution as another user and then there's a fire jail exploit at the end so with all that being said let's just jump in as always I'm going to start off with the end map so- C for default scripts SV enumerate versions OA output all formats put in the nend map directory and call it sandworm then the IP address of 1010 ...
50.28
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
it's also Ubuntu we have information about the certificate and the title of the page so let's just go to take a look at the website so I'm going to go to 1010 112118 and it'll direct us over to the ss. htb we could view the certificate if we wanted to and look at like common names to see if there's any other subdomains...
111.399
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
so doesn't look too interesting if we go over to contact it's a way to submit tips and they want all tips to be pgp encrypted so if I just send anything here it's going to say message is not pgp encrypted if we don't know how to use pgp we can check out their guide which doesn't actually tell us how to really use it I ...
172.12
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
to cross a scripting it'll reach back out to my box so I'm just going to call this message and we'll do a image source is equal to http 10148 and then SL a okay so now we definitely want to listen on Port 80 so if anyone connects back to us we will know so now the step is to um encrypt this message so I'm going to impo...
240.72
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
htb and I'm also going to do- o space Dash and that's going to be um output to standard out and when I do that we get a bunch of junk so the best way to do this is what uh gpg or pgp calls armor and it's essentially going to be um just base 64 with this little header right so now if I paste this message and let's see t...
336.52
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
isn't vulnerable to cross a scripting since herb browser did not reach back to us um this one is provide our pgp key and they'll encrypt a message to us so let's create a pgp key to do that I'm going to do a D- full d generate key uh let's do RSA and RSA default key size let's have it valid forever to set it not to exp...
402.479
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
sign is that let's see oh all we need to do is provide a key we're not encrypting a message so let's do das Das list keys and we can say gpg D- export we'll give it this key and we need to specify armor and then I'll do xclip the selection to clipboard so that just copied this to my clipboard so now I can paste this he...
489
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
right we just have this so let's sign the message we'll do gpg D- clear sign and I'm going to do DH we want local user uh we can just do dasu and then the key gpg d-list Keys specify this I probably could have said ipsec or something so we have that and then we can specify the file and a file we wanted to en Crypt or s...
587.12
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
just try this wonder what's going to happen it's not valid base 64 so actually let me try one thing can put that there okay and then what is theirs xclip selection clipboard I'm just going to try putting their key here and then sign and I'm guessing uh if the signature is not valid it just says it's not properly format...
679.079
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
uh full generate key to make a new key uh all the defaults sure yep and then a name I'm just going to put um a ssti payload that I know off the top my head and all that's going to do if it's vulnerable but from ssti is dump the config of the server and that's going to be like the environment variables so we can save th...
757.8
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
htb paste in the password it doesn't work make sure we copied it right we did so I'm just going to take note of it so we can say my SQL Atlas garlic and onion whatever the secret key so we could sign cookies if we wanted to uh looks like it dumped it twice actually not sure exactly why but we don't really have anything...
850.48
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
open okay let's just try this so let's go ssti let's see so it's just doing a poop LS here and we want to get our reverse shell there so I'm going to um cat payload we'll do a b 64- w0 and we can just copy this and where LS is we can say um Echo what do we do Dash down or not does it matter doesn't look it matters we c...
944.74
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
up and click verify signature wonder if we have to refresh the page let's try this again NC lvmp 901 that is the signature that is the export it's definitely hung we're not getting a shell uh let's do cat ssti we can just copy and paste this for good measure so the reverse shell works but our payload does not let's see...
1,088.24
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
yeah that's fine it doesn't matter what I assigned never mind I was think I need to assign the ssti payload but the actual ssti is inner script right or inner signature so we got that let's go to export and I'm hitting alt D and it just deletes the word so it deleted everything at once so I didn't have to hold delete N...
1,259.6
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
connect to mySQL um we don't have like any MySQL client so that's odd here is the source code to the application um doesn't really buy us much because we already dumped the config that had the credentials so if I went to slpr we can go like look at one if I cat CMD line it tells us we're in a jail so this is the output...
1,341.4
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
want to unhex it is there unhex nope uh what if we just do Hex like that there we go 5,000 so that shows it is listing on 5,000 so we could try this one this is probably going to be 3306 it is so this is definitely listening on my SQL um I guess we could try uploading chisel to see if we can just talk to the SQL databa...
1,421.52
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
pipe chisel to it and then can I remember how to do this well cat Dev TCP 101048 91 out to Chisel going to give it a second to finish that copy of course we probably don't have md5 sum so we can't identify if it worked but looks like it's there uh let's make it executable we don't have ch mod that is annoying so we can...
1,509.2
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
directory there is a cargo directory there's also a do config if we go in do config we have file Jail jail and HTTP Pi or I think that's HTTP I don't know how to pronounce that let's go in sessions Local Host po there is an admin. Json file see what exactly this is but we do have another credential um silent Observer q...
1,599.32
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
htb paste in this password and we get logged in so now let's do a cat on creds and see if we can s you to Atlas because maybe like Atlas is prohibited from logging in Via um SSH and that's why it was blocked but it looks like that's still doesn't work we can do MySQL so let's do Atlas DP past in the password show datab...
1,655.72
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
it's probably going to be this format so let's copy what this looks like then we can V hashes SSA paste this in and go through the format so it doesn't want that header um then this is the iteration count and that doesn't use dollar signs as separators it uses colons I'm guessing if we pasted um let's see B hashes SSA ...
1,768.039
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
text and let's see if it starts cracking looks like it is and it's going to take potentially 15 minutes so while that goes I'm going to uh go back to my terminal and let's see what else is there if we go up one directory we can go in Atlas and it looks like we can view his home directory so let's see the config if we d...
1,814.08
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
cargo is being ran on this system so I'm going to run peace bu let's see do we have PE bu on box uh let's see LS opt or we can do find opt grap PE bu I don't think I do so let's do GitHub peace bu and download it we could also like run Lin peas and change it so it's in um not in fast mode but I'm just going to do PE bu...
1,913.399
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
oh um silent server copy the right password and we can see Peace by went off but that is just um because I logged in through SSH if I run date we have about probably a minute left until we think the cargo is going to go off what was it CD opt tipet uh where is it Target debug tip net this is set uid so I'm not exactly ...
2,042.679
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
here we can write to files in creates logger so if we modify this source code and have this function probably um send us a shell whenever it does a log it'll also send us a shell and if it's set u ID maybe we'll get lucky and it'll send us a root shell or maybe just a shell as that Atlas user um let's see what was that...
2,168.76
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
directory so we can add that command and then add this a set paste there we go so it's executing sh- C and we can say Echo see we have the ssti payload still we do let's just copy this paste and then it looks like we need to put a semicolon here we copied a little bit too much it's probably because what we copied was i...
2,271.119
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
finished if I do a date we have about 10 seconds left until we hopefully get our shell so in seconds the cargo should start building we can probably do a psf grab cargo now and we see cargo was running and we got a shell so now we are finally the atlas user so let's do python 3-c import PTY PTY spawn b bash and then st...
2,358.4
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
up when I hit home my cursor is just moving out um it'll be easiest if we just do SSH and then let's just create a key cat at list. Pub and we can move this over to authorized Keys s-i Atlas Atlas at 10 10 11 uh I think it's 218 but we can just use sa.
2,437.96
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
HTP and there we go so where was that message verd duub HTML SSA SSA uh submissions there we go so let's do a gpg DD to decrypt this message it's encrypted with key ID c6d gpg d-list Keys we do not have that key I don't think we do not um gp-r gpg see it's using the keys in gnupg so that's the key ring we have this is ...
2,475.079
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
this some weird message so this isn't anything um we could just try a su with this password not that easy do we have any pseudo rules we need atlas's password which we still don't have Let's see we are a member of the Jailer group I don't know what that is so let's do a Bine sl- group Jailer to Devol and Jailer can exe...
2,592.8
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
10 148 8,000 fire jail. it's not what I called it fire join Python 3 fire join. py uh we need executable bit and it says we can run fire jail djin in another terminal so let's SS H again 10 10 11 uh 218 and we run this exploit see what's it say m thing one oh it says we can yep we can so there we go and if we look at r...
2,730.72
0
{ "video_id": "RD58QpRu7u4", "title": "HackTheBox - Sandworm", "url": "https://www.youtube.com/watch?v=RD58QpRu7u4" }
what's going on YouTube this is ipag I'm doing s from hack the box which is a relatively simple box if you run nmap you discover that HTTP is blocked on Port 80 but there's a high number Port that has a web server listening that has vulnerable to a server side request forgery attack and you can use that to access port ...
0.199
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
scripts as V enumerate versions OA output all formats put the N map directory and call it s then the IP address of 10101 11224 this kind take some time to run so I've already ran it looking at the results we have three ports open the first one being SSH on Port 22 and its Banner tells us it's in a buntu server then we ...
45.8
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
site so I'm going to go over to Firefox and then we can do 10 10 11224 and then Port 55 555 and it says request a new basket so I'm going to just request this basket it creates it it says this is our token and if we open the basket we just get a empty basket it says we can send a request to this so let's copy it curl s...
100.079
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
going to do a single quote double quote and say thank you and let's just see exactly how this responds we have to escape that double quote there we go and then then go in here we see every character so if it didn't like put everything here we know it reacted to our special characters and that's where we'd end end up do...
166.08
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
port 80 because it may be allowed on Local Host it's just not allowed out to the internet right so that's what I'm thinking is going on here um let's see we have an empty basket there is a settings icon if we click this we have have a Ford URL so I'm just going to forward this to myself real quick so we'll do that uh y...
223.64
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
request and we notice this one isn't ending because it's waiting for the server to respond with something and then once this responds um it sends it back to us and we have a malformed HTTP response so we've confirmed we have server side request forgery so now let's just change this instead of going to us I'm just going...
295.44
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
like that but we can see in the further we have maltrail 053 so the first thing I do is just Google the software and we see right off the bat there is a exploit for it so let's just look at it um this GitHub said 053 which was the same vulnerability and this is a python exploit I guess we could read the resource here a...
359.68
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }
to go back over to my bucket and I'm going to edit this and we can say redirect us to SL login and then if I now just hit this URL it is taking longer to respond which I I think is good right so while that we wait on that let's just do the curl request so we'll do curl like this um- D for data and then we wanted to do ...
432.96
0
{ "video_id": "H6QfYGeGdGQ", "title": "HackTheBox - Sau", "url": "https://www.youtube.com/watch?v=H6QfYGeGdGQ" }