WEBVTT

00:00.000 --> 00:05.380
So we're going to talk about how we built our redacted Anodic Sower Badge this year.

00:07.160 --> 00:08.380
Oh, really?

00:08.380 --> 00:10.700
I should start with, can you hear me all right?

00:11.180 --> 00:12.520
Now we're golden.

00:12.700 --> 00:17.280
And feel free to come closer if you want to ask questions and whatnot.

00:17.700 --> 00:26.580
So yeah, we're going to go over how we did our Anodic Sower Badge this year, all the fun and challenges we ran into, and reverse engineering snack machines.

00:28.500 --> 00:31.140
Now it's off.

00:31.780 --> 00:33.180
We're dying.

00:33.240 --> 00:35.500
We've lost mics.

00:35.800 --> 00:36.920
No.

00:37.260 --> 00:41.060
Does the mic run on Cox internet?

00:41.660 --> 00:43.080
All right.

00:48.520 --> 00:50.020
I'm higher on.

00:50.020 --> 00:51.960
This is... yeah.

00:51.960 --> 00:54.020
Zap's taking care of the snack machine.

00:56.780 --> 01:01.020
So of course, normal disclaimer, this is our fun side thing.

01:01.020 --> 01:03.080
We have employers, like most people do.

01:03.080 --> 01:04.800
This does not represent our employers.

01:04.800 --> 01:07.840
But more importantly, this is a community stage.

01:07.840 --> 01:10.480
And we didn't really want to give a talk.

01:10.480 --> 01:12.680
We wanted to treat it like community discussion.

01:12.680 --> 01:20.200
When we're running our contest, tons of people want to talk to us about, hey, what was it like making the badge, working with Snacky, doing different things.

01:20.200 --> 01:24.120
And you feel bad because you want to have deep conversations about this stuff.

01:24.200 --> 01:30.420
But you're also running a contest with six, seven, 800 people running around and things breaking.

01:30.420 --> 01:33.000
So don't treat this as a talk.

01:33.000 --> 01:34.500
Treat it like a town hall.

01:34.860 --> 01:36.380
Politely interrupt us.

01:36.380 --> 01:37.300
Ask questions.

01:37.300 --> 01:41.660
I'll do my best to hear and repeat it back so others can hear it.

01:41.660 --> 01:44.060
And group discussion.

01:44.060 --> 01:46.200
But we'll use the slides to go through it.

01:46.200 --> 01:50.060
And any time you're curious about something, ask.

01:50.060 --> 01:51.680
Same thing?

01:52.100 --> 01:53.040
That's good.

01:53.040 --> 01:53.920
All right.

01:54.500 --> 01:56.320
So we're Anodic Soar.

01:56.320 --> 01:59.420
We've been making badges for about nine years.

01:59.820 --> 02:01.900
Different members have come in and out.

02:01.900 --> 02:06.980
But if you take a look at the picture, you can see a lot of the different work we've done over the years.

02:07.220 --> 02:11.220
And, yeah, we joke, we make stuff, drink beer, no particular order.

02:11.340 --> 02:13.620
We just have a wide variety of backgrounds.

02:13.620 --> 02:18.440
And we like doing this as a fun, interesting way to learn new things.

02:18.760 --> 02:21.820
And I guess that's, like, hey, why do we do this to ourselves?

02:21.820 --> 02:25.080
Because you'll hear people, you know, joke about badges.

02:25.080 --> 02:26.200
What do badges do to you?

02:26.200 --> 02:28.260
What's all the stuff that's involved in it?

02:28.260 --> 02:29.080
And I don't know.

02:29.080 --> 02:31.880
For me, it's like I like learning new things.

02:32.360 --> 02:37.960
Usually on a badge, sometimes we pick stuff that we don't know how to do so we have an excuse to learn it.

02:38.180 --> 02:38.560
Yeah.

02:38.560 --> 02:41.000
Building stuff and just seeing how it works.

02:41.820 --> 02:44.720
DEF CON, DEF CON.

02:48.020 --> 02:51.460
Also just providing something that people just like to do.

02:53.280 --> 02:56.820
Yeah, and I think, like, just teaching others, that's always been fun.

02:56.820 --> 02:59.920
When we do our CTF, it's usually a mixture of things.

02:59.920 --> 03:08.620
We like putting hardware hacking mostly, but we'll put reverse engineering, lock picking we've done before, just different side channel attacks and RF cryptography.

03:08.720 --> 03:14.820
It's fun to mix it up that way it's not fully devoted to one domain or something.

03:16.480 --> 03:29.540
Fun fact, if you have friends with kids and you're worried if your badge will survive DEF CON, as soon as you're done, you give your prototype to a 3-year-old and let them play with it for a week, it will survive drunk hackers at DEF CON sometimes.

03:30.580 --> 03:33.040
And it's good level of response, 3-year-old.

03:34.380 --> 03:39.900
So I would say without further ado, our badge this year plays Doom.

03:40.000 --> 03:53.900
And on the surface, you have a case which resembles a very recognizable handheld video game device that came out 30 years ago.

03:54.560 --> 03:56.600
It's very nostalgic.

03:57.060 --> 03:58.580
And what would I say?

03:58.580 --> 04:00.420
We did everything in C.

04:00.540 --> 04:03.860
We got firmware that I'll talk about a little bit later.

04:03.860 --> 04:05.260
But yeah, it runs Doom.

04:05.260 --> 04:09.860
And if you've never messed with Doom, by the way, if you have questions about Doom later, throw them out there.

04:09.860 --> 04:15.240
At this point, we're probably 16 forks deep on the version of Doom we're using.

04:15.840 --> 04:29.720
And in a nutshell, where we stood on other shoulders, we had to put custom drivers together, rewriting of the entire control API because we do things where it's really hard to see a status bar to play Doom.

04:29.720 --> 04:32.740
So tap into that API and control the LEDs.

04:32.740 --> 04:35.980
When you get shot, it gets bloody, the LEDs are red.

04:35.980 --> 04:41.840
When you shoot, go through ammo, you have a status of ammunition going downwards, white, et cetera.

04:42.860 --> 04:47.640
We've done some other things, making custom free open source IWOD that can be used.

04:47.640 --> 04:50.440
I'll get into that, what the hell that means.

04:50.500 --> 04:52.760
And tying it into a CTS.

04:53.020 --> 04:56.800
We do have slides for the hardware.

04:58.220 --> 05:00.000
We have lights on us now.

05:00.000 --> 05:02.540
And it's actually more blinding and I can't see anyone.

05:03.180 --> 05:04.660
I appreciate it.

05:04.860 --> 05:09.300
So yeah, if you're curious to have a question, you can wave your hand on something.

05:10.260 --> 05:14.540
I think I just wanted to go through what's up with the hardware and what does it look like at first.

05:14.540 --> 05:16.800
Because that is where it starts to look boring.

05:18.980 --> 05:27.560
You may not be able to tell when it's first put on there, but that's like our first rev, where you just have the form factor, the buttons, you have a little, oh, of course you can't see it.

05:28.180 --> 05:32.600
Our RP2040, the Raspberry Pi microcontroller.

05:33.440 --> 05:37.860
It may be too small, but I was going to ask folks, do you see what's wrong with it?

05:38.580 --> 05:41.220
I didn't even catch this problem until the final rev.

05:41.220 --> 05:44.380
Does anyone notice what's wrong on the front plate?

05:46.280 --> 05:47.100
No.

05:47.500 --> 05:48.140
Introverts.

05:50.400 --> 05:51.220
That's one.

05:51.220 --> 05:52.920
Start and select are switched.

05:53.380 --> 05:55.160
There's another one.

05:55.380 --> 05:56.880
Yeah.

05:57.720 --> 05:59.620
What's that?

06:00.340 --> 06:02.700
Oh, we don't have SD cards.

06:03.220 --> 06:04.380
Yeah.

06:04.860 --> 06:06.460
Never again.

06:06.460 --> 06:10.280
We've had a bad experience with SD cards.

06:10.420 --> 06:12.340
So we use win bond flash instead.

06:15.000 --> 06:15.720
Yeah.

06:15.760 --> 06:17.600
So it's funny.

06:20.560 --> 06:21.360
No.

06:23.520 --> 06:26.260
Then you learn there's many variants of game boy cases.

06:26.860 --> 06:27.080
Yeah.

06:27.080 --> 06:28.480
So we didn't catch that.

06:28.480 --> 06:35.360
A and B were flipped because when we were looking at the EDA design tools, depending on the point of view, you see start select BA.

06:36.020 --> 06:44.860
And it wasn't until I started working with the firmware and control that I thought the engine was just screwed up and I had to remap everything on the inside when our buttons were backwards.

06:46.140 --> 06:50.040
And you never want to build something into a game boy case.

06:50.040 --> 06:56.640
I think our assembly involved 19 different parts and steps and the shit show gets worse.

06:56.640 --> 06:58.200
But it works.

06:58.200 --> 06:58.900
It's fun.

06:58.900 --> 07:01.660
It's a nostalgic, nice hand feel to it.

07:01.660 --> 07:07.760
But you have to have tedious devotion to get through assembly.

07:07.760 --> 07:09.540
It's not fun.

07:11.880 --> 07:17.260
I honestly regret suggesting doing a game boy case.

07:17.760 --> 07:18.840
Really?

07:20.080 --> 07:20.520
I don't know.

07:20.520 --> 07:22.740
Has anyone ever done game boy moddings?

07:23.240 --> 07:24.340
Messed them for?

07:24.340 --> 07:24.760
Yeah.

07:24.760 --> 07:27.160
It's a passion.

07:27.160 --> 07:28.700
Doesn't scale well.

07:28.700 --> 07:29.780
But we persevered.

07:29.780 --> 07:30.900
I think it's fun.

07:31.200 --> 07:32.020
Especially button do.

07:32.020 --> 07:32.600
Yeah.

07:36.160 --> 07:39.800
Original, the question was in the other formats.

07:39.800 --> 07:43.980
We thought about actually doing the original, the big brick.

07:44.040 --> 07:51.900
And then I think what happened was Zap basically bought the colors by accident and we just went with that.

07:52.300 --> 07:53.680
Lots of planning, right?

07:53.680 --> 07:55.600
We're like, just roll with it.

07:55.640 --> 08:00.920
And at was a nice form factor, too, because you're thinking about it like, okay, I can get cases.

08:00.920 --> 08:02.520
It already holds batteries.

08:03.080 --> 08:05.780
We'll get into some of the battery stuff on the later revs.

08:05.780 --> 08:11.280
But I'll admit, as much as we complain about the cases, they're actually, it's ergonomic.

08:11.280 --> 08:15.300
It uses certain form factors so you can only put in the parts in one way.

08:15.300 --> 08:16.580
It's super useful.

08:17.560 --> 08:22.360
In hindsight, a GBA would have given us better GPIO, especially for Doom.

08:22.360 --> 08:28.580
It made it a fun challenge of button combos to try to take an 8-control system and put it on this.

08:29.280 --> 08:31.680
What's interesting is this is our first batch.

08:31.680 --> 08:34.980
We also did lithium-ion for our power source.

08:35.280 --> 08:42.000
Usually we use 3 AAAs or 3 AAs, but because of the form factor, we were limited to just two batteries.

08:42.240 --> 08:48.720
And the RP2040 is highly overclocked so that Doom runs okay-ish on it.

08:49.200 --> 08:51.800
And so it's really, really power hungry.

08:51.840 --> 08:55.960
And so we needed the extra lithium to make that work.

08:56.460 --> 08:56.820
Yeah.

08:56.820 --> 09:04.420
Anyone that gets them, like, we had to put a, we put a weird sticker on there just saying, like, you know, RTFM, don't put AAs in here.

09:04.420 --> 09:06.760
In fact, they shouldn't have to remove the batteries at all.

09:06.760 --> 09:11.200
These are lipos that are in the form factor of a AA battery.

09:12.200 --> 09:12.880
Yeah.

09:13.240 --> 09:15.100
So fully charged circuit in there.

09:15.100 --> 09:19.320
But if you put in AAs, it just won't work because they can't provide enough power.

09:21.320 --> 09:25.500
So this is kind of what, like, the progression looks like from a REV1 to a REV2-3.

09:25.500 --> 09:26.660
You start seeing the yellow.

09:27.600 --> 09:29.120
I know you want to talk about that.

09:29.120 --> 09:31.280
You want to geek about the charging circuit?

09:31.280 --> 09:31.460
Yeah.

09:31.460 --> 09:37.000
So REV2-3 is when we're kind of dialing the charging circuit to make the lithium work correctly.

09:37.320 --> 09:41.320
I think we were using a slightly different stream of REV1-2.

09:41.360 --> 09:43.160
Before we said there.

09:45.220 --> 09:49.540
This was when I adapted the hardware one.

09:49.600 --> 09:55.990
And then I took over for finishing hardware two and three, and then eventually four, which is the production version.

09:58.200 --> 09:59.420
I'm a big guy.

09:59.420 --> 10:02.380
I've never used ZTAD before.

10:02.380 --> 10:09.660
So I basically had to spend about a month and a half learning ZTAD, another unit tool, to basically finish up REV2 and then REV3.

10:10.740 --> 10:17.900
We actually didn't have any problems with, like, we didn't have any wire mods or anything like that.

10:17.900 --> 10:18.920
Everything kind of just worked.

10:18.920 --> 10:21.440
It just was trying to get it to fit in the case.

10:21.560 --> 10:28.800
And when you get a different case and it just still wouldn't fit, figuring out all the different locations of cases that it had to fit into.

10:29.380 --> 10:29.860
Yeah.

10:29.860 --> 10:30.240
Okay.

10:30.240 --> 10:32.100
So there's a problem I can think of.

10:32.420 --> 10:34.140
You guys all made fun of me before.

10:34.140 --> 10:38.300
So you see on that previous one, I got the breadboard with the two wires and the two buttons.

10:39.060 --> 10:43.440
When you program a Pi Pico, you have to put it in boot select mode.

10:43.620 --> 10:54.580
Those buttons were strategically placed on the very bottom of here, where there is you would have an old audio jack and an old DC in.

10:54.580 --> 10:57.660
It's hard to hit them and they were covered by the case.

10:57.680 --> 11:08.500
It's fine when you're designing hardware, but when you're working on flashing firmware and wads and files nonstop 100 times a day, I can't sit there with a paper clip and push them in.

11:08.500 --> 11:13.780
So I yanked out wires and just soldered them in so I could tap buttons to do that.

11:14.660 --> 11:30.920
Eventually, a fun mod, if you ever develop on a RPi 2040 or any of the Raspberry Pi microcontroller lines, because now there's multiples of them, you can mess with the boot loader selecting, we call it our magic mod rate, so that if you open a serial connection,

11:30.920 --> 11:48.940
you can set it to say, hey, if anything ever tries to connect to you at 1200 baud, we picked 1337 as our magic baud rate now, but if you just hit it with 1337 on a serial terminal, it will automatically fall into boot select mode and reboot, which is wonderful if you want to,

11:48.940 --> 11:54.620
you know, speed up your tool chain when you're developing and just have a script that runs and knocks it in boot select.

11:56.580 --> 11:59.260
I bitched quite a bit.

12:01.920 --> 12:03.920
So, and there's the final.

12:03.920 --> 12:08.260
The only difference between REV3 and REV4 was the artwork.

12:08.640 --> 12:12.620
And we were actually just shooting without artwork for a really long time.

12:12.620 --> 12:14.240
I was like, you know how we got to do it.

12:14.680 --> 12:17.420
So that was the artwork that we did.

12:17.420 --> 12:19.300
So it's AI generated.

12:19.300 --> 12:21.520
It just kind of left the artifacts in there.

12:21.520 --> 12:23.280
So like you see, it says, Doom.

12:24.860 --> 12:28.340
And so it just kind of left that little sneak streak in there.

12:28.340 --> 12:29.800
It was funny enough.

12:30.940 --> 12:36.440
It's actually kind of unfortunate that you can't see, like clear cases aren't kind of cloudy.

12:36.440 --> 12:40.180
You can't actually see how some screen actually turned out.

12:41.420 --> 12:42.100
True.

12:42.100 --> 12:42.280
Yeah.

12:42.280 --> 12:45.740
I think if people had the clear PCBs, you can actually see them a lot better.

12:45.740 --> 12:51.460
Maybe the black ones, but purple, I was trying to go with like a Miami Vice color, cyan teal.

12:51.460 --> 12:53.760
It blocks the PCB altogether.

12:53.760 --> 12:55.560
But , yeah.

12:57.040 --> 12:59.640
A lot happened the past couple months.

12:59.720 --> 13:00.720
A lot.

13:01.140 --> 13:03.000
Oh, and...

13:06.500 --> 13:07.880
We're full stack.

13:08.020 --> 13:09.560
Got random questions, too.

13:09.640 --> 13:11.020
Throw them at us.

13:11.320 --> 13:13.680
So, yeah, that's my excuse.

13:13.700 --> 13:17.760
We were looking at the slides we're about to turn in and I was like, oh, shit, we didn't finish those.

13:17.760 --> 13:18.380
But you know what?

13:18.380 --> 13:20.300
That's good enough for a slide, right?

13:21.340 --> 13:25.300
When we were talking earlier, it runs Doom.

13:25.300 --> 13:29.640
And sometimes people are curious, how do you put Doom on something?

13:29.980 --> 13:34.880
What is really going on when you see Doom and different types of things?

13:35.900 --> 13:39.960
In general, you see a bunch of variants of Doom out there.

13:39.960 --> 13:46.860
You'll hear people refer to Vanilla Doom, Chocolate Doom, Jeezy Doom, you get all these different variants.

13:46.940 --> 13:50.380
In general, you know what?

13:50.520 --> 13:51.920
Vanilla is Vanilla.

13:51.920 --> 13:52.780
It's plain.

13:52.780 --> 13:54.980
It is what id released.

13:55.700 --> 13:59.600
And Chocolate built on it because you're not going to change what id released.

13:59.600 --> 14:10.020
You're going to keep it as close to the original port of Doom as possible with some fixes that are necessary but not changing the original source.

14:10.320 --> 14:18.000
And what happens over time is you have all of these forks where people want to play original Doom but they want it in triple super widescreen.

14:18.300 --> 14:21.720
They don't want sprites that are from six different angles.

14:21.720 --> 14:23.880
They want 32 different angles.

14:23.880 --> 14:28.000
They start doing what's called limit removing because you have faster computers.

14:28.080 --> 14:39.580
So, a lot of Doom engines out there and wads that are generated out there, they don't work on embedded systems because they assume a lot of power horse hungry stuff.

14:39.580 --> 14:41.920
So, we went with Chocolate Doom.

14:41.940 --> 14:48.360
There was a variant of Chocolate Doom that I believe the hacker's name was Kilogram that put it together.

14:48.360 --> 15:04.060
He pulled in a lot of fixes that came in on a Nordic NRF like BMD 350 mod where back in the day when you'd have Doom, Doom was very much not so processor intensive, RAM intensive.

15:04.060 --> 15:12.120
And if you go through the source code and statically allocate your variables, you can shift a lot of that over and shoot through it through processing.

15:12.120 --> 15:18.400
Which, you mentioned, we doubly overclocked the Pi Pico at 192 megahertz.

15:18.400 --> 15:20.520
I can't even remember how many megahertz we were running at.

15:21.560 --> 15:24.060
You're just trading processor for RAM.

15:24.120 --> 15:29.500
And so you keep building on these techniques and it makes it a really nice way to throw Doom on an embedded system.

15:29.640 --> 15:35.880
Sometimes I'm sure you see random things, people put Doom on a toothbrush, on this, on that, and it's just running the demo.

15:36.340 --> 15:42.800
If you're actually trying to process a lot of other things, networking stack and mega wads, it gets rough.

15:44.100 --> 15:53.040
So yeah, something that we saw on that that this person ran into on one of the forks we picked up on, you start running out of memory.

15:53.200 --> 16:00.160
And the cool thing about doing this is instead of drawing pixels, it's running with scan lines like you would on a normal CRT.

16:00.200 --> 16:04.560
And you only have enough memory to draw about 70, 80% of the screen.

16:04.560 --> 16:10.980
So with it doing scan line drawing, it's actually a lot more efficient to go through the graphics rendering.

16:10.980 --> 16:24.280
And then on the HUD, we just painted a static image on the HUD because we realized, one, the screen was too small to even read it, and two, we had needed CTF challenges that actually ran on the badge.

16:24.280 --> 16:35.240
So over there you actually see a certain hex memory address that's printed into the status bar that gets updated during the game, amongst other things.

16:35.240 --> 16:42.180
So it's like we're drawing 70, 80%, drawing a static image, leaving it, and you go through little tricks just to keep memory going up.

16:43.200 --> 16:46.900
But yeah, make sure to remember fixing the slide.

16:46.960 --> 16:55.700
I think one of the other fun things is just tapping into the API that is used to update the status bar because if you have a badge with bling, why not update it?

16:55.700 --> 16:58.240
Why not turn it red when you're getting shot?

16:58.240 --> 17:09.120
It's a nice visual indicator for someone who's holding a badge playing Doom to see it glowing red as you're getting lit up or when you fire, it turns white and flashes for you shooting.

17:09.780 --> 17:13.920
And then, you know, you just have ammo and health kind of going up the rim on the side.

17:14.700 --> 17:17.020
It's a nice visual HUD.

17:17.080 --> 17:21.380
I don't think anyone ever paid attention to their health or their ammo count when they played Doom.

17:21.380 --> 17:25.820
They just used it until it ran out and then, okay, I'm going to switch to something else and fire on them anyway.

17:27.520 --> 17:28.440
I don't know.

17:28.440 --> 17:33.800
Any questions about firmware, Doom engines, putting Doom on stuff before we get into the wads and whatnot?

17:33.800 --> 17:34.680
Yeah, what's up?

17:34.680 --> 17:37.640
Sorry, I can't hear.

17:38.660 --> 17:41.000
Did we use the PIOs?

17:41.740 --> 17:42.300
Um...

17:42.300 --> 17:45.740
I don't think we did.

17:45.920 --> 17:46.680
No.

17:48.560 --> 17:51.920
Womp womp.

17:53.560 --> 17:54.680
Sorry.

17:57.800 --> 17:59.540
I will use it next year.

18:01.040 --> 18:05.440
So, I tried to make this as messy as possible, right?

18:11.400 --> 18:12.440
Yeah.

18:17.900 --> 18:20.520
So, for the most part, it's good.

18:21.840 --> 18:25.320
I think a couple of things I would go through is this.

18:25.960 --> 18:31.700
There's a lot of modders in the Doom community and they've made wonderful tools over the years.

18:31.700 --> 18:34.120
Some of those tools are still in use.

18:34.120 --> 18:36.880
Some of them are being migrated to bigger tools.

18:38.000 --> 18:41.340
One of them that I was primarily using is Slade.

18:41.420 --> 18:45.380
Slade is really good if you are making a wad .

18:45.380 --> 18:50.520
And I guess I should say wad, unless people don't know, wad stands for where's all the data.

18:50.520 --> 18:56.560
It's how the id team used Doom to store all of the core assets of their game.

18:56.560 --> 18:58.840
Those assets are referred to as lumps.

18:58.840 --> 19:01.980
But where Slade shines is you make wads with it.

19:01.980 --> 19:05.020
You really don't want to make maps with it too much.

19:05.020 --> 19:07.560
It has a map editor, but it's not that great.

19:08.000 --> 19:12.940
There's better tools for Ultimate Doom Builder to work on maps.

19:14.140 --> 19:19.060
But what you end up with is a number of things being needed to make that successful.

19:19.060 --> 19:22.480
So, the core I started with was FreeDoom.

19:22.640 --> 19:26.460
And FreeDoom is free, open source, Doom replacement.

19:26.460 --> 19:30.580
I know you see a lot of people make Doom mods and put Doom on things.

19:30.580 --> 19:33.260
The Doom engine is open sourced.

19:33.260 --> 19:40.980
The IP and the graphics and the music and all those lumps that are in that Doom 1 shareware wad are not.

19:40.980 --> 19:43.620
They are copyrighted and protected.

19:43.740 --> 19:51.480
So, FreeDoom is an open source project to make a community driven Doom alternative where you can drop in the wad.

19:51.560 --> 20:01.300
The first problem with that is they rely on limit removing engines that use all these crazy different features and they bundle in Doom, Doom 2, Hexen.

20:01.300 --> 20:07.480
So, there's a lot of stuff on there that in their one wad that if you're doing this on your computer, it doesn't matter.

20:07.520 --> 20:14.660
But if you're putting it on an embedded system where I only have like a Winbond chip with 8 megs of flash, it's not going to help.

20:14.760 --> 20:22.380
So, we started stripping everything out, changing out different sprites, different assets, doing our own editing.

20:23.460 --> 20:29.080
Some of the old tools like converting midis to their traditional Muse format only run in DOS.

20:29.080 --> 20:34.500
So, I'm running like DOSBox and Linux to run write my own bash scripts.

20:35.200 --> 20:38.100
That's when I learned Slate actually had something that did that.

20:38.100 --> 20:40.480
I felt stupid for setting up that tool chain.

20:40.480 --> 20:41.520
But, yeah, whatever.

20:42.160 --> 20:47.760
And then using my Krita and Inkscape Photoshop to put my different sprites together that I was creating.

20:47.880 --> 20:51.040
Bundle it all together, bring Chocolate Doom into VS code.

20:52.000 --> 20:54.240
Seems messy, goes through.

20:54.820 --> 21:03.960
I think the only other reason I put the meme on the side is in general, you wouldn't mess with the core WAD when you work on Doom.

21:03.960 --> 21:11.940
The way Doom works is it assumes that core library assets in the WAD exist and a WAD that you're putting out is really a PWAD.

21:11.940 --> 21:13.480
It's considered a patch.

21:13.540 --> 21:20.760
And when you put different assets in there, it's literally patching it in memory and overwriting those assets with a subset.

21:21.260 --> 21:27.900
Because it's an embedded system, we don't have the luxury of a file system where I can have multiple WADs on there.

21:27.940 --> 21:40.580
So if you were to look on DoomWiki or go on some of the WAD creators resources, they will light you up if you're like, I'm making my own IWAD because really, people should not be making their own IWAD.

21:40.580 --> 21:41.480
It's wasteful.

21:41.580 --> 21:45.580
Unless you have your own limited source.

21:45.880 --> 22:03.020
The end result of that is we will be open sourcing a fork of free Doom that maps a full mega WAD 1, 2, 3 with no other Doom 2 or Hexen stuff that is completely free and open source and slim down.

22:03.020 --> 22:05.040
So it's great for embedded systems.

22:07.120 --> 22:08.900
Well, that's backwards .

22:09.900 --> 22:11.680
And I pretty much mentioned that.

22:12.040 --> 22:15.420
What does it look like when you're actually editing WADs?

22:15.420 --> 22:16.900
It's like a memory editor.

22:17.320 --> 22:24.980
It may look like a spreadsheet or a database, but if you even sort things, people sometimes forget that there's memory mappings and memory addressings.

22:24.980 --> 22:32.640
And if you just copy-paste stuff in, you can really screw up your Doom engine and Doom game just by putting things wrong in a WAD.

22:33.240 --> 22:37.780
And it makes it fun for hiding things in CTS because it's like a giant zip file.

22:37.780 --> 22:48.360
I can pad stuff in certain memory locations that, you know, I'm trying to get people to dump ROMs, dig through the source code, dump the WADs, and look for things that we've hidden on the side.

22:49.740 --> 22:54.320
I'm about done with the WADs, but I would say the only fun I had is...

22:54.320 --> 22:59.520
the most fun I had was you look at how assets are made.

22:59.520 --> 23:04.700
A lot of people will open up Blender, you know, take a 3D model, rotate it, take slices.

23:04.760 --> 23:11.900
I wanted to make our own rubber chicken weapons and it's kind of stupid, but, you know, you've got a toilet paper tube, some rubber bands and rubber chickens.

23:12.520 --> 23:19.200
Record a video and then take time slices and that turns into what I used in the game.

23:22.580 --> 23:28.280
And I have to explain to my wife why I'm punching rubber chickens in the wall recording myself.

23:28.280 --> 23:29.300
And I'm like, it's for DEF CON.

23:29.300 --> 23:30.120
It'll make sense.

23:30.120 --> 23:30.940
Trust me.

23:31.800 --> 23:33.280
You should all try this.

23:33.280 --> 23:34.500
It's actually super fun.

23:34.500 --> 23:36.940
I know people are like, oh, I want to make my own Doom WAD.

23:36.940 --> 23:41.220
I'm like, take something and just record your hand punching and I don't know.

23:41.220 --> 23:45.520
I thought it was kind of fun just to try to do my own reverse stop motion on things.

23:49.040 --> 24:00.780
Without dragging it out further, because we want to get to more of the snacky stuff, whether you're following us on Twitter or hearing us gripe, we were releasing something like, yeah, we fucked up.

24:01.500 --> 24:09.960
Normally, I'd say a different version or different way to tell what we were talking about was we're usually pretty good about setting a hard date.

24:09.960 --> 24:13.620
And it's usually like it was around when we would buy tickets for Derby Con.

24:13.620 --> 24:17.920
It would be during the Kentucky Derby like the first week of May and that's when we'd submit our order.

24:18.560 --> 24:20.320
We feature creeped ourselves.

24:20.320 --> 24:24.560
Some things fell behind schedule, but we always had plenty of slack in times.

24:24.980 --> 24:30.180
And without going through the exhausted list, you have a couple of hurricanes hit.

24:30.180 --> 24:31.920
You have different things pop up.

24:31.920 --> 24:33.600
It kept eating into our slack.

24:33.600 --> 24:53.460
And if we hadn't feature creeped ourselves, I know those things are out of control, but the end result is when the big problems happen, like it went to our fab and they sent us pictures early in the morning showing that, hey, you have an eight pad thing for LEDs and we have six on the LEDs.

24:53.460 --> 24:55.560
You know, you have the complete wrong part.

24:56.200 --> 24:58.920
This was the morning CrowdStrike happened.

25:00.260 --> 25:12.500
Try to source LEDs and overnight them to a fab when all air traffic has been grounded, except for UPS or USPS, we use the postal service and it gets delivered to the wrong city three hours away.

25:13.600 --> 25:29.900
So, yeah, we've spent the better part of the past two weeks, 20 hour days late at work on third shifts, in hotel rooms, in garages, reflowing, hot airing, hand soldering, 14,000 LEDs.

25:31.220 --> 25:33.020
I think we got a pretty good deal.

25:34.480 --> 25:39.740
So, the tail end of some of the badges we were vending, they had little yellow dots.

25:39.740 --> 25:47.260
We did ours, but I think about the last hundred or so, they would have one to many LEDs working.

25:47.340 --> 25:54.720
Some of them had all of them, but one in the top corner, or maybe half of them were out because the thing just got cooked.

25:54.720 --> 25:58.140
And we figured it plays Doom, it still blinks a little bit.

25:58.140 --> 26:00.040
People would still rather have them.

26:04.260 --> 26:10.700
Yeah, we're going to bring all our spare parts tomorrow.

26:10.700 --> 26:19.340
If you want to do kind of an ad hoc workshop, we'll bring all the parts, all the failed boards, we'll show them to people and be like, do you want to have your hand at assembling one of these boards?

26:19.800 --> 26:22.020
Assembling everything into a Game Boy case.

26:22.060 --> 26:23.380
You think you can fix it?

26:23.380 --> 26:24.200
You can have it.

26:24.200 --> 26:25.620
Try your best.

26:26.440 --> 26:28.340
We'll do that tomorrow.

26:31.840 --> 26:40.240
Yeah, other than that, I pretty much summed it up after that where things just kept getting more saddled.

26:40.240 --> 26:43.800
Was there anything else funny that happened in that whole debacle?

26:44.120 --> 26:46.700
Self-deprecating in that sense.

26:47.420 --> 26:51.240
Like, how many miles did LEDs travel?

26:51.800 --> 26:52.680
Exactly right.

26:52.680 --> 26:54.120
How many different cities did they end up in?

26:54.120 --> 26:54.700
Yeah!

26:55.920 --> 26:58.900
I know, we...

26:58.900 --> 27:00.420
I wish we had the actual numbers.

27:00.420 --> 27:02.180
Just think about the...

27:02.180 --> 27:09.680
They come from Taiwan, went to San Dimas, they went from San Dimas to Houston, and then from Houston to Dallas.

27:09.700 --> 27:22.860
They found out they were wrong in Dallas, and then we had to do a split order where more were coming from Taiwan, and another order was coming from San Dimas, but it didn't go to Dallas, it went to Houston, and the one that was leaving Taiwan, there was a typhoon ,

27:22.860 --> 27:24.540
and they grounded all DHL.

27:24.540 --> 27:26.500
I forgot about the typhoon.

27:26.500 --> 27:27.940
Weather isn't our friend.

27:28.400 --> 27:36.380
So you're getting five international trips, then they all come back to California, then back to Houston, and then driven to Las Vegas.

27:37.900 --> 27:40.660
They've gotten like 30,000 miles on them, at least.

27:45.560 --> 27:56.120
Oh yeah, everything on that end goes through Louisville, Kentucky, and because the tornadoes in Louisville a week and a half ago, that got shut down, and things were put on hold at the district center.

28:03.220 --> 28:23.600
Yeah, you know, different version of that, because we're all here at the LBCC this year, and whether you're attending as a human, or you volunteer as a goon, or you're in a contest area, or a village , there's a lot going on when you're in a new area.

28:23.600 --> 28:27.540
We're all trying to fill it out and learn the ropes and new things.

28:27.620 --> 28:33.000
And every now and then, everyone's doing different projects and contests and stuff , and we all run into issues.

28:33.420 --> 28:35.680
We had some issues with LEDs this year.

28:35.680 --> 28:45.920
We were joking about how we had such issues with SD cards in the past , and you know, people run into technical problems left and right, and that's okay.

28:46.020 --> 29:02.860
I think what matters is just trying to persevere through it and realize, hey, we're all human, nothing's perfect, you know, be compassionate and generous towards folks and support them, and maybe you can come... we had friends that never used hot air before,

29:02.860 --> 29:09.120
and they're like, hell yeah, I want to learn to hot air something, or reflow something, I want to take that, and I think that's awesome.

29:09.780 --> 29:10.540
...

29:13.360 --> 29:14.120
...

29:16.240 --> 29:17.000
...

29:22.620 --> 29:23.380
...

29:23.380 --> 29:23.640
...

29:23.640 --> 29:24.740
...

29:24.740 --> 29:26.100
...

29:27.900 --> 29:28.660
...

29:28.660 --> 29:29.260
...

29:29.260 --> 29:29.560
...

29:29.560 --> 29:29.920
...

29:32.100 --> 29:34.000
It's a good trigger.

29:34.000 --> 29:34.620
...

29:35.100 --> 29:38.920
It's making the best decision at the time and making sure it's not a rash decision.

29:39.480 --> 29:51.300
So, take some time, think about all the options, pick which is the best one, it might be the wrong one down the road, which has happened to us lots on this field, but it's, at the time, the best decision.

29:51.300 --> 29:56.960
You can't let, you know, looking back, you can't beat yourself up at the time you make the best decision.

29:56.960 --> 29:57.580
Yeah.

29:58.000 --> 30:00.760
But, yeah, I think that's the best way to put it.

30:01.720 --> 30:04.280
So, this is where it's more fun.

30:04.280 --> 30:04.880
Snacky?

30:04.880 --> 30:05.840
Yeah.

30:05.840 --> 30:06.280
Down.

30:06.280 --> 30:08.100
Down button.

30:08.340 --> 30:09.280
...

30:11.080 --> 30:12.020
...

30:12.700 --> 30:13.840
...

30:15.000 --> 30:15.940
...

30:17.760 --> 30:18.700
...

30:21.700 --> 30:22.640
...

30:22.640 --> 30:23.140
...

30:23.140 --> 30:24.540
...

30:24.540 --> 30:25.080
...

30:25.080 --> 30:25.100
...

30:25.100 --> 30:30.480
I took it out from my kooka shop that was closing down in Houston, Texas.

30:30.900 --> 30:31.380
...

30:35.700 --> 30:41.240
So, the first thing was... I'll eat the candy from the head shop at the old vending machine.

30:41.240 --> 30:41.920
Yes.

30:43.980 --> 30:48.640
You can see it's on my little tiny 4x8 trailer there.

30:48.820 --> 30:52.160
And badger drive that down the road at six miles an hour, hitting Toppols

30:57.240 --> 31:01.220
So, first we are trying to figure out how a stat machine works.

31:01.420 --> 31:08.960
What's interesting about stat machines, or any kind of deep-division technology, there's not a lot of information out there about it.

31:08.960 --> 31:13.640
The companies that build these things aren't very tight on what information exists.

31:14.440 --> 31:17.940
You wouldn't be like, hey, I have an exploit on this machine.

31:17.940 --> 31:19.020
You'd be like, we'll see.

31:19.020 --> 31:29.380
So anyways, we basically have to reverse-engineer how this one particular stat machine works.

31:29.860 --> 31:37.260
So the original board there, it uses a bunch of custom ASICs and controllers, and a bunch of logic.

31:38.420 --> 31:42.140
The right part is the whole power subsystem.

31:42.480 --> 31:44.660
It has a speaker on it for some reason.

31:44.660 --> 31:45.680
It makes noise.

31:49.080 --> 31:51.980
And I come to this one part of the screen.

31:52.140 --> 31:53.540
I wish I could find this.

31:54.540 --> 32:02.660
My idea was basically to take out the custom ASIC, plug it into my controller subsystem, and change the controls on this logic.

32:02.880 --> 32:05.680
One of the logic chips is a burger chip.

32:06.000 --> 32:08.080
We're going to need channel, we'll need burger.

32:08.080 --> 32:12.180
It was just an issue itself, and I'm like, I have no idea what that's going to do.

32:12.180 --> 32:15.740
So I figured out how motors work.

32:16.000 --> 32:26.780
How these motors work is they have a DC motor matrix, so high side and low side, and they have a switch on it.

32:26.780 --> 32:32.180
You'd think the switch is there to let you know you can rotate it once, like a feedback, you have a limit switch.

32:32.400 --> 32:33.640
That's not the case.

32:33.980 --> 32:36.580
It actually rotates and hits the switch.

32:36.580 --> 32:39.360
It actually increases the amount of current.

32:39.360 --> 32:40.980
Basically, it's just an increase in current.

32:41.140 --> 32:43.020
It's just like a resistor there.

32:43.220 --> 32:49.540
And so the logic board is actually just looking for these current pulses on the other system.

32:50.080 --> 32:51.360
So basically...

32:54.840 --> 32:57.720
So yeah, so this is...

32:57.720 --> 33:00.920
I'll talk more about that motor thing a little bit when it comes to the board.

33:00.920 --> 33:09.680
But this is also like reverse engineering how the rest of the stack machine works, like how does the keypad work, how does the display work, and all that stuff.

33:09.680 --> 33:16.600
So you can see my laptop there, and it's connected to an Arduino, and it's kind of like zip-tied to the side of the machine.

33:16.660 --> 33:18.460
And then we put casters on it.

33:18.460 --> 33:21.760
Because moving an 800-pound machine, it's really hard by yourself.

33:22.260 --> 33:24.700
That's the best design decision on Snacky.

33:24.700 --> 33:26.100
It was the first Snacky.

33:26.640 --> 33:36.020
If you think about taking something big and heavy to DEF CON, you don't want to drag it, put it on a pallet, or have six people puff it around.

33:36.580 --> 33:39.480
Well, because I had to put it on that trailer by myself.

33:39.980 --> 33:41.120
And that was my nightmare.

33:41.880 --> 33:48.780
What's interesting is the legs of the Snacky machine is a standard for casters.

33:48.800 --> 33:52.420
So I was like, oh, I actually want the legs of that Snacky machine.

33:52.420 --> 33:58.240
So I was like, oh, I should have had the receipt printer.

33:58.240 --> 34:02.020
This was like when I was trying to figure out how to make a thermal printer work.

34:03.340 --> 34:04.920
This is what we did.

34:05.000 --> 34:07.960
We were trying to make it more of a stand-alone machine.

34:08.200 --> 34:10.260
We did pallet contests at the time.

34:11.320 --> 34:14.520
So everything had to be super-robust.

34:14.520 --> 34:18.200
So we turned this into a normal receipt printer, just kind of sitting off to the side.

34:18.200 --> 34:19.460
We made it look a little different.

34:19.760 --> 34:24.740
So this is a 90-gram model of a TS thermal printer.

34:24.740 --> 34:27.100
But we bought it on eBay.

34:27.520 --> 34:28.960
And it was like $200.

34:28.960 --> 34:31.800
You can kind of buy it now, like an offer.

34:31.800 --> 34:35.220
We offered $69, and we accepted it.

34:36.560 --> 34:38.240
So here's a custom print.

34:38.240 --> 34:42.740
So this is basically reverse-engineering how all the peripherals in the machine works.

34:42.740 --> 34:47.660
We basically built this circuit board to control that circuit.

34:48.220 --> 34:52.740
It's called one piece in the motors.

34:53.820 --> 34:58.020
And so what it uses two Arduino Vegas.

34:58.020 --> 35:02.300
Because at the time, the world supply chain was in crisis.

35:02.300 --> 35:06.260
And I had two Arduino Vegas in my drawer, which is what we used.

35:06.700 --> 35:09.280
And I just basically used all the little parts I had.

35:09.280 --> 35:12.180
I wrote a little report about the machines and that kind of stuff.

35:12.560 --> 35:15.200
On the left side, you can see...

35:16.260 --> 35:17.740
In the middle is like...

35:18.860 --> 35:20.300
It's called like the cache.

35:21.000 --> 35:24.820
It's where all the components are stored.

35:24.820 --> 35:27.300
So that's where we actually store all our custom electronics.

35:27.520 --> 35:29.440
So you can see where the warrants are.

35:29.440 --> 35:31.420
And actually, it actually uses the same part.

35:31.460 --> 35:41.360
We have a big power supply.

35:41.540 --> 35:43.560
That's the big silver box.

35:44.340 --> 35:46.580
Lots and lots and lots of electronics.

35:46.580 --> 35:51.260
We kind of modified the pointer term.

35:51.260 --> 35:53.080
That's our enter button.

35:53.280 --> 35:57.000
The right side is like...

35:57.580 --> 36:00.260
The whole thing brought up.

36:03.100 --> 36:05.980
Any questions so far?

36:17.590 --> 36:20.270
I think the question is, it went down earlier.

36:20.270 --> 36:22.410
Is it possible to make it all self-contained?

36:23.010 --> 36:25.150
Yeah, so it's an IST machine.

36:26.670 --> 36:29.250
So it connects through a database in the cloud.

36:29.250 --> 36:32.810
And that's how we know all the codes are...

36:36.490 --> 36:39.730
So that's how it knows if the codes are valid or not.

36:39.730 --> 36:43.150
I guess you could run that in there, but it's easier to...

36:49.670 --> 36:54.870
I mean, it can run disconnected, but it doesn't like it.

36:54.870 --> 36:55.150
Yeah.

36:55.150 --> 36:57.170
And you get different problems.

36:57.170 --> 37:01.590
It basically runs for like 30 seconds and goes, oh, I lost connection to the internet.

37:01.590 --> 37:03.430
My database is not up to date anymore.

37:03.710 --> 37:04.110
Yeah.

37:04.770 --> 37:06.910
But that gives us a full security stack.

37:07.190 --> 37:09.490
And it did not crash with CrowdStrike.

37:09.490 --> 37:10.750
Yeah, it did not crash.

37:11.450 --> 37:13.490
So this is year two.

37:13.490 --> 37:17.290
We took a lot of what we learned from the first year, which was basically up to four.

37:17.290 --> 37:18.870
The first year, it ran on Wi-Fi.

37:18.990 --> 37:20.870
We had people de-authenticate all the time.

37:20.870 --> 37:22.490
We went to hardware.

37:24.770 --> 37:26.590
Originally, it ran on a Raspberry Pi.

37:26.590 --> 37:28.990
It's a control object.

37:29.270 --> 37:34.730
And we switched over to just a x86-based thing, like running on a PC.

37:35.490 --> 37:39.190
And we put it inside some nice little PBMs, keyboards.

37:39.190 --> 37:41.310
And we actually had it all self-contained.

37:41.790 --> 37:44.950
And then we added the marquee display at the top.

37:45.550 --> 37:49.310
So it can display GIFs, videos, that kind of stuff.

37:49.710 --> 37:51.290
Take a question about Snacky.

37:51.290 --> 37:55.370
And then we added HAL 9000, or Snacky 9000.

37:55.370 --> 38:00.610
Which is our infrared and Morse code style challenges.

38:08.490 --> 38:11.170
Oh yeah, so here's the current.

38:11.170 --> 38:12.870
This is like this year's.

38:13.210 --> 38:14.630
We added a speaker.

38:16.130 --> 38:23.690
Upgrading our display to a higher resolution to be like that 1920x1960, which is really weird to make hard assets for.

38:25.370 --> 38:27.310
It frustrates everyone in the team.

38:27.310 --> 38:30.030
So like this year's, now you don't have to involve that ratio.

38:30.030 --> 38:34.450
You can just make whatever simple letterbox or stretch or whatever.

38:34.450 --> 38:36.230
Whatever it actually decides to do.

38:36.230 --> 38:37.650
Focus on that image.

38:39.130 --> 38:43.250
We upgraded our heat source for the thermal printer.

38:43.470 --> 38:45.650
Which we actually think is a downgrade now.

38:45.650 --> 38:49.710
Because we have people having problems scanning that heat source code now.

38:49.730 --> 38:52.790
So trying to find the original source of the heat.

38:53.790 --> 38:55.750
We added more LEDs.

38:56.350 --> 39:00.550
And now it has a PoE switch in it for future expansion.

39:00.550 --> 39:05.150
So we're hoping to bring like more themes for our contest and hooking up to it.

39:06.010 --> 39:07.430
I like that PoE.

39:07.430 --> 39:10.810
Yeah, we put a transmitter in there too for all that.

39:12.130 --> 39:14.290
So everything we're trying to add on.

39:14.290 --> 39:17.830
We added a speaker.

39:17.830 --> 39:21.670
It's really easy and modular how we designed the software.

39:21.870 --> 39:23.670
And the hardware solutions.

39:23.670 --> 39:25.570
So it's easy to add on.

39:25.910 --> 39:28.050
It probably needs a refactor now.

39:28.050 --> 39:31.250
Because it has like one big Python script that runs everything.

39:31.470 --> 39:33.290
We probably need to fix that.

39:33.450 --> 39:34.190
Yeah.

39:35.070 --> 39:36.010
Okay.

39:38.250 --> 39:39.450
Perfect.

39:40.850 --> 39:42.970
So actually this is...

39:42.970 --> 39:44.590
Because we...

39:49.470 --> 39:55.930
I should say, do you want to try and build a badge out of cannibalized parts?

39:55.930 --> 39:57.610
Which may work.

39:57.610 --> 39:59.370
Come visit us tomorrow.

40:00.510 --> 40:03.910
Or just come check out Snacky and mess with the press buttons.

40:07.310 --> 40:08.270
Yay.

40:09.250 --> 40:11.110
Any questions?

40:11.170 --> 40:12.190
Related?

40:12.250 --> 40:13.510
Or not?

40:13.830 --> 40:15.510
You have us for...

40:15.510 --> 40:16.830
I don't know.

40:16.830 --> 40:17.570
They have to tell me.

40:17.570 --> 40:18.480
Four more minutes?

40:22.090 --> 40:25.370
Oh, Jesus.

40:39.370 --> 40:40.170
Oh.

40:40.710 --> 40:42.470
We're getting caned off stage.

40:42.770 --> 40:43.590
How about this?

40:43.590 --> 40:45.790
If you have questions, follow us right up there.

