We'll see. Let's try this again. Yes. Oh, I think we're audible. Oh, nice. Hello everybody. It's been crazy. This has been a crazy day. Welcome. I'm CypherTX. I'm here with Carl. Hello. We have we've had a busy day. Yeah, yeah. But now we're here. We're here and we'll find out shortly whether the challenges are here. We've got four competitors in the back. The challenges are tested. So I think we're ready to count it in. Let's just do a really quick introduction of kind of what the format is this year and what teams we have and how this is going to work. Right. We will talk more about this. But the very short thing is we have a head-to-head, two players, one challenge. First one to solve it wins. Two matches running in parallel. We will be casting and commentating one of them. If you really want to watch the other one or the live feed from the players, it's available. And I think that's it for now. We will talk more about it later. We're going to get the teams started and then we can, you know, talk about the challenge and all that. So I'm just going to, you know, look over to production and say that we are ready to go. I'm ready. Countdown. Five, four, three, two, one. Go. Let them go. All right. So we should be going. Yep. And let's switch over to one of our competitors here. Full screen terminal already. Yep. So the way this is going to work, both of the players, they are given a challenge, the same challenge. It is a pwnable challenge of binary exploitation, you know, memory corruption, vulnerabilities and exploits that we're looking at here. The goal of this is to take this program, this binary, find a vulnerability, develop an exploit, test it locally and then exploit this on a remote server. Once you do that, you will eventually manage to get code execution on this server. And that's when then you're basically done. And then to prove that you're done, you will run the command on the server, which, yeah. But this year, unlike last year, we're a double elimination tournament. So last time it was as soon as you lost, you were out. But this time you have to lose twice before you're out. So that gives teams one a little bit more of a buffer, which is great, but also increases the complexity a fair amount. Yeah. We've got a bunch more streams, a bunch more captures. We've got a whole lot that we're trying to juggle here. So we've got the two teams that we're going to be looking at here are going to be Pigbuttsad and then they're playing against mHackeroni. So those are our two teams that we're eyeballing. We don't have the overlay text. We're a little bit... we'll get that added as we move forward. Yes. But we're currently looking at mHackeroni. Right. So they are here in IDA, one of the popular reverse engineering platforms, the disassembly compiler. You can see the player here looking at the code, you know, renaming variables because, you know, they only get these... they get this decompilation, which is very nice, but you still have, you know, no variable names and so on. So they're trying to like clean up the code here to be able to understand what's going on. So it's kind of as you can see, because we've got the... we're currently in the overlay view. It was very convenient these two teams to choose dark and light themes for us. So it's really obvious when we're in... when we're looking at mHackeroni, they're going to be the dark IDA. And when we're looking at PigButSAD, they're going to be over there in the light IDA. And we can flip back and forth and take a look at kind of each one in a little more detail. So let's switch over to PigButSAD. You can see they're looking at essentially the same piece of code. This is kind of the core functionality of this program. You can see that they are trying to create some structures here to figure out what is going on. So this... And I saw that it had a name. So that function name was called interpreter, right? So do we have symbols in these binaries, or did they already name that? Let's see. I think... I think this one does have symbols. Yeah, this varies from... no, I'm looking over here. No, we... yes, yes, we do have... we do have symbols in this one. So we have function names to help them out a little bit, because, you know, we want... so these challenges... so we want to make these challenges, you know, easy enough that we can do this kind of like high-speed format here. So that's... sometimes we do give them some, you know, things to grab onto, like the function names and so on. Yeah. Sometimes we decide to strip them out if that makes more sense in the context of the challenge. Yeah, but these are... so these matches that we've got, normally we're scheduled for about an hour each match. And if things go to plan, we want them to be solved in like 40 minutes, right? The goal is actually 40 minutes after the challenge starts. They should be at that point already done, because we do go to a sudden death. So if it's taking them more than 50, we're going to go to a sudden death mode. And at that point, we give them a new challenge that is like as simple as it can be. It's meant to be very, very basic. And that's a truly painful race at that point. Yep. And we can see here on the Piglet side reversing that they are still working on... you can see there they named one of the fields of the structure PC, typically for a program counter. And we did tell them the category in advance, right? So we try to tell teams the architecture, whether it's a reversing challenge, a pwnable challenge, a little bit of information about it. Primarily because we want them to send their best person. Different teammates will have different skills. And so in fact, for example, one of the the organizers came up and said, well, you've listed us for a challenge that says Linux Pwn, but is it Linux Kernel or Linux Userland? Right. Because they're like, it's a different guy we send for each one of those. And so we do try to, you know, try to give them a little information. And for this particular challenge, which by the way, anyone can see. If you go to the challenge.com, we have the full bracket there. You can see it. But if you actually go to the raw challenge page as well, there's details for every one of those matches. And so it not only links to the streams where you can see it. So again, these are just the two of the players we've got. And we've also got Hypeboy and TWN playing at the same time on the same challenge. And it's entirely possible that the fastest solve actually comes on one of those feeds. So, right. And I want to switch over here to Hackeroni because they are writing a part of their exploit script here, which I think is really cool. So they are writing this in Python using Pwn tools. And you can see that at the top of their script there, you can see that they had written out a couple of functions. So they have small like, you could always call them like macros, helper functions with short names that you can quickly just, you know, plug in there. They are, you can see that they're building up a kind of payload here where they're using the cyclic function in Pwn tools, which is a very handy tool where, let's say you have some kind of overflow and you gain control of some value that you're in, like, for example, the return address or some register or so on. But you're unsure exactly which part of your payload ends up in that location. You can use this cyclic function to generate a pattern, send it, look in the debugger, and then immediately deduce... Those four bytes or eight bytes are exactly a unique offset into that buffer. Right. So there's like DeBruin sequence generators, the other, you know, name for you. Somebody else will hear that. Exactly. So the, instead of trying to like calculate this by looking at the various offsets and like figuring out how much of the stack will be popped and so on, you just like dump this in, look in the debugger, and then you like calculate backwards to get the index. This was not a common technique when I started, so I remember putting just a bunch of A's and then B's and trying to like binary search it, just trying to figure out where it was. And this is like the sophisticated version of that. It's also much, much faster too, which is good for a live CTF. Yeah. So this leads me to believe that they have kind of found the vulnerability, but you know, they're now kind of exploring it to see exactly how and what they control, which is like good progress there. We have seen people too, though, in the past, sometimes they start their PwnScript immediately, even as they're just exploring the service and interacting with it, or they want to use it to generate things in a debugger just to kind of see what the behavior is. But yeah, usually you would think that they've got the exploit there. They may or may not. We are seeing in PigButtSAD, they've now also switched over a little bit to debugger, which went back to... Right. Let's go over to their screen. There we go. Yeah. Yeah. Some exploit here also using Python with PwnTools, also some helper functions. The same helper, like the same... Yeah. Maybe, I wonder if there's like, you know, now they're slightly different, but it's, you know, similar contents. Very, very similar. Yeah. So also running some debugger. Yeah. I did not see quite what they were sending in. I think maybe they're just also exploring... Oh, there was a breakpoint on OXDeadBeef. So I don't know if it's... Okay. They're just coming out right now. That was like leftover maybe. Yeah. Maybe just setting up their environment. I was like, they already have control of EIP. No, no, no. I think it's, you know, they're just setting up the GDB scripting and then making sure that, you know, they have their stuff in order. So, I mean, this is a very nice... PwnTools has a lot of nice features like this, where you can start your program, attach a debugger, run the GDB script, for example, set up some breakpoints, like all of these things to help you do this iterative process of developing the exploit. So minimize the number of manual commands you have to type in each time you test your exploits. So I don't think... Did the teams... We gave them the binary name, correct, when they downloaded this? Or did we just call it something generic? No, they do get... So the archive that they download is called PushPop Automaton, which is the name of this challenge. And, yeah, it's a stack-based virtual machine, which has a... I bet it has a push and a pop. Yeah, yeah, yeah. Very few operations, including a push and a pop. So you can, like, grow and shrink this stack structure, which, you know, if one would just take a guess at what the vulnerability could be, you know, maybe this pushing and popping, it does not properly respect the bounds of this. What? A CTF challenge that doesn't have bounds checking? That's shocking. Shocking, yeah. So we can see here some... On the Macaroni's side, they're looking in the debugger. We see that they're dumping some memory, trying to figure out exactly what, you know, what things are in the memory at a certain point in time. I'm not sure what this point in time is. But, yeah, it's hard to tell exactly how far their progress is right now. Like, the exploit script was still pretty bare bones. Now, is this one that you playtested? I know that this was a challenge Glenn wrote. Yep. But this is one you've solved before, so you've at least got a solution. Although, as is the case for us in a lot of our challenges, we don't know if we'll see the same solution. Right. There may very well be multiple ways to solve it. Yep. I did solve it. It was probably one of the first ones I did in our whole development process. So it was a couple of weeks ago. But it is, I mean, so it is pretty straightforward. But you also have the added, you know, stress of this format, the live CTF format with, you know, it's this one-on-one, you have no help from your teammates. Oh, and yeah, the time pressure alone, just knowing that there's one person you're racing and that the first to solve it is like, you know, the victor with all the points. It's stressful. It really is. Yeah. And we are, I mean, we are running a double elimination this year, right? So, you know, you're not out immediately, but it's still like, you know, this is one of your two chances, right? And so let's talk about the points and the scoring and how this kind of factors into the overall DEF CON CTF, right? So that we are in the middle of DEF CON here in Las Vegas. And there's 12 teams here at the final event. Each of the 12 teams sends an individual for a round of live CTF. And those individuals don't have to be the same. So if they play multiple rounds, they could actually choose to send a different person. That's again, also why we tell them the category. Yeah. So they know who they can send. I want to just bring attention here to PigBetSav. You can see that there were a bunch of memory leaking out there on their screen that we have up. You can see here the memory dump in PwnTool. So they're doing some kind of leak here. This is a good step. Yeah, that would be step one of this exploit. Almost certainly would be some kind of leak. Any modern binary, you've got to have a leak kind of built into it. So if I remember correctly, basically you use the pop feature to read memory. You go further than you were supposed to. And then you use the push feature to modify those things. And so that gives you both a read and a write primitive on the stack. Yeah. And then there are a couple of things you need to keep in mind, because since you're going like backwards and forwards, you need to keep track of the order, because you're writing things in the opposite order of what you were reading. So there are details to keep in mind there. And that's the hardest when there's the time pressure. It's the kind of thing where if you were casually doing it, you wouldn't even be fine. But when you're in a hurry, it's easy to miss that. And then off by one things, like the push thing, does it write first and then increment the pointer? Is the pointer pointing to the current empty slots or the top of the stack? And you can easily get an off by one issue there. I think both teams did exactly the right thing, though, because debugging will help you answer a lot of those questions, right? You want to have your script. There are people that I know who can one-shot this, and they just muddle it in their head, and then they solve it, and they write it, and they're done. And they're fun to watch. But certainly, I would be using a debugger as well. Yeah. I want to go over to Macaroni again and bring attention here. You can see that they're writing this leak equals, and then they are... So they've already got a leak, and now we're going to... So they're just... And then using the debug printing here to validate, yeah, you can see that they printed out an address. What does it look like? Code address, though. I'm not sure what they're trying to leak. It seems like it's off. Like the 55 is usually like a good... Oh, that one, though, looks like... There we go. You can see this 7F thing. Yeah. Looks very much like a library address, right? Yeah, library. Yeah. Well, I bet they're going to see what they do. And they're checking... Yeah. So they're copying the leak over, or they were copying the leak over. Let's see. They have a leak. Copy it. Are they going to check in like via map or... So they're checking this is in... Yeah. So they got the... Okay. Yeah. So there was an in the offset, and you can see they use this feature in GDB to take this address. This is an absolute address, but the GDB plugins convert this into an offset within the library. So now they can then bring this back into their exploit script, and you can see that they subtract this offset from the leak to get the base address of libc, bring this back into the script, and now they can easily calculate any addresses within libc that they are... They'll look for one gadget or whatever other function pointers they want to call. Although this is complete overkill for this challenge because you have a win function, but... Oh, I don't know if we saw anyone look at the win function there. So I saw that the function list was open, and there's... You can see... Oh, yeah. You saw it there very briefly. Yeah. Yeah. Yeah. And especially because we gave them the symbols, right? Because they've got the symbols for function names. But this is so easy to miss because like, okay, this is maybe not a super common thing to have in modern challenges. We've kind of evolved past that in the CTF community, in the CTF challenges. But again, since we want this to be very fast, very... Well, compared to a lot of pwnable challenges, easy to solve. I'm not saying it's easy. It's easier. And that's why we put this in. Don't feel bad. It's certainly... I wouldn't be able to solve this in an hour or as fast as these teams were. So don't feel bad if you're doing this and thinking, wow, you call this easy, but it took me, you know, like several hours. Like this is just relatively speaking to sort of the state of the art in pwnable challenges now. So yeah, it is a little more unusual. And you know, I would have expected to see... Although actually they would need a leak to the program itself, right? Right. Right. Right. Right. So, I mean, this is a different approach. Maybe it's, you know... It may have been the first pointer they grabbed was a libc and good enough. They can get system out of that. Right. So I want to bring back attention here now to PigBetSAD. You can see a little bit more of their exploit script there. You have some... They are... Okay. They're reading until they can see these specific bytes. So they're also looking at some leak here. You can see some memory dump. I'm trying to like orient myself here at what they're doing. It is interesting that they're building their GDB into their same script as well. As opposed to we saw earlier in Hackeroni had a separate session that they were debugging it with. Yeah. So, yeah. Are they getting back a pointer? Are they... Here we can see... I mean, there's a bunch of memory being dumped out. Yeah. They looked like environment variables. Yeah. Environment from stack. Yeah. Yep. Absolutely. Right. Right. Right on the stack prior to your... Right. Your main. I... Actually, let's leave them there for a moment and go back to Macaroni because I think there's some pretty good stuff coming up here. I saw that... You can see that they're trying to put together a ROP chain. Let me see. This is... You know, it's a little bit difficult to follow now because they're jumping very quickly back and forth between the export script and the debugger. You know, they're making small changes, trying it and doing like very quick iterations. You can see them like fiddling with like some offsets here and there. This is exactly what I'm talking about. These things are... Very fiddly. Yeah. Yeah. And can be so frustrating because like you feel like you should have this, like I know what's going on and that something is like not adding up. Like you forget some detail. Extremely frustrating. Yeah. It looks like they're actually changing... They had a libc leak clearly earlier, but now they've gone back and they're changing it again. Did they... Did they... The environment... Did something change or what? I'm wondering what they're doing that's causing them to undo the progress they felt like they've made earlier. And I'll keep an eye out. I don't see Pigbuttsad having successfully gotten... Oh, they do think they have a leak now. Let's see. They're... Yeah. Well, let's switch over to them and look at that. I think they might have... Yeah. So it looks like they're dumping... Oh, so we've now dumped some... Right. And there they're also calculating. You can see they didn't use as fancy features there, but you can see that they're calculating an offset by subtracting those two absolute addresses there in the exploit script, those 7F addresses. Yeah. This will give them... So you see they take the values in the specific instance, take the difference, get the offset, and then use that to calculate the base there. Slightly longer version of the same thing that we saw in Macaroni... Yeah. That we just copy and paste. Yeah. It's... Right. So, yeah, they're back in the disassembler. You know, I think this is interesting because we had quite a, you know, a period here of them, like, mostly looking at the exploit script and the debugger. Yeah. And now they're coming back into the disassembler, maybe double checking some... Maybe they were just looking at the size of this buffer or the stack thing. Yeah. It looks like their structure offset they were using to determine... Oh, we had, by the way, a solve on our other stream. Oh, my God. Check out our other stream. Congratulations to Hypeboi. Yeah. So, really great job. Hyperboi win... They win their first live CTF match here. So, as I said, we are running two matches in parallel. We are casting one of them, but then there's another match going on in the background. And that match just finished with Hyperboi... Hypeboi. Hypeboi. Hypeboi winning against... Which team was the other one? Hypeboi was playing in this match... TWN48. Right. So, TWN48 against Hypeboi and Hypeboi did win that match. I can't wait to go watch the VOD on that one because that was a blazing fast. I'm just knowing, like, the progress that they must have, like, quickly know what to do and then landed that. Really cool. Good for them. Really cool to see. But we are still going strong here in this match. A little bit of a sigh of relief as an organizer for your full solve coming through because, I mean, you know it's solvable, you're pretty sure, but just to see somebody do it... Yeah. That's a good feeling. And, oh, my God, the issues we've had today. Today was cursed. Everything that conceivably could break, broke and a few more things. Yeah, so we had multiple hardware failures on laptops. So the machine that we're streaming to you on now died. The machine that's running the game infrastructure died. Yeah. We're on, like, secondary machines for all of that. We had our mixer board, as we came on the stream just at the very beginning. Right. Isn't connecting for some reason on the new machine we swapped out. So we switched audio inputs. It's been... Yeah. It's been a lot of craziness, but... Right. So, high five for our first... Yeah, really, really nice to see. And, yeah, I mean, we will also be talking a bit more throughout these days. We will be talking a little bit about, you know, the production, the behind the scenes and stuff. But, you know, we will come back to that. We can talk a little bit more about... So now we want to get back on schedule and get things going. Right. So let's check out Macaroni again. You can see here, it feels like they're trying to... Looks like some indices and values. They're trying to figure out some kind of offset, maybe. You could see there was a big list of various offsets, and I guess it was the corresponding value or something. And I think they're trying to, again, fiddle around a little bit with the exact offsets of these exploits. Yeah. I don't feel either team is necessarily stuck, but I also don't feel like they're confidently going to the next step yet, either. They're still, I think, tweaking and trying to figure out. But it's like, you know, you can see here, like you have the ROP chain with the system call with the shell, like they have pieces there and now they're just trying to debug their exploit script and trying to find, like, where is this not doing what they think it should do? It actually reminds me of the first match we had last year in the finals, which you can go watch on YouTube or on livectf.com, because it was the same thing that you're tweaking and fiddling with. And then the team we weren't watching snuck in and actually solved it just off screen. Because it's hard to know, like if for one of them to suddenly figure it out exactly, it could go down in just a few seconds. But I do still see a lot over here on Pigbuttsad. Oops, wrong one. If we bring up Pigbuttsad, that one there. We can go ahead. They really haven't, they just, yeah, they hop back down to Vita, but they've been here for a lot. They're really still looking at their offsets. I think this, to me, still feels like in their head, they're still working out what they want to do. They don't have exactly the sizes figured out. They don't have a goal necessarily figured out. Because I don't, I think if you understand what the virtual machine is doing at this point, there shouldn't be a whole lot you would need to look at. Even things like offsets, for example, dynamically just pulling that out of your running session seems like it might have been a little easier. And they are, yeah, they're looking at the interpreter code. I mean, this is a time where you really wish you could, like, read the minds of the players. Yeah, yeah. Because, you know, they are clearly staring at this code and, you know, there's something they're trying to, like, wrap their head around. You're just not exactly sure what it is, right? See if that macaroni has got more momentum now or if they're still stuck with their leak being a little bit like, oh, okay, so that's the same offset value dump. So they're just dumping out a bunch of stack values, essentially. Right. Trying to figure out... You can see that they're looking at these, like, 7F value. They're probably interested in that one. Looking at the corresponding offset. Yeah. You can see here the AAC offset copying this, I guess. And it looks like they already had that there. So it's like, yeah, maybe they wonder, like, why is this not doing the thing? And, you know, are they going the wrong direction, like, up or down? You gotta remember, like, which stack goes one way, but the bytes go the other way. And that can be tricky. Right. And then... This challenge definitely gives you all the tools, though, that you need to solve it. It's just a matter of, like, wiring them up the right way. So, yeah, it didn't even send in eight bytes on that unpack. Right. Adding an interactive call, which is a nice feature in PwnTools, where, like, you can do some automation and then, like, take over with manual... Which works really well on a service like this, where it's the sort of text-based interactive thing. Right. And so maybe they want to just try to, like, leak a few more things or change what they're doing on the fly. Yeah. And so I'm trying to, like, read, you know, the different things. Basically, it seems like, basically, you know, they are using the payload to leak an address, use this address to calculate the base address. From this, they can construct a ROP chain, and then they are inserting this ROP chain. I do think we're coming up on first hint time as well. So we should... Right. We should talk about... Why don't you talk about how that process works. Right. So... So they did get the hint. Do they know to check the page? Why don't we go on over there and remind them about the hint schedule? So... I don't think we told them the hint schedule, so someone should go tell them. Right. So the way we do this is after 20 minutes of game time, we release a hint. On the same web page they downloaded the challenge on. Right. And then after another 15 minutes, we release a second hint, which I... Honestly, for this challenge, I don't think the hints... I'm not sure if it's going to help them. Yeah. Yeah. I don't think it's... it's helpful because I think they've already figured that part out. Right. I think they're now just fiddling around with, like, the offsets and, yeah, those parts. Yeah, I agree. I think we've seen that in the past, some of the challenges. Did we lose? No, we're still going. I've seen in the past in some challenges, the hints aren't really going to help you. You understand you've got all the right tools in the tool shop, but you're still having trouble building the chair. You've still got to, like, kind of put it together. So... Right. And here's interesting. We can see adding a, like, a red sled to their ROP chain. So, if you're familiar with, like, old school shell coding, you know, you sometimes could add, like, a NOP sled to, like, you know, if you didn't know exactly where your code was located, you would jump into this kind of long sequence of NOP instructions that would, like, then slide you all the way... No matter where you hit, they would all hit NOP and you would go to the very very end. Right. Yeah. Instead of trying to find the exact offset. And a red sled is, like, kind of the equivalent thing, but for a ROP chain, where if you don't know exactly how your ROP chain is going to offset on the stack, you just have a sequence of RET instructions that just progresses the ROP chain further without making any state changes. Or specifically a pointer to a return instruction from something you know at a fixed location. Yeah. And all those pointers in a row, so that no matter where you hit in a return, you'll just keep returning until you get to your next gadget that you want. Yep. Let's go back to PigBetSAD. We can see that they are... feels like they're still messing around with, like, the initial payload. Kind of this program that you are submitting to the automaton, to the VM. Maybe they're, you know, trying around a little bit with how long the various sequences of push and pop instructions need to be for this to all work the way they have, you know, they expect it. Now I do see, let's talk, there's U, O, and H. We saw those, and they've even labeled the O as output. So presumably this is going to be, these are like text instructions that we're sending into the virtual machine, and that's going to be what does our pushing or popping? Yeah, so each, you send a sequence of commands, each of them is like one character, and then followed potentially by some input or outputs that you get back. So we can actually see... Ah, there we go, they just refreshed for the hints. Yeah, and they saw the hint. It was too quick, it was keep popping something something. Right, keep popping beyond the bounds or something, which as I said, they figured that out a long time ago. So yeah, you know, not very helpful in this case, which is like, you know, good and bad, because it means that, you know, they have had some progress, and they have another 25-30 minutes, basically. Total time, I think, yeah, we have still another... Right, well, until the sudden death, we have to actually, we have to go back and look at and turn over the exact start time. So yeah, somebody wrote that down. So yes, we definitely got started late, and the being late was definitely our fault and not theirs. They were all here on time. That was just us, as you heard or saw us getting our, fixing our microphones and fixing all sorts of fun stuff. It was a mess, but we are here. It's working, so far it's working, and we already got one solved, and hopefully we'll see another one soon. Yep, yep, and yeah, big but sad, still messing around with, like, the payload structure here. The, you know, they're padding out there with these O instructions to a fixed size payload. Oh, I saw something interesting there. I want to go back to Macaroni. They were doing some more leaking there, I think. I saw some sequence of bytes popping out. Could have been interesting. Like, they, let's see, they go back here to this, to the, yeah, you know, they changed the size of the, you know, the code that they're sending, or the the length of these. The total, total payload. Yeah, and then, oh, this seems like they kind of, you know, they've subtracted eight in one place, and maybe they're compensating down here as well. I don't know exactly what these various offsets are, but it's, it's so weird, because we saw that libc leak real early on, and then I feel like we have kind of gotten stalled. We haven't really made it anything past that. So, yeah, it's, I'm really, you know, like, rooting for these teams to succeed with these things. I know how, like, frustrating it can be when you are, you know, trying to solve one of these challenges. And when we were testing this, we don't have the time pressure, too, right? So, like, we definitely had it easier that we could, yeah, put it down and walk away, think, get some fresh ideas, come back later, and think, oh, I bet I was messing up that, you know, go sleep on it, or whatever. Yeah, I was, like, you know, I was solving the challenge on one screen, and, like, watching some Twitch stream on the other screen, and, I mean, obviously that, you know, I didn't solve it in 45 minutes then. Yeah, for sure. Or even the 25 or whatever, the 20 minute one. Oh, no, no, no. From Hypeboy, that was great. Really, really impressive work there. So, yeah. I think the kind of benchmark we had throughout the development process was that, like, if we can solve it within, like, two hours in, like, a relaxed setting, then... Because, one, these players are all better than us. Yes. And every one of them are better than every one of us, I think, is probably fairly safe to say. Yeah. And then, two, again, we weren't kind of in a hurry, we were taking our time, and then not feeling rushed. Although, it works conversely, too. The opposite also works. The fact that we were not time pressured sometimes means that you had less stress in doing it, so. Yeah. I'm going to switch over again here to PigButSad, and... It does crack me up every time I see a bunch of, like, uuuh... How do you pronounce that exactly? Yeah. They're, again, like, messing with the various sizes of the parts of the payloads. Yeah, look, and you can see there, that's the address of the... when they call the interpreter, so it's setting a breakpoint when going into the interpreter to, you know, investigate exactly what's going on there. Yeah, it's still... I mean, if I were to, you know, bet at this point, I'm a little bit with Macaroni. Yeah. Yeah, I mean, it certainly had progress early on. I don't think we've yet to see a successful, like, libc leak out of PigButSad, unfortunately, yet. Yeah. Although, it could have happened, we just missed it, too. That happens a lot, as well. It's hard to track everything. But with, you know, the nature of these challenges is that, you know, if one team gets stuck, the other one can definitely catch up and, you know, cruise through and steal the win. So, you know... It is still anyone's game, for sure. Yeah, yeah, yeah, for sure. Just getting progress here from either one. Yeah, and this definitely lends itself to, I feel like, a more dynamic approach, this type of challenge, where you've got this primitives that you can just poke at and see what they do, see what you get on the stack, and just try a write and then go look at the stack after you've done your write. So, I remember, I think, what I did was, like, you know, I read the code and got, like, a rough sense of it. Like, you get that rough... the size of the buffer is, like, hex 800 or something. So, I started out with that as, like, a base thing, did something, then looked in the debugger, and then made adjustments. It's very similar to what I feel like the players are doing here. But, yeah, it's gonna be... So, that was interesting. We saw that, like, I mean, times 100 makes sense if we're pushing or popping eight bytes at a time, right? If it's an eight byte stack. But we had three use in a row times 100. So, I'm not sure if that was just, you know, do more just to... Yeah, I'm not sure about that. Like, three seems like a bit of an odd number. Three times hex 100. Yeah, like, if it was two or four, maybe. But, yeah, I don't know about that one. It's... You can tell the teams are a little bit ready for live CTF, though. We saw them come in with, like, this starter shell scripts with their alias macros or whatever. We've got two people very familiar with PwnTools and with even the interactor. Now, is the interactive prompt, is that Jeff or... No, that's PwnTools. PwnTools has its own kind of interactive... Yeah, yeah, yeah. ...GDB session that has all the same kind of... Oh, no, no, no. The interactive is just, you know... Well, no, no. So, I know the PwnTools interactive, but on the right side, for example, on Macaroni now, they're looking at the debugging session, right? Right. So, here you can see that they're running PwnDebug, which adds all of these, like, nice colorings and extra plugins and stuff to GDB. So, I think there are, I would say, currently two big GDB kind of add-ons for exploit development. PwnDebug being one of them, and then Jeff, G-E-F, being the other one, both, you know, with their pros and cons and popular within the CTF community. So, they have a bunch of modules adding these, like, trying to interpret addresses. You can see these, like, various pointers with different colors, like, whether it's in the text segment or, you know, the stack and so on. Yeah, it definitely is easier to read when you can see those highlights, as well as even just seeing the register from the stack, as opposed to the default GDB interface, which is empty. Now, you will see these, like, stack printouts, where it will also, like, dereference the pointer. Like, it will say, like, this is a pointer to, you know, the heap, and it's pointing to this value, and things like this. And it can even do that, like, multiple times. Like, this is a pointer to the heap, pointing to another pointer to the heap, and so on, which can be very helpful in these situations when you're playing. So, I've been watching a thing about SAD, and it looks like they've changed their league. So, now they're trying to offset in... they've changed that hard-coded hex 100 to a hex 80, and they're using 80 U's, then, to look at it. Okay, so now we've got a whole bunch of... is that 5.7 or 7.5 on the stack? Oh, these are probably ASCII U's. So, I've probably seen their own payload on the stack, I think. So, if you look at whatever hex 75 is... yeah, lowercase u. So, you can see it right there. So, that is indeed them reaching their own buffer. And there are definitely, like, the sort of, like, finding your own buffer in, you know, in the memories is oftentimes a component of an exploit, right? We've got to, like... maybe you want to remove an old pointer from your thing so it can go further, or you want to write some... maybe you want to write bytes into your buffer that weren't writable in the original input, but you could do it with a virtual machine, or maybe you wanted to write some other metadata around your buffer. You know, there's a lot of things you could do by sort of, you know, finding that data. I think we're so used to, like, Git code execution. Right. But ultimately, the goal is, like, you know, there could be other steps along the way. And I want to switch back over to Macaroni here. We can see if they do it again, because I saw one thing they did, like, down there. You can see the ROP chain, and they have also, like, some A's appended to the ROP chain. And I saw that they were looking for that in the debugger. They pre-appended it as well with some A's, and ran it in the debugger, and they showed up. Let's see if this happens again, or if they, you know, were done with that particular step of their analysis. But I think it can be a pretty nice educational moment. You can see here, they're changing around the offset again. I think they maybe got something out from the thing that I just described, where they pre-appended it, they saw, like, the offset, and now they're making adjustments. So let's see here if we can see this. Okay, they quit out immediately. Okay, they forgot they had this dumper section, right? And they, you know, they, you know, have... this can also be, like, you know, a thing where you you start messing around with your exploit script. You put in various scaffolding, and then you remove it, or you forget to remove it. Yeah, you get worse off before you realize you've actually left something in. You've got to go back and, yeah, fix up. I definitely did that several times when playtesting my challenge. Well, so again, adjusting... I think we're actually past second hint time as well, although, again, I don't know if... I don't think there's anything we can tell them that they don't know about the binary in terms of how it works. It's really just a question of who's going to actually get the mechanics, iron out all the kinks, and I would be much more worried if we hadn't seen one solve already. But we do know, like, yeah, getting that one solve in is reassuring as an author. It is doable. We know it got done, but let's see if we end up needing a sudden death challenge for this one or not. So I think they're going back to remind the team, so we might see them pull up that hit page again. They're going to let them know that, hey, that you have gone past that 35-minute timer. Yeah, and I mean, I really want to see the teams succeed. Oh, we all do, yeah. And we also would prefer to not have to use one of our sudden death challenges. Let's say we have not prepared the challenges enough for sudden deaths for every match. No, no, but we also have done horribly wrong if we have to use it. Oh, I just saw a very interesting thing. You can see they're changing their thing here. They're changing the whole thing. They found the win function, and they were getting rid of the libc stuff. They were leaking the program base. They're changing it, and now let's see if they actually manage to do it. I think PigButt said it's going to be very sad if they just missed the win function, and that's the difference here. Yeah, let's see here. They are still having some kind of... oh, right, they forgot to rename the variable in one place. Is that a shell? No, it's a breakpoint in the GDB, so we'll see here. It could be so close, but they're having... it's the stress that causes tiny mistakes, and it's frustrating, but it feels like I can almost see the stress in the way the cursor moves. It's regenerating. Yeah, and they're thinking in their head, my opponent's seconds ahead of me. Right, and especially once you find something that's... It makes it easier. Really, it's like, oh no, I missed this. Obviously, the other team, they know about this. And yet, every indication is they do not. You get to see PigButt sad, honing in on that. But they don't know that. Ironically, given that they've spent the most time in IDA, I think, looking at it, they were really looking around that main loop and around the interpreter loop, so we haven't seen them. Yeah, you can see now they're just extending like spamming the win function, adding ref instructions, just trying to get this to work. Yeah, I feel... Oh, they have the shell. There's a shell. There's a shell for macaroni. So now they need to connect to that. Oh, they're going to throw it remotely. So now let's see if we have... This is looking like it. Copy pasting the address. They're doing remote. They have a shell. They do. Submitter. And then... Yep, that's it. Congratulations to Macaroni. Great job. Very nice. Very nice, Macaroni. Yeah, let's... If I can pull up the right sheet. There we go. So that was our first round of matches here at the live CPF from the DEF CON CPF finals. And yeah, I think maybe we didn't mention this. So live CPF is part of the DEF CON CPF, where you have 12 of the best CPF teams across the world playing in like a big attack-defense competition against each other. And it's like a sub-event within this. They play this live CPF, like a one-on-one competition, where the results from this will then give them points that feed into the main event. So the total points they're going to get are going to range from about 1,337 the elite point range in the first place, all the way down to 500 points for the last place team. So every team who participates gets points. That way nobody can skip out and not send somebody to try to play. We wanted... I'm glad Nautilus Institute, who are the organizers of the main CTF, encouraged teams to participate by... there is a participation award for even doing this. Because it is brave. It is stressful to get up and be willing to let people talk about what you're doing. So yeah, we're glad that they did that. We're going to go ahead and get set up for the next match, which is going to be coming shortly. Yeah, because we are... since we are a little bit behind the schedule, we will get this going as soon as possible. We'll go to... we'll bring up some like intermission slides. And yeah, we will be right back. Don't go anywhere. As soon as we get ready. Take care. See ya.