text
stringlengths
4
952
start
float64
0
9.37k
duration
float64
0
0
meta
dict
Right? So, we have the contents there. Um, to prove it, we could also give it like Etsy pass WD and let's see what happens here. Um, unable to read event, we just get the very last line, but you could stop there, but let's look if we can um exploit it via a plugin. So, we want to see exactly where everything is stored....
1,669.919
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
For the scan we do have preset which is the config. And we can do current preset full to kind of get the um details. So what I'm going to do is this and this is going to give us every like config that it is using by default right uh for fuff the word list it uses raph small directories but what I want to look for is th...
1,710.08
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And then we also have module directories. So, this is going to be probably where the modules are stored.
1,754.48
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So, um let's go ahead and create a preset. I'm going to go to devshm. I'm going to just do pone was it yl? I don't think it matters the um extension. And what I want, let's do module. We don't want that one. So, let's see.
1,760.72
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
What if I just do modules and give it parent if I don't need any arguments? Let's try this. Uh, but first, hold on. We got to get to whatever the top is because there are spaces.
1,787.36
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So, we're going to do config colon. That's going to be where we start.
1,804.159
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So v uh pone eml config and then modules was it like pone like this?
1,810.72
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's look modules. Okay, that looks good. And then we want to give it a directory. So was it modules d uh dur modules dur. So this is probably where the modules are loaded from. So let's specify modules dur and it was a list like this. So, we're just going to do dev shm.
1,830.64
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And now we want to create a module called pone. So, I'm going to go to uh we could probably just pull it from here, right? Let's see. BBOT. Let's see how a module looks. Word list modules. This is good. And then let's see if we go to base.
1,864.559
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's see. Uh this is a base module. That doesn't look helpful.
1,886.64
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Um templates maybe. Let's do web hook.
1,894.24
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Okay. So this looks like it is the default of a module. We import YL.
1,900.799
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Then we import the base output module library. And then we create our class.
1,908
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So I'm going to copy this real quick. Let's do v pone.py.
1,914.96
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Paste this. And I'm going to call this the pone module.
1,921.039
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
And then we'll also import OS.
1,929.039
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let me make sure I get my spaces right. There we go. OS.System bash. I'm going to do the full path because it is using pipex. So it may be like having a weird home or path or whatever. So we'll save that and then we want to see how to use this. So pseudo bbbot-l I didn't want l preset.
1,937.279
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's see how do we specify a preset -p. So if we specify bbbot-p devshm pone.yml. Does it seem to be working?
1,974.48
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh maybe. Hit enter. We did not get anything. But let's do a dash m for pone. And that should load our pone module. If dash m is module. Um could not find scan module pone. Did I mean WP scan? No.
1,989.2
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
LM. What was list modules?
2,009.2
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's see. Dashl dev shm own yl l.
2,015.039
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
I wonder if modules dur was the output directory for modules because it's still listing everything when I think or preset should tell it not to right.
2,027.519
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So let's do a was it current preset full g-i module.
2,040.64
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's actually try this. Um I wonder if I do -p for the preset of desk devshm uh parent.l ammo and then the current preset. Is it going to show me or modifications enabled modules?
2,051.839
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Doesn't look like we loaded Oh, module dur. So, we loaded that, but I don't know if we loaded a pone module.
2,077.119
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
G- I pone. I have a capital G.
2,089.679
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Let's see. So, it doesn't look like it. Let's do make dur modules and then cpone.py inside of modules. Maybe that does it.
2,097.359
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
It does not. So, I think the issue is how we're loading the module.
2,114.48
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Just do pone there. What happens? Internal modules again.
2,126.079
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Not loading it correctly. So let's go and look at the documentation. So I'm going to do BBBOT preset. And that may pull up the page.
2,133.92
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh presets BBOT. That looks good. Uh there's also list of presets.
2,147.68
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh let's look at one cloud an um so this is what they look like. Code durust and it looks like they have config modules and they also have modules here.
2,153.52
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Um the loading the modules here and then putting mod let's see maybe that's it. Um pone.py. Uh we want pone. Not py.
2,176.72
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Finally opened it. Um let's take the config out cuz I put it at both places. Try it this way. Now I can do pseudo um use a local bin. This dashp pone. Module pone.
2,195.76
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh we need devsh.
2,224.32
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
There we go. It worked. Um so it loaded the module. As soon as it loads the module, we're telling it to execute bash. So now we are root and we can get root.ext. So that is going to be the box. I do want to test something real quick. Um, let's see. Pone.
2,231.76
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Did the module dur also have to be outside of config? Because when I did the like preset and then listed this, it did show dev shm was a module dur. So I don't know if that one matters too much.
2,247.92
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
So let's set this real quick. uh -p. Yep.
2,261.04
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
Uh so, okay. Yeah, you don't want to use the config at all. Um I'm not sure the difference there. I'm sure there is a difference, but that was our mistake is we're putting things under config when we shouldn't have. So, that is going to be the box. Hope you guys enjoyed it. Take care and I will see you all next
2,267.839
0
{ "video_id": "L7Amlj9DKm8", "title": "HackTheBox - Cypher", "url": "https://www.youtube.com/watch?v=L7Amlj9DKm8" }
What's going on, YouTube? This is Ipsac and we'll be doing Dark Corp from Hack the Box, which is a very lengthy machine that has a lot of advanced concepts that I really enjoy, especially when it gets to about middle of the box where there's a lot of NLM and Caribbe relaying going on as these are extremely powerful tec...
0.16
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
shell on the box. And from here, there's just a lot of enumeration and shenanigans with certificates, relaying, dappy, etc. That leads us to rooting a Linux box with Kerros and hijacking a user's principal name. As root, we can dump cache credentials, crack it, and gain access to an account that can manipulate GPUs to ...
39.2
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
us it's a Debian box. We also have HTTP on port 80. Its banner tells us it's engine X and we don't really get much more information. So let's just go ahead and take a look at the web server because there's not much else to go on. So I'll do HTTP 10154 and I have it configured to go through burpuite. So let's just turn ...
81.84
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
just /index. Normally when I see this, I don't think it's PHP. Um, we could look at the page source code to try to identify what framework this is. I don't see anything there. Let's go to a 404 page. And this looks like maybe a custom 404 page. So, no way to enumerate exactly what's being used. Um, I'm going to guess i...
137.04
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
looking at what we send to the contact form. We send name or email message and it's also sending the recipient. This is going to be support drip.htb. So we have a email leak. I'm looking at this. We see a cookie. And right based off this cookie, I know this is going to be flask I think because it looks very much like a...
194.64
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
mail.drip.h. HTTP as a new domain. So, let's just go ahead and add this to our host file. Save that. Refresh the page.
246.72
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And we get drip mail. This looks like it is going to be Round Cube. Um, let's see what else is there here.
254.64
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
There is a signup link. So, if I click sign up, we go to slregister. And I'm just going to do IPSAC password and sign up. And oh, I forgot to um click I agree with the terms, but apparently we don't need that. So if we just go to um sign in, I can log in now with IPSC password and we get logged into RoundCube. Now that...
262.16
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
begin trying to brute force the RoundCube login with Bcase. See if we get in. But let's go click on about. And this normally leaks the version of RoundCube. We can see the copyright is 2022. So, chances are this is going to be vulnerable to something cuz it is now 2025. Um, so let's go ahead and look at CVE details. An...
322.32
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
step, but um let's just ignore that one for now. And I'm going to go to 2024.
379.52
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And there is a cross-sight scripting that has a known exploit. That's going to be where I look at first. Um, round cube 15716x. Um, since it says 2024 and um, we're on 2022. I'm just going to assume it's vulnerable. Um, let's see. Does it say through 167? So, it does uh confirm it there. And then if I scroll down, um, ...
386.56
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
just going to exploit it. Right. Um this is going to be cross-hat scripting. And where is that proof of concept? I just missed it, I guess. Um, this is code something. Let's see. I don't think that's it.
436.96
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
There we go. This is going to be the crossite scripting payload in the blog post. And it's just going to do on animation start alert and origin. So, this should pop up a um JavaScript message if it is vulnerable. And I'm going to use the contact form to um send this. So we're going to go put the message here. And I'm g...
454.639
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And then let's just make sure this is on one line. So we'll do this. And then let's just put this on one line as well so we don't break the HTTP RFC.
477.68
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Highlight all this. And I'm going to press controlU to euro code it. The recipient is already me. So if I send this email off and then we go to our inbox, we get something here and it just displays the HTML, right? If I look at something, we have the content type of text. If I just change this content type to HTML, the...
490.16
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Okay. Click this. We go to repeater. Send this tab. Let's see. We do task mail caps. And then we have this UYU ID um payload. So if I just send this, let's see, should we get the message? Um what email did I click? This will be please subscribe. I think please sub. Maybe it was fu.
544.88
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Um this is definitely going to be my XSS payload, right? So I'm guessing if I go to this, this is probably UID 1 2 3 4. So, let's change this to um UID 2. And hopefully I can see foo here. Uh zero matches, UID one. Maybe it starts at zero. Uh zero matches still.
570.959
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Let's see. Let's just turn intercept off.
600.8
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Please sub. Oh, it's please subscribe. Uh so let's go back to repeater please. There we uh please reach out sub. So that's one. If I change this to two hopefully please subscribe is here. One match. There we go. So this is how we can read email. So now what we have to do is um change this payload up. So instead of doin...
606.8
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
So the first thing we have to do is a loop. So we'll do for let i is equal to one and we'll go until we have um let's do 100 messages. So do like this. And then each loop we have to increment i. And then here we're going to want to fetch. So I'm going to do fetch. And then let's do http mail.drip.htb HTB and we want to...
665.36
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Um, let's see. Is there any parameters we can filter out? I don't want to do this if I don't have to because that's got a lot of characters in it and like uh messages. This looks fine. I still see one match. So, I'm going to copy this. I always like just getting my payload as simple as possible. So if I notice like spe...
696.32
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Okay. And it's important to note if you're doing it in anything other than back, this little um expression won't work. So after fetch we want to set the mode to disable cores because if we don't do that then every request it's going to request an options to identify what um is allowed to access it and when we do that u...
729.36
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And what we want to check here is what happens if um there is no mail ID, right? Because we're looping a 100 times. So we're getting a 100 mail messages no matter what. We don't want to send a bunch of invalid emails over to our web server because then we just have to filter through a bunch of noise. So what I'm going ...
787.44
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And then we see doesn't exist. I'm going to scroll down and let's see. Uh, we get a server error. So, we're going to say, um, if the text does not include server error, then we're going to do another fetch, and this is going to be back to us. So, we'll do HTTP 10148 port 8000.
814.24
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Um, and we want to disable cores.
845.04
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
We want to send it as a post request because this is going to be a lot of data. Um, and the body of this, we're going to send it um text, which is going to be uh this response up here. So, it's going to be the email body, right? So, we'll do that. Close that one out. Close that if then out. Uh, close the I think fetch ...
852.48
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Okay. Um I wonder if I can just c this payload and run it. I'm not positive. I think I should be able to. And see LVMP 8000. If I go here, let's go to console paste.
881.76
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Hey, I got a response here. So, it looks like our payload is working, right? This is going to be um email ID 1 as I'm guessing. So, what I want to do is take that payload. So, we can do cat payload.js.
900.48
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
We're going to B 64 encode it because this is going to just make it easier to put in our payload, right? So, we can copy this. Let's go back to the contact and then instead of the JavaScript alert message, I'm going to do a eval and we're going to say A2B to B 64 decode.
915.839
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Paste this and then close that out. And now let's go ahead and URL encode this whole thing. And I'm just going to start up a web server on port 8000. We'll send this off.
937.44
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
If I go here, we should get a new message. Let's just refresh to force it.
956.959
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And I have my console window open. So, if there's an error, we'll be able to see it.
962.399
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Uh, expecting expression got uhoh.
967.759
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Something went wrong. So on animation eval A2B and then we closed it off. We got nothing.
973.36
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Let's see. Eval A2B. This looks right. Where did I screw up? Oh, duh. Quartz. There we go.
988.959
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And this is why you always test your cross scripting payloads against yourself when you can because it becomes much easier to debug. We're not just waiting hours for something to come, right? Send this contains an unescaped line break.
1,005.759
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
There is no line break. That is encoding a plus there.
1,026.4
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
See um let's make sure we are decoding this properly. So what I want to do instead of eval I'll do a console.log. So it should just print this out right.
1,040.24
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
This is going to confirm our eval works here. Open.
1,062.32
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Okay. I wonder if I do single quotes.
1,074
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Okay. I want to use single quotes. Um, not exactly sure why, but hopefully you understand that troubleshooting. Uh, let's now just change this console.log back to an eval. It looks like I already got that message. Sometimes this is quick, sometimes it's not. I click it and we get a bunch of 501s, which is a good thing ...
1,088.48
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
base HTTP request handler. And I probably should be doing this in VS Code or something because I'm going to make typos. Um, let's do let's try it real quick. Just see if I can do this. uh I think it's do post self and then we need to get the content length so content length is equal to the headers like that and then we...
1,153.679
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
I think that's right. And we can just print post body.
1,208.72
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And then I'm going to print a bunch of dashes just so I know that is done. Okay. And then we want to say if name is equal to main um server address.
1,214.4
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Let's listen on all host on port 8000 and then start up the web server. So httpd http server server address and then give it our class that we just built. And I need to add a l there.
1,242
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
There we go. And we can do try httpd serve forever except keyboard interrupt httpd server close.
1,267.44
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Let's see where we screwed this up. Uh, forgot a colon.
1,288.799
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
I cannot import name http.
1,302.159
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
I really got to fix my e keycat for a switch.
1,310.64
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Uh, I put that L in the wrong spot.
1,316.48
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
That's looking good. Post HTTP 1048.
1,326.72
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Uh, D please sub.
1,336
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Uh, we need to port 8000.
1,341.76
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
Hey, it works. Awesome. So now if I open this payload again, we should be getting every email message here. Now we have a lot of um data here. So let's use beautiful soup to clean it up. Um, normally I would just use regular expressions because I find that to be easier, but every time I do that, I get comments on my vi...
1,347.039
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And here we want to actually identify things. So let's try starting out with the subject. Um if I go here, do we have a subject?
1,392.24
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
So we want to use what? H2 class, right? I'm looking at this. Um so we'll do H2.ubject, I think. So instead of print postbody, let's just go with um subject is equal to soup. Select one. H2.
1,405.52
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
And I need to make that A2.
1,430.08
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
There we go. And let's see. We do this read. Um what we also need to do is soup is equal to beautiful soup post body and pass it to the HTML parser.
1,438.64
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
So let's do a print on subject.
1,458.24
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
So instead of printing all the bodies, we should just be printing subjects.
1,466.48
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }
I don't know why I sent that again. Um, we just do this. Go back here. And there we go. We got subject. Um, so we're going to need to add a uh strip, I think.
1,471.6
0
{ "video_id": "miOE_yYh1JY", "title": "HackTheBox - DarkCorp", "url": "https://www.youtube.com/watch?v=miOE_yYh1JY" }