text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
click the PNG it's already deleted but that's what this is so scrolling to where the PHP code is we can see the actual Source we have a filter strings right here and these are all the blacklisted commands and looking through this I don't really see any exploit path since the application was writing in this temp files d...
583.88
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
other host or on this server and I kind of skipped that so while I was poking at this I would probably recommend also using fuff to look at virtual host right so if you did that you always want to have some type of Recon going on in the background how many times have I said that right so let's run a fuff and then we to...
644.44
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
what you want to filter right that's awesome right it's filtering words for one 162 or 1612 175 and 6767 so it kind of figures out what the most common response is and hides that from you so we can see there is a Dev and a stat subdomain so if we did pseudo viy host to add the dev and stats to a host file so we can que...
715.2
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
I don't want to do do slash I just want to do SL Etsy host and we'll see if any domains are here doesn't look like there is so the next place would be the Apache config so if we do Etsy Apache 2 cuz I have it installed on my box we can look at sites enabled and the default place is going to be this 000000 dfa.com if I ...
790.839
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
there is a ver dubdub duub lch that's going to be the equation generator page here is ver dubdub du Dev and then we also have dubdub duub stats so they could have put the password either in this config or they can also put it in the probably HT passwd file of the directory so I'm going to go to ver dubdub dubd sl. HT u...
859.279
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
copy and paste it right so that's that's going to be a lot more fun right and again I didn't see this exactly on um any like known bypasses but it's one of those that once you start looking into it it's so obvious I would be surprised if it's not so I'm going to try taking down the journey that I went through trying to...
926.6
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
talking about special characters so we have like this character and it replaces with text asky um something so I was my first thought was okay I can like start using fuff with a um word list of a bunch of these special uni code characters and then maybe if like I find one character that is the equivalent of slwr I can ...
986.16
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
cach of the page if this doesn't go I go to like archive.org but let's see there was another one I Google like bypass latex filters or latch you can see I used to call it latex for so long it is habit um if I went here there is a Twitter post here and I don't think this is going to show well because I don't think I'll ...
1,048.679
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
really cool bypass and he uses something called called um the cat code and before here he's talking about the shell Escape um the actual default is going to be shell restricted which means there's only a safe uh set of commands being able to be run so that's why once we find the bypass we still won't be able to use lik...
1,105.48
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
you do that twice then type something it's going to be the heximal value right right so what he does is say hey this sign is now superscript and let's do um hex right so he has input but the p is encoded in HEX right so if I tried this the back slash a unfortunately was on a um Blacklist right illegal command so I was ...
1,162.799
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
thing as cat code backtick a and if we did man asky looked at a we can see that is going to be the decimal notation of a so I was trying really hard to find the decimal notation of backs at unfortunately if we did um with the decimal of backslashes and the back decimal notation of it doesn't work I don't know exactly w...
1,233.52
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
um did something W 2 Karat and 70 and generate this it's not going to say 70 it's going to say p right so that looks good this looks very promising so we could go back to a slash input what was it LST input listing Etsy passwd so the next thing I want to do is make sure this bypass works with um a command I need to put...
1,319.6
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
the heximal thing so let's go back to hack Trix so hack Trix uh the CSV injection I'm going to search latex come on I made a mistake of clicking the page come on maybe I'll just scroll down passed it oh I'm not even on that page anymore I don't know what I clicked that's why there we go so we could try the executing co...
1,393.2
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
and then we want to put this all on one line so we're trying to write shell.
1,482.96
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
PHP so let's grab this copy let's go to the equation and I'm just going to paste it there and we see illegal command detected so looking at this I see e is pretty much in everything so that's going to be the thing I replace so let's try viewing this I'm going to use a search and replace we'll say e is now uh what is e ...
1,490.36
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
says hello world so now let's edit this and let's replace hello world with her reverse shell or just a um Cradle so we can launch it so we do PHP system then request CMD and we want to end it and we'll do a semicolon there so we just put something to execute we can C it let's send it back over to the web server so if w...
1,574.88
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
was going to do since I guess this is good troubleshooting uh we can do PHP DS um 8000 dot let's see colon 8000 Network address is it 127 001 there we go so now we stirred up a PHP server on Local Host so this is very much like the python simple HTTP server except um it can execute PHP code and we still can't opening p...
1,688.96
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
so now we get a reverse shell I always um go through burp because I like just doing it in a post request if I can and the reason why I like that is because there's just less Bad characters in a post request right so I can do B- C b-i Dev TCP 10148 9,10 and one like that let's encode everything and then we can say NC LV...
1,765.919
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
this actually isn't needed if you got the shell this way um you're golden right so let's do V hashes and I'll call this um HT passwd topology paste that in we can do slash cat and then we're going to specify D- username because we put the username in with our hash um that wasn't actually part of it right if I just copi...
1,841.32
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
how I did that so quickly we can see it cracked we can scroll up and we see the password is calculus 20 and then if I wanted to we could get rid of R of the dictionary I could just do a D- show and it will just tell me what's in my pot file that is V daisley here's the hash and the password of calculus 20 so with that ...
1,905.679
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
HTP um I'm in BP Suite let's turn this off HTTP Dev topology http and then was it V daisley the password and it's just a static website right but this does go over to SSH so if we were like spraying passwords as we crack them we could try uh V daisley at topology htb um I did not add that into it we could do the IP add...
1,938.36
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
directory right I do so I'm going to copy opt peas Lin peas. over here and we're going to edit Lin peas because there are a few options that are just defaults and one of them is going to be fast by default it's set to one which means um it's not going to wait one minute to check processes and try Su Brute Forces so let...
2,007.799
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
they could shell my box right so I typically avoid using this PHP server when I do I always always always specify 1271 don't do 0000 because you risk um getting yourself owned right so let's just wait for this Lin peas to finish it's definitely not in fast mode now so it's going to take a little bit to run so I'm going...
2,081.2
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
there's so many false positives there maybe one day I'll make a video on like why that's such a hard thing to do but it's not accurate so I only look at that if I'm really really stuck um we have the cleaned processes this is um unexpected processes run by root uh why' it say that this is just a list of processes um I ...
2,138.88
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
command what this does um the exec it executes gnu plot so this is the binary and this open and close squiggly is going to take the output of find so um let's see I can probably show that real quick cuz if you don't use find that often it is a tricky thing so we do find dot we have that if we do D exec and then we'll d...
2,204.64
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
thing to do would be like searching um let's do GTFO bin see if it's there if we search for gnu plot it is not on GTFO bins so let's just do GT uh gnu plot commands and go to Google and research exactly what this is um it is if you don't know it's being used to generate these graphs right on the stats page so we have a...
2,270.44
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
subscribe it doesn't error out um we probably should have done please subscribe to test and we can cat it we can view it but since we don't have the read permission we can't list files in this directory um we can also get to it from a webshell right I cat test I can also do it so that's why I said we don't need to esca...
2,345.64
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
for that if we wanted to get the output of this um we could just use the direct right we could have done um system who am I and then piped it like that and piped to a file right but if we wanted to we could also look in um is it show no we want to look at print because g& plot does allow you to set print to files r...
2,438.64
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
weird um that does not look like it worked U bash C b-i Dev TCP 101 1480 and one like that that that should work um see name.
2,497.359
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
PLT cat malicious it's not there anymore is oh tab auto complete doesn't work because of reasons right because we don't have rep permission so I'm going to try gnu plot on this file GN U plot invalid command is it lowercase uh let's see system it may be lowercase there we go we got a shell so now we just wait for the t...
2,515.24
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
command in the output variable and then we're saying print the output variable think that is right let's see if we go back to print I think that works Let's see we saved it date uh I think a new minute did pass so Dev shm that did not work V opt gnu plot malicious. PLT let's see uh we probably need to do a dollar sign ...
2,622.72
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
PLT cannot open script file oh um up gnu plot that is probably because we didn't put it in parentheses so always test your code right uh no data block named output so now it's working so devm poned is currently V da if I wait the one more section that worked well it is now rout so that is how you can get it to Output t...
2,713.8
0
{ "video_id": "W1G11I_nMOQ", "title": "HackTheBox - Topology", "url": "https://www.youtube.com/watch?v=W1G11I_nMOQ" }
What's going on, YouTube? This is IPSEC, and we'll be doing Underpass from Hack the Box, which is a pretty easy box once you get past the initial recon because the initial end map gives you absolutely nothing to go off of. But if you scan UDP, you can see SNMP is open with the default community string. And if you do SN...
0.08
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
for default scripts sv enumerate versions vv for double verbose. This gives us things like the ttl o a output all formats the end mapap directory and call it underpass and then the IP address which is 10101.48. This can take some time to run so I've already ran it. Looking at the results we have just two ports open. An...
40.48
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Its banner tells us it's Apache also running on Ubuntu and the title page is just the default Apache to Ubuntu it works page. So let's go ahead and take a look at this. So we can do http 101011.48 and we just see this default page. And since we don't have any type of hostname leakage yet, I'm just going to start off wi...
66.24
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So we can do a go buster directory mode URL http 1010 1148 and the word list we'll use is optse seclist um discovery web content then raft small words.ext and let that go and see if it finds any directories. And then while that goes we can also test other ports.
89.28
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So, we only did like the top 1,00 TCP. I like also testing for like um SNMP when I run into an issue like I can't find anything. So, that's port 161 on UDP.
111.68
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So, - S capital U and then 10 10 1148.
123.04
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
And we can see UD uh SNMP is open. And the reason why I test it specifically because if we just did like -V to test the top 10,00 ports, this scan can take quite a while. So, I like just testing like SNMP, TFTP, um, NFS, and like the port mapper service, which I think is 2049 or something. But those are just a few UDP ...
126.719
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
do pseudo v etsy snmp then snmp.com and then uncomment this MIBs directory. So, now when I run this um it still didn't do it. So there's probably one other thing I have to do.
183.84
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So we have that uncommented. I have to now install the SNMP MIBs downloader. So I think it's that's what this name. So we'll do pseudoapp get install SNMP MIBs downloader. I think that's the program.
199.12
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Yes, it is. And I think the whole reason behind this is some like licensing thing where they can't just um give all the MIBs on a default install because it's a weird license violation. I don't fully understand the issue, but I think that's what it is. It doesn't really make sense otherwise to me. So once this installs...
213.28
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
And then hopefully we get a bit more information. We can see there it's now processing all the SNMP MIBs. And let's run this same SNMP walk command. And there we go. So now instead of all those numbers, we have human readable names. So let's see what is there here.
234.08
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So, we have the uptime, which is two days right now. Uh, we have the kernel version, so we can kind of see the last time this box was updated. Um, let's see. Let's just go to the top and let's see, kernel uptime. Um, and email. So, now we have the host name of the box, which is underpass.htb and it's saying it is the o...
253.599
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
dollar radius directory to see if we can get any files inside of it. And we could also just easily test for that. So, if we're on GitHub, I like just searching for like one of the files here. So, normally I do like readme.md because most open source programs have that because that's how um GitHub shows like this thing....
317.759
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Maybe it's just saying there's no um index.html to show directory listings.
377.36
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Right? So we have opt common operators and users. So if I try app users. Oh, we get a login. So, let's try also operators to see if that is a login. So, everything looks like it is giving us a login required. So, we want to know what the default credential is.
382.56
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So, I'm going to Google default credential dow radius. And if this doesn't pull it up, then I just go search the um GitHub installation to see uh let's see administrator and radius.
402.24
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So if we search for administrator and then radius, we get logged in. And I spent some time here trying to find a way to get code execution. Like I tried editing a lot of the config because normally like PHP apps will um do a include config file, right? So normally if you put PHP code somewhere in here uh you can get co...
416
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
And I forgot to revert the box. So you still see me editing this allow random characters. But if we try this so if we did PHP um we can do echo test. It doesn't actually save this right. So first it wants to match the requested format. So I'm going to get rid of that. We can switch this to go through burpuite. Go proxy...
447.919
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So configuration was updated. I'm going to uh refresh. Wait. Okay. And we have just the same exact string. That's not what I was seeing earlier, but let's see test. Okay, so it um did the sanitization. So it's like cross-sight scripting protection. So it didn't put the actual um less than equal. So that's probably why ...
492.56
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Let's intercept on. We have the post. Put that in. Forward it. Configuration has been updated. Go database. Go back to user.
540
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
So it looks like it's doing sanitization less than equal. So I tried doing this on a lot of fields. I never could get it to um do code execution. So I was going around, we looked at management features. Um if I click on like radius log, we have errors reading the log file. All these logs we can't read. So, I was trying...
559.2
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
it actually shows password hashes of users. So, I'm going to see how many characters this is. So, we'll do echo this password hash wc- c. I'm going to do dash n so we don't get the line break at the end. And that's 32. So, this is most likely a MD5 sum. So, we just go to crackstation and input this. We could also use a...
617.279
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
I'm going to do a capital M because on Linux things are case sensitive and we can see it does have a capital M there.
679.76
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Put in the password and there we go. We get logged in. If I do a pseudo-l, we can see I can run the mosh server as root. So I'm going to do a man mosh and see what this is. A mobile shell with remote intelligent local echo. So this looks like it's just a shell. Um let's do mosh-server. Is there a page here? Program hel...
686.8
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
Default is UDP port operating system pick the available. So let's see I'm just going to do a pseudo mosh server and we see mosh connect on port 60,01 and then we have this string. If I do a mosh uh client, is that installed?
719.12
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
It is. I'm going to specify 127001. And let's see, it wants the port as well. So, we'll do that. It says mosh key environment variable not found. So, let's just set that. And I'm guessing this is going to be the key. And there we go. We have successfully gotten root. So Mosh is kind of like a just alternative I guess t...
740.8
0
{ "video_id": "6hoOcB9ubs8", "title": "HackTheBox - Underpass", "url": "https://www.youtube.com/watch?v=6hoOcB9ubs8" }
What's going on, YouTube? This is IPSC, and we'll be doing University from Hack the Box, or I guess I should say attempt university because a lot went wrong when recording this video. I debated on redoing it, but I figured I just roll with it in case any of the troubleshooting or pain is helpful to you. Anyways, the ma...
0.16
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
detection over IPv6, we insert ourselves into that conversation and use NLM relay to open up an attack path that lets us impersonate administrator to the Windows VM. With that admin access, we can gain access to other Kubros tickets that grant us the ability to read GMSA passwords, the group manage service account, whi...
41.12
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
being DNS on port 53. And the banner tells us it's simple DNS plus. So, we know this is going to be most likely Windows Active Directory. We can scroll down when we see that DNS banner and see yes, there is a LDAP domain and it's university.htb. We also see a HTTP server on port 80 and it's redirecting us to university...
86
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
also have kerros on port 88. It is giving us the time um RPC ports. L adapt is going to be active directory. SMB and that looks about it. Looking at the host scripts we see there is a clock skew. So, if we want to do anything Kerros related, we probably should make sure we do a NTP date to sync the time, which we'll do...
144
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
This could just be um the host name, but it could also just be saying this is a domain controller. Uh, to be sure, I'm just going to run net exec. So, we'll do net exec SMB and then 10 10 1139.
174.959
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And this should go ahead and tell us what the host name is. So it is DC, right? So let's go ahead and also add that to our host file. So we'll do um DC and DC University.htb.
188
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Save this. And then I'm going to go ahead and just take a look at the website because we did have port 80 open and it's running engine X which I do think is weird. It is a TTL of 127. So it's most likely running Engine X on Windows. If the TTL was, let's say, 62, I would think there's going to be some type of routing g...
201.84
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And if we have to go through the Windows box to get to Linux, then that's an extra hop. So, you decrement by one, 63 to get to Windows, then 62 to get back to um Linux. So, let's just go ahead and try this. So, I'm going to do HTTP University.htb and we'll see what um comes back. My burp suite I think is set to interce...
227.68
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
the um host OS is so we know what type of commands to run, right? So, never hurts to just double check. So, we'll do pseudo TCV dump on ton zero. Do-v.
283.12
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And now I can do a curl university.htv. And we can see where is the TTL 64. This is me making a request to the box. We can see um 101048 to university, right?
296
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
So we want one where university starts. And this TTL is 127. Um we just sent a bunch more packets, but uh we can do this again. And we see TTL 127 um here. So it is looking like it is running Django on Windows which is just a little bit odd but I guess not impossible. Taking a look at this website it looks like it is g...
311.039
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Um if we go to like browse courses it wants us to input a username and password or we can log in with a signed certificate. Um if we go to register, we can register a student account or professor account. If we go with a professor account, I'll do professor. Um root professor at ipsack.rocks.
346.88
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Password of password. Uh password's too common. Password one.
368.8
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
If I typed that correctly, register.
376.319
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
It looks like we've registered. Um we do professor IP or did I do the other one?
382.319
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Uh okay professor IP we have sorry this account is not activated and can't be authenticated. So it looks like with a professor account um we will have to find a way to activate it right and that's what this note is saying after creating your professor account your account will be inactive until your team reviews your a...
390.8
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
and we get logged in as a student. So let's see we have a profile here. Uh we could test for like cross-ite scripting. So if we do BIP slashB um submit, uh we have to do all this details.
446.24
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
There we go. Let's see. Um we do have the um rich text editor showing this in bold, but I don't really see that much. So if someone clicks on our link or our account, we'd be able to potentially get code execution, right? So, I'm going to do image source is equal to http 101048 port 8000 test.png. And all I'm going to ...
464.319
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Uh, it just went away. Okay. So, I wonder if that is like filtering something. Um or I did something incorrectly, but let's just see what else there is. So, if we go to uh course list, looks like we have some courses. If we go to enroll, uh we have lectures. So, if we go introduction, looks like a PowerPoint.
507.039
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Um really not much here, right? Uh, this one has a zip we can download. Lecture two. I'm going to see what's in that zip.
535.6
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Uh, downloads lecture 2 7Z X lecture 2. We go in this archive and it looks like we have a few um shortcuts, right? We have an internet shortcut and it's telling us the URL here um a document. There's really not that much. So, let's see what else is there. Um if we go back to home or maybe we want to go back to our prof...
549.44
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
So when I create this um certificate signing request, I want to put this user's information, right? So I'm just going to rename these files so um makes more sense to me. We have nia.key nia.csr which is certificate signing request. Uh we need to enter a password.
606.8
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
I'm just going to do password for the phrase country code state. This stuff probably does not matter. What matters probably is going to be the common name.
624.399
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And I'm going to use the username here which is nia. And then the email address. We'll use niacrofts.com. Uh challenge password. We don't need that. There we go. So now we have a certificate signing request. So let's go ahead and upload this and see if the server will um send us anything back.
635.519
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Right. So we'll do htb uh this box is university nia.csr send it. Submit.
659.68
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And CSR information does not match the database records. So it doesn't look like we can make a certificate from a another user. Um so let's see what else we can do here.
670.48
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
If we go uh we also have a profile export. So if I click on profile export, we have profile- six. So let's do move downloads. Uh profile. Was it a lowercase B? It was profile-6 PDF. We look at this PDF in XIF tool. It's something I highly recommend doing whenever you get PDFs because generally it tells you how it's cre...
682.959
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
definitely use this one. Um, there is a difference. So, if we look at this, um, we have three of these brackets. I'm going to go look at the code real quick. I've already copied that to my clipboard. Um, let's just put it in a file called payload, um, here. So, we have it. If I go to the actual Python and then we try t...
766.079
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
because n I think is how you do it in Linux. Let's do n1 10 1048. Um, maybe it's just C as well because that just did three. Okay, let's do C. We'll do C1. Save that. The reason why I want to make sure I limit this is because on Linux the default behavior is to ping indefinitely. So if I just do this, right, it's never...
821.2
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Okay, let's cat the payload. We can now grab this.
870.399
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And what I want to do is go back to my profile. We'll put this in the rich text editor.
877.839
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Paste it. And now when XML h uh XHTML to PDF is called, it's going to use that malicious um HTML and hopefully we get to code execution. So I'm going to do profile export. And do we see any hits?
884.72
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
We don't. Um that could just be Windows is using -ash N1 for the count and we did C1. So let's just go ahead and remove that real quick. So like that because the - C on Windows could have caused some type of error that caused us not to ping. Um and Windows the default is to only ping four times. So I don't really have ...
902.399
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
gonna do CP um user share nang and let's do shells invoke powershell TCP one line ps1 uh to just dubdubdub shell.ps1.
960.8
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Okay. And let's see. Delete. Delete.
982.32
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
That is good. Now let's do 10 10 148 on port 90001.
988.72
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And let's see. I'm just going to um see if we can execute it straight.
1,002.16
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Normally I put it on a web server in case defender is there, but let's just try this real quick. So we'll do UTF16 little Indian base 64 W. Um, yeah, that should be fine.
1,007.6
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And what we want to do, let's go back to the payload.
1,024.559
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
And let's see, we'll do PowerShell C for encoded command. And we'll do this. Um, I wonder if we have to do like no profile and all those things. Um, let's just save this first and we'll see if it works. So, a cat payload.
1,035.199
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Grab this new thing with a reverse shell. NC LVNP 90001.
1,056.64
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }
Let's paste this in. Submit.
1,064.72
0
{ "video_id": "q9ms9k02fUM", "title": "HackTheBox - University", "url": "https://www.youtube.com/watch?v=q9ms9k02fUM" }