start	end	text
0	5380	So we're going to talk about how we built our redacted Anodic Sower Badge this year.
7160	10700	Oh, really? I should start with, can you hear me all right?
11180	17280	Now we're golden. And feel free to come closer if you want to ask questions and whatnot.
17700	20620	So yeah, we're going to go over how we did our Anodic Sower Badge this year,
20620	26580	all the fun and challenges we ran into, and reverse engineering snack machines.
28500	43080	Now it's off. We're dying. We've lost mics. No. Does the mic run on Cox internet? All right.
48520	54020	I'm higher on. This is... yeah. Zap's taking care of the snack machine.
56780	61840	So of course, normal disclaimer, this is our fun side thing. We have employers,
61840	65900	like most people do. This does not represent our employers. But more importantly,
66260	70480	this is a community stage. And we didn't really want to give a talk.
70480	74900	We wanted to treat it like community discussion. When we're running our contest, tons of people
74900	79040	want to talk to us about, hey, what was it like making the badge, working with Snacky,
79040	83240	doing different things. And you feel bad because you want to have deep conversations about this
83240	89620	stuff. But you're also running a contest with six, seven, 800 people running around and things
89620	96600	breaking. So don't treat this as a talk. Treat it like a town hall. Politely interrupt us. Ask
96600	104060	questions. I'll do my best to hear and repeat it back so others can hear it. And group discussion.
104060	110060	But we'll use the slides to go through it. And any time you're curious about something, ask.
110060	117840	Same thing? That's good. All right. So we're Anodic Soar. We've been making badges for about
117840	124120	nine years. Different members have come in and out. But if you take a look at the picture, you
124120	128820	can see a lot of the different work we've done over the years. And, yeah, we joke, we make stuff,
128820	134960	drink beer, no particular order. We just have a wide variety of backgrounds. And we like doing
134960	140820	this as a fun, interesting way to learn new things. And I guess that's, like, hey, why do
140820	145280	we do this to ourselves? Because you'll hear people, you know, joke about badges. What do
145280	149500	badges do to you? What's all the stuff that's involved in it? And I don't know. For me, it's
149500	155300	like I like learning new things. Usually on a badge, sometimes we pick stuff that we don't know
155300	160360	how to do so we have an excuse to learn it. Yeah. Building stuff and just seeing how
160360	161000	it works.
161820	171460	DEF CON, DEF CON. Also just providing something that people just like to do.
173280	178000	Yeah, and I think, like, just teaching others, that's always been fun. When we do our CTF,
178000	181840	it's usually a mixture of things. We like putting hardware hacking mostly,
181840	185580	but we'll put reverse engineering, lock picking we've done before,
185580	190340	just different side channel attacks and RF cryptography. It's fun to mix it up that way
190340	199820	it's not fully devoted to one domain or something. Fun fact, if you have friends with kids and
199820	203480	you're worried if your badge will survive DEF CON, as soon as you're done, you give your
203480	207800	prototype to a 3-year-old and let them play with it for a week, it will survive drunk hackers at
207800	216600	DEF CON sometimes. And it's good level of response, 3-year-old. So I would say without further ado,
216600	227520	our badge this year plays Doom. And on the surface, you have a case which resembles a
227520	237400	very recognizable handheld video game device that came out 30 years ago. It's very nostalgic.
237400	243400	And what would I say? We did everything in C. We got firmware that I'll talk about a little bit
243400	247280	later. But yeah, it runs Doom. And if you've never messed with Doom, by the way, if you have
247280	252940	questions about Doom later, throw them out there. At this point, we're probably 16 forks deep on
252940	259700	the version of Doom we're using. And in a nutshell, where we stood on other shoulders,
259700	265080	we had to put custom drivers together, rewriting of the entire control API because we do things
265080	272740	where it's really hard to see a status bar to play Doom. So tap into that API and control the LEDs.
272740	277700	When you get shot, it gets bloody, the LEDs are red. When you shoot, go through ammo,
277700	284300	you have a status of ammunition going downwards, white, et cetera. We've done some other things,
284300	290440	making custom free open source IWOD that can be used. I'll get into that, what the hell that means.
290500	296800	And tying it into a CTS. We do have slides for the hardware.
298220	302540	We have lights on us now. And it's actually more blinding and I can't see anyone.
303180	308500	I appreciate it. So yeah, if you're curious to have a question, you can wave your hand on
308500	313820	something. I think I just wanted to go through what's up with the hardware and what does it
313820	320120	look like at first. Because that is where it starts to look boring. You may not be able to
320120	323880	tell when it's first put on there, but that's like our first rev, where you just have the form
323880	330760	factor, the buttons, you have a little, oh, of course you can't see it. Our RP2040, the Raspberry
330760	337040	Pi microcontroller. It may be too small, but I was going to ask folks, do you see what's wrong
337040	342880	with it? I didn't even catch this problem until the final rev. Does anyone notice what's wrong
342880	354000	on the front plate? No. Introverts. That's one. Start and select are switched. There's another
354000	369000	one. Yeah. What's that? Oh, we don't have SD cards. Yeah. Never again. We've had a bad experience
369000	384340	with SD cards. So we use win bond flash instead. Yeah. So it's funny. No. Then you learn there's
384340	389760	many variants of game boy cases. Yeah. So we didn't catch that. A and B were flipped because
389760	394060	when we were looking at the EDA design tools, depending on the point of view, you see start
394060	399600	select BA. And it wasn't until I started working with the firmware and control that I thought the
399600	403960	engine was just screwed up and I had to remap everything on the inside when our buttons were
403960	411060	backwards. And you never want to build something into a game boy case. I think our assembly
411060	418900	involved 19 different parts and steps and the shit show gets worse. But it works. It's fun.
418900	427080	It's a nostalgic, nice hand feel to it. But you have to have tedious devotion to get through
427080	438840	assembly. It's not fun. I honestly regret suggesting doing a game boy case. Really?
440080	447160	I don't know. Has anyone ever done game boy moddings? Messed them for? Yeah. It's a passion.
447160	452600	Doesn't scale well. But we persevered. I think it's fun. Especially button do. Yeah.
456160	463260	Original, the question was in the other formats. We thought about actually doing the original,
463260	470180	the big brick. And then I think what happened was Zap basically bought the colors by accident
470180	476260	and we just went with that. Lots of planning, right? We're like, just roll with it. And at
476260	480920	was a nice form factor, too, because you're thinking about it like, okay, I can get cases.
480920	485820	It already holds batteries. We'll get into some of the battery stuff on the later revs. But
486600	491460	I'll admit, as much as we complain about the cases, they're actually, it's ergonomic. It
491460	496580	uses certain form factors so you can only put in the parts in one way. It's super useful.
497560	503520	In hindsight, a GBA would have given us better GPIO, especially for Doom. It made it a fun
503520	508580	challenge of button combos to try to take an 8-control system and put it on this.
509280	514980	What's interesting is this is our first batch. We also did lithium-ion for our power source.
515280	521100	Usually we use 3 AAAs or 3 AAs, but because of the form factor, we were limited to just two
521100	530200	batteries. And the RP2040 is highly overclocked so that Doom runs okay-ish on it. And so it's
530200	535960	really, really power hungry. And so we needed the extra lithium to make that work.
536460	540840	Yeah. Anyone that gets them, like, we had to put a, we put a weird sticker on there just saying,
540840	545900	like, you know, RTFM, don't put AAs in here. In fact, they shouldn't have to remove the
545900	551200	batteries at all. These are lipos that are in the form factor of a AA battery.
552200	556420	Yeah. So fully charged circuit in there. But if you put in AAs,
556420	559320	it just won't work because they can't provide enough power.
561320	565720	So this is kind of what, like, the progression looks like from a REV1 to a REV2-3. You start
565720	571280	seeing the yellow. I know you want to talk about that. You want to geek about the charging circuit?
571280	576240	Yeah. So REV2-3 is when we're kind of dialing the charging circuit to make the lithium work
576240	581880	correctly. I think we were using a slightly different stream of REV1-2. Before we said
581880	592060	there. This was when I adapted the hardware one. And then I took over for finishing hardware
592060	595990	two and three, and then eventually four, which is the production version.
598200	604180	I'm a big guy. I've never used ZTAD before. So I basically had to spend about a month and a half
604180	611660	learning ZTAD, another unit tool, to basically finish up REV2 and then REV3. We actually didn't
611660	618040	have any problems with, like, we didn't have any wire mods or anything like that. Everything
618040	622200	kind of just worked. It just was trying to get it to fit in the case. And when you get a different
622200	627780	case and it just still wouldn't fit, figuring out all the different locations of cases that it had
627780	634140	to fit into. Yeah. Okay. So there's a problem I can think of. You guys all made fun of me before.
634140	638300	So you see on that previous one, I got the breadboard with the two wires and the two buttons.
639060	644920	When you program a Pi Pico, you have to put it in boot select mode. Those buttons were
644920	652620	strategically placed on the very bottom of here, where there is you would have an old audio jack
652620	658580	and an old DC in. It's hard to hit them and they were covered by the case. It's fine when you're
658580	664520	designing hardware, but when you're working on flashing firmware and wads and files nonstop
664520	670660	100 times a day, I can't sit there with a paper clip and push them in. So I yanked out wires and
670660	676280	just soldered them in so I could tap buttons to do that. Eventually, a fun mod, if you ever develop
676280	680740	on a RPi 2040 or any of the Raspberry Pi microcontroller lines, because now there's
680740	687420	multiples of them, you can mess with the boot loader selecting, we call it our magic mod rate,
687420	693400	so that if you open a serial connection, you can set it to say, hey, if anything ever tries
693400	700160	to connect to you at 1200 baud, we picked 1337 as our magic baud rate now, but if you just hit it
700160	706160	with 1337 on a serial terminal, it will automatically fall into boot select mode and
706160	710820	reboot, which is wonderful if you want to, you know, speed up your tool chain when you're
710820	719260	developing and just have a script that runs and knocks it in boot select. I bitched quite a bit.
721920	723920	So, and there's the final.
723920	728260	The only difference between REV3 and REV4 was the artwork.
728640	732620	And we were actually just shooting without artwork for a really long time.
732620	734240	I was like, you know how we got to do it.
734680	737420	So that was the artwork that we did.
737420	739300	So it's AI generated.
739300	741520	It just kind of left the artifacts in there.
741520	742560	So like you see, it says,
742560	743280	Doom.
744860	746780	And so it just kind of left that little
747240	748340	sneak streak in there.
748340	749800	It was funny enough.
750940	752280	It's actually kind of unfortunate
752280	754300	that you can't see, like clear cases
754300	756440	aren't kind of cloudy.
756440	757680	You can't actually see how
757680	760180	some screen actually turned out.
761420	762280	True. Yeah.
762280	764300	I think if people had the clear PCBs,
764300	765740	you can actually see them a lot better.
765740	767620	Maybe the black ones, but purple,
767620	770560	I was trying to go with like a Miami Vice color,
770560	772320	cyan teal. It blocks
772320	773760	the PCB altogether.
773760	775560	But, yeah.
777040	777840	A lot
777840	779640	happened the past couple months.
779720	780720	A lot.
781140	783000	Oh, and...
786500	787880	We're full stack.
788020	789560	Got random questions, too.
789640	791020	Throw them at us.
791320	793680	So, yeah, that's my excuse.
793700	795720	We were looking at the slides we're about to turn in
795720	797760	and I was like, oh, shit, we didn't finish those.
797760	799660	But you know what? That's good enough for a slide,
799660	800300	right?
801340	803360	When we were talking earlier,
803360	805300	it runs Doom.
805300	807740	And sometimes people are curious,
807740	809640	how do you put Doom on something?
809980	811680	What is really going on
811680	813100	when you see Doom and
813100	814880	different types of things?
815900	817280	In general,
817280	819320	you see a bunch of variants of Doom
819320	821200	out there. You'll hear people refer to
821200	823360	Vanilla Doom, Chocolate Doom,
824180	825220	Jeezy Doom, you get
825220	828620	all these different variants. In general,
829360	831920	you know what? Vanilla is Vanilla.
831920	833700	It's plain. It is what
833700	834980	id released.
835700	837680	And Chocolate built on it because you're not
837680	839600	going to change what id released.
839600	841660	You're going to keep it as close to the original
841660	843180	port of Doom as possible
844600	845560	with some
845560	847340	fixes that are necessary
847340	850020	but not changing the original source.
850320	851780	And what happens over time
851780	853680	is you have all of these forks where
854280	855760	people want to play original Doom
855760	858000	but they want it in triple super widescreen.
858300	859580	They don't want sprites
859580	861720	that are from six different angles.
861720	863880	They want 32 different angles.
863880	865560	They start doing what's called limit
865560	868000	removing because you have faster computers.
868080	869600	So, a lot of Doom
869600	871580	engines out there and wads that are
871580	872920	generated out there,
873300	875360	they don't work on embedded systems
875360	877620	because they assume a lot
877620	879580	of power horse hungry stuff.
879580	881920	So, we went with Chocolate Doom.
881940	883700	There was a variant of Chocolate
883700	884640	Doom that
885400	887600	I believe the hacker's name was Kilogram that put
887600	889560	it together. He pulled in a lot of fixes
889560	891580	that came in on a Nordic NRF
891580	893700	like BMD 350 mod where
894660	895560	back in the day
895560	897740	when you'd have Doom, Doom was
897740	898700	very much
900800	901320	not
901320	904060	so processor intensive, RAM intensive.
904060	905400	And if you go through the source code
905400	907640	and statically allocate your
907640	909540	variables, you can shift a lot of that
909540	912120	over and shoot through it through processing.
912120	913460	Which, you mentioned, we
913460	915440	doubly overclocked the Pi Pico
915440	917440	at 192
918000	919540	megahertz. I can't even remember how many megahertz
919540	920520	we were running at.
921560	924060	You're just trading processor for RAM.
924120	925740	And so you keep building on these techniques
925740	927400	and it makes it a really nice way to
927400	929500	throw Doom on an embedded system.
929640	931420	Sometimes I'm sure you see random things, people
931420	933720	put Doom on a toothbrush, on this,
933720	935880	on that, and it's just running the demo.
936340	937580	If you're actually trying
937580	939380	to process a lot of other things, networking
939380	941580	stack and mega wads,
941580	942800	it gets rough.
944100	945480	So yeah,
945480	946900	something that we saw on that
946900	948780	that this person ran into
948780	951400	on one of the forks we picked up on,
951400	953040	you start running out of memory.
953200	954940	And the cool thing about doing this
954940	956920	is instead of drawing pixels, it's
956920	958980	running with scan lines like you would on a normal
958980	960680	CRT. And
960680	963040	you only have enough memory to draw about 70,
963040	964840	80% of the screen. So
964840	966860	with it doing scan line drawing, it's
966860	968960	actually a lot more efficient to
968960	970980	go through the graphics rendering.
970980	972840	And then on the HUD, we just
972840	975120	painted a static image on the HUD
975120	977040	because we realized,
977040	979680	one, the screen was too small to even read it,
979680	981020	and two, we
981020	983120	had needed CTF challenges that actually
983120	984720	ran on the badge. So
984720	986700	over there you actually see a certain
986700	988600	hex memory address that's printed
988600	990820	into the status bar that gets
990820	992380	updated during the game,
993320	995240	amongst other things.
995240	996900	So it's like we're drawing 70,
996900	998780	80%, drawing a static image,
998780	1000540	leaving it, and you go through little tricks
1000540	1002180	just to keep memory going up.
1003200	1004480	But yeah, make sure to
1004480	1006900	remember fixing the slide.
1006960	1008540	I think one of the other fun things is just
1008540	1010640	tapping into the API that is used to
1010640	1012560	update the status bar because if
1012560	1014320	you have a badge with bling,
1014320	1016240	why not update it? Why not
1016240	1018420	turn it red when you're getting shot? It's
1018660	1020480	a nice visual indicator for someone who's
1020480	1022300	holding a badge playing Doom to see it
1022300	1024320	glowing red as you're getting lit up
1024320	1026620	or when you fire, it turns white
1026620	1029120	and flashes for you shooting.
1029780	1030700	And then, you know, you just have
1030700	1032740	ammo and health kind of going up the
1032740	1033920	rim on the side.
1034700	1037020	It's a nice visual HUD.
1037080	1038820	I don't think anyone ever paid attention
1038820	1040640	to their health or their ammo count when
1040640	1042800	they played Doom. They just used it until it ran out
1042800	1044820	and then, okay, I'm going to switch to something else and fire
1044820	1045820	on them anyway.
1047520	1048440	I don't know.
1048440	1050620	Any questions about firmware, Doom
1050620	1052520	engines, putting Doom on stuff before we get into
1052520	1054680	the wads and whatnot? Yeah, what's up?
1054680	1056940	Sorry, I can't
1056940	1057640	hear.
1058660	1061000	Did we use the PIOs?
1061740	1062300	Um...
1062300	1064760	I don't think
1064760	1066680	we did. No.
1068560	1069000	Womp
1070800	1071920	womp.
1073560	1074680	Sorry.
1077800	1078720	I will use it next
1078720	1079540	year.
1081040	1082940	So, I tried to make this
1082940	1085440	as messy as possible, right?
1091400	1092440	Yeah.
1097900	1098920	So, for the
1098920	1100520	most part, it's good.
1101840	1103020	I think a couple
1103020	1105320	of things I would go through is this.
1105960	1106700	There's a lot
1107320	1109060	of modders in the Doom community
1109060	1110960	and they've made wonderful tools over
1110960	1112880	the years. Some of those tools are
1112880	1114980	still in use. Some of them are being
1114980	1116880	migrated to bigger tools.
1118000	1119020	One of them that
1119020	1121340	I was primarily using is Slade.
1121420	1122840	Slade is really good
1122840	1125200	if you are making a
1125200	1127520	wad. And I guess I should say wad, unless
1127520	1129620	people don't know, wad stands for
1129620	1132300	where's all the data. It's
1132300	1133580	how the id team
1133580	1135660	used Doom to store all of the
1135660	1137540	core assets of their game. Those
1137540	1138840	assets are referred to as lumps.
1138840	1140640	But where Slade shines is
1140640	1142780	you make wads with it. You really
1142780	1145020	don't want to make maps with it too much.
1145020	1147560	It has a map editor, but it's not that great.
1148000	1148960	There's better
1148960	1150760	tools for Ultimate Doom
1150760	1152940	Builder to work on maps.
1154140	1154920	But what you
1154920	1156840	end up with is a number of things
1156840	1159060	being needed to make that successful.
1159060	1160920	So, the core I started
1160920	1162480	with was FreeDoom.
1162640	1164680	And FreeDoom is free, open
1164680	1166780	source, Doom replacement. I know
1166780	1168940	you see a lot of people make Doom mods
1168940	1170580	and put Doom on things.
1170580	1173260	The Doom engine is open sourced.
1173260	1174740	The IP and
1174740	1176560	the graphics and the music and
1176560	1178860	all those lumps that are in that Doom 1
1178860	1180980	shareware wad are not.
1180980	1183620	They are copyrighted and protected.
1183740	1184960	So, FreeDoom
1184960	1186540	is an open source project to
1186540	1188380	make a community driven
1188380	1191480	Doom alternative where you can drop in the wad.
1191560	1192720	The first problem with that
1192720	1194420	is they rely on
1194420	1196280	limit removing engines that
1196280	1198340	use all these crazy different features and
1198340	1200460	they bundle in Doom, Doom 2,
1200460	1202480	Hexen. So, there's a lot of stuff
1202480	1204300	on there that in their one
1204300	1206380	wad that if you're doing this on
1206380	1208320	your computer, it doesn't matter. But if
1208320	1210160	you're putting it on an embedded system
1210160	1212360	where I only have like a Winbond chip
1212360	1214660	with 8 megs of flash, it's not going to help.
1214760	1216260	So, we started stripping
1216260	1218020	everything out, changing out
1218020	1220740	different sprites, different assets,
1220740	1222380	doing our own editing.
1223460	1224360	Some of the old
1224360	1226400	tools like converting midis to their
1226400	1228500	traditional Muse format only run
1228500	1230300	in DOS. So, I'm running like
1230300	1232120	DOSBox and Linux to run
1232120	1234500	write my own bash scripts.
1235200	1236100	That's when I learned
1236100	1238100	Slate actually had something that did that.
1238100	1240480	I felt stupid for setting up that tool chain.
1240480	1241520	But, yeah, whatever.
1242160	1244420	And then using my Krita and Inkscape
1244420	1246260	Photoshop to put my different sprites
1246260	1247760	together that I was creating.
1247880	1250400	Bundle it all together, bring Chocolate Doom into VS
1250400	1251040	code.
1252000	1254240	Seems messy, goes through.
1254820	1256340	I think the only other reason I put the
1256340	1257940	meme on the side is
1257940	1260440	in general, you wouldn't
1260440	1262060	mess with the core WAD
1262060	1264280	when you work on Doom. The way
1264280	1266440	Doom works is it assumes that core
1266440	1268260	library assets in the WAD exist
1268260	1270420	and a WAD that you're
1270420	1272340	putting out is really a PWAD. It's considered
1272540	1274460	a patch. And when you put
1274460	1276420	different assets in there, it's literally
1276420	1278520	patching it in memory and overwriting
1278520	1280760	those assets with a subset.
1281260	1282320	Because it's an embedded
1282320	1284360	system, we don't have the luxury of
1284700	1286500	a file system where I can have multiple
1286500	1288140	WADs on there. So
1288140	1290580	if you were to look on DoomWiki or go on
1290580	1292440	some of the WAD creators
1292440	1294700	resources, they will light you up
1294700	1296420	if you're like, I'm making my own IWAD
1296420	1298420	because really, people
1298420	1300580	should not be making their own IWAD.
1300580	1302680	It's wasteful. Unless you have
1302680	1304560	your own limited
1304560	1306580	source. The end result
1306580	1308340	of that is we will be
1308340	1310580	open sourcing a
1311420	1312880	fork of free Doom
1312880	1315740	that maps
1315740	1317040	a full mega WAD
1317040	1319140	1, 2, 3 with no other Doom 2
1319140	1321620	or Hexen stuff that is completely
1321620	1323200	free and open source and slim
1323200	1328360	down. So it's great for embedded systems.
1328360	1331100	Well, that's backwards.
1331100	1332960	And I pretty much
1332960	1333380	mentioned that.
1333380	1334460	What does it look like when you're actually
1334460	1336900	editing WADs? It's like a memory editor.
1337320	1338680	It may look like a spreadsheet
1338680	1340260	or a database, but if you
1340260	1342600	even sort things, people sometimes forget
1342600	1344980	that there's memory mappings and memory addressings.
1344980	1346640	And if you just copy-paste stuff in,
1346640	1348500	you can really screw
1348500	1350600	up your Doom engine and Doom game just by
1350600	1352640	putting things wrong in a WAD.
1353240	1354600	And it makes it fun for
1354600	1356440	hiding things in CTS because
1356440	1358360	it's like a giant zip file. I can pad
1358360	1360620	stuff in certain memory locations
1360620	1362640	that, you know, I'm trying to get people to dump
1362640	1364980	ROMs, dig through the source code,
1364980	1366600	dump the WADs, and look for
1366600	1368360	things that we've hidden on the side.
1369740	1370680	I'm about done with
1370680	1372640	the WADs, but I would say the only fun
1372640	1374320	I had is...
1374320	1376560	the most fun I had was
1376560	1378660	you look at how assets
1378660	1380400	are made. A lot of people will
1380400	1382640	open up Blender, you know, take a 3D
1382640	1384700	model, rotate it, take slices.
1384760	1386580	I wanted to make our own rubber chicken weapons
1386580	1388780	and it's kind of stupid,
1388780	1390860	but, you know, you've got a toilet paper tube, some rubber bands
1390860	1392940	and rubber chickens. Record
1393240	1394840	a video and then take time
1394840	1397140	slices and that turns into
1397140	1399200	what I used in the game.
1402580	1405080	And I have to explain to my wife why I'm
1405080	1406900	punching rubber chickens in the
1406900	1408840	wall recording myself. And I'm like, it's for
1408840	1410940	DEF CON. It'll make sense. Trust me.
1411800	1412760	You should all
1412760	1414760	try this. It's actually super fun. I know
1414760	1416940	people are like, oh, I want to make my own Doom WAD.
1416940	1418780	I'm like, take something and just record
1418780	1421220	your hand punching and I don't know.
1421220	1422700	I thought it was kind of fun just to
1422700	1425520	try to do my own reverse stop motion on things.
1429040	1430800	Without dragging it out further, because we want to
1430800	1432860	get to more of the snacky stuff,
1432860	1434400	whether you're following us on Twitter
1434400	1436780	or hearing us gripe,
1437320	1438720	we were releasing
1438720	1440780	something like, yeah, we fucked up.
1441500	1442800	Normally, I'd say a different
1442800	1444740	version or different way to tell what we
1444740	1446700	were talking about was we're
1446700	1448560	usually pretty good about
1448560	1450760	setting a hard date. And it's usually like
1450760	1452660	it was around when we would buy tickets
1452660	1454820	for Derby Con. It would be during the Kentucky Derby
1454820	1456600	like the first week of May and that's when we'd
1456600	1457920	submit our order.
1458560	1460780	We feature creeped ourselves. Some things
1460780	1462700	fell behind schedule, but we always had
1462700	1464560	plenty of slack in times.
1464980	1466640	And without going through the
1466640	1468620	exhausted list, you have
1468740	1470640	a couple of hurricanes hit. You have
1470640	1472640	different things pop up. It kept eating
1472640	1474740	into our slack. And if we hadn't feature
1474740	1476720	creeped ourselves, I know those things are out
1476720	1477640	of control, but
1478720	1480760	the end result is when the big problems
1480760	1482780	happen, like it went to our fab
1482780	1484780	and they sent us pictures early in
1484780	1486620	the morning showing that, hey,
1486620	1488620	you have an eight pad thing
1488620	1490560	for LEDs and
1490560	1492700	we have six on the
1492700	1494640	LEDs. You know, you have the complete wrong
1494640	1496720	part. This
1496720	1498920	was the morning CrowdStrike happened.
1500260	1500780	Try
1500780	1502720	to source LEDs and overnight them to
1502880	1504400	a fab when all air traffic has been
1504400	1506680	grounded, except for UPS
1506680	1508720	or USPS, we
1508720	1510680	use the postal service and it gets delivered to the
1510680	1512500	wrong city three hours away.
1513600	1514840	So, yeah,
1514840	1516580	we've spent the better part of the past
1516580	1518560	two weeks, 20
1518560	1520620	hour days late at work on
1520620	1522580	third shifts, in hotel rooms, in
1522580	1523840	garages,
1525000	1526700	reflowing, hot airing, hand
1526700	1529040	soldering, 14,000
1529040	1529900	LEDs.
1531220	1531800	I think
1531800	1533020	we got a pretty good deal.
1534480	1534980	So,
1536060	1537840	the tail end of some of the badges we were
1537840	1539740	vending, they had little yellow dots.
1539740	1541540	We did ours, but I think about the last
1541540	1543640	hundred or so, they
1543640	1545000	would have one to
1545000	1547260	many LEDs working.
1547340	1549440	Some of them had all of them, but
1549440	1551280	one in the top corner, or
1551760	1553440	maybe half of them were out because
1553440	1555260	the thing just got cooked. And we figured
1555260	1557560	it plays Doom, it still blinks
1557720	1560040	a little bit. People would still rather have them.
1564260	1569620	Yeah, we're going to bring all our
1569620	1571640	spare parts tomorrow. If you want to
1571640	1573860	do kind of an ad hoc workshop,
1573860	1575780	we'll bring all the parts, all the failed boards,
1575780	1577740	we'll show them to people and be like, do you want to have your hand
1577740	1579340	at assembling one of these boards?
1579800	1582020	Assembling everything into a Game Boy case.
1582060	1583660	You think you can fix it? You can
1583660	1585620	have it. Try your best.
1586440	1588340	We'll do that tomorrow.
1591840	1594000	Yeah, other than that,
1594000	1595800	I pretty much summed it up
1595800	1596800	after that where
1597620	1599680	things just kept getting more
1599680	1601780	saddled. Was there anything else funny that
1601780	1603800	happened in that whole debacle?
1604120	1606700	Self-deprecating in that sense.
1607420	1608680	Like, how many
1608680	1611240	miles did LEDs travel?
1611800	1612680	Exactly right.
1612680	1614120	How many different cities did they end up in?
1614120	1614700	Yeah!
1615920	1618900	I know, we...
1618900	1620420	I wish we had the actual numbers.
1620420	1622180	Just think about the...
1622180	1625220	They come from Taiwan, went to San Dimas,
1625220	1626480	they went from San Dimas
1626480	1628420	to Houston, and then from
1628420	1630580	Houston to Dallas. They found out
1630580	1632040	they were wrong in Dallas,
1632540	1634360	and then we had to do a split order where more
1634360	1636300	were coming from Taiwan, and
1636300	1638300	another order was coming from San Dimas, but
1638300	1640020	it didn't go to Dallas, it went to Houston,
1640020	1642740	and the one that was leaving Taiwan, there was a
1642740	1645060	typhoon, and they grounded all DHL.
1645060	1647000	I forgot about the typhoon.
1647000	1649020	Weather isn't our friend.
1649020	1651280	So you're getting five
1651280	1653380	international trips, then they all come back
1653380	1655180	to California, then back to Houston,
1655180	1658540	and then driven to Las Vegas.
1658540	1660660	They've gotten like 30,000 miles on them, at least.
1665560	1666660	Oh yeah,
1666660	1668700	everything on that end goes through Louisville,
1668700	1670400	Kentucky, and because the tornadoes in
1670400	1672420	Louisville a week and a half ago, that
1672420	1674620	got shut down, and things were put on hold
1674620	1676120	at the district center.
1683220	1685300	Yeah, you know,
1685300	1688380	different version
1688380	1690400	of that, because we're all here at the
1690400	1692540	LBCC this year, and whether
1692540	1694420	you're attending as a human, or
1694420	1696780	you volunteer as a goon,
1696780	1698940	or you're in a contest area, or a
1698940	1700960	village,
1701060	1702860	there's a lot going on when you're in
1702860	1704880	a new area. We're all trying to
1704880	1706780	fill it out and learn the ropes
1706780	1709140	and new things. And every now and then,
1709140	1711180	everyone's doing different projects and contests
1711180	1714000	and stuff, and we all run into issues.
1714000	1714960	We had some issues
1714960	1716880	with LEDs this year. We were joking about how
1716880	1719060	we had such issues with SD cards in
1719060	1719540	the past, and
1719540	1721460	you know, people run into
1721460	1723620	technical problems left and
1723620	1725920	right, and that's okay.
1726020	1727440	I think what matters
1727440	1729580	is just trying to persevere through it
1729580	1731500	and realize, hey, we're all
1731500	1733780	human, nothing's perfect,
1733780	1735420	you know, be compassionate and
1735420	1737720	generous towards folks and support them, and
1737720	1739660	maybe you can come... we had friends
1739660	1741180	that never
1741180	1743540	used hot air before, and they're
1743540	1745400	like, hell yeah, I want to learn to hot air
1745400	1747740	something, or reflow something, I want to take that,
1747740	1749120	and I think that's awesome.
1749780	1750540	...
1753360	1754120	...
1756240	1757000	...
1762620	1763380	...
1763380	1763640	...
1763640	1764740	...
1764740	1766100	...
1767900	1768660	...
1768660	1769260	...
1769260	1769560	...
1769560	1769920	...
1772100	1774000	It's a good trigger.
1774000	1774620	...
1775100	1776920	It's making the best decision at the time
1776920	1778920	and making sure it's not a rash decision.
1779480	1780680	So, take
1780680	1782900	some time, think about all the options,
1782900	1784720	pick which is the best one, it might be the wrong
1784720	1786860	one down the road, which has happened to us
1786860	1788480	lots on this field,
1788480	1790720	but it's, at the time, the best
1790720	1792520	decision. You can't let, you know,
1793100	1794600	looking back, you can't beat
1794600	1796480	yourself up at the time you make the best
1796480	1798620	decision. Yeah. But,
1798620	1800760	yeah, I think that's the best way to put it.
1801720	1802700	So, this
1802700	1804880	is where it's more fun. Snacky?
1804880	1806280	Yeah. Down.
1806280	1808100	Down button.
1808340	1809280	...
1811080	1812020	...
1812700	1813840	...
1815000	1815940	...
1817760	1818700	...
1821700	1822640	...
1822640	1823140	...
1823140	1824540	...
1824540	1825080	...
1825080	1825100	...
1825100	1827420	I took it out from my kooka shop
1827420	1828360	that was closing down
1829060	1830480	in Houston, Texas.
1830900	1831380	...
1835700	1836960	So, the first
1836960	1839060	thing was... I'll eat the candy
1839060	1841240	from the head shop at the old vending machine.
1841240	1841920	Yes.
1843980	1845100	You can see it's on my
1845100	1846900	little tiny 4x8
1846900	1848920	trailer there. And
1848920	1850700	badger drive that down the road at
1850700	1852160	six miles an hour, hitting Toppols
1857240	1861220	So, first we are trying to figure out how a stat machine works.
1861420	1865900	What's interesting about stat machines, or any kind of deep-division technology,
1865900	1868960	there's not a lot of information out there about it.
1868960	1873640	The companies that build these things aren't very tight on what information exists.
1874440	1877940	You wouldn't be like, hey, I have an exploit on this machine.
1877940	1879020	You'd be like, we'll see.
1879020	1889380	So anyways, we basically have to reverse-engineer how this one particular stat machine works.
1889860	1895740	So the original board there, it uses a bunch of custom ASICs and controllers,
1895740	1897260	and a bunch of logic.
1898420	1902140	The right part is the whole power subsystem.
1902480	1904660	It has a speaker on it for some reason.
1904660	1905680	It makes noise.
1909080	1911980	And I come to this one part of the screen.
1912140	1913540	I wish I could find this.
1914540	1920740	My idea was basically to take out the custom ASIC, plug it into my controller subsystem,
1920740	1922660	and change the controls on this logic.
1922880	1925680	One of the logic chips is a burger chip.
1926000	1928080	We're going to need channel, we'll need burger.
1928080	1932180	It was just an issue itself, and I'm like, I have no idea what that's going to do.
1932180	1935740	So I figured out how motors work.
1936000	1942700	How these motors work is they have a DC motor matrix, so high side and low side,
1942700	1946780	and they have a switch on it.
1946780	1950040	You'd think the switch is there to let you know you can rotate it once,
1950040	1952180	like a feedback, you have a limit switch.
1952400	1953640	That's not the case.
1953980	1956580	It actually rotates and hits the switch.
1956580	1959360	It actually increases the amount of current.
1959360	1960980	Basically, it's just an increase in current.
1961140	1963020	It's just like a resistor there.
1963220	1969540	And so the logic board is actually just looking for these current pulses on the other system.
1970080	1971360	So basically...
1974840	1977720	So yeah, so this is...
1977720	1980920	I'll talk more about that motor thing a little bit when it comes to the board.
1980920	1985700	But this is also like reverse engineering how the rest of the stack machine works,
1985700	1988860	like how does the keypad work, how does the display work,
1988860	1989680	and all that stuff.
1989680	1993760	So you can see my laptop there, and it's connected to an Arduino,
1993760	1996600	and it's kind of like zip-tied to the side of the machine.
1996660	1998460	And then we put casters on it.
1998460	2001760	Because moving an 800-pound machine, it's really hard by yourself.
2002260	2004700	That's the best design decision on Snacky.
2004700	2006100	It was the first Snacky.
2006640	2010320	If you think about taking something big and heavy to DEF CON,
2010320	2016020	you don't want to drag it, put it on a pallet, or have six people puff it around.
2016580	2019480	Well, because I had to put it on that trailer by myself.
2019980	2021120	And that was my nightmare.
2021880	2028780	What's interesting is the legs of the Snacky machine is a standard for casters.
2028800	2032420	So I was like, oh, I actually want the legs of that Snacky machine.
2032420	2038240	So I was like, oh, I should have had the receipt printer.
2038240	2042020	This was like when I was trying to figure out how to make a thermal printer work.
2043340	2044920	This is what we did.
2045000	2047960	We were trying to make it more of a stand-alone machine.
2048200	2050260	We did pallet contests at the time.
2051320	2054520	So everything had to be super-robust.
2054520	2058200	So we turned this into a normal receipt printer, just kind of sitting off to the side.
2058200	2059460	We made it look a little different.
2059760	2064740	So this is a 90-gram model of a TS thermal printer.
2064740	2067100	But we bought it on eBay.
2067520	2068960	And it was like $200.
2068960	2071800	You can kind of buy it now, like an offer.
2071800	2075220	We offered $69, and we accepted it.
2076560	2078240	So here's a custom print.
2078240	2082740	So this is basically reverse-engineering how all the peripherals in the machine works.
2082740	2087660	We basically built this circuit board to control that circuit.
2088220	2092740	It's called one piece in the motors.
2093820	2098020	And so what it uses two Arduino Vegas.
2098020	2102300	Because at the time, the world supply chain was in crisis.
2102300	2106260	And I had two Arduino Vegas in my drawer, which is what we used.
2106700	2109280	And I just basically used all the little parts I had.
2109280	2112180	I wrote a little report about the machines and that kind of stuff.
2112560	2115200	On the left side, you can see...
2116260	2117740	In the middle is like...
2118860	2120300	It's called like the cache.
2121000	2124820	It's where all the components are stored.
2124820	2127300	So that's where we actually store all our custom electronics.
2127520	2129440	So you can see where the warrants are.
2129440	2131420	And actually, it actually uses the same part.
2131460	2141360	We have a big power supply.
2141540	2143560	That's the big silver box.
2144340	2146580	Lots and lots and lots of electronics.
2146580	2151260	We kind of modified the pointer term.
2151260	2153080	That's our enter button.
2153280	2157000	The right side is like...
2157580	2160260	The whole thing brought up.
2163100	2165980	Any questions so far?
2177590	2180270	I think the question is, it went down earlier.
2180270	2182410	Is it possible to make it all self-contained?
2183010	2185150	Yeah, so it's an IST machine.
2186670	2189250	So it connects through a database in the cloud.
2189250	2192810	And that's how we know all the codes are...
2196490	2199730	So that's how it knows if the codes are valid or not.
2199730	2203150	I guess you could run that in there, but it's easier to...
2209670	2214870	I mean, it can run disconnected, but it doesn't like it.
2214870	2215150	Yeah.
2215150	2217170	And you get different problems.
2217170	2221590	It basically runs for like 30 seconds and goes, oh, I lost connection to the internet.
2221590	2223430	My database is not up to date anymore.
2223710	2224110	Yeah.
2224770	2226910	But that gives us a full security stack.
2227190	2229490	And it did not crash with CrowdStrike.
2229490	2230750	Yeah, it did not crash.
2231450	2233490	So this is year two.
2233490	2237290	We took a lot of what we learned from the first year, which was basically up to four.
2237290	2238870	The first year, it ran on Wi-Fi.
2238990	2240870	We had people de-authenticate all the time.
2240870	2242490	We went to hardware.
2244770	2246590	Originally, it ran on a Raspberry Pi.
2246590	2248990	It's a control object.
2249270	2254730	And we switched over to just a x86-based thing, like running on a PC.
2255490	2259190	And we put it inside some nice little PBMs, keyboards.
2259190	2261310	And we actually had it all self-contained.
2261790	2264950	And then we added the marquee display at the top.
2265550	2269310	So it can display GIFs, videos, that kind of stuff.
2269710	2271290	Take a question about Snacky.
2271290	2275370	And then we added HAL 9000, or Snacky 9000.
2275370	2280610	Which is our infrared and Morse code style challenges.
2288490	2291170	Oh yeah, so here's the current.
2291170	2292870	This is like this year's.
2293210	2294630	We added a speaker.
2296130	2303690	Upgrading our display to a higher resolution to be like that 1920x1960, which is really weird to make hard assets for.
2305370	2307310	It frustrates everyone in the team.
2307310	2310030	So like this year's, now you don't have to involve that ratio.
2310030	2314450	You can just make whatever simple letterbox or stretch or whatever.
2314450	2316230	Whatever it actually decides to do.
2316230	2317650	Focus on that image.
2319130	2323250	We upgraded our heat source for the thermal printer.
2323470	2325650	Which we actually think is a downgrade now.
2325650	2329710	Because we have people having problems scanning that heat source code now.
2329730	2332790	So trying to find the original source of the heat.
2333790	2335750	We added more LEDs.
2336350	2340550	And now it has a PoE switch in it for future expansion.
2340550	2345150	So we're hoping to bring like more themes for our contest and hooking up to it.
2346010	2347430	I like that PoE.
2347430	2350810	Yeah, we put a transmitter in there too for all that.
2352130	2354290	So everything we're trying to add on.
2354290	2357830	We added a speaker.
2357830	2361670	It's really easy and modular how we designed the software.
2361870	2363670	And the hardware solutions.
2363670	2365570	So it's easy to add on.
2365910	2368050	It probably needs a refactor now.
2368050	2371250	Because it has like one big Python script that runs everything.
2371470	2373290	We probably need to fix that.
2373450	2374190	Yeah.
2375070	2376010	Okay.
2378250	2379450	Perfect.
2380850	2382970	So actually this is...
2382970	2384590	Because we...
2389470	2395930	I should say, do you want to try and build a badge out of cannibalized parts?
2395930	2397610	Which may work.
2397610	2399370	Come visit us tomorrow.
2400510	2403910	Or just come check out Snacky and mess with the press buttons.
2407310	2408270	Yay.
2409250	2411110	Any questions?
2411170	2412190	Related?
2412250	2413510	Or not?
2413830	2415510	You have us for...
2415510	2416830	I don't know.
2416830	2417570	They have to tell me.
2417570	2418480	Four more minutes?
2422090	2425370	Oh, Jesus.
2439370	2440170	Oh.
2440710	2442470	We're getting caned off stage.
2442770	2443590	How about this?
2443590	2445790	If you have questions, follow us right up there.
