start	end	text
12870	17510	And we are back, just a couple minutes late, but not too far off.
17510	19630	Yeah, hello everyone, we are back.
19630	25830	We are here, and this is so exciting because we have the grand finals of the live CTF tournament
25830	28730	at the DEFCON CTF finals.
28890	33550	We have team Maple Mallard Magistrates versus Hypeboy.
33550	36250	This is going to be really exciting.
36310	40390	A fun fact is that the player playing for Hypeboy
41170	44790	is the person, so we did this for the first time last year,
44790	49570	and the person who went all the way and won last year,
50370	51530	his nickname is...
52890	53510	C2W2M2.
53510	56150	Right, and so he is the person who won last year.
56150	60150	So we have kind of like the live CTF champion.
60150	61630	Returning champion, yeah, absolutely.
61630	66470	Versus like MMM, who are just such an amazing team, right?
66470	70030	So there's like two giants facing off here.
70470	73570	And I think we're going to get started very soon.
73570	76630	Well, let's just wait a little bit.
76630	77490	I think we're going to get ready.
77490	80430	We're going to make sure we get some power cables connected and get into it.
80990	84470	But we have seen, again, we talked about on Hypeboy,
84470	88070	we have C2W2M2 coming back as the sort of returning champion.
88210	90830	And they made it through the first year with single elimination.
90830	92510	It was even more stressful, even harder.
92670	95490	It's worth pointing out though, they also made it through undefeated
95490	97690	in this round too.
97690	103310	So they have never lost in live CTF, which is kind of crazy, right?
103310	106490	Like if you were to look over all the matches over two years, really great.
106490	109390	But on the other side, we have like the sort of pair programming team
109390	112470	from Maple Mallard Magistrates because we've had them swapping out
112470	115870	between Robert and we've had them swapping into Jinmo, two of their players.
115870	122470	And we told both teams that this was an x64 shellcoding challenge.
122470	125570	And so they kind of used that hint to decide who to send.
125570	127650	They decided Jinmo was going to be it.
127710	130690	Sounds like we're ready to go, so we'll give them the countdown.
130730	133470	Yes, so we are going to start the grand finals in...
134190	138950	5, 4, 3, 2, 1, go!
139450	141170	Oh my god, this is so exciting.
141170	143950	So this challenge, what do we know about it?
143950	147830	Yes, so we did a little bit of, you know, we're getting with the times and so on.
147830	153270	So the big thing this summer has of course been two movies that have come out.
153450	158550	So in the, not the previous match, but the match before, we had a challenge House of Barbie,
158550	164190	which was a heap challenge, you know, a bit of a play on the whole house of heap thing, right?
164550	168270	So now we're following this up with Noppenheimer.
168570	173250	Noppenheimer. You came up with a name, suggested it, before we even had an idea for the challenge.
173250	176270	So Noppenheimer is the challenge.
176270	180170	There's going to be a board, you saw there briefly on Hypeboy's screen.
180370	184670	There's like a random bit of memory that's a random generated bytes.
184750	188150	You've got 16 columns wide. You've got 256 long.
188370	193870	And we thought, what better thing to do than to like, you know, knock some bombs, some explosions onto the board.
193870	198850	So like a battleship or like a challenge where you have to like pick an XY coordinate.
198930	202450	You choose where you want to write. By the way, I love that they just ran it first thing.
202450	205570	Just to look at it, because this is a good one. You can really understand everything you need to know.
206370	210210	Like no reverse engineering. You look at this and you know immediately what you need to do.
210210	215990	Right. Although, I do want to quickly look at MMM's screen.
215990	218690	We might not see it. Maybe they switched back to the terminal.
218690	225050	But I did see that they very crucially ran the checksec program, which will list what kind of mitigations, protections.
225070	228790	And I think one that could be of interest is that there's no pi.
228890	233750	So I, you know, that could... I don't think it's in our reference solution.
233750	238970	If someone makes assumptions or, you know, like if they think it's randomized or it's not randomized,
238970	243870	you could either make them make an invalid solution or make a solution that's far harder than it needs to be.
243870	244170	Right.
244170	250610	If they know what changes have been made to the binary, what protections are built into it.
250610	252130	Is it going to be randomized or not?
252130	259450	Right. And we can see here that the player is kind of recreating basically the algorithm of this challenge.
259450	265630	So what we do, right, we generate one page of random data.
266110	271950	And the player here is recreating the same randomization using the same seed and dumping this into a file.
271950	276910	And speaking of seeds, right, that particular seed, if you actually look at the decompilation,
276910	280750	is the date of the eternity test that's featured in the movie Oppenheimer.
280750	285450	So there's a lot of little like inside references. I don't think they're going to notice any of that.
285450	288830	They're going to be so focused on what they need to do. That's fine.
288830	291390	It made us chuckle when we made it.
291390	293150	Yeah, we're just having some fun.
293430	299130	So we've already got Hypeboi over here with their interactive script able to interact with it to extract those values out.
299130	301590	So they're already able to pull this out.
301590	305950	Although really pulling it kind of once and then figuring out your solution is going to be the tricky part.
305950	306570	Right.
306830	313230	So we're going to see, are they going to... this SH64 one.
313230	315050	So I assume that's the 64-bit shellcode.
315050	315770	They've got their payload.
315770	316170	Yeah.
316170	317130	They want to find it.
317130	319530	Sure enough, yeah, they're writing up a find script.
319530	321610	So they're going to look for the bytes within there.
321610	326070	Now, it's worth noting, though, I don't think I've seen anyone actually... they may have done it because they're very fast.
326110	329610	But I don't see anyone actually trigger the sort of test explosion.
329610	329950	Right.
329950	332830	Because the pattern... and we debated this even as we were writing it.
332830	335510	What was it going to look like when you sort of like targeted a spot?
335510	335970	Yeah.
337410	342050	And I think they're also... because what we do is, like I said, we have a page of random data.
342050	346930	And you can kind of like do a test on one of these... on the coordinates.
346930	350390	So we organized this in a 16x256.
350390	350810	Yes.
350810	350950	Yeah.
350950	352590	One page of memory.
352670	354070	So it's 1K, right?
354070	354650	So 16x256.
354650	354830	Yeah.
354830	357950	So 1K, not 1... well, it depends on the size of your...
357950	358690	Or 4K.
358710	359170	Yeah.
359490	360210	Anyway.
360430	361990	So this is a two-dimensional grid.
361990	362830	That's the point.
362830	364010	And you can choose a coordinate.
364010	371650	And it will put a NOP instruction on that coordinate, but also on each coordinate to the left, right, above, and below that.
371650	373870	So it's like a small little cross.
373870	374030	A little explosion.
374030	374190	Yeah.
374190	376950	We debated trying to do like a bigger kind of blast pattern.
376950	379090	And we just decided complexity wasn't worth it.
379090	379870	We wanted to kind of keep...
379870	380270	Oh, there we go.
380270	383210	We've got a Nuke offset over there.
383210	384210	We saw briefly.
384210	387530	So the code actually has the Nuke offset.
388450	392950	So I'm glad that they... because it just says, I think, launch, view, and end test in the actual service itself.
393010	398030	I really appreciate that they get the reference at least because they did name their function Nuke.
398030	399270	So they are aware of that.
399270	399690	Yeah.
399690	400190	Yeah.
400190	410070	So this is basically going to be about, you know, how can you find some of these bytes and make use of them,
410070	416350	and like removing, creating like NOP instructions around them so you only get the useful stuff remaining.
416350	416810	Yes.
416810	422390	And so, again, this is not... your shellcode payload that you start with isn't actually the payload you're ever going to be able to run.
422390	422650	No.
422650	429430	Because a default x64 shellcode payload is going to have lots of multi-byte sequences that are unlikely to show up in this random page.
429430	437510	So what you really are going to have to do is some sort of stager or some sort of like operation that you'll then be able to leverage to put your actual kind of shellcode later.
437530	437570	Yeah.
437570	442430	So we're really looking to see them, you know, you're going to look for like one or two byte opcodes, right?
442430	444210	That's really what you kind of want to see.
444870	445410	Yeah.
445410	450330	We're already... I love like how fast they are into it though, yeah, because we're already...
450330	455010	We're seeing some automation here to like doing a lot of inputs to do all these tests.
455010	458430	But I don't see a lot of NOPs back out, so I'm not sure whether they're...
458430	460150	Are they restarting?
461230	463770	Yeah, also not entirely sure what's going on there.
463770	465510	Oh, no, so we did have a function named nuke, right?
465510	471410	So I think that's where we got the code. The launch menu actually triggers the nuke function, so it makes sense that they would name it similarly.
471610	472010	Right.
473190	477550	So, yeah, well, I think we're going to see...
477550	481790	Right now they're assuming it's the simplest and they can just pinpoint individual bytes.
481830	483550	I don't yet know if...
483550	490770	Once they realize that they don't control an exact byte, as well as that they've got to like...
490770	491570	I don't know. We'll see.
491570	495450	I would think that they would have realized that the exact pattern or shellcode is unlikely to be buried in there,
495450	500610	especially with just kind of a random page with a random seed that was sort of an in-joke.
500910	504170	They could assume that we picked a particular seed for a particular payload.
504170	504410	Right.
504410	508070	We picked not for the payload, but for the seed itself to be able to make that.
508070	512150	And I think the...
512150	518590	What was I going to say? I was going to switch over to MMM and see if we can see here that they are running this in a debugger.
518590	520510	And I saw before... We'll see if we see them again.
520510	525270	They were looking a little bit, I think, at the registers at the time of calling the shellcode.
525270	530770	Because you might get something for free there by having some convenient value in some register.
530770	538970	Not just for free, but just knowing in general the state of things and then knowing where you need to go to either be able to get more bytes in there
538970	542170	or to call an existing function or to jump to other existing code.
542170	543470	Like, whatever you're going to do.
544030	548850	And also there is something, I think, as you said, very unlikely to show up in some of these sequences.
549050	555890	We do give them a good chunk of data, but it's not that big that you would have interesting things.
555890	556870	Yeah, 4,000 bytes.
557910	563450	I will say, we just saw a really brief Google search for from hex Python.
563510	569570	And it warms my heart, because even these people who are an order of magnitude faster and better than me still have to look at documentation.
569570	570870	It does happen.
570990	574830	Now, again, HeadBoy did it so fast that you couldn't even see it.
575070	578410	Yeah, we're watching both of the screens here.
578410	582370	We're trying to switch over and show you all of the interesting things.
582370	584890	But by the time they've done it, it's all gone.
584890	586050	Sometimes it's just too fast.
586050	589950	And these two especially, again, these are the two that have made it the furthest in the competition.
589950	591630	They've won the most matches.
591790	594310	They are two of the fastest hackers in the world.
594310	598110	I don't think there's any question that in terms of raw hacking speed, it's clearly some of the best.
598110	601050	It's absolutely insane.
601570	604410	And I think it's really cool here.
604450	612330	So we are here at the CTF floor at DEF CON, right next to all the teams.
612330	616250	And I think we are getting to the very end of it.
616250	620570	Yeah, I think it's either done now or just in a few more minutes, the actual end of the game is coming down.
620570	625470	So we have a lot of the teams now just standing up and watching the finals, the live stream,
625470	631610	which I think is really cool to see that there is an interest for this, a kind of excitement around this.
631610	637870	And maybe a little bit of they're glad that they're not the ones being spectated and watching what they're doing.
638130	638690	Relief.
638690	642950	So I do see on the right, by the way, here on Hypeboy now, we've got an actual disassembly chunk.
642950	644630	And that's really, I think, what you're going to want to do.
644690	649310	Definitely one of the keys to solving this, certainly at least in our playtest, were find out what's there.
649310	651390	You need to find all the possible opcodes you can get currently.
651390	651430	Absolutely.
651470	659490	Although, so one very like key nuance thing here is that this is disassembled using one particular alignment of this.
659490	663910	But since x86 is like a variable length instruction architecture,
663910	671430	you might want to insert one byte of NOP and look at what if the instruction started next.
671430	673990	You should be dumping your disassembly at every offset.
673990	674050	Right.
674050	680010	Those are your candidate instructions that you're going to have to look for and find some sequence that will let you get the job.
680010	682070	There we go. I saw that over on Jinbo's screen.
682070	685430	Yeah. Let's switch over there. We have a output prop gadget.
685430	686770	Which does exactly that.
686810	689970	Actually, it's going to look... does prop gadget work on just disassembly?
689970	692150	Oh no, they're looking for actual gadgets in the binary.
692150	694470	But you actually need that same kind of approach on the shellcode.
694470	698050	So what I think he was doing, I'm not 100% sure you might see it,
698050	706270	is that he dumped the whole blob to a file and then ran prop gadgets on this raw file to get the gadgets that will...
706270	708550	And that will give you all the offsets. That is going to check everything.
708550	712090	Oh, actually, that's true. But they're not actually prop gadgets because they don't end in a ret instruction.
712090	713730	This is shellcode gadgets.
713750	715190	And there may be...
715190	716410	Maybe they have a thing for that?
716410	720590	Maybe there's a setting in... yeah, we could barely see the command that actually ran.
720590	721850	So we'll have to go back and...
721850	723110	That's very interesting.
724870	729330	All right. So we're over in Hypeboy land. We've got our C2W2M2.
729330	731870	I need to be able to say it faster. I'm not sure how to say it quickly.
731870	738170	I think it's one of those... is it Korean? Hypeboy is a Korean team.
738170	738910	Hypeboy is a Korean team. Correct.
738910	743030	So I've seen this. I think this is like a... I don't know well enough about it.
743030	749850	But this thing with numbers, it's not just random. It means something.
749850	753370	But unfortunately, my knowledge is not good enough there.
753370	757310	Next year, a Korean caster for live CTF so we can...
757310	760710	Yeah. Or just kind of like a small biography of the players.
760710	762450	That's true. We should make them do that.
762450	766410	So I did see... you know, actually, yeah, looking at that...
766410	769290	Look at all those gadgets I found. Those are not the right gadgets.
769290	770390	That's not what you want to do.
770390	770750	Right.
770750	774390	Because those were all limited by jumps or returns at the end of every level.
774390	774870	Right, right, right.
774870	779310	So this is indeed sort of not a great... I mean, it's close to the right idea.
779310	781810	But that's actually limiting a lot of what you can get.
781810	782950	You can do a lot more than that.
782950	785870	Because you're not running a piece and then returning.
785870	787230	You're just going to run them all sequentially.
787230	790690	Whatever you left over after you knocked a bunch is what's going to get run.
790690	794810	Yes. This is shell code or machine code, not ROP chain.
795110	797950	So important distinction there.
798710	804990	And, yeah, I think it seems like they're just searching around for various words, right?
804990	810950	So I guess they will see all instructions at all offsets maybe eventually.
810950	811290	I don't know.
811350	816750	Well, if you make ROP gadget output long enough gadgets.
816750	817990	I think you can filter.
818110	823050	Because sooner or later there will be... well, that's still kind of unlikely.
823050	823450	I don't know.
823450	826710	How does ROP gadget handle things like invalid opcodes or exceptions?
828190	830590	So it still seems a little dicey.
830590	835570	And it would have been the work of a few seconds just to throw it into Capstone or any other kind of disassembler.
835670	838590	And on the other hand, of course, Hypeboy, yeah, we've got them over here using...
838590	839450	I actually haven't seen this one.
839450	842470	Diffuse SCA has just an online assembler or disassembler.
842470	844570	So they're using that to just look at a couple.
844570	847550	They're kind of more in the bespoke process.
848730	852750	And so, again, it looked like, though, they're running at the same kind of limit.
852910	853190	You know what?
853190	853850	Actually, I didn't do it.
853850	855910	I might actually step aside and just go find out.
855910	857310	I don't know the hints for this challenge.
857310	863630	So unless you know what they are, I might go talk to the production crew and get a hint as to the hints.
863630	865070	So we know what they're going to do.
865230	870030	We'll have you go and just check what the hints are going to be when they come back.
870170	873930	And in the meantime, I will keep steering the ship.
874350	880450	We are going to switch back over to MMM and see.
880690	882470	They are looking in the...
882470	883810	What's the file name of their one?
883810	885150	I think that's the dumped...
885750	894190	Right, so I think it seems like they switched over from using a ROP gadget to more like looking at the disassembly of the dumped bytes.
894190	900110	We also, though, see some debugging going on here, checking the contents of the stack.
900730	905330	So maybe figuring out if that could be useful.
905330	917770	So, still haven't quite seen any of the players actually trying to start building anything.
917770	924130	I think it's very much still in analysis and exploration phase of this.
924290	931810	And it's going to be really interesting to see what kind of approach they are actually going to go for and what method to actually solve the challenge.
931810	942790	As I think Jordan mentioned before, you might be able to do the full shellcode directly by not being in the correct places.
943070	950430	I think a probably easier solution would be, as we mentioned, you do a small stager shellcode,
950430	957790	maybe like a read syscall onto right after where you are currently located in execution.
958070	965570	And then you push just your actual shellcode in that second stage, which would then give you the shell.
966330	973450	I mean, there are of course multiple different approaches in this, but I think that would be probably the easiest one.
973450	976330	But we will see what the players are up to.
977110	984950	Switching back over to Hypeboy, we can see a little bit of scripting going on here in their exploit script.
985910	990010	This looks like they were setting up a couple of different interactions with the launch.
990470	993070	So doing different of these noppings.
993070	997950	You can see there was a large block of nops going on there.
997950	1008650	Maybe there was something interesting in the middle of the region, and they wanted to just skip that whole part and go down into the middle.
1008650	1011330	You can see there are different regions there in their script.
1011330	1014850	They are starting doing ranges at different offsets.
1015890	1025270	So you can see them highlighting this 5e byte here, for example, which is I think one of the bytes that they had in their assembled code before.
1026330	1029750	But now we have Jordan back with some information from production.
1029750	1033270	I know what our hints are going to be as we get closer in, when they pull up the hints.
1033270	1039290	Right, so we'll let that sit there for a little bit, and then we have them for later.
1041610	1048110	I'm trying to come up with... I didn't write the hints for this, so I'm just trying to figure out what kind of hints would you actually give for this.
1049290	1054290	Because the structure of the challenge, in some sense, is very straightforward.
1054290	1057310	Yeah, I know. The goal is pretty obvious.
1057630	1068950	It's just a question of what stager, what sort of little shellcode payload are you going to use that's going to either get you unrestricted, or read more, or whatever it is that you're actually going to do.
1070470	1079310	Looking from Hypeboy over to MMM, we now start to see a little bit of nukes.
1079310	1084210	They've created this helper function, nukes, to nuke out a whole range of the memory space.
1084210	1088410	This is very similar to what Hypeboy is doing, but they created a helper function for it here.
1088410	1091490	It's still not clear to me, do they realize the pattern of the nukes though?
1091490	1096310	Because it looks like a sequential nuke range. Maybe they're aware in their head.
1096530	1103270	But it's not like they've, for example, written something that can do a two-dimensional grid of nuked out values, and it will compute all of the...
1103270	1112470	No, it is. You can see the nuke there, it's breaking it up into coordinates there.
1112470	1115310	You can see the offset, and then they do the modulo and the division.
1115770	1118110	I'm sorry to get loose, plural, you're right.
1118290	1125930	No, so the nuke singular is converting the single index into two coordinates.
1126270	1128650	And then the nukes is doing this for a whole range.
1128650	1131510	But my point is, that's only going to give you sort of that line.
1132390	1135650	It's going to give you both the main line as well as the above and below.
1135650	1137950	And that's the part that I'm still waiting to see.
1138650	1141150	Yeah, I'm not seeing that as...
1141150	1146330	Right, so they're still kind of, it seems like they're doing very broad strokes, a bit of a crude...
1146330	1155550	So maybe that's what they're doing. Maybe they're finding roughly the things they want, and they get rid of other stuff, and then they try to...
1155550	1159510	Yeah, so I will say, looking at the hints, the first hint is going to do almost nothing.
1159510	1160850	I don't think it's going to tell them anything.
1161710	1166670	It's basically going to give them a minor hint in terms of, they don't need to check each time, essentially.
1166670	1170610	It's going to tell them they can submit lots of nukes at the same time, which they already know that.
1170610	1172470	So that one, both teams are not going to get help for it.
1172470	1177430	However, the second one is very explicit and gives them a hint about kind of exactly our solution,
1177430	1181170	in terms of where a syscall is and how they might want to set up registers for it.
1181170	1186910	So it lays out at least one solution that we know works that could be followed.
1186910	1190350	So it's a pretty explicit hint.
1190850	1196190	But they might not need it, either because they solved it beforehand or because they have a different approach.
1196190	1200570	Like I said, this is definitely one of those... there are a lot of possible solutions.
1200570	1204490	Almost certainly, there's a lot of solutions in this payload.
1204490	1206890	Absolutely. I was hoping to hear, to see...
1206890	1213470	So I think what you're seeing in the debugger output in the bottom right is the resulting shellcode after the test.
1213470	1218270	You can see a lot of knobs. And then you see there, there's like a push and an ADC instruction.
1218270	1219710	So like, you know, they are getting...
1219710	1222110	Oh, I think they're stepping over it. Yeah, yeah, yeah.
1222390	1230930	But if we do check over to Hypeboy, they are, again, doing these various ranges of numping up.
1230930	1236870	And then you can see there, I think they have this small little stager shellcode that they are aiming for.
1236870	1238910	Like those four instructions.
1239350	1244990	But again, I just don't know that those instructions are going to be... let's see, where was it?
1244990	1246890	Yeah, if we can get back to their code.
1247370	1249530	Now again, we very well could be wrong.
1249530	1253170	They may have a completely valid thing and it may be in the buffer and so it's...
1253170	1255370	So let's think about this for a second.
1255370	1264190	Let's say you would want to do the... like we just want to do a read syscall with the destination being like right after in the shellcode.
1264190	1264710	Right, right, right.
1264710	1269170	So you would need to set the syscall number.
1269170	1275890	You would need to set the destination buffer, the source file descriptor and the length.
1275890	1279550	So you have four registers that you need to set up and then you would need to do a syscall.
1279550	1282470	So at most, five instructions.
1283470	1290730	Depending on what the current registers are, which is what we saw earlier when Jimmo was looking at the current debugger state at the moment of the shellcode.
1290730	1294870	Maybe one of these registers already have a favorable value.
1294870	1299050	Or you could just do like an exchange instead of like a... which is a single byte opcode, right?
1299050	1301010	To be able to swap your registers, you can get that.
1301230	1304950	Of course, that is also the case where you can get more than five instructions because like...
1304950	1308930	Well, maybe it's too much to set... do like immediately just like a move.
1308930	1309750	Yeah, intermediate.
1309770	1313530	Yeah, and then maybe you get two convenient instructions.
1313650	1319270	So I am seeing... okay, so Hyper over there has a couple of opcodes in the middle of their payload that they're looking up.
1319270	1322710	So if they... but again, it's just interesting.
1322710	1325710	It's not a single instruction that you have to run, right?
1325710	1329690	It's because you can't assemble like five bytes with knobs in between that are all parts of an instruction.
1329690	1329770	No, no, no.
1329850	1335770	Like you really have to get contiguous bytes for... so you want either small opcode lengths.
1335770	1336210	Yeah.
1337670	1340130	But I definitely see... yeah, so let's watch this again.
1340130	1343130	If we see with this scrolling up, they're looking for... there we go.
1343130	1344570	They've got a five, seven... okay.
1345610	1346750	So I think they do.
1346750	1348710	I'm really looking forward to kind of keeping an eye on this.
1348710	1349530	I'm going to go back and look at that.
1349530	1351590	They've got some single byte opcodes I think they're going for.
1351590	1354410	So I do think they are trying to create...
1354410	1356550	Right, you can see they're in the middle of the knob block.
1356550	1357170	They have the five apps.
1357170	1360110	From earlier, and they've got a couple of the four, seven that was further up.
1360130	1365530	So they're keeping a couple of these things handy.
1365530	1367690	So I'm just trying... they're tabbing out so quickly.
1367690	1373270	But it looks like most of the instructions they were going for were single byte knob codes.
1373650	1375510	So that's really... so knob code.
1376370	1378850	It's been that long of a competition.
1378850	1379750	Yeah, yeah, yeah.
1381130	1384690	Oh, there's some terrible noise going on in this room, but...
1384690	1387870	I think the contest room is literally being disassembled around us.
1387870	1390870	A lot of the other contests are actually ended, being kicked out of the space.
1390870	1391250	Right.
1391250	1393410	Only CTF here in our little particular corner.
1393410	1396250	Yeah, I hope that sound does not come through on the stream.
1396290	1399810	It's like someone going with a... not a drill, but a...
1399810	1400850	Impact hammer.
1401010	1402930	No, like a screw driver.
1403630	1407070	It's a particular kind of driver that actually hammers it each time, too.
1409250	1412330	I've seen the same thing over there on MMM, where you see there's a bunch of knobs.
1412330	1415370	There's a couple of... so they're definitely building their payloads up.
1415370	1416450	We've got a PopParty. There we go.
1416630	1422090	PopPartyEye is exactly one of those that might get you what you want, depending on if they have a push earlier.
1422170	1425370	Right, or if there was already something convenient on the stack.
1425370	1427310	On the stack, exactly. So there's both possibilities.
1427310	1435290	So, for example, because if it's a call instruction into the shellcode, you will have... no, wait, actually...
1435290	1435990	You'd have the return address.
1435990	1439190	No, which is not really that important.
1439990	1442250	Well, but you might just be able to pop twice, for example.
1442250	1445130	You might be able to pop one and do a register and ignore it, then do another pop.
1445130	1445790	Oh, yeah, yeah.
1446030	1447430	There's other things higher in the stack.
1447430	1451570	Maybe the address of the shellcode area is on the stack.
1451570	1456250	If you pop a few times, you get that, which you then would have as your destination buffer.
1456250	1458750	So that could be an approach.
1461590	1464010	I do think it is funny. We saw this last year as well, too.
1464010	1468630	The further we get in the bracket, the harder it is to commentate because they're so darn fast.
1468650	1470630	They just go at blazing speed.
1470790	1474990	We should have a button that temporarily slows down.
1474990	1477270	I know. We need to be able to pause and push frame, actually.
1477270	1478310	Let's go back to the headboard real quick.
1478690	1482190	We saw the same buffer briefly. They're building their payloads.
1482990	1485730	And I'm wondering, we've got this LEN16 down here.
1485730	1487230	The LEN16, I think, is there.
1487230	1489310	Oh, is that it?
1489310	1494130	The LEN16, I assume, is if they've got their 16 bytes of shellcode that they want to run afterwards.
1494210	1496910	They're checking the length, so the argument they want to set is 16.
1496910	1498390	Right, for the reads.
1499590	1502610	I think both of them look like they're basically doing the same thing.
1502770	1504310	This is sort of our solution.
1504310	1506110	Very, very close.
1506870	1510250	I don't know for certain, but it absolutely feels like they're both very close.
1510350	1512190	It's hard to track it.
1512190	1515350	We can see here, single-stepping through the...
1515750	1517290	There we go. Dump all the bytes.
1517870	1518850	Dumping it out.
1520050	1520890	Checking more.
1521550	1522910	Just all knopped out.
1523070	1524010	Let's see what happens when you knop.
1524010	1526830	They are 10x reverse engineers. Adrian, see you in the chat there.
1526950	1529670	They are very, very, very fast.
1529670	1531370	Okay, what was the byte? Scroll up again.
1531410	1532930	If they saw it, I couldn't. It was too fast.
1533450	1534870	So they've got to step a bunch.
1534870	1537910	You probably want to step 10 times or something.
1538250	1539570	Oh, and now we've gone off the edge of the page.
1539570	1540330	Okay, there's a bunch of null bytes.
1541950	1544070	You've seen that instruction before.
1544070	1545490	The add with the AL.
1545490	1547570	It's like, well, this is no longer...
1547570	1548710	There we go. Push RDI.
1548710	1549390	Push RDI.
1549550	1551790	So we've got to push.
1552030	1553070	There was something else.
1553270	1554250	Pop RSI.
1554250	1555730	So moving registers.
1555730	1557170	And then pop RDI again.
1557170	1558350	So they've saved maybe RDI.
1558730	1561650	So what is the... you have the syscall in racks.
1561650	1563410	There's the syscall at the very end.
1563410	1564390	Okay, so their buffer has it.
1564390	1567050	If they've done the arguments correctly, this actually could be a solution.
1567050	1568750	No, they scrolled. I don't see the register.
1568750	1570130	So RDI is there.
1570130	1571190	So they're at the syscall.
1571190	1573130	But we don't have... so RSI...
1577490	1579170	RDI, RSI, RDX.
1579170	1581050	Is that the syscall?
1581230	1581810	Yeah, yeah, yeah.
1581810	1582410	There we go.
1582410	1583550	RDI, RSI.
1583550	1584970	No, sorry.
1585090	1588130	I think those are the registers of interest here, if I don't misremember.
1588130	1589370	Plus the RAX for the read.
1590070	1590930	I don't know.
1590930	1592330	We've got an accept over on the other side, too.
1592330	1594470	This is the debugger.
1594470	1594930	Right.
1594930	1595770	Hold on.
1595890	1598190	I think we're going to each have to watch our respective screens.
1598190	1598310	Yeah, yeah, yeah.
1598310	1601390	You watch MMM and I'll watch Pipeline.
1601390	1603530	Yeah, this is so close.
1603530	1610490	So they are now doing a send with the generated shellcode from PwnTools.
1610590	1612410	And this is...
1612410	1613570	Oh, my God.
1613670	1616390	They've also got to compute the offset they're going to want to write the bytes to
1616390	1618270	or they're going to have to nuke the rest of the string.
1618310	1619310	Switching the...
1619310	1623670	He had the wrong shellcode because he hadn't set the PwnTools generator
1623670	1626630	because he didn't set the context on D64.
1626630	1627690	Yep, there it goes.
1627690	1630150	So it was the wrong shellcode.
1630970	1632790	And now he's getting the remote...
1633590	1634630	Oh, no. Is it this close?
1634630	1635110	Yeah.
1635110	1635870	This could be it.
1635870	1636550	This could be MMM for the win.
1636550	1637150	This could very much be it.
1637150	1639090	Could MMM keep going and winning?
1639170	1640410	Is this going to run live?
1640410	1640930	Oh, my God.
1641050	1641770	It's running.
1641770	1643070	Is this going towards the remote?
1643070	1644390	Do we have a shell?
1644430	1645510	No, he's now adding the port.
1645510	1646190	Okay, so he did it.
1646190	1647210	I think he did it locally.
1647210	1648510	He got the shell right.
1648510	1649910	And now I think he's running it against the remote.
1649910	1652170	We might have the end of the live safety app.
1652170	1653250	So we have submitter.
1653330	1654410	And is it?
1654870	1655690	Is it?
1657350	1658070	No.
1658070	1658670	Okay.
1658670	1659250	All right.
1659250	1660690	That was nerve-wracking.
1660690	1661490	Oh, my God.
1661490	1662310	Oh, my God.
1662310	1664470	So there's something that didn't quite work there.
1664470	1665670	Something isn't quite there.
1665670	1666190	Yeah.
1666190	1667870	Now, did it work locally?
1667870	1671290	I don't know if I ever saw a shell locally in the Docker.
1671290	1674130	So there's now some troubleshooting that's going to be going on there.
1674290	1674910	Yes.
1675110	1680870	And I'm not seeing us quite as close still over on Hypeboy watching their screen.
1680870	1682470	They're still working through a couple of bytes.
1682470	1685350	Whether it's because they're moving their payload, I'm not sure yet.
1685350	1687450	So I'm going to switch over to Hypeboy and check there.
1688650	1689850	Still calculating the bytes.
1689850	1691230	Still trying to look for them in the payload.
1691230	1692670	Still calculating what's not bad.
1692670	1694370	I think we need to keep an eye over on MMM.
1694370	1696190	Yeah, I'm going to switch back to MMM.
1696190	1701010	He's switching out the shellcode for a cat ETC password to get quicker feedback.
1701730	1704610	And he's just repeating the shellcode.
1704610	1708490	Oh, this is kind of like full-on panic mode.
1708730	1709630	Oh, no.
1709630	1712970	We're trying to get it in there.
1712970	1713070	Is it running?
1713450	1714970	Oh, my God.
1714970	1717190	So, yeah, this is...
1717190	1719110	Well, a hint will do nothing to help you.
1719110	1720250	No, no, no.
1720250	1723770	It's just we can't figure out what's the problem with this payload.
1723770	1726390	They both know everything.
1726390	1730970	So this is going to be so...
1732110	1734510	Oh, is he using some kind of gadget?
1734610	1736490	And let's see.
1736490	1738770	No, but he shouldn't be using any...
1738770	1740190	Interesting.
1740750	1741810	A bunch of reads.
1741810	1743970	So trying to figure out, I guess...
1743970	1748350	Oh, there was an open call to ETC password, right?
1748350	1749590	So it seems to be working.
1749590	1750570	They should be able to run it.
1750570	1752110	Just Submitter 2.
1752110	1754170	Running Submitter 2 in there might even be enough.
1754310	1756490	It could also be a difference between local and remote.
1756490	1757350	Although, are they using...
1757350	1759870	I was trying to see if he was using any, like...
1759870	1763510	But that would only matter for, like, I don't know, libc gadgets, which I haven't seen.
1763510	1765370	There shouldn't be any in the payloads, right?
1765370	1766730	I couldn't think of any differences.
1767130	1773090	So, yeah, that's not entirely sure why it's not working.
1773730	1776890	Oh, this must be so stressful for the players.
1777830	1779930	There was a syscall being made there.
1779930	1781090	We can see in the Ptrace...
1781990	1784490	Sorry, the Strace output.
1785470	1787890	And, yeah, I mean, they could...
1787890	1791770	This is really the situation where, like, you know, you could have it within 10 seconds.
1791830	1793570	Or it could take, like, another 5 minutes.
1793570	1794110	Yeah, yeah.
1794230	1795530	Or even more.
1795810	1797570	And I'm just keeping an eye over on Highboy.
1797570	1798390	We don't have to switch back.
1798390	1798630	No.
1798630	1799590	Just to give you kind of an update.
1799590	1800070	Yeah.
1801030	1801830	I almost...
1801830	1806950	There's this long pause where C2WTM2 kind of, like, looked at it and was just, like...
1806950	1810410	You get the feeling they're not sure if their solution is right.
1810410	1812390	They actually just comment out a whole bunch of code.
1812390	1812770	Right.
1812770	1815490	They're kind of backing off and, like, starting from scratch because they've also run into bugs.
1815490	1816990	They're not getting the payload that they want.
1816990	1819770	So, they're still working on the payload.
1819870	1820450	Yes.
1820450	1823190	Looks here like it's doing the wrong syscall.
1823190	1823750	If I'm reading...
1823750	1826450	The syscall number is wrong.
1826450	1830910	They're getting some 7F address instead of the syscall number.
1830910	1832510	So, maybe...
1832510	1833170	Could it...
1833170	1837950	I don't really see how that would happen, but could it possibly be that, like, one of the registers...
1837950	1838950	It shouldn't be a different state.
1838970	1840570	No, I mean, it shouldn't be.
1840570	1841930	I can't imagine why that would be the case.
1841930	1842850	Yeah, yeah, yeah.
1843270	1845530	It's very, very interesting.
1846470	1846910	But...
1846910	1847350	No, no.
1847350	1848550	There was a syscall zero.
1848550	1850310	So, I think that was fixed.
1851210	1853310	So, now it could really be...
1853310	1855310	Looks like he's swapping out the...
1855950	1856350	Yeah, yeah, yeah.
1856350	1858010	Going back to shellcode.
1858290	1859510	Rerunning that.
1859510	1861850	Sorry, like, shellcode that pops a shell.
1863870	1864350	And...
1865030	1865770	Yeah.
1865870	1869410	We're still going to keep it here on MMM.
1869430	1870170	And see...
1870170	1871330	It looks closer now.
1871330	1871930	Get it here.
1871930	1874630	Now, it feels like they were kind of going back and forth.
1874670	1876490	Remove the sleep.
1876550	1879370	And making another attempt at this.
1880150	1880630	And...
1882070	1886490	Yeah, there's, you know, there's just something that's not quite...
1886490	1887430	Did we run our...
1887430	1890690	We need to check our logs to make sure we ran our test script before.
1890690	1893830	Because we've been ensuring every challenge was solvable by running a solve script.
1893830	1894290	Yeah.
1894290	1895630	And I'm going to go look in our own logs.
1895630	1896490	I want to make sure we ran it.
1896490	1898070	There's not any kind of bug in our infrastructure.
1898070	1900510	I think we're good.
1903110	1904030	We didn't do it.
1904030	1907170	We did, as our standards, we ran a test solve immediately before it.
1907170	1907630	So, our infrastructure...
1907630	1908470	Yeah.
1908470	1911890	So, we have confirmed that we have a reference solution that does work.
1911890	1912070	Okay.
1912190	1912870	Good.
1912870	1915250	I was almost getting a bit nervous.
1915250	1916190	No, no, no, no.
1916190	1917410	Yeah, yeah, yeah.
1917690	1918150	Oh, yeah.
1918150	1923970	Because, you know, we have had our fair share of accidents throughout this event.
1923970	1927530	Although, I think, in general, it's been a pretty smooth ride.
1927690	1929070	Stressful here and there, but...
1929070	1930930	Other than random hardware failures.
1930930	1931590	Yeah, yeah, yeah.
1931590	1935790	The, you know, first day morning was not fun.
1935790	1938930	But we are here and we, yeah.
1939070	1941570	So, Hypo, it still seems like they've kind of walked back their whole payload.
1941570	1942630	They've been rebuilding it.
1942630	1948290	And, again, you can see the process is they're looking for the bytes that they want for their little simple payload.
1948290	1949270	So, there's their payload right there.
1949790	1950350	PushRDIPuppers.
1951050	1951850	What's this?
1951910	1953010	We need to go back, apparently.
1953010	1954290	We're supposed to look at MMM.
1954290	1955110	It sounds like we're close.
1955110	1956770	We got a little update.
1956770	1958130	We needed to keep an eye over there.
1958130	1958750	Okay.
1959930	1961190	I mean, they are close.
1961190	1963890	There's no question about that, but...
1963890	1964170	Right.
1964170	1966410	I still think we're working through stuff.
1966410	1966850	Yeah.
1966870	1968170	I'll keep you an update then.
1968170	1968670	Right.
1968670	1970770	Just Hypo, what the solution is.
1970770	1970930	Yes.
1970930	1972210	We need to keep an eye and make sure we don't miss anything.
1972210	1975670	Oh, they're just dumping in like a big knob sled there.
1975670	1976050	Or like a knob.
1976050	1977190	Maybe just like...
1977190	1979470	Oh, so...
1980430	1986230	I was thinking whether it could be something with the read call and the difference in behavior.
1986230	1987570	Like a flush or...
1987570	1988090	Yeah, yeah, yeah.
1988090	1990670	Like a local versus over the network thing.
1990670	1991030	Yeah.
1991030	1993190	Because the read...
1993730	1995470	You know, it will only...
1995470	1997210	It will probably just give you...
1997210	1999170	If you do one read call, it'll probably just give you...
1999170	2002370	From like a network socket, it'll probably give you just one packet.
2003110	2003850	Right?
2004670	2005070	Or...
2005070	2007230	Like up to that.
2007230	2012610	So there could be a difference there on a read on a local versus over the network.
2012610	2013830	I do want to keep an eye.
2013830	2016390	Because actually, I think both of their payloads are identical.
2016390	2017270	Now that I think about it.
2017270	2019690	I think they really have almost the exact same...
2019690	2023330	Next time HypeBoys comes up, I'm going to try to take a look at it.
2023330	2026350	But it looked like we were seeing a very, very similar push-pop pattern.
2026550	2026930	Excuse me.
2026930	2027930	They both did the register state.
2027930	2029690	They were both looking up for the...
2030350	2031030	But we're seeing...
2031030	2034370	So I'm just watching them do the same thing.
2034370	2037850	They're kind of byte at a time extracting those arguments that they want to back out.
2037930	2038910	Knopping off everything else.
2038910	2041170	And we have absolutely got the rest of the CTF ended.
2041170	2042910	So everyone is standing around the screens.
2042910	2043710	They're watching.
2043730	2044370	Oh, there's a shell.
2044370	2045050	There's a shell.
2045110	2045970	There was a shell.
2047190	2048730	So that must have been local, right?
2048730	2049390	Yeah, yeah, yeah.
2049390	2049950	Okay.
2050130	2053010	So they have a shell popped.
2053010	2055190	So now we're going to see them...
2055190	2056010	Can they run it?
2056590	2057230	Wait, wait.
2057230	2057750	What are they doing?
2057750	2058510	They have a shell?
2059690	2061650	I'm a little bit confused.
2061650	2062230	Why?
2062890	2063850	What's missing?
2065790	2067730	They're looking for another gadget still, it looks like.
2067830	2068470	Okay.
2069690	2071350	Oh, did they cook that?
2071730	2072990	Was that the reason they got the shell?
2072990	2075650	Maybe they did a manual thing in the debugger.
2076390	2078350	Yeah, yeah, yeah.
2078530	2081790	And now they're actually making sure that their payload is actually doing...
2081790	2084890	The first three pops, RSI, RDRX, is our...
2084890	2086610	I should take a picture of my camera.
2086610	2089010	Get my phone on this and do the freeze frame.
2089230	2089850	Yeah, yeah, yeah.
2090410	2092250	But it looks like they have slightly different payloads.
2092250	2093130	So they're not exactly the same.
2093130	2095690	Because I'm seeing more pops over on the MMM side than what...
2096250	2096530	Right.
2096530	2101870	So MMM here has very, very conveniently written out their payload inside the exploit script.
2101870	2102350	It's nice.
2102350	2104130	So it's a push RDX, pop RSI.
2104130	2105130	So they're moving RDX...
2105710	2106190	Into RSI.
2106330	2106890	RSI.
2106890	2109630	And then they're doing pop RDI three times.
2109630	2111450	So they're fetching something that's already on the stack.
2111450	2112630	Yeah, it sounds like that pointer to the buffer.
2112630	2113010	Yeah, yeah, yeah.
2113010	2113750	We talked about that earlier.
2113750	2116070	It's very likely there's a pointer to the buffer previously in the stack.
2116070	2116970	And so they're reusing that.
2116970	2122630	And now they're bringing out strace again to double check that their payload is doing what they expect it to do locally.
2122630	2124790	Now they're switching it to remote.
2125050	2125750	Is that...
2125750	2127010	No, they're looking at debugger though.
2127010	2127910	Okay, there we go.
2128270	2128990	Okay.
2130030	2130990	No, they're still doing...
2131390	2133130	Right, but they were switching the variables.
2133130	2135670	They were switching the host to the remote.
2136690	2138770	Why are they still on the strace window then?
2138770	2139470	Oh, yeah, yeah, yeah.
2139470	2139830	Okay.
2139830	2141290	So now they're checking the other thing.
2141290	2147090	Oh, I see that the syscall number was wrong again there if I saw that correctly.
2147610	2149550	So this is...
2149550	2151250	Oh, my God.
2151250	2153590	This is very stressful.
2153890	2155530	I don't envy either one of them.
2155530	2156210	Oh, no, no, no.
2156210	2157150	Yeah, yeah, yeah.
2157530	2158190	That's really...
2158190	2161130	And now they're doing some manual assembly, finding...
2161130	2162030	Oh, wait.
2162030	2163590	They're finding...
2163590	2169850	Okay, they're finding instructions inside the dumped blob of the challenge.
2170010	2172850	They're looking for some of these gadgets.
2172850	2174070	Let's call them that.
2175090	2177250	Yeah, and...
2178190	2180590	Yeah, they're kind of also reworking their...
2180590	2182950	Yeah, they're reworking their payload now actually.
2182950	2184190	So they're changing it up.
2184190	2189150	So now we have a pushRDX, popRSI, and a pushRAX and popRDI.
2189150	2193850	So moving RDX into RSI and moving RAX into RDI.
2194250	2197690	But then you would still need to set the syscall number there.
2197690	2201030	So we'll see how that will work out.
2201030	2203230	And I'm just watching over here as hype boy essentially.
2203310	2208750	Literally line by line trying to inspect each line of the output and looking for a particular byte.
2208750	2210510	They're not even using any tooling essentially.
2210510	2212430	It's like the most manual process.
2212790	2216270	Line by line, check for what the disassembly of a particular byte is.
2216750	2220130	And then I assume they're trying to keep track in their head how many lines down they are.
2220130	2221870	So they know the offsets of how much to not.
2221870	2226630	But it feels like the kind of thing where they thought they would be faster manually.
2226750	2230790	And if instead they would have written a script to look for those bytes and knock everything else out,
2230790	2232210	they probably would have done it a while ago.
2232450	2235010	It's always this thing when you're in a speed setting.
2235210	2238430	Do manual versus automation.
2239710	2244450	I think there's an appropriate XKCD comic about this with the graphs and the speeds.
2245070	2247390	There's an inflection point where it's worth it and it's not.
2247450	2250570	You don't know until it's too late as to whether you did the right thing or not.
2251650	2257750	I will say it is much easier to read MMM's exploit with their Nuke script versus the multiple lines.
2260090	2262150	Let's go back to MMM.
2262150	2264570	We're seeing some read calls now.
2264570	2265410	And now there's a shell there.
2265410	2266310	Oh my god.
2266310	2268210	So now they managed to switch up the payload a little bit.
2268210	2269030	They managed to fix that up.
2269030	2270870	Now they're throwing it against a remote server.
2271650	2272510	Let's see.
2272510	2273510	What are they doing?
2274450	2275250	Are they running it?
2275250	2275670	Are they running it?
2275970	2276810	We see...
2276810	2277330	No.
2278730	2280730	Oh, it didn't work.
2281130	2281730	Okay.
2281730	2284450	So they're switching the...
2285910	2287250	Cat the submitter.
2287250	2288030	Yeah, yeah, yeah.
2288030	2289210	It's not working remotely.
2289210	2289450	No.
2289450	2291910	So you know what I think it is.
2291910	2293150	You can see what they're sending.
2293150	2297790	They're sending a very large NOP prefix.
2297830	2299870	And I think it might be this local network.
2299870	2301210	So it will get fragmented.
2301210	2307110	And the read call on the remote server will only return a limited chunk of this.
2308910	2311130	I wonder if there's a syscall.
2311230	2313610	If they look for a syscall at the end of the binary.
2313610	2315430	No, but there's a very...
2315430	2319790	Because then the distance between where they're writing is going to be smaller.
2319790	2320270	They don't need to write.
2320270	2323690	So they're writing as their secondary payload a very, very long buffer, right?
2323690	2323930	Yep, yep.
2323930	2327770	If they shorten that buffer there, they don't have to worry about that packet difference.
2328130	2331010	Oh, they're looking for hints.
2331010	2331610	Yeah, yeah, yeah.
2331610	2332550	They're looking for hints.
2333510	2335210	800 seconds until sudden death.
2335270	2335670	Yeah.
2336150	2336910	Oh, no.
2337230	2337510	So...
2337510	2338930	All right, we still have time for sudden death.
2338930	2339770	The hints aren't going to help them.
2339770	2341210	They know exactly what they've got to do.
2341210	2341710	Yeah, yeah, yeah.
2341710	2342570	The hints are not there.
2342570	2344850	But like I said, just looking at that, my guess is...
2344850	2348010	I think the problem they're running into is that NOP payload, as you were saying, is too big.
2348010	2351030	Because they're running into issues with latency on the network versus on the local socket.
2351030	2351970	And they're not being flushed.
2351970	2352270	Yep.
2352270	2356210	So I think what they need to do there is to shorten that NOP payload.
2356210	2362190	If they bring down the NOPs and then they tighten up where the syscall is actually running from where they're writing their bytes into.
2362930	2363130	Right?
2363130	2367250	So, for example, maybe they'd actually need to add something to the...
2367250	2370690	If the pointer they're popping is at the beginning of the buffer, for example, instead of the end of the buffer.
2371010	2371370	Or...
2371370	2376310	I don't know exactly what they're getting at the argument for the destination where the receive is.
2376310	2379690	But it's too far away from where they're writing, which is why they're putting all those NOPs into it.
2379690	2380090	Right.
2380090	2383650	So they need to shrink those up and make them closer together to make that buffer smaller.
2383650	2387570	And manage to somehow add to the...
2387570	2391030	So that it's reading further away.
2391030	2396890	Or if they could find a relative jump later in the payload.
2396890	2397290	Yes.
2397630	2403430	And then still just put their payload in the beginning and do a jump back to the beginning where their stuff would be picked up.
2403430	2409070	The problem is that's easy to reason about if you know that this is the issue.
2409070	2409210	Right.
2409210	2411190	But maybe, you know, this is something you miss.
2411190	2411770	Yeah.
2411770	2413970	So this is like one of the...
2413970	2416390	And we're not even 100% positive that is the issue.
2416390	2416550	No, no, no.
2416550	2417550	This is our best guess.
2417550	2419930	And I think it was a good assumption.
2419930	2420430	Yes.
2420690	2426170	So it is entirely possible that Hypo actually kind of comes from behind this sort of slow and steady pace as they're manually...
2426170	2426590	Right.
2426590	2427690	...creating this still payload.
2427690	2428530	They're still working through it.
2428530	2431810	This has actually bitten me as an organizer sometime.
2431930	2433270	We've got a syscall, by the way, over here.
2433270	2433590	Okay.
2433590	2434330	Let's switch over to Hypo.
2434330	2435150	Let's go back over here.
2435150	2435370	Yeah.
2435370	2438570	Because they do indeed have a syscall and they're looking...
2438570	2441370	They've got a breakpoint.
2441530	2442250	Okay.
2442630	2443930	So they're setting their breakpoint.
2443930	2445510	Let's go ahead and see.
2446890	2449550	They're looking at the register state at the breakpoint.
2449550	2450110	Yeah.
2450730	2454350	And I think there was a zero in the syscall number if I'm not mistaken.
2455250	2456230	And then you see...
2456230	2456270	Okay.
2456270	2456450	Yeah.
2456450	2457110	So it's a syscall.
2457110	2458550	So they are going to call their syscall.
2458550	2460570	They're looking at the arguments to make sure they've got this all right.
2460570	2462390	So what is...
2462390	2464930	They're checking at the contents.
2464930	2467930	So they're checking what RDI is pointing at.
2468030	2469130	Although those look like...
2469130	2470110	There's a movie X zero.
2470110	2471050	It's pointing at the main.
2471050	2471870	So they're actually...
2471870	2472390	Yeah.
2472910	2473230	Hmm.
2473230	2474210	Interesting.
2474750	2479090	I'm not sure I entirely follow what's going on there.
2479090	2483970	But you can definitely see that it is executing the syscall.
2483970	2488450	So that's a very good progress on that part.
2488450	2496090	The problem is still, if we look over on the MMM side, that you have this big knob thing.
2496090	2496430	Right.
2496430	2497750	And this is not going to work.
2497790	2505790	And I was going to say that this has bitten me as an organizer because I have built challenges and then tested them locally on my machine.
2505790	2506030	Yeah.
2506030	2507450	And they worked perfectly fine.
2507450	2514510	But then when we deployed it for the competition, because of this discrepancy, the challenge was almost unsolvable.
2514930	2518230	Speaking of which, I'm going to go talk to the production team and make sure that when we run our tests...
2518230	2518630	No, no, no.
2518630	2523070	We do it from a separate machine.
2524470	2525090	Do we?
2525890	2526170	I...
2526170	2527150	Do we do it from a separate machine?
2527270	2528230	I'm going to go ask.
2528230	2529370	And we're going to make sure that that's the case.
2529370	2530710	Just because I don't want that to be...
2530710	2530990	Yeah.
2531330	2531890	Right.
2532350	2534310	I mean, so you do that.
2534310	2540430	But, of course, in this case, there is definitely ways to do that.
2543250	2544130	And we...
2544130	2550790	Oh, I mean, what I'm saying is that there's definitely ways to solve this anyway, even if this would be the case.
2550790	2556210	But this is still very frustrating for the players.
2556210	2559590	This must be extremely stressful for them.
2560230	2560670	And...
2560670	2566370	So not only are we running it, running our test remotely, we're doing it right now in the competition.
2566370	2566970	Glenn's over there.
2566970	2568150	He's actually tested it.
2568150	2570070	His payload still works.
2570070	2572470	It works on the game infrastructure from another machine.
2572470	2575790	He's not running the submitter, but he is able to verify that it's working.
2575790	2577430	So there's no reason that...
2577430	2578450	So we are...
2578950	2583050	I think we are not to blame here.
2583290	2586250	But it is still heartbreaking to be that close.
2586250	2587930	But I want to switch over to Hypeboy.
2587930	2589690	And we unfortunately just missed it.
2589750	2591530	But what was going on there?
2591530	2594170	I saw a much shorter NOP prefix.
2594710	2595990	Look at the comments.
2595990	2598430	They've commented out most of their lines that are doing the NOP.
2598430	2599090	Right.
2599090	2601450	So they're kind of like starting over.
2601450	2604570	This is actually the third time or second or third time I've seen them do this.
2604570	2607570	Where they're kind of like rethinking everything and starting back over.
2607590	2607750	Yeah.
2607810	2611170	We should probably make sure that we have our sudden death just in case.
2611590	2614170	Because not yet, but we have to have it ready.
2614610	2614910	Yeah.
2614910	2616930	I think they have about ten minutes.
2616930	2618070	We still have another ten minutes, I think.
2618070	2618790	But at some point...
2618790	2621670	I think it's nine minutes or so remaining on the challenge.
2624070	2624430	Which...
2624990	2625710	Yeah.
2625710	2626510	So...
2628070	2631310	It's really interesting to see here.
2631310	2632130	But I think...
2632130	2633610	So he keeps switching it up.
2633610	2637450	But unfortunately, I think that as long as that thing...
2637450	2642810	That long prefix is there, it's not going to work.
2643230	2648190	We have about eight minutes left, I think, until the official 15-minute mark.
2648190	2650870	Which is where we've been calling all sudden deaths.
2650870	2652690	This is the last match of the day, though.
2652690	2654330	I would hate to go to a sudden death.
2654330	2654670	Yeah.
2654670	2656350	But we do actually have a hard stop.
2656350	2659110	Because we have to give these scores to DEF CON.
2659110	2660310	Because they have to go into the final event.
2660310	2660450	Yeah.
2660450	2664130	So we'll have to talk that over and figure out what we're going to do.
2664130	2664510	Yeah.
2664510	2665330	If we get something.
2665330	2666310	Then again, it was...
2666310	2666710	What was it?
2666710	2669990	40 seconds before the sudden death the last time?
2669990	2670350	Oh my god, yeah.
2670350	2671970	It was MMM that even did that?
2671970	2672470	Yeah, yeah.
2672470	2675750	It was not in the previous match, but the match before.
2675750	2677130	Not one right before, but a previous match.
2677290	2678250	Yeah, exactly.
2679550	2684010	And now they are bringing up the distributed libc as well, which is interesting.
2684010	2687030	I wonder what they're going to do.
2687070	2690750	Are they trying to go for a one gadget thing or something?
2690750	2693770	But, yeah, I think the fundamental problem there...
2693770	2695850	Oh, sorry, I'm talking about the wrong screen here.
2695850	2696930	Sorry, I was on over on MMSI.
2696930	2697630	Let's switch over here to MMSI.
2697630	2698570	Yeah, yeah, yeah.
2699090	2700390	Sorry about that.
2700670	2702950	So what just happened on MMSI, it was like...
2702950	2707030	He brought up the libc with distributed with this and he was looking around.
2709550	2713190	Unfortunately, I think there is this fundamental issue with the solution
2713190	2716930	where the payload, the secondary stage is too long.
2716930	2717910	Yeah, yeah.
2717910	2720670	I think they're going to continue to run into that as well.
2720670	2723610	So, honestly, if Hypeboy can actually build their payload
2723610	2726090	and they're able to target it more precisely,
2726090	2731110	get it closer to where their code is being written to,
2731110	2735670	closer to where that syscall instruction is actually being called,
2735670	2738850	that could be the win, but neither...
2738850	2740890	I mean, yeah, it's hard to say.
2741410	2745530	It's rough seeing that go from like a working local and it just not working...
2745530	2746450	Oh, yeah, that must be like...
2746450	2749610	If they lose this, that must be so frustrating.
2749870	2756770	At least we have a plausible hypothesis about why this...
2756770	2760150	Why this particular payload is not working in our particular solution.
2760170	2761670	That's still...
2762250	2764930	Because otherwise it can be very frustrating as a player.
2765350	2768090	If there is something wrong with the challenge or something like this.
2768090	2772270	But I think, in this case, it is actually completely fair.
2772270	2775910	The read call is doing exactly what the read call is supposed to do.
2775910	2778810	It's just that it's very easy to forget about this discrepancy
2778810	2781210	between over-the-network versus local.
2781210	2783890	And there's no easy way to call another flush.
2783890	2786610	To call flush again would actually be a whole other syscall
2786610	2788670	that they have to find and set up and do.
2788730	2792430	Right, and it's not even flush.
2792430	2793930	It's like when you're sending the...
2793930	2797630	I think the read call on the server side will only read...
2797630	2798930	Oh, you would have to do multiple reads?
2798930	2802730	Yes, exactly, but then you would need to adjust the offset.
2802730	2805430	And if you can adjust the offset, you can just do it immediately.
2805430	2806030	Right, right, right.
2808450	2808810	So...
2809190	2811110	So yeah, they're definitely going to have to step back,
2811110	2814810	take a look and do a different payload though.
2815150	2818170	And I am wondering, it's possible too that even if Hypeboy comes up
2818170	2820430	with their solution that works locally, they run into the same problem.
2820430	2822790	It may be that their first attempt does the same thing.
2822790	2823810	Yeah, that would be...
2823810	2827430	We haven't actually seen their shellcode at the end yet,
2827430	2828770	because they've kind of never gotten to the point
2828770	2830930	where even they were able to get it working locally, unfortunately.
2830930	2831550	Right.
2833710	2840070	And how are we doing on time? About five minutes or so left?
2840070	2842350	It looks like we've got about six minutes left.
2842350	2843170	Oh my god.
2843170	2845850	Five and a half minutes before we are scheduled to go to...
2845850	2848410	So I'm going to go ahead and go have a chat with Prod,
2848410	2850170	make sure we're ready with...
2850170	2852630	And I need to actually literally check with Nautilus Institute,
2852630	2854410	because I need to know our hardstop deadline,
2854410	2858910	because we may have a hardstop where we cannot go later to report scores.
2858910	2862770	I want to switch over to MMM, because I saw another shell pop,
2862770	2866590	but as I said, that big, large prefix is still there,
2866590	2869310	so I don't think it's going to make a difference.
2869710	2873890	And oh my god, I cannot imagine being in their shoes right now
2873890	2877630	and having this complete stress of knowing your popped shell locally
2877630	2882890	in six different ways, but it's not working over the network.
2882890	2887030	And unfortunately, the fundamental issue is still there.
2890450	2893430	It's heartbreaking, honestly.
2896130	2900190	I'm not saying that I'm rooting for anyone in particular,
2900190	2905910	but it would be so devastating to be in this situation
2905910	2908410	and then not manage to win.
2908450	2912150	So I'm kind of hoping that they manage to get it through,
2912150	2917690	but yeah, again, once you've kind of gone down the incorrect path
2917690	2922290	and you're kind of locked into that, it's so very difficult to take a step back
2922290	2926530	and go for a different approach, because you're sitting there
2926530	2929490	and you're thinking like, you know, if I just change this little thing,
2929930	2933170	it will work, but I don't think it will, unfortunately.
2933170	2936190	And this is causing problems here.
2938670	2941650	We are queuing up the sudden death. It's not there yet.
2941650	2944030	We just saw a screen a little bit on the screen.
2944030	2945410	They were double-checking the time as well.
2945410	2950610	I think we still have about three minutes left, but it's close.
2950610	2952030	And we are going to queue it up.
2952770	2955230	Unfortunately, I really would love to see the team solve this,
2955230	2960110	but we do have to go with a sudden death just because if they get stuck on this,
2960110	2962610	we can't report a result, which holds up DEF CON,
2962610	2966610	which holds up the main award decision.
2966610	2971270	So it's a bummer, and I would love to have seen this one solved,
2971270	2975010	but right now, although I am seeing...
2975790	2980110	Run line after, they're doing some more interaction here, adding another...
2980930	2982070	They're done with their not...
2982070	2983690	Oh, so they're putting... Oh, that's okay.
2983690	2985090	Yeah, they're doing the exact same problem.
2985930	2987790	That not payload is way too big.
2987790	2989870	That is way too big.
2990670	2994390	If we had multiple other QA testers and we had run into this,
2994390	2996930	we might have known to put a hint earlier, unfortunately.
2996990	3003230	So the problem was that the test solution from our tester was not doing it like this,
3003230	3005830	so they didn't hit this problem, so we didn't even think about it.
3005830	3007050	We didn't foresee it as an issue.
3007050	3009350	If we had, we might have been able to give them better hints.
3009350	3011750	So it's unfortunate, but it does happen.
3011750	3017210	So again, we're about two minutes out from the sudden death,
3017210	3019250	so we're preparing it, getting it ready on the server.
3024130	3026190	It's not looking good, unfortunately.
3026190	3028430	We're still seeing these massive prefixes.
3028430	3029570	Wait, no.
3030250	3033390	They don't know if they're throwing it locally or remotely, but they had something they thought worked.
3033390	3035570	Oh, they're just trying random not blanks.
3035610	3037210	Yeah, and...
3038110	3041350	Yeah, we're going to need to post our solution on Twitter afterwards, so they know that it was...
3041350	3051450	I can imagine there being a certain level of frustration from the players at this moment, but...
3051450	3055970	It happens, and honestly, I think we've had about one sudden death.
3055970	3058070	83 seconds left, it's on the screen right there.
3058070	3060190	Okay, yeah, that's...
3062070	3064670	Yeah, Hypeboy's...
3066150	3067790	Hypeboy's running it.
3071180	3073640	No, I don't think either one...
3075720	3079740	This is very, very tough right now.
3080900	3086280	Doing it remotely again, I think they're just going for desperation now.
3087300	3094780	I don't know, you would like to increase your MTU or something like this?
3094780	3095260	Yeah.
3095260	3097640	I wonder if you could actually make...
3097640	3101460	Because since they are on the same network, it's...
3101460	3104740	Well, I guess that depends on the routers.
3104740	3106460	If the switch supports jumbo frames or not that they're on.
3106460	3109700	Yeah, yeah, which it's a cheap generic switch, so I'm not sure that would have been...
3109700	3113240	No one, I think anyone is even going to think in that direction.
3113240	3114800	Yeah, yeah, I don't think they realize that that's exactly what...
3114800	3118380	I'm not even sure it would work, but, you know, they're not going to try that.
3118580	3120940	Okay, I think we're coming down to just the last few seconds.
3120940	3122520	20 seconds left before it's going to go.
3122520	3126440	20 seconds, we see some more Astrace outputs here.
3127080	3129520	And, yeah, it's truly...
3129520	3132040	Wait a minute, Hypeboy, what is Hypeboy doing? They're copying shellcode.
3132040	3133960	Do they actually have a working shellcode? No.
3133960	3136640	No, because they still have the large prefix.
3136940	3138260	Unless there's something else that was wrong and different.
3138300	3140940	I mean, unless we are completely wrong. Yeah, exactly.
3140940	3143880	If we're wrong and this works, then I don't think there's even enough time, though.
3143880	3144920	It's going to be real close.
3144920	3145680	So they have a shell there.
3145680	3146360	They have a shell.
3146360	3147800	So let's see if they can switch it to remote.
3147800	3149520	But I think they're going to hit the same...
3151600	3152560	Oh, no.
3152560	3155040	I think their team saw the shell.
3155040	3156440	But, again, I don't think it's going to work.
3156580	3157800	They're going to try it remotely.
3157820	3158120	Yeah.
3158120	3159740	And we're just about to go to sudden death.
3162220	3163440	Did he get it in time?
3163940	3165200	Did he actually throw it?
3167560	3168340	Sorry, I'm checking.
3168340	3169580	We got to check our logs now.
3169580	3169700	Yeah.
3169700	3170740	Did it actually happen?
3172080	3172440	Yeah, yeah, yeah.
3172440	3174740	We know, but it wasn't going to work remotely anyway.
3174740	3174900	Yeah, yeah.
3174900	3176320	He's going to have the same problem, I think.
3176320	3176820	Yeah.
3176820	3178500	So, yeah.
3178620	3182500	So we are going to go to a sudden death.
3182500	3183660	I'm just going to go over to...
3183660	3183780	Yeah, yeah, yeah.
3183780	3184500	It wasn't going to work anyway.
3184500	3186260	Yeah, I'm going to go over to production and...
3186260	3187000	Yeah, yeah.
3187940	3189760	The crowd just realized the same thing.
3189760	3190300	Yeah.
3190940	3191900	So, yes.
3191900	3193460	Oh, that is heartbreaking.
3193480	3193740	Yeah.
3193740	3196740	At least let them know it wasn't going to work anyway, probably.
3196740	3197020	Yeah.
3197020	3197560	Yeah.
3197560	3197900	Yeah.
3197900	3199360	We're going to have to explain that to the players.
3199360	3200360	We're going to have to let them know.
3200360	3200600	Yeah, yeah.
3200600	3201660	We're going to get reset.
3201660	3203100	We're going to put this down for just a second.
3203100	3209360	Let's go back to the bracket just for just a second while we reset things.
3209360	3210860	And we'll be back in just a few seconds.
