[00:18.480 --> 00:26.020] We'll see. Let's try this again. Yes. Oh, I think we're audible. Oh, nice. Hello everybody. It's [00:26.020 --> 00:33.320] been crazy. This has been a crazy day. Welcome. I'm CypherTX. I'm here with Carl. Hello. We have [00:33.320 --> 00:39.040] we've had a busy day. Yeah, yeah. But now we're here. We're here and we'll find out shortly [00:39.040 --> 00:46.020] whether the challenges are here. We've got four competitors in the back. The challenges are [00:46.020 --> 00:50.800] tested. So I think we're ready to count it in. Let's just do a really quick introduction of [00:50.800 --> 00:55.520] kind of what the format is this year and what teams we have and how this is going to work. [00:55.520 --> 01:01.240] Right. We will talk more about this. But the very short thing is we have a head-to-head, two players, [01:01.240 --> 01:06.260] one challenge. First one to solve it wins. Two matches running in parallel. We will be casting [01:06.260 --> 01:10.800] and commentating one of them. If you really want to watch the other one or the live feed from the [01:10.800 --> 01:16.000] players, it's available. And I think that's it for now. We will talk more about it later. We're [01:16.000 --> 01:23.280] going to get the teams started and then we can, you know, talk about the challenge and [01:23.980 --> 01:28.700] all that. So I'm just going to, you know, look over to production and say that we are [01:28.700 --> 01:38.620] ready to go. I'm ready. Countdown. Five, four, three, two, one. Go. Let them go. [01:39.780 --> 01:48.200] All right. So we should be going. Yep. And let's switch over to one of our competitors here. [01:48.200 --> 01:55.800] Full screen terminal already. Yep. So the way this is going to work, both of the players, [01:55.800 --> 02:03.500] they are given a challenge, the same challenge. It is a pwnable challenge of binary exploitation, [02:03.500 --> 02:08.600] you know, memory corruption, vulnerabilities and exploits that we're looking at here. The [02:09.160 --> 02:17.280] goal of this is to take this program, this binary, find a vulnerability, develop an exploit, [02:17.280 --> 02:23.160] test it locally and then exploit this on a remote server. Once you do that, you will eventually [02:23.160 --> 02:29.860] manage to get code execution on this server. And that's when then you're basically done. And then [02:29.860 --> 02:35.540] to prove that you're done, you will run the command on the server, which, yeah. [02:35.540 --> 02:42.380] But this year, unlike last year, we're a double elimination tournament. So last time it was as [02:42.380 --> 02:45.860] soon as you lost, you were out. But this time you have to lose twice before you're out. So that [02:45.860 --> 02:49.900] gives teams one a little bit more of a buffer, which is great, but also increases the complexity [02:50.280 --> 02:54.960] a fair amount. Yeah. We've got a bunch more streams, a bunch more captures. We've got a whole [02:54.960 --> 03:00.780] lot that we're trying to juggle here. So we've got the two teams that we're going to be looking at [03:00.780 --> 03:07.940] here are going to be Pigbuttsad and then they're playing against mHackeroni. So those are our two [03:07.940 --> 03:14.460] teams that we're eyeballing. We don't have the overlay text. We're a little bit... we'll get [03:14.460 --> 03:20.060] that added as we move forward. Yes. But we're currently looking at mHackeroni. Right. So they [03:20.060 --> 03:29.260] are here in IDA, one of the popular reverse engineering platforms, the disassembly compiler. [03:29.260 --> 03:36.440] You can see the player here looking at the code, you know, renaming variables because, you know, [03:36.440 --> 03:41.840] they only get these... they get this decompilation, which is very nice, but you still have, you know, [03:41.840 --> 03:47.800] no variable names and so on. So they're trying to like clean up the code here to be able to [03:47.800 --> 03:52.760] understand what's going on. So it's kind of as you can see, because we've got the... we're currently [03:52.760 --> 03:58.080] in the overlay view. It was very convenient these two teams to choose dark and light themes for us. [03:58.080 --> 04:02.760] So it's really obvious when we're in... when we're looking at mHackeroni, they're going to be the [04:02.760 --> 04:07.720] dark IDA. And when we're looking at PigButSAD, they're going to be over there in the light IDA. [04:07.720 --> 04:12.280] And we can flip back and forth and take a look at kind of each one in a little more detail. [04:12.280 --> 04:17.880] So let's switch over to PigButSAD. You can see they're looking at essentially the same [04:17.880 --> 04:22.300] piece of code. This is kind of the core functionality of this program. You can see [04:22.300 --> 04:28.860] that they are trying to create some structures here to figure out what is going on. So this... [04:28.860 --> 04:32.800] And I saw that it had a name. So that function name was called interpreter, right? So do we [04:32.800 --> 04:38.740] have symbols in these binaries, or did they already name that? Let's see. I think... I think [04:38.740 --> 04:45.500] this one does have symbols. Yeah, this varies from... no, I'm looking over here. No, we... yes, yes, we do [04:45.500 --> 04:50.300] have... we do have symbols in this one. So we have function names to help them out a little bit, [04:50.300 --> 04:55.940] because, you know, we want... so these challenges... so we want to make these challenges, you know, easy [04:55.940 --> 05:03.960] enough that we can do this kind of like high-speed format here. So that's... sometimes we do give [05:03.960 --> 05:11.000] them some, you know, things to grab onto, like the function names and so on. Yeah. Sometimes we decide [05:11.000 --> 05:16.100] to strip them out if that makes more sense in the context of the challenge. Yeah, but these are... [05:16.100 --> 05:21.580] so these matches that we've got, normally we're scheduled for about an hour each match. And if [05:21.580 --> 05:25.260] things go to plan, we want them to be solved in like 40 minutes, right? The goal is actually 40 [05:25.260 --> 05:30.820] minutes after the challenge starts. They should be at that point already done, because we do go [05:30.820 --> 05:35.520] to a sudden death. So if it's taking them more than 50, we're going to go to a sudden death mode. [05:35.520 --> 05:42.060] And at that point, we give them a new challenge that is like as simple as it can be. It's meant [05:42.060 --> 05:51.560] to be very, very basic. And that's a truly painful race at that point. Yep. And we can see here on [05:51.560 --> 05:57.940] the Piglet side reversing that they are still working on... you can see there they named one of [05:57.940 --> 06:04.280] the fields of the structure PC, typically for a program counter. And we did tell them [06:04.280 --> 06:09.420] the category in advance, right? So we try to tell teams the architecture, whether it's a reversing [06:09.420 --> 06:13.380] challenge, a pwnable challenge, a little bit of information about it. Primarily because we want [06:13.380 --> 06:17.800] them to send their best person. Different teammates will have different skills. And so in fact, [06:17.800 --> 06:21.620] for example, one of the the organizers came up and said, well, you've listed us for a challenge that [06:21.620 --> 06:27.220] says Linux Pwn, but is it Linux Kernel or Linux Userland? Right. Because they're like, it's a [06:27.220 --> 06:31.740] different guy we send for each one of those. And so we do try to, you know, try to give them a [06:31.740 --> 06:35.180] little information. And for this particular challenge, which by the way, anyone can see. [06:35.180 --> 06:46.520] If you go to the challenge.com, we have the full bracket there. You can see it. But if you [06:46.520 --> 06:52.580] actually go to the raw challenge page as well, there's details for every one of those matches. [06:52.580 --> 06:56.880] And so it not only links to the streams where you can see it. So again, these are just the two of [06:56.880 --> 07:01.420] the players we've got. And we've also got Hypeboy and TWN playing at the same time on the same [07:01.420 --> 07:06.680] challenge. And it's entirely possible that the fastest solve actually comes on one of those feeds. [07:06.780 --> 07:12.200] So, right. And I want to switch over here to Hackeroni because they are writing a part of [07:12.200 --> 07:16.300] their exploit script here, which I think is really cool. So they are writing this in Python [07:17.040 --> 07:22.640] using Pwn tools. And you can see that at the top of their script there, you can see that they had [07:22.640 --> 07:27.860] written out a couple of functions. So they have small like, you could always call them like [07:28.400 --> 07:33.560] macros, helper functions with short names that you can quickly just, you know, plug in there. [07:34.060 --> 07:40.740] They are, you can see that they're building up a kind of payload here where they're using the [07:40.740 --> 07:46.000] cyclic function in Pwn tools, which is a very handy tool where, let's say you have some kind [07:46.000 --> 07:50.680] of overflow and you gain control of some value that you're in, like, for example, the return [07:50.680 --> 07:56.380] address or some register or so on. But you're unsure exactly which part of your payload ends up [07:56.380 --> 08:03.100] in that location. You can use this cyclic function to generate a pattern, send it, [08:03.100 --> 08:07.740] look in the debugger, and then immediately deduce... Those four bytes or eight bytes are [08:07.740 --> 08:13.240] exactly a unique offset into that buffer. Right. So there's like DeBruin sequence generators, [08:13.240 --> 08:18.280] the other, you know, name for you. Somebody else will hear that. Exactly. So the, instead of trying [08:18.280 --> 08:22.680] to like calculate this by looking at the various offsets and like figuring out how much of the [08:22.680 --> 08:28.480] stack will be popped and so on, you just like dump this in, look in the debugger, and then you [08:28.480 --> 08:32.620] like calculate backwards to get the index. This was not a common technique when I started, so I [08:32.620 --> 08:36.680] remember putting just a bunch of A's and then B's and trying to like binary search it, just trying [08:36.680 --> 08:41.640] to figure out where it was. And this is like the sophisticated version of that. It's also much, [08:41.640 --> 08:51.500] much faster too, which is good for a live CTF. Yeah. So this leads me to believe that they [08:51.500 --> 08:56.680] have kind of found the vulnerability, but you know, they're now kind of exploring it [08:56.680 --> 09:04.060] to see exactly how and what they control, which is like good progress there. [09:04.180 --> 09:08.220] We have seen people too, though, in the past, sometimes they start their PwnScript immediately, [09:08.220 --> 09:11.840] even as they're just exploring the service and interacting with it, or they want to use it to [09:11.840 --> 09:16.680] generate things in a debugger just to kind of see what the behavior is. But yeah, usually you would [09:16.680 --> 09:22.460] think that they've got the exploit there. They may or may not. We are seeing in PigButtSAD, [09:22.460 --> 09:25.620] they've now also switched over a little bit to debugger, which went back to... [09:25.620 --> 09:28.340] Right. Let's go over to their screen. There we go. Yeah. [09:28.680 --> 09:33.140] Yeah. Some exploit here also using Python with PwnTools, also some helper functions. [09:33.140 --> 09:36.320] The same helper, like the same... Yeah. Maybe, I wonder if there's like, [09:36.320 --> 09:39.640] you know, now they're slightly different, but it's, you know, similar contents. [09:39.640 --> 09:44.200] Very, very similar. Yeah. So also running some debugger. [09:45.560 --> 09:52.560] Yeah. I did not see quite what they were sending in. I think maybe they're just also exploring... [09:52.560 --> 09:56.580] Oh, there was a breakpoint on OXDeadBeef. So I don't know if it's... Okay. They're just coming [09:56.580 --> 09:59.840] out right now. That was like leftover maybe. Yeah. Maybe just setting up their environment. [09:59.840 --> 10:03.980] I was like, they already have control of EIP. No, no, no. I think it's, you know, [10:04.380 --> 10:07.740] they're just setting up the GDB scripting and then making sure that, you know, [10:07.740 --> 10:13.880] they have their stuff in order. So, I mean, this is a very nice... PwnTools has a lot of [10:13.880 --> 10:18.760] nice features like this, where you can start your program, attach a debugger, run the GDB script, [10:18.760 --> 10:25.400] for example, set up some breakpoints, like all of these things to help you do this iterative process [10:25.400 --> 10:31.620] of developing the exploit. So minimize the number of manual commands you have to type in each time [10:31.620 --> 10:34.520] you test your exploits. So I don't think... Did the teams... [10:36.420 --> 10:41.240] We gave them the binary name, correct, when they downloaded this? Or did we just call it [10:41.240 --> 10:47.980] something generic? No, they do get... So the archive that they download is called PushPop [10:47.980 --> 10:57.840] Automaton, which is the name of this challenge. And, yeah, it's a stack-based virtual machine, [10:58.820 --> 11:05.020] which has a... I bet it has a push and a pop. Yeah, yeah, yeah. Very few operations, [11:05.020 --> 11:09.160] including a push and a pop. So you can, like, grow and shrink this stack structure, [11:10.140 --> 11:17.100] which, you know, if one would just take a guess at what the vulnerability could be, [11:17.100 --> 11:23.200] you know, maybe this pushing and popping, it does not properly respect the bounds of this. [11:23.200 --> 11:26.740] What? A CTF challenge that doesn't have bounds checking? That's shocking. [11:26.740 --> 11:29.000] Shocking, yeah. So we can see here some... [11:31.180 --> 11:36.540] On the Macaroni's side, they're looking in the debugger. We see that they're dumping some memory, [11:36.540 --> 11:45.140] trying to figure out exactly what, you know, what things are in the memory at a certain [11:45.140 --> 11:52.060] point in time. I'm not sure what this point in time is. But, yeah, it's [11:54.380 --> 11:59.040] hard to tell exactly how far their progress is right now. Like, the exploit script was still [11:59.040 --> 12:04.720] pretty bare bones. Now, is this one that you playtested? I know that this was a challenge [12:04.720 --> 12:09.360] Glenn wrote. Yep. But this is one you've solved before, so you've at least got a solution. [12:09.360 --> 12:13.720] Although, as is the case for us in a lot of our challenges, we don't know if we'll see the same [12:13.720 --> 12:21.260] solution. Right. There may very well be multiple ways to solve it. Yep. I did solve it. It was [12:21.260 --> 12:26.680] probably one of the first ones I did in our whole development process. So it was a couple of weeks [12:26.680 --> 12:39.280] ago. But it is, I mean, so it is pretty straightforward. But you also have the added, [12:39.280 --> 12:47.900] you know, stress of this format, the live CTF format with, you know, it's this one-on-one, [12:47.900 --> 12:52.500] you have no help from your teammates. Oh, and yeah, the time pressure alone, just knowing that [12:52.500 --> 12:57.760] there's one person you're racing and that the first to solve it is like, you know, the victor [12:57.760 --> 13:03.740] with all the points. It's stressful. It really is. Yeah. And we are, I mean, we are running a [13:03.740 --> 13:09.220] double elimination this year, right? So, you know, you're not out immediately, but it's still like, [13:09.220 --> 13:14.840] you know, this is one of your two chances, right? And so let's talk about the points and the scoring [13:14.840 --> 13:20.200] and how this kind of factors into the overall DEF CON CTF, right? So that we are in the middle of [13:20.200 --> 13:26.900] DEF CON here in Las Vegas. And there's 12 teams here at the final event. Each of the 12 teams [13:26.900 --> 13:33.220] sends an individual for a round of live CTF. And those individuals don't have to be the same. So [13:33.220 --> 13:38.320] if they play multiple rounds, they could actually choose to send a different person. That's again, [13:38.320 --> 13:43.200] also why we tell them the category. Yeah. So they know who they can send. I want to just bring [13:43.200 --> 13:48.080] attention here to PigBetSav. You can see that there were a bunch of memory leaking out there [13:48.080 --> 13:53.540] on their screen that we have up. You can see here the memory dump in PwnTool. So they're doing some [13:53.540 --> 14:03.000] kind of leak here. This is a good step. Yeah, that would be step one of this exploit. Almost [14:03.000 --> 14:07.000] certainly would be some kind of leak. Any modern binary, you've got to have a leak kind of built [14:07.000 --> 14:17.780] into it. So if I remember correctly, basically you use the pop feature to read memory. You go [14:17.780 --> 14:22.640] further than you were supposed to. And then you use the push feature to modify those things. [14:24.320 --> 14:29.560] And so that gives you both a read and a write primitive on the stack. Yeah. And then there are [14:29.640 --> 14:33.060] a couple of things you need to keep in mind, because since you're going like backwards and [14:33.060 --> 14:39.140] forwards, you need to keep track of the order, because you're writing things in the opposite [14:39.140 --> 14:45.980] order of what you were reading. So there are details to keep in mind there. And that's the [14:46.360 --> 14:50.000] hardest when there's the time pressure. It's the kind of thing where if you were casually doing it, [14:50.000 --> 14:55.360] you wouldn't even be fine. But when you're in a hurry, it's easy to miss that. And then off by [14:55.360 --> 15:02.100] one things, like the push thing, does it write first and then increment the pointer? Is the [15:02.100 --> 15:09.520] pointer pointing to the current empty slots or the top of the stack? And you can easily get an [15:09.520 --> 15:14.400] off by one issue there. I think both teams did exactly the right thing, though, because debugging [15:14.400 --> 15:18.560] will help you answer a lot of those questions, right? You want to have your script. There are [15:18.560 --> 15:22.280] people that I know who can one-shot this, and they just muddle it in their head, and then they solve [15:22.280 --> 15:26.440] it, and they write it, and they're done. And they're fun to watch. But certainly, I would be using a [15:26.440 --> 15:30.660] debugger as well. Yeah. I want to go over to Macaroni again and bring attention here. You can [15:30.660 --> 15:36.920] see that they're writing this leak equals, and then they are... So they've already got a leak, [15:36.920 --> 15:41.840] and now we're going to... So they're just... And then using the debug printing here to validate, [15:41.840 --> 15:48.400] yeah, you can see that they printed out an address. What does it look like? Code address, [15:48.400 --> 15:54.900] though. I'm not sure what they're trying to leak. It seems like it's off. Like the 55 is usually [15:55.760 --> 16:00.040] like a good... Oh, that one, though, looks like... There we go. You can see this 7F thing. Yeah. [16:00.040 --> 16:06.460] Looks very much like a library address, right? Yeah, library. Yeah. Well, I bet they're going to [16:06.460 --> 16:13.900] see what they do. And they're checking... Yeah. So they're copying the leak over, [16:13.900 --> 16:19.140] or they were copying the leak over. Let's see. They have a leak. Copy it. Are they going to [16:19.140 --> 16:27.600] check in like via map or... So they're checking this is in... Yeah. So they got the... Okay. Yeah. [16:27.600 --> 16:35.440] So there was an in the offset, and you can see they use this feature in GDB to take this address. [16:35.440 --> 16:41.580] This is an absolute address, but the GDB plugins convert this into an offset within the library. [16:41.580 --> 16:45.340] So now they can then bring this back into their exploit script, and you can see that they [16:45.340 --> 16:50.040] subtract this offset from the leak to get the base address of libc, bring this back into the [16:50.040 --> 16:54.300] script, and now they can easily calculate any addresses within libc that they are... [16:54.300 --> 16:57.960] They'll look for one gadget or whatever other function pointers they want to call. [16:57.960 --> 17:03.440] Although this is complete overkill for this challenge because you have a win function, [17:03.440 --> 17:07.560] but... Oh, I don't know if we saw anyone look at the win function there. [17:07.560 --> 17:12.080] So I saw that the function list was open, and there's... You can see... Oh, yeah. You saw it [17:12.080 --> 17:15.060] there very briefly. Yeah. Yeah. Yeah. And especially because we gave them the symbols, [17:15.060 --> 17:17.780] right? Because they've got the symbols for function names. But this is so easy to miss [17:17.780 --> 17:27.700] because like, okay, this is maybe not a super common thing to have in modern challenges. [17:27.700 --> 17:32.480] We've kind of evolved past that in the CTF community, in the CTF challenges. [17:32.480 --> 17:39.660] But again, since we want this to be very fast, very... Well, compared to a lot of [17:39.660 --> 17:46.200] pwnable challenges, easy to solve. I'm not saying it's easy. It's easier. And that's why we put this [17:46.200 --> 17:49.680] in. Don't feel bad. It's certainly... I wouldn't be able to solve this in an hour or as fast as [17:49.680 --> 17:54.480] these teams were. So don't feel bad if you're doing this and thinking, wow, you call this [17:54.480 --> 17:58.440] easy, but it took me, you know, like several hours. Like this is just relatively speaking [17:58.440 --> 18:03.020] to sort of the state of the art in pwnable challenges now. So yeah, it is a little more [18:03.020 --> 18:08.300] unusual. And you know, I would have expected to see... Although actually they would need a leak [18:08.300 --> 18:13.540] to the program itself, right? Right. Right. Right. Right. So, I mean, this is a different [18:13.540 --> 18:17.160] approach. Maybe it's, you know... It may have been the first pointer they grabbed was a libc and [18:17.160 --> 18:20.820] good enough. They can get system out of that. Right. So I want to bring back attention here [18:20.820 --> 18:28.100] now to PigBetSAD. You can see a little bit more of their exploit script there. You have some... [18:30.340 --> 18:37.320] They are... Okay. They're reading until they can see these specific bytes. So they're also [18:37.320 --> 18:43.200] looking at some leak here. You can see some memory dump. I'm trying to like orient myself [18:43.200 --> 18:48.180] here at what they're doing. It is interesting that they're building their GDB into their same [18:48.180 --> 18:52.280] script as well. As opposed to we saw earlier in Hackeroni had a separate session that they were [18:52.280 --> 19:00.940] debugging it with. Yeah. So, yeah. Are they getting back a pointer? Are they... Here we can see... I [19:00.940 --> 19:05.260] mean, there's a bunch of memory being dumped out. Yeah. They looked like environment variables. [19:05.260 --> 19:08.880] Yeah. Environment from stack. Yeah. Yep. Absolutely. Right. Right. Right on the stack [19:08.880 --> 19:17.700] prior to your... Right. Your main. I... Actually, let's leave them there for a moment and go back [19:17.700 --> 19:25.800] to Macaroni because I think there's some pretty good stuff coming up here. I saw that... You can [19:25.800 --> 19:32.260] see that they're trying to put together a ROP chain. Let me see. This is... You know, it's a [19:32.260 --> 19:36.980] little bit difficult to follow now because they're jumping very quickly back and forth between the [19:36.980 --> 19:42.340] export script and the debugger. You know, they're making small changes, trying it and doing like [19:42.340 --> 19:47.240] very quick iterations. You can see them like fiddling with like some offsets here and there. [19:47.240 --> 19:54.180] This is exactly what I'm talking about. These things are... Very fiddly. Yeah. Yeah. And can be [19:54.180 --> 19:59.380] so frustrating because like you feel like you should have this, like I know what's going on [19:59.380 --> 20:05.840] and that something is like not adding up. Like you forget some detail. Extremely frustrating. [20:05.840 --> 20:09.920] Yeah. It looks like they're actually changing... They had a libc leak clearly earlier, but now [20:09.920 --> 20:15.000] they've gone back and they're changing it again. Did they... Did they... The environment... Did [20:15.000 --> 20:18.420] something change or what? I'm wondering what they're doing that's causing them to undo the [20:18.420 --> 20:24.000] progress they felt like they've made earlier. And I'll keep an eye out. I don't see Pigbuttsad [20:24.000 --> 20:29.360] having successfully gotten... Oh, they do think they have a leak now. Let's see. They're... [20:29.360 --> 20:33.800] Yeah. Well, let's switch over to them and look at that. I think they might have... Yeah. So it [20:33.800 --> 20:38.580] looks like they're dumping... Oh, so we've now dumped some... Right. And there they're also [20:38.580 --> 20:44.340] calculating. You can see they didn't use as fancy features there, but you can see that they're [20:44.340 --> 20:50.500] calculating an offset by subtracting those two absolute addresses there in the exploit script, [20:50.500 --> 20:57.920] those 7F addresses. Yeah. This will give them... So you see they take the values in the specific [20:57.920 --> 21:03.960] instance, take the difference, get the offset, and then use that to calculate the base there. [21:03.960 --> 21:07.600] Slightly longer version of the same thing that we saw in Macaroni... Yeah. [21:08.100 --> 21:19.540] That we just copy and paste. Yeah. It's... Right. So, yeah, they're back in the disassembler. [21:20.180 --> 21:25.160] You know, I think this is interesting because we had quite a, you know, a period here of them, [21:25.160 --> 21:28.840] like, mostly looking at the exploit script and the debugger. Yeah. And now they're coming back [21:28.840 --> 21:33.780] into the disassembler, maybe double checking some... Maybe they were just looking at the size [21:33.780 --> 21:42.520] of this buffer or the stack thing. Yeah. It looks like their structure offset they were using [21:42.520 --> 21:50.300] to determine... Oh, we had, by the way, a solve on our other stream. Oh, my God. Check out our [21:50.300 --> 21:57.720] other stream. Congratulations to Hypeboi. Yeah. So, really great job. Hyperboi win... They win [21:57.720 --> 22:03.560] their first live CTF match here. So, as I said, we are running two matches in parallel. We are [22:03.560 --> 22:07.680] casting one of them, but then there's another match going on in the background. And that [22:07.680 --> 22:15.100] match just finished with Hyperboi... Hypeboi. Hypeboi. Hypeboi winning against... Which team [22:15.100 --> 22:21.460] was the other one? Hypeboi was playing in this match... TWN48. Right. So, TWN48 against Hypeboi [22:21.460 --> 22:26.380] and Hypeboi did win that match. I can't wait to go watch the VOD on that one because that was a [22:26.380 --> 22:33.160] blazing fast. I'm just knowing, like, the progress that they must have, like, quickly know what to do [22:33.160 --> 22:39.520] and then landed that. Really cool. Good for them. Really cool to see. But we are still going strong [22:39.520 --> 22:45.360] here in this match. A little bit of a sigh of relief as an organizer for your full solve coming [22:45.360 --> 22:48.560] through because, I mean, you know it's solvable, you're pretty sure, but just to see somebody do [22:48.560 --> 22:53.940] it... Yeah. That's a good feeling. And, oh, my God, the issues we've had today. Today was cursed. [22:53.940 --> 23:00.500] Everything that conceivably could break, broke and a few more things. Yeah, so we had [23:00.500 --> 23:04.860] multiple hardware failures on laptops. So the machine that we're streaming to you on now [23:04.860 --> 23:08.380] died. The machine that's running the game infrastructure died. Yeah. We're on, like, [23:08.380 --> 23:13.140] secondary machines for all of that. We had our mixer board, as we came on the stream just at [23:13.140 --> 23:16.680] the very beginning. Right. Isn't connecting for some reason on the new machine we swapped out. [23:16.680 --> 23:22.020] So we switched audio inputs. It's been... Yeah. It's been a lot of craziness, but... Right. So, [23:22.580 --> 23:29.660] high five for our first... Yeah, really, really nice to see. And, yeah, I mean, we will also be [23:29.660 --> 23:33.620] talking a bit more throughout these days. We will be talking a little bit about, you know, [23:33.620 --> 23:38.280] the production, the behind the scenes and stuff. But, you know, we will come back to that. We can [23:38.280 --> 23:42.420] talk a little bit more about... So now we want to get back on schedule and get things going. Right. [23:42.420 --> 23:50.940] So let's check out Macaroni again. You can see here, it feels like they're trying to... [23:50.940 --> 23:55.960] Looks like some indices and values. They're trying to figure out some kind of offset, [23:56.340 --> 24:02.040] maybe. You could see there was a big list of various offsets, and I guess it was the [24:02.040 --> 24:06.000] corresponding value or something. And I think they're trying to, again, fiddle around a little [24:06.000 --> 24:15.720] bit with the exact offsets of these exploits. Yeah. I don't feel either team is necessarily [24:15.720 --> 24:19.340] stuck, but I also don't feel like they're confidently going to the next step yet, [24:19.340 --> 24:25.940] either. They're still, I think, tweaking and trying to figure out. But it's like, [24:25.940 --> 24:31.140] you know, you can see here, like you have the ROP chain with the system call with the shell, [24:31.140 --> 24:36.820] like they have pieces there and now they're just trying to debug their exploit script and trying [24:36.820 --> 24:42.120] to find, like, where is this not doing what they think it should do? It actually reminds me of the [24:42.120 --> 24:47.400] first match we had last year in the finals, which you can go watch on YouTube or on livectf.com, [24:48.680 --> 24:51.680] because it was the same thing that you're tweaking and fiddling with. And then the [24:51.680 --> 24:56.480] team we weren't watching snuck in and actually solved it just off screen. Because it's hard to [24:56.480 --> 25:01.700] know, like if for one of them to suddenly figure it out exactly, it could go down in just a few [25:01.700 --> 25:10.180] seconds. But I do still see a lot over here on Pigbuttsad. Oops, wrong one. If we bring up [25:11.060 --> 25:16.980] Pigbuttsad, that one there. We can go ahead. They really haven't, they just, yeah, they hop [25:16.980 --> 25:20.000] back down to Vita, but they've been here for a lot. They're really still looking at their offsets. [25:20.000 --> 25:23.760] I think this, to me, still feels like in their head, they're still working out what they want [25:23.760 --> 25:29.080] to do. They don't have exactly the sizes figured out. They don't have a goal necessarily figured [25:29.080 --> 25:35.600] out. Because I don't, I think if you understand what the virtual machine is doing at this point, [25:35.600 --> 25:39.440] there shouldn't be a whole lot you would need to look at. Even things like offsets, for example, [25:39.440 --> 25:44.000] dynamically just pulling that out of your running session seems like it might have been a little [25:44.000 --> 25:54.420] easier. And they are, yeah, they're looking at the interpreter code. I mean, this is a time where [25:54.420 --> 26:02.440] you really wish you could, like, read the minds of the players. Yeah, yeah. Because, you know, [26:03.140 --> 26:08.520] they are clearly staring at this code and, you know, there's something they're trying to, like, [26:08.520 --> 26:13.620] wrap their head around. You're just not exactly sure what it is, right? [26:15.540 --> 26:21.340] See if that macaroni has got more momentum now or if they're still stuck with their leak being a [26:21.340 --> 26:25.780] little bit like, oh, okay, so that's the same offset value dump. So they're just dumping out [26:25.780 --> 26:30.340] a bunch of stack values, essentially. Right. Trying to figure out... You can see that they're [26:30.340 --> 26:35.640] looking at these, like, 7F value. They're probably interested in that one. Looking at the corresponding [26:36.060 --> 26:46.120] offset. Yeah. You can see here the AAC offset copying this, I guess. And it looks like they [26:46.120 --> 26:50.480] already had that there. So it's like, yeah, maybe they wonder, like, why is this not doing the [26:50.480 --> 26:54.040] thing? And, you know, are they going the wrong direction, like, up or down? You gotta remember, [26:54.040 --> 26:59.100] like, which stack goes one way, but the bytes go the other way. And that can be tricky. Right. [27:01.060 --> 27:05.560] And then... This challenge definitely gives you all the tools, though, [27:05.560 --> 27:09.460] that you need to solve it. It's just a matter of, like, wiring them up the right way. [27:12.420 --> 27:20.120] So, yeah, it didn't even send in eight bytes on that unpack. Right. Adding an interactive call, [27:20.120 --> 27:25.240] which is a nice feature in PwnTools, where, like, you can do some automation and then, like, [27:25.240 --> 27:29.820] take over with manual... Which works really well on a service like this, where it's the sort of [27:29.820 --> 27:33.940] text-based interactive thing. Right. And so maybe they want to just try to, like, [27:33.940 --> 27:42.240] leak a few more things or change what they're doing on the fly. Yeah. And so I'm trying to, [27:42.240 --> 27:47.260] like, read, you know, the different things. Basically, it seems like, basically, you know, [27:47.260 --> 27:53.800] they are using the payload to leak an address, use this address to calculate the base address. [27:53.800 --> 28:00.480] From this, they can construct a ROP chain, and then they are inserting this ROP chain. [28:00.780 --> 28:05.180] I do think we're coming up on first hint time as well. So we should... [28:05.180 --> 28:08.400] Right. We should talk about... Why don't you talk about how that process works. [28:08.400 --> 28:16.720] Right. So... So they did get the hint. Do they know to check the page? Why don't we go on over [28:16.720 --> 28:20.540] there and remind them about the hint schedule? So... I don't think we told them the hint schedule, [28:20.540 --> 28:30.000] so someone should go tell them. Right. So the way we do this is after 20 minutes of game time, [28:30.000 --> 28:34.320] we release a hint. On the same web page they downloaded the challenge on. Right. And then [28:34.320 --> 28:43.500] after another 15 minutes, we release a second hint, which I... Honestly, for this challenge, [28:43.500 --> 28:46.700] I don't think the hints... I'm not sure if it's going to help them. Yeah. Yeah. I don't think [28:46.700 --> 28:50.200] it's... it's helpful because I think they've already figured that part out. Right. I think [28:50.200 --> 28:56.960] they're now just fiddling around with, like, the offsets and, yeah, those parts. Yeah, I agree. I [28:56.960 --> 29:01.320] think we've seen that in the past, some of the challenges. Did we lose? No, we're still going. [29:01.440 --> 29:05.720] I've seen in the past in some challenges, the hints aren't really going to help you. You understand [29:05.720 --> 29:09.220] you've got all the right tools in the tool shop, but you're still having trouble building the chair. [29:09.220 --> 29:13.500] You've still got to, like, kind of put it together. So... Right. And here's interesting. We can see [29:13.500 --> 29:20.240] adding a, like, a red sled to their ROP chain. So, if you're familiar with, like, old school [29:20.240 --> 29:26.060] shell coding, you know, you sometimes could add, like, a NOP sled to, like, you know, if you didn't [29:26.060 --> 29:30.220] know exactly where your code was located, you would jump into this kind of long sequence of [29:30.220 --> 29:34.140] NOP instructions that would, like, then slide you all the way... No matter where you hit, they would [29:34.140 --> 29:37.940] all hit NOP and you would go to the very very end. Right. Yeah. Instead of trying to find the exact [29:37.940 --> 29:42.980] offset. And a red sled is, like, kind of the equivalent thing, but for a ROP chain, where [29:42.980 --> 29:47.460] if you don't know exactly how your ROP chain is going to offset on the stack, you just have a [29:47.460 --> 29:51.840] sequence of RET instructions that just progresses the ROP chain further without making any state [29:51.840 --> 29:56.880] changes. Or specifically a pointer to a return instruction from something you know at a fixed [29:56.880 --> 30:01.180] location. Yeah. And all those pointers in a row, so that no matter where you hit in a return, [30:01.180 --> 30:04.840] you'll just keep returning until you get to your next gadget that you want. Yep. [30:05.640 --> 30:13.980] Let's go back to PigBetSAD. We can see that they are... feels like they're still messing around [30:13.980 --> 30:20.560] with, like, the initial payload. Kind of this program that you are submitting to the [30:23.180 --> 30:28.800] automaton, to the VM. Maybe they're, you know, trying around a little bit with [30:29.420 --> 30:35.620] how long the various sequences of push and pop instructions need to be for this to all [30:36.640 --> 30:44.880] work the way they have, you know, they expect it. Now I do see, let's talk, there's U, O, and H. [30:44.920 --> 30:50.540] We saw those, and they've even labeled the O as output. So presumably this is going to be, [30:50.540 --> 30:55.180] these are like text instructions that we're sending into the virtual machine, and that's [30:55.180 --> 31:02.260] going to be what does our pushing or popping? Yeah, so each, you send a sequence of commands, [31:02.260 --> 31:08.640] each of them is like one character, and then followed potentially by some input or outputs [31:08.640 --> 31:15.680] that you get back. So we can actually see... Ah, there we go, they just refreshed for the hints. [31:17.020 --> 31:20.960] Yeah, and they saw the hint. It was too quick, it was keep popping something something. Right, [31:20.960 --> 31:28.380] keep popping beyond the bounds or something, which as I said, they figured that out a long time ago. [31:30.400 --> 31:36.080] So yeah, you know, not very helpful in this case, which is like, you know, good and bad, [31:36.080 --> 31:40.620] because it means that, you know, they have had some progress, and they have another [31:42.720 --> 31:48.000] 25-30 minutes, basically. Total time, I think, yeah, we have still another... [31:48.000 --> 31:52.140] Right, well, until the sudden death, we have to actually, we have to go back and look at [31:52.140 --> 31:58.180] and turn over the exact start time. So yeah, somebody wrote that down. So yes, we definitely [31:58.180 --> 32:02.040] got started late, and the being late was definitely our fault and not theirs. They were all here on [32:02.040 --> 32:06.880] time. That was just us, as you heard or saw us getting our, fixing our microphones and fixing [32:07.360 --> 32:11.960] all sorts of fun stuff. It was a mess, but we are here. It's working, so far it's working, [32:11.960 --> 32:15.840] and we already got one solved, and hopefully we'll see another one soon. Yep, yep, and [32:18.000 --> 32:24.340] yeah, big but sad, still messing around with, like, the payload structure here. The, you know, [32:24.340 --> 32:30.640] they're padding out there with these O instructions to a fixed size payload. Oh, [32:30.640 --> 32:35.600] I saw something interesting there. I want to go back to Macaroni. They were doing some more [32:36.820 --> 32:44.940] leaking there, I think. I saw some sequence of bytes popping out. Could have been interesting. [32:47.080 --> 32:52.980] Like, they, let's see, they go back here to this, to the, yeah, you know, they changed the [32:54.180 --> 33:01.220] size of the, you know, the code that they're sending, or the the length of these. The total, [33:01.220 --> 33:06.400] total payload. Yeah, and then, oh, this seems like they kind of, you know, they've subtracted [33:06.400 --> 33:13.700] eight in one place, and maybe they're compensating down here as well. I don't know exactly what these [33:13.700 --> 33:20.420] various offsets are, but it's, it's so weird, because we saw that libc leak real early on, [33:21.120 --> 33:26.200] and then I feel like we have kind of gotten stalled. We haven't really made it anything [33:26.200 --> 33:37.460] past that. So, yeah, it's, I'm really, you know, like, rooting for these teams to [33:37.460 --> 33:41.120] succeed with these things. I know how, like, frustrating it can be [33:42.060 --> 33:46.560] when you are, you know, trying to solve one of these challenges. And when we were testing this, [33:46.560 --> 33:50.780] we don't have the time pressure, too, right? So, like, we definitely had it easier that we could, [33:50.780 --> 33:54.820] yeah, put it down and walk away, think, get some fresh ideas, come back later, and think, oh, [33:54.820 --> 33:58.180] I bet I was messing up that, you know, go sleep on it, or whatever. Yeah, I was, like, you know, [33:58.180 --> 34:02.080] I was solving the challenge on one screen, and, like, watching some Twitch stream on the other [34:02.080 --> 34:07.320] screen, and, I mean, obviously that, you know, I didn't solve it in 45 minutes then. Yeah, for [34:07.320 --> 34:12.980] sure. Or even the 25 or whatever, the 20 minute one. Oh, no, no, no. From Hypeboy, that was great. [34:12.980 --> 34:22.560] Really, really impressive work there. So, yeah. I think the kind of benchmark we had throughout [34:22.560 --> 34:28.600] the development process was that, like, if we can solve it within, like, two hours in, like, [34:28.740 --> 34:33.600] a relaxed setting, then... Because, one, these players are all better than us. Yes. And every [34:33.600 --> 34:36.900] one of them are better than every one of us, I think, is probably fairly safe to say. Yeah. [34:36.900 --> 34:40.440] And then, two, again, we weren't kind of in a hurry, we were taking our time, [34:40.440 --> 34:45.220] and then not feeling rushed. Although, it works conversely, too. The opposite also works. The [34:45.220 --> 34:51.160] fact that we were not time pressured sometimes means that you had less stress in doing it, so. [34:51.580 --> 35:02.560] Yeah. I'm going to switch over again here to PigButSad, and... It does crack me up every [35:02.560 --> 35:07.960] time I see a bunch of, like, uuuh... How do you pronounce that exactly? [35:10.940 --> 35:17.540] Yeah. They're, again, like, messing with the various sizes of the parts of the payloads. [35:19.000 --> 35:26.000] Yeah, look, and you can see there, that's the address of the... when they call the [35:26.000 --> 35:30.920] interpreter, so it's setting a breakpoint when going into the interpreter to, you know, [35:31.840 --> 35:41.200] investigate exactly what's going on there. Yeah, it's still... I mean, if I were to, [35:41.200 --> 35:46.180] you know, bet at this point, I'm a little bit with Macaroni. [35:46.180 --> 35:50.640] Yeah. Yeah, I mean, it certainly had progress early on. I don't think we've yet to see [35:51.460 --> 35:55.820] a successful, like, libc leak out of PigButSad, unfortunately, yet. [35:55.820 --> 35:56.380] Yeah. [35:56.480 --> 35:58.720] Although, it could have happened, we just missed it, too. That happens a lot, [35:58.720 --> 36:00.480] as well. It's hard to track everything. [36:02.820 --> 36:06.640] But with, you know, the nature of these challenges is that, you know, if one team [36:06.640 --> 36:14.200] gets stuck, the other one can definitely catch up and, you know, cruise through and steal the win. [36:14.200 --> 36:15.400] So, you know... [36:15.400 --> 36:17.220] It is still anyone's game, for sure. [36:17.220 --> 36:17.720] Yeah, yeah, yeah, for sure. [36:17.720 --> 36:20.200] Just getting progress here from either one. [36:22.340 --> 36:27.160] Yeah, and this definitely lends itself to, I feel like, a more dynamic approach, [36:27.160 --> 36:31.560] this type of challenge, where you've got this primitives that you can just poke at and see [36:31.560 --> 36:37.940] what they do, see what you get on the stack, and just try a write and then go look at the [36:37.940 --> 36:39.060] stack after you've done your write. [36:39.960 --> 36:45.400] So, I remember, I think, what I did was, like, you know, I read the code and got, like, [36:45.560 --> 36:49.080] a rough sense of it. Like, you get that rough... the size of the buffer is, like, [36:49.080 --> 36:54.800] hex 800 or something. So, I started out with that as, like, a base thing, did something, [36:54.800 --> 37:00.180] then looked in the debugger, and then made adjustments. It's very similar to what I feel [37:00.180 --> 37:06.480] like the players are doing here. But, yeah, it's gonna be... [37:06.480 --> 37:09.940] So, that was interesting. We saw that, like, I mean, times 100 makes sense if we're pushing [37:09.940 --> 37:15.940] or popping eight bytes at a time, right? If it's an eight byte stack. But we had three [37:15.940 --> 37:23.500] use in a row times 100. So, I'm not sure if that was just, you know, do more just to... [37:25.280 --> 37:29.320] Yeah, I'm not sure about that. Like, three seems like a bit of an odd number. [37:29.780 --> 37:30.960] Three times hex 100. [37:30.960 --> 37:38.460] Yeah, like, if it was two or four, maybe. But, yeah, I don't know about that one. [37:43.250 --> 37:43.730] It's... [37:44.830 --> 37:49.910] You can tell the teams are a little bit ready for live CTF, though. We saw them come in with, [37:49.910 --> 37:55.050] like, this starter shell scripts with their alias macros or whatever. We've got [37:56.230 --> 38:03.030] two people very familiar with PwnTools and with even the interactor. Now, is the interactive [38:03.030 --> 38:05.090] prompt, is that Jeff or... [38:05.810 --> 38:06.990] No, that's PwnTools. [38:06.990 --> 38:08.750] PwnTools has its own kind of interactive... [38:08.750 --> 38:09.390] Yeah, yeah, yeah. [38:09.390 --> 38:11.850] ...GDB session that has all the same kind of... [38:11.850 --> 38:14.370] Oh, no, no, no. The interactive is just, you know... [38:14.370 --> 38:17.090] Well, no, no. So, I know the PwnTools interactive, but on the right side, for example, [38:17.090 --> 38:21.170] on Macaroni now, they're looking at the debugging session, right? [38:21.170 --> 38:24.330] Right. So, here you can see that they're running PwnDebug, [38:26.130 --> 38:32.270] which adds all of these, like, nice colorings and extra plugins and stuff to GDB. So, I think [38:32.270 --> 38:41.350] there are, I would say, currently two big GDB kind of add-ons for exploit development. PwnDebug [38:41.350 --> 38:47.610] being one of them, and then Jeff, G-E-F, being the other one, both, you know, with their pros [38:47.610 --> 38:54.090] and cons and popular within the CTF community. So, they have a bunch of modules adding these, [38:54.090 --> 38:59.190] like, trying to interpret addresses. You can see these, like, various pointers with different [38:59.190 --> 39:04.350] colors, like, whether it's in the text segment or, you know, the stack and so on. [39:04.350 --> 39:08.950] Yeah, it definitely is easier to read when you can see those highlights, as well as even just [39:08.950 --> 39:13.730] seeing the register from the stack, as opposed to the default GDB interface, which is empty. [39:13.790 --> 39:17.570] Now, you will see these, like, stack printouts, where it will also, like, [39:17.570 --> 39:22.370] dereference the pointer. Like, it will say, like, this is a pointer to, you know, the heap, [39:22.370 --> 39:29.430] and it's pointing to this value, and things like this. And it can even do that, like, [39:29.430 --> 39:33.730] multiple times. Like, this is a pointer to the heap, pointing to another pointer to the heap, [39:33.730 --> 39:40.210] and so on, which can be very helpful in these situations when you're playing. [39:40.210 --> 39:44.250] So, I've been watching a thing about SAD, and it looks like they've changed their league. So, [39:44.250 --> 39:51.490] now they're trying to offset in... they've changed that hard-coded hex 100 to a hex 80, [39:52.570 --> 39:58.930] and they're using 80 U's, then, to look at it. Okay, so now we've got a whole bunch of... [40:00.250 --> 40:05.750] is that 5.7 or 7.5 on the stack? Oh, these are probably ASCII U's. So, [40:05.750 --> 40:11.570] I've probably seen their own payload on the stack, I think. So, if you look at whatever [40:11.570 --> 40:17.870] hex 75 is... yeah, lowercase u. So, you can see it right there. So, that is indeed [40:19.270 --> 40:27.310] them reaching their own buffer. And there are definitely, like, the sort of, like, finding your [40:27.310 --> 40:33.650] own buffer in, you know, in the memories is oftentimes a component of an exploit, right? [40:33.650 --> 40:38.390] We've got to, like... maybe you want to remove an old pointer from your thing so it can go further, [40:38.390 --> 40:42.750] or you want to write some... maybe you want to write bytes into your buffer that weren't [40:42.750 --> 40:46.390] writable in the original input, but you could do it with a virtual machine, or maybe you wanted [40:46.390 --> 40:49.390] to write some other metadata around your buffer. You know, there's a lot of things you could do by [40:49.390 --> 40:55.170] sort of, you know, finding that data. I think we're so used to, like, Git code execution. [40:55.270 --> 40:59.950] Right. But ultimately, the goal is, like, you know, there could be other steps along the way. [41:00.410 --> 41:05.390] And I want to switch back over to Macaroni here. We can see if they do it again, because I saw [41:05.730 --> 41:09.270] one thing they did, like, down there. You can see the ROP chain, and they have also, like, [41:09.270 --> 41:13.670] some A's appended to the ROP chain. And I saw that they were looking for that in the debugger. [41:13.670 --> 41:18.210] They pre-appended it as well with some A's, and ran it in the debugger, and they showed up. Let's [41:18.210 --> 41:24.970] see if this happens again, or if they, you know, were done with that particular step of their [41:25.510 --> 41:30.850] analysis. But I think it can be a pretty nice educational moment. You can see here, [41:30.850 --> 41:34.430] they're changing around the offset again. I think they maybe got something out from [41:34.430 --> 41:37.550] the thing that I just described, where they pre-appended it, they saw, like, [41:37.550 --> 41:41.770] the offset, and now they're making adjustments. So let's see here if we can see this. [41:43.790 --> 41:49.210] Okay, they quit out immediately. Okay, they forgot they had this dumper section, right? [41:50.090 --> 41:55.150] And they, you know, they, you know, have... this can also be, like, you know, a thing where you [41:55.150 --> 41:59.690] you start messing around with your exploit script. You put in various scaffolding, [41:59.690 --> 42:04.050] and then you remove it, or you forget to remove it. Yeah, you get worse off before you realize [42:04.050 --> 42:08.370] you've actually left something in. You've got to go back and, yeah, fix up. I definitely did that [42:08.370 --> 42:12.030] several times when playtesting my challenge. [42:15.980 --> 42:24.020] Well, so again, adjusting... I think we're actually past second hint time as well, [42:24.020 --> 42:28.280] although, again, I don't know if... I don't think there's anything we can tell them that they don't [42:28.280 --> 42:33.500] know about the binary in terms of how it works. It's really just a question of who's going to [42:33.500 --> 42:40.600] actually get the mechanics, iron out all the kinks, and I would be much more worried if we [42:40.600 --> 42:45.800] hadn't seen one solve already. But we do know, like, yeah, getting that one solve in is reassuring [42:45.800 --> 42:52.860] as an author. It is doable. We know it got done, but let's see if we end up needing a sudden [42:52.860 --> 42:57.160] death challenge for this one or not. So I think they're going back to remind the team, so we might [42:57.160 --> 43:01.600] see them pull up that hit page again. They're going to let them know that, hey, that you have [43:01.600 --> 43:09.660] gone past that 35-minute timer. Yeah, and I mean, I really want to see the teams succeed. Oh, we all [43:09.660 --> 43:19.080] do, yeah. And we also would prefer to not have to use one of our sudden death challenges. Let's say [43:19.080 --> 43:24.980] we have not prepared the challenges enough for sudden deaths for every match. No, no, but we also [43:24.980 --> 43:29.860] have done horribly wrong if we have to use it. Oh, I just saw a very interesting thing. You can [43:29.860 --> 43:34.160] see they're changing their thing here. They're changing the whole thing. They found the win [43:34.160 --> 43:42.700] function, and they were getting rid of the libc stuff. They were leaking the program base. [43:42.700 --> 43:47.940] They're changing it, and now let's see if they actually manage to do it. I think PigButt said [43:47.940 --> 43:53.000] it's going to be very sad if they just missed the win function, and that's the difference here. [43:53.000 --> 43:58.600] Yeah, let's see here. They are still having some kind of... oh, right, they [43:59.740 --> 44:08.800] forgot to rename the variable in one place. Is that a shell? No, it's a breakpoint in the GDB, [44:08.800 --> 44:16.100] so we'll see here. It could be so close, but they're having... it's the stress that causes [44:16.100 --> 44:29.760] tiny mistakes, and it's frustrating, but it feels like I can almost see the stress in the way the [44:29.760 --> 44:36.280] cursor moves. It's regenerating. Yeah, and they're thinking in their head, my opponent's seconds [44:36.280 --> 44:41.540] ahead of me. Right, and especially once you find something that's... It makes it easier. [44:41.540 --> 44:47.820] Really, it's like, oh no, I missed this. Obviously, the other team, they know about this. [44:47.820 --> 44:52.820] And yet, every indication is they do not. You get to see PigButt sad, honing in on that. [44:52.820 --> 44:56.300] But they don't know that. Ironically, given that they've spent the most time in IDA, [44:56.300 --> 44:59.660] I think, looking at it, they were really looking around that main loop and around the [45:00.800 --> 45:07.240] interpreter loop, so we haven't seen them. Yeah, you can see now they're just extending [45:08.380 --> 45:15.840] like spamming the win function, adding ref instructions, just trying to get this to work. [45:18.260 --> 45:23.760] Yeah, I feel... Oh, they have the shell. There's a shell. There's a shell for macaroni. [45:23.960 --> 45:28.720] So now they need to connect to that. Oh, they're going to throw it remotely. [45:29.140 --> 45:31.700] So now let's see if we have... This is looking like it. [45:31.700 --> 45:36.760] Copy pasting the address. They're doing remote. They have a shell. They do. [45:36.760 --> 45:39.160] Submitter. And then... [45:39.160 --> 45:42.680] Yep, that's it. Congratulations to Macaroni. [45:42.680 --> 45:48.040] Great job. Very nice. Very nice, Macaroni. Yeah, let's... [45:49.980 --> 45:54.500] If I can pull up the right sheet. There we go. [45:54.500 --> 46:04.120] So that was our first round of matches here at the live CPF from the DEF CON CPF finals. [46:05.840 --> 46:11.720] And yeah, I think maybe we didn't mention this. So live CPF is part of the DEF CON CPF, [46:11.720 --> 46:16.420] where you have 12 of the best CPF teams across the world playing in like a big attack-defense [46:16.420 --> 46:22.880] competition against each other. And it's like a sub-event within this. They play this live CPF, [46:22.880 --> 46:29.100] like a one-on-one competition, where the results from this will then give them points that feed [46:29.100 --> 46:34.100] into the main event. So the total points they're going to get are going to range from about 1,337 [46:34.660 --> 46:39.980] the elite point range in the first place, all the way down to 500 points for the last place team. [46:39.980 --> 46:45.020] So every team who participates gets points. That way nobody can skip out and not send somebody to [46:45.020 --> 46:49.540] try to play. We wanted... I'm glad Nautilus Institute, who are the organizers of the main [46:49.540 --> 46:54.860] CTF, encouraged teams to participate by... there is a participation award for even doing this. [46:54.860 --> 47:00.120] Because it is brave. It is stressful to get up and be willing to let people talk about what [47:00.120 --> 47:04.060] you're doing. So yeah, we're glad that they did that. We're going to go ahead and get set [47:04.060 --> 47:09.140] up for the next match, which is going to be coming shortly. Yeah, because we are... since [47:09.140 --> 47:12.980] we are a little bit behind the schedule, we will get this going as soon as possible. We'll go to... [47:12.980 --> 47:18.300] we'll bring up some like intermission slides. And yeah, we will be right back. [47:18.500 --> 47:20.840] Don't go anywhere. As soon as we get ready. Take care. See ya.