text stringlengths 4 952 | start float64 0 9.37k | duration float64 0 0 | meta dict |
|---|---|---|---|
If we do this, is there too many files? There's not. Awesome. Um, we have databases. DB right here in instance. | 881.68 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So, if we do cd instance, we have database.db. So, I'm just going to do SQLite database.db. We do a dump. And we see there's two um MD5 hashes for development and Martin. | 887.92 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So, I'm just going to, and I'm saying MD5 because I can just eyeball this. | 901.68 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
This is going to be 32 characters, right? Um, echo-N WC- C. Yep. 32. Whenever you see like a 32 character string, probably MD5 some because it's that common. Um, we can do crackstation.net. And then I'm just going to input these MD5s. | 906.88 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
We could send it over to like hashcat and try to crack it. But whenever I get MD5s that are like unsalted, um my first instinct is always just to use hashcat, right? And the first hash is development. The second half is nafil swordmaster. And that's going to be Martin. And if I cat etsy pass wd and I'm going to grap fo... | 925.199 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Yes, it is. Put the password in. And we get logged in. We do our ls. We can see um user.ext isn't there. I bet it's in app production. Uh yes, it was in app production. But looking at Martin, there is a backups directory. If I look at backups, uh, we can see Martin owns this. And there's also a task.json. | 960 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So if I cat task.json, um, the destination is home and backups. | 985.6 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
And it's backing up the production app. We could go look at this backup. But I'm also just going to run a pseudo. And we see I can run this script back.sh. Right? If I didn't have anything in pseudo, I'd probably look at like set UID binaries. If nothing there, then I'd probably go examine this backup because there may... | 991.759 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
And then it's running this jq. And I don't know exactly what this is doing. | 1,039.12 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Um, I'm going to copy this to my clipboard. Um, but we're going to do a jq on this parameter directories to archive. Then we're going to do a map g sub. I'm guessing this is going to be dot dot slash. And these escapes are serving at or these backslashes are serving as escapes. So, we're just um replacing dot dot slash... | 1,044.16 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So, I'm going to copy the task.json JSON over to devshm and I can go in there and then I'm going to paste this. I'm going to do uh task.json. There we go. And we see pretty much exactly what that file is. | 1,088.4 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So I'm going to go v.json. And then the attribute it is looking at is directories to archive. And then the allowed path is in home or opt. I think it was. So I'm just going to do home. I think there was a comma there. Um maybe it was this. No, forget exactly what it was. Uh just a quote. Okay. | 1,107.52 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So do the quote. I'm going to put dot dot slash. And let's see what happens to this. So um we're going to rerun that jq command. and it erased that dot dot slash. We do multiple dot dot slashes. | 1,135.2 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Let's see what happens. So, we do two, run the thing again, and erased it again. So, now I'm curious if that um map g subcomand we're running is going to be recursive. And what that means is after it does the replace, does it check it again? Maybe it's iterative, not recursive. I may be messing up terminology. So, what... | 1,148.96 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
detection. So, what I want to do is backup root and the destination I'm just going to put this to um dev shm right dev shm and then might as well set verbose log to true um because whenever I'm like playing with things I want verbosity so if it fails um I know why, right? And it's excluding anything that begins with a ... | 1,211.52 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Not exactly sure what happened there. Um, permission denied on line 19. | 1,268 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Let's look at this. Uh, that's not it. The We screwed up something. User bin backy.sh 19 updated JS. | 1,278.799 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
That's weird. It failed at writing that back. Um, chod. Let's just give 777 so anyone can write or execute this file. Run this pseudo again. Still getting permission denied. | 1,299.039 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Uh, dev shm task.json. | 1,317.039 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Not sure exactly where that um error is coming from, but it is reading the file. | 1,322.32 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So I think the error is maybe the SHM needs a slash, right? It's just two dev shm. Maybe it's treating that as a file. Um, so let's try this real quick. Um, I actually had that there. Uh, let's try this. | 1,327.6 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
I cannot stat file. | 1,350 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Let's see. | 1,358.4 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Is my destination wrong? | 1,363.679 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Let's see if I do So dot dot slash is Oh, I have an extra slash here. I put the dot dot slash in the wrong location. So I think that's it. Oh, no I didn't. | 1,370.559 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
That's right. We have three dots. So it removes these three and left with dot dot. | 1,395.6 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
See directories to archive. | 1,409.76 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
It's definitely not archive anything. | 1,418.159 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
I just really don't like that line 19 error. Um I don't know exactly what is going on there. Let's look at the code again. 19. | 1,423.2 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So it's erroring when we try to overwrite this JSON file and updated JSONs. the results of this and JSON file is the first argument, right? Um, do we have to be in the allowed paths? Let's see. Is allow path? Um, it's setting local path to be the first argument there. And it's doing a directory and directories to archi... | 1,436 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
There's no way the file name changes anything. Okay, still nothing. Let's copy t.json. | 1,481.36 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Is it operating out of like backups or something? | 1,489.2 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Let's rerun this. Did this suddenly just fix it. | 1,494.48 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Yeah, I am not sure what's going on there. | 1,500.159 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Uh maybe devsh is like a bad directory to run this from. That's my only guess. | 1,507.2 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Um uh let's do ver attemp. Let's see. Can we copy backups t.json here? What if we run it out of our attempt? | 1,512.48 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Uh, permission denied. So, it really definitely likes being in my home. Uh, I wish I could explain it right now, but I can't. Um, it wants to be in home backups. That is bizarre, but okay. So, we ran it. It should have copied to devsh. And we do have a backup here. So let's do tar xjvf code home. And then we're extract... | 1,526.799 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So I'm going to chod 600 on ID RSA. Let's make sure we own that file. We do. | 1,574.72 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So I can just do SH- ID RSA and then root at127001 log in and there we go. We have now rooted the box. We could also easily just copy that IDA file to our box and then SSH in as root that way. But that is going to be the box. Actually I lied after recording the video. There's one thing that was just eating me up and th... | 1,580.72 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
was doing here. Essentially all that happens is it uses the jq to remove one dot dot slash and then overwrites the JSON file, right? And we just kept being puzzled about like is it like changing a directory somehow? Like why can we not overwrite this file when it's in dev shm? And if you look at like the mount permissi... | 1,636.4 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
But then that doesn't make sense because it also didn't work in temp or var, right? And if we gpped on these directories, those the var directory doesn't have any special uh permissions. | 1,663.52 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So it still didn't fully make sense, right? And if we run it, we see uh we get that permission denied. I also like let's try chmod 7777 on task.json and then run it again and it still gets permission denied. So why is something getting permission denied when it's world writable right? That doesn't make sense at all to ... | 1,676 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
we go. were reading the updated JSON and then it's doing things and then we just get permission denied. So that didn't really help me. So I went to look at the audit log which is going to be audit d and we have laurel installed on our Linux machines. That makes this really easy, right? So if I g for task.json out of uh... | 1,732.08 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
chromium os doc maybe. Let's see. Uh there we go. 257. | 1,796.88 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
This is going to be open at. So open at is failing. And that gave us enough to just Google around and go to like chat GPT and eventually get the answer. But it's sticky bits. So um when it's set to one, don't allow Ocreate open on regular files that we don't own in world writable sticky directories unless they are owne... | 1,803.52 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So if it's world writable and this bit is set and we don't um the owner of the directory doesn't match the owner of the file then it's going to be denied no matter what. Um so if I go to devshm and we just try writing to this. So we can see uh it's worldw writable echo please subscribe over top of task.json. Let's just... | 1,835.44 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
go slash I'm going to make a directory called um sub uh yeah, that's uh let's make a directory called please subscribe. There we go. So, we have that directory and what I want to do is ch own Martin martin on this directory and then I'm going to go into the directory. So we'll do slash please subsubscribe and I'm gonna... | 1,892.799 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Because the directory owner does match. And we also didn't make it worldw writable. So if we do 177 like this, it's somehow going to work. Um if we look at the permission of the file, everything's there. So now watch what happens when we're going to change please subscribe to be root owned. | 1,953.039 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Now you would think changing the owner to who is going to be writing to this file um would um not change it being able to write. So I'm going to do that. And now I'm going to attempt to write. And we get permission denied. And it doesn't have to be the root user. Um we could change it to any user. Um I want to say like... | 1,975.679 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So if I do uh let's do ch own app at production app production and now we try to write it fails and that's because the directory owner and the file owner don't match right and also if um it's not world writable. So let's go back to this actually we should do it down here. So, chmod1755 um on slash please subscribe. So,... | 2,001.919 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Uh no, we remove the right permission. So, let's now go ahead and attempt to write. And we can. So, it's one of those weird situations where um you don't have the right permission and it works because you root and then you add the right permission and it no longer works because it's a really um specific edge case of wh... | 2,041.519 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
apparently I lied again and there's one more thing I wanted to include. OXDF had found this after I recorded the video and I thought it'd be interesting enough to include it because it's a default behavior in bash scripts and the fact that when they encounter an error, they're not just um producing a stack trace and ex... | 2,095.599 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
just assumed it would change this path to be home root which isn't a path so it would exit but it actually removes the dot dot slash and then attempts to write this file back to the disk. And since that fails it never actually removes the dot dot slash which is I find is very interesting. Um let's also set verbose to t... | 2,151.119 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
The first thing we have is line 19, the permission denied. But then it goes ahead and archives this. So, let's take a look at exactly what um backy is or user bin, the backy uh script. And here we're just making sure we have an argument. Then the next set we're making sure that argument is a file. And then we have allo... | 2,187.359 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
of the script it's going to call the backy binary which is just a binary that's on GitHub against that JSON file. | 2,242.64 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
So because it's actually um erroring here, it never writes it to the disk. | 2,250.32 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
And because the allowed path isn't checking for directory traversal, we still hit this and it works, right? | 2,255.839 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
There are two ways you could have patched this, right? Or we could have, I should say. Um after you run the command, you could do like a if statement. So if you do if um I think this would be the last exit code. So we say the exit code is not equal to zero. | 2,262 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
Then um we'll exit and fee. I think that's right. Um it's been a while since I did bash scripts. I probably should do like a exit one I think. So now if we attempt to run this again, we'll have to remove that turb 2 file. But here hopefully it just stops, right? Because the exit is um one. Um, if I do echo like this, t... | 2,278.48 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
the bash runs a program and it comes back with a nonzero, it's going to exit, right? So now, let's go ahead and run this. And again, we have that same behavior. So either one of those two things needed to happen in order for that vulnerability um to not exist. So maybe that's something if you're ever running bashcripts... | 2,354.8 | 0 | {
"video_id": "-qGAM0Mt2V0",
"title": "HackTheBox - Code",
"url": "https://www.youtube.com/watch?v=-qGAM0Mt2V0"
} |
what's going on YouTube this is ipag I'm doing ker from hack the box which starts off with some crypto challenges that I actually enjoyed and I normally don't say that because I hate crypto the first one's just a simple net application that you can decompile and write a de crypto for the second one is a authenticator p... | 0.16 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
certif fried which does a lot of steps manually and you got of jump through some rabbit holes we'll go through both of those things in this video so let's just jump in as always we're going to start off with an end map so n m-c for default scripts SV enumerate versions OA output all formats put in the nmap directory an... | 49.52 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
VC host and then we can do a 1010 11207 cod. htb dco1 doc. HTP so that is now added let's take a look at what's here so we have DNS we have a web service we have keros and we have ldap and um SSL there's probably 445 next which will be SMB um it's also telling us our time is about 8 hours out of sync so if we do anythi... | 102.68 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
this is any different uh we could go bust try to um find valid files we could do some virtual host enumeration there's a lot of things we could test here but I'm also going to check SMB so let's do- IPC um- P oh let's just see we do D- shares see if we can list shares as Anonymous user we can't um if we give it a inval... | 172.959 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
Anonymous or something like that it's something funky there right but we can see there are open shares and we have access to the user share and development share we also have IPC but let's take a look at the user share so I'm going to do a SMB client then 10 10 11207 SL users uh we can also do a-n so it doesn't ask us ... | 235.519 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
migrations CD uh let's see CD migrations I don't know why that di command wasn't working but um we can see files here and if we did a mgit to download everything it's going to take some time um we can do that let's make D SMB and then we go in here do this say recurse on say prompt so it doesn't um prompt us for anythi... | 316.199 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
next command doesn't work you want to install that because you do amount period and see you have like smb3 and cifs which this provides so let's make a directory MNT and I can just do pseudo Mount um 1010 11207 SL development on MNT then just do enter for a password and then we go into MNT it's just mounted here and we... | 386.039 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
encryption if I go to main we can see it takes a argument of ARG zero it um takes that adds thec so this is going to probably be do like encrypted it's going to get the current time and then use that as it looks like the seed or maybe IV or something so it's going to use the current time and then encrypt it so what we ... | 465.28 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
doing it on encryptor we actually want s. BL blade so let's do a stat on s. blade. ENC and we see the time stamp so what we want to do is convert this Tim stamp to Epoch time and I don't know if it's the modify or the birth um I'm going to start with this one and then this doesn't work we'd move over to the other times... | 536.839 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
program I believe maybe it didn't automatically open I can click there and whenever dealing with something in crypto I always like using um the same language that the it was encrypted in right because if we decided to switch over to Python and write a decryptor I think this is just as there's a chance like the IV or so... | 607.16 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
it's going to create a encryptor I'm going to guess there's a thing called a decryptor doesn't have errors under it so it looks like that is fine if I did not know that I could probably just type like um this and then period and see the functions that it has right so we have the decryptor it's going to open and write t... | 673.839 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
ENC uh do we have to call that a string there we go and we'll do the same thing with destination and we'll just do s. blade okay let's get rid of this if then statement okay so file info I don't think we need that we don't need text because we Chang those so this is source file and then destination file okay then let's... | 738.639 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
think and we can say this will be IV I think that's it let's see if it actually decrypts so in here we have s. blade nothing else we're going to run this it did not pop out an error and we have a file so I'm going to copy this back over to my Linux machine and we'll examine it to find out what type of file this is so c... | 866.44 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
be a key pass database I'm going to do ax to extract it and we can see both of those files extracted so if I do KP CLI um we can specify a key so let's do-- key and then we do the database with-- kdb and then s blade. | 936.48 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
kdbx I'm going to probably just do no master password and it does let log in so if we do LS we have root we can go into root and we have three different um options right we have the authenticator backup code Office 365 and team City and there is a new host name here so let's just add this to our host file so P sudo VC ... | 959.399 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
htb uh let's just go here as well um HTTP so this one goes to I but htps looks like it is logging in here so if we do a um show I think- F2 we can see this and it gives s blade and the password so let's try logging in so we do s blade put this password in and it wants a multiactor code so if we do a show- F0 um we have... | 997.8 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
net log on because we're now a valid login session cisv um and users we could try um SMB client d s. | 1,092.08 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
blade um c. htb 10 10 11207 users and maybe we get into a different uh folder maybe we get into s Blades home directory right uh it does not look like it this looks to be the same place so this doesn't really get us much we could run Blood Hound now but blood Hound's not going to buy us much so all I'm going to do is v... | 1,106.039 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
but if we do authenticator um let's just say Firefox plugin we could also look at Chrome plugins but I don't have Chrome installed that's why I'm looking at the Firefox so if we do this we have the authenticator app um I already have this installed so um I'm not going to install it again so we just go here we can run t... | 1,173.919 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
let's try back up and then we will go let's see um whoops HTP coder and I'm going to call this um ip. | 1,245.039 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
Json and when I installed this I put the password of test I want to say um I probably should have just remove the extension so if I cat ip. Json we have the same exact format as we saw on this right even like down to the uid and everything so what we want to do is figure out how this application encrypts things uh my f... | 1,267.76 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
key extension a bunch of things to make brute forcing this slow right so if it takes a long time to Brute Force this however all we use this hash for is probably to decrypt this secret which gets us the key that then decrypts this secret um we could just try to decrypt this right off the bat because doing one round of ... | 1,337.2 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
linked open source and homepage brings us here so the source code to this authenticator plugin is all open source so that means we can easily see what's going on and I say easily and just because it is going to be a bit tougher um looking at web pack we see a bunch of TS so I'm guessing this is going to be typescript w... | 1,401.2 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
decrypt it and again just like the last piece with net I don't want to um use a different library to try to decrypt this right we don't see as passing in like an IV or anything else it's just using all data that's probably from the library so we'll have best results using the library um so we'll want to create a uh Jav... | 1,464.919 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
brute. JS we'll call it and then open up visual studio code here once that opens we will begin so the first thing we want to do is just be able to read a file so I'm going to do a const FS is equal to require fs and then we will do a um read line is equal to require read line so these are just standard modules file sys... | 1,525.559 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
arv2 um one will be the process itself so that would be the script two is the first argument so we have a read interface so we can do um read interface on lines I don't know if we need function here but I guess that's fine um console log line like that let's see there we go so let's test this out so let's do V ip. text... | 1,577.44 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
be length is not defined this should not be this difficult get length of process arv uh that is what I had oh my God JavaScript get length of array it's probably a list but that just you get it array length closing do length do length there we go awesome so that took longer than it should have but hopefully um that ela... | 1,706.44 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
what we want to do is probably create all our secrets um let's go back here and this is going to be the keypass output we have two Secrets this is going to probably be the encrypted key and this is the in probably top we'll call it so let's grab this and say const encrypted key is equal to that and then we'll do const ... | 1,852.64 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
phrase was just test um we have that as well I think that was doip sec. Json let's use these values so we can test exactly what this looks like so const encrypted key and then const encrypted top secret grab this okay we do that and then we log so let's open our ic. text and I want to say I put the password is test um ... | 1,951 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
just non- asky characters right let's do this again xxd no it just did not put anything okay oh that is 16 right yeah that is definitely 16 it's 16 in HEX it's length so what we want to do is have our script decode oh we want key there CU we're decrypting both with that let's see what does this look like there we go th... | 2,075.919 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
we'll do a cryptojs encrypt utf8 so now when I run this without the xxd it just shows me this so what I'm going to do is wrap this in a try catch and we're just going to not handle errors and the reason why I'm doing this is now that we're specifying this utf8 if we get data that is not utf8 um decryptable then it's go... | 2,167.88 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
can decrypt it twice and we don't throw an error converting it to utf8 go here so let's put the production keys in we can run this and I'm going to do users share wordlist rocky. text and we definitely don't want to log errors anymore I think we can just call break or maybe how do we end Exit Zero okay and I also want ... | 2,264 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
this and maybe we don't return oh we're still doing IPC there we go so we're going to run this hopefully it cracks within a couple minutes if not we did something wrong Let's see we do top secret length 15 that should be right let's see actually before I do that let's just we'll add that return back in I'm going to tes... | 2,403.4 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
the top right um let's see uh I hate this interface plus manual entry issuer we can call this team City and then the secret should be this value and of course the authenticator exited plus manual entry there we go team City okay so now we have a MFA key so let's test it and if this didn't work then I would probably um ... | 2,505.599 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
reject it immediately so I think that was it so definitely make sure your time is in sync um when entering any tops right because they are time based the login does take a while but it looks like it is working and now that we're logged into team city um we should ask ourselves what the heck are we logged into so I'm go... | 2,597.4 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
Source step one it is running Powershell and we see it execute something um and just says hello world so if we looked at the um SMB more in depth uh let's see if we go to migrations team City test repo I think it was there is a hello world. PS1 which is that this file we don't have right access here neither um our Anon... | 2,671.559 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
as personal build and if we do um it says click or upload a patch diff so what I'm going to do is let's copy this team City repo um to our box have to do a DHR so this is going to copy the G and this and I just realized we did download every single file already so um maybe I did not need to do this but doesn't take too... | 2,741.68 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
like to prioritize it because one of the options was like put it on top of the queue right I don't know if that'd be faster updating sources hello world we do show full log step one one and we see please subscribe here so it definitely does run so what we want to do is edit this so I'm going to do hello world. PS1 and ... | 2,830.28 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
PS1 and that and that is that the valid poh tradle I think that's valid let's see if it executes um CD make dubdub duub touch shell. PS1 actually let's copy CP user share Nang shells invoke Powershell TCP online. | 2,888.24 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
PS1 okay okay and let's send the shell to 10 10 14 8 901 so python 3-m HTTP server we'll do RL R NC lvmp 901 and then get diff d. text so now we have this running our code that ex line does not look right to me by the way but maybe it still works let's run it and we'll see we do get a hit on shell but nothing here um d... | 2,934.44 | 0 | {
"video_id": "uZiEKiG96VI",
"title": "HackTheBox - Coder",
"url": "https://www.youtube.com/watch?v=uZiEKiG96VI"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.