[00:01.400 --> 00:06.120] Hi, I'm AbleDamond and today's talk is on door sims. [00:06.120 --> 00:10.440] I hate traveling for conferences and you will find out why in this talk. [00:11.020 --> 00:12.340] First off, who am I? [00:12.340 --> 00:13.720] Some of you know me. [00:13.740 --> 00:15.260] Quite a few of you know me. [00:15.460 --> 00:16.840] This is me. [00:16.940 --> 00:19.080] I'm known for making a lot of stickers. [00:19.800 --> 00:23.720] I also talk a bit about physical security and stuff in Australia. [00:23.980 --> 00:24.920] RFID. [00:24.920 --> 00:27.920] Trying to, you know, just trying to be cool and all that. [00:27.920 --> 00:29.260] Want to be a cool hacker. [00:29.480 --> 00:34.520] And this was what it looked like when I tried to travel to a conference earlier in the year. [00:34.740 --> 00:36.560] All of this had to fit in a suitcase. [00:39.080 --> 00:42.220] So that's two physical access control systems. [00:42.440 --> 00:43.780] Mini doors. [00:43.860 --> 00:45.240] More mini doors. [00:45.240 --> 00:46.360] More RFID readers. [00:46.360 --> 00:47.160] Everything else. [00:47.160 --> 00:50.060] And I still had two suitcases and a big box to ship. [00:50.060 --> 00:52.580] And I said, this sucks. [00:53.060 --> 00:54.200] Simple problem. [00:55.060 --> 00:56.940] This is all expensive as fuck. [00:56.940 --> 00:59.960] Cost me like 900 bucks to buy an access control system. [00:59.960 --> 01:01.380] I don't want to do that. [01:01.780 --> 01:06.540] So let's make a new version of it that is less expensive. [01:06.860 --> 01:08.260] Easy to make. [01:08.600 --> 01:09.660] And, you know, fuck it. [01:09.660 --> 01:11.960] We're just going to make this for training and CTFs as well. [01:11.960 --> 01:13.240] Just because we can. [01:14.820 --> 01:17.500] Now, a quick acknowledgement of previous work. [01:17.500 --> 01:19.800] Two people have done really cool stuff with this in the past. [01:19.800 --> 01:21.240] And they're big inspirations for this. [01:21.240 --> 01:24.480] First off, we got RTA and their RFID door simulator. [01:24.540 --> 01:27.360] They mainly use it for, like, training at their courses. [01:29.060 --> 01:31.180] They never released it open source. [01:31.340 --> 01:32.180] It's really cool. [01:32.180 --> 01:32.820] I love it. [01:32.820 --> 01:35.940] But that screen is so tiny and I can't read it for the life of me. [01:35.940 --> 01:38.440] The other one, Tusk by Team Walrus. [01:38.440 --> 01:39.500] Mainly fish. [01:39.960 --> 01:44.180] Really cool thing with MaxiProx to try and get longer read ranges. [01:44.800 --> 01:51.680] They inspired me because they had this really cool user interface for a web and beautiful, beautiful start. [01:52.140 --> 01:57.080] So, with those out of the way, here's our key requirements. [01:57.600 --> 01:59.980] I wanted this to be open for everyone. [01:59.980 --> 02:01.580] You can have it, you can make it. [02:01.580 --> 02:03.820] It's going to be cheap, open source, and hackable. [02:03.820 --> 02:06.300] It has to be portable and self-contained. [02:06.300 --> 02:08.960] None of this extra box that you need to run it. [02:09.680 --> 02:12.540] It has to have a physical display and a web GUI. [02:13.680 --> 02:17.200] And it has to have a common RFID interface. [02:17.200 --> 02:20.920] WeGand, RS-485, and a modern power source. [02:20.920 --> 02:25.560] Because I've had enough of random barrel jacks, random connectors that I don't like. [02:26.340 --> 02:27.380] Simple run through. [02:27.380 --> 02:28.680] We're going to speed through it. [02:29.520 --> 02:30.900] ESP32 as a base. [02:30.900 --> 02:33.020] Really cheap, really inexpensive. [02:33.300 --> 02:35.500] Comes from the magical land of China. [02:35.780 --> 02:37.380] And very easy to program. [02:37.560 --> 02:39.000] And it's like $5. [02:39.560 --> 02:41.920] And I'm going to be a little bit fun here. [02:42.540 --> 02:48.140] Buying the dev board is like $9 cheaper than getting it pick and placed at a PCB assembly. [02:48.440 --> 02:52.280] So, me telling you to solder it in is saving you like $9. [02:53.220 --> 03:01.460] So, if your time is worth more than $9 for 10 minutes of soldering, your billable rates are better than mine. [03:02.840 --> 03:04.620] Now, displays. [03:05.060 --> 03:08.540] OLED sucks because it is small and hard to read. [03:08.540 --> 03:12.180] No one's made really cheap and inexpensive large OLEDs. [03:12.420 --> 03:15.680] Same with LEDs, but character displays. [03:15.680 --> 03:18.420] Character displays have been around for fucking ever. [03:18.900 --> 03:21.220] So, this is a 2004A. [03:21.220 --> 03:25.040] 20 characters, 4 lines, beautiful, readable. [03:25.040 --> 03:27.500] They're used in industrial systems for a reason. [03:28.340 --> 03:29.880] And they're cheap as hell. [03:30.980 --> 03:31.700] Power. [03:32.180 --> 03:34.180] We've got a little bit of stuff we have to contend with. [03:34.180 --> 03:36.140] We've got a 5V rail, 12V rail. [03:36.300 --> 03:39.980] We could make it a 3.3, RFID readers go up to 24. [03:40.320 --> 03:44.400] We need a solution, but let's just get the highest voltage out of the way. [03:45.400 --> 03:47.740] And we went with USB PD trigger boards. [03:48.600 --> 03:51.200] These, coming out of China, are like $1 each. [03:51.200 --> 03:55.680] You can plug them in, you can choose the voltage from 5, 12, 18, 24. [03:55.740 --> 03:57.000] Easy as anything. [03:57.620 --> 03:59.160] Super easy to bolt in. [03:59.460 --> 04:07.400] And if you've got a random power supply where you're like, I don't have the barrel jack for this or something, a USB PD solves that problem for you, makes your life easy. [04:07.400 --> 04:10.980] As long as you're not drawing, like, 3 amps, you'll be fine. [04:11.820 --> 04:14.040] And this is where we get to the fun part. [04:14.040 --> 04:17.680] This is called the speedrun any% to get on a no-fly list. [04:19.360 --> 04:21.520] This is what my first prototype looked like. [04:21.520 --> 04:26.400] It was just a bunch of perf boards, whacking everything together and just going, yeah, it's good enough. [04:26.580 --> 04:28.960] You know, I've got a screen, I've got everything looking in there. [04:29.120 --> 04:32.140] But here's the thing, it looked okay. [04:32.420 --> 04:35.800] And I got the reader to work and, you know, read data off of it. [04:36.000 --> 04:38.560] It's enough to say, we got the basics, right? [04:38.840 --> 04:43.520] And, you know, when I say it worked, I mean, you could whack a card on there, you'd get the data off of it. [04:44.180 --> 04:47.800] And, yeah, as I said, any% to the no-fly list. [04:47.800 --> 04:50.680] If you try and take this on a plane, do not do that. [04:51.840 --> 04:53.280] But, yeah, it works. [04:53.860 --> 04:56.300] And then, you know, do a little bit of 3D printing. [04:56.300 --> 04:57.800] We get a nice little thing. [04:57.960 --> 05:04.740] And it makes it less likely that you're going to get on a no-fly list because, you know, it has a nice little fitting thing on there. [05:04.740 --> 05:05.720] We'll be fine. [05:06.680 --> 05:09.400] This is where we get to the part that I suck at. [05:09.480 --> 05:10.200] PCB. [05:11.620 --> 05:14.160] Now, JBO PCB and EasyADA. [05:14.340 --> 05:16.360] Great integration. [05:16.360 --> 05:23.420] You can whack them together, send it off to the magical land of China, get it shipped on the longboat back for 45 days, and bam. [05:23.420 --> 05:25.880] You now have a PCB in your hand. [05:26.260 --> 05:29.040] Plugged in, worked, used an LDO. [05:29.040 --> 05:32.080] This will come back later as a fun little surprise for me. [05:32.160 --> 05:33.620] And it worked. [05:34.340 --> 05:36.440] Fit in a little electronic case. [05:36.500 --> 05:38.780] So, you know, it looks better. [05:38.780 --> 05:40.180] And this is where I remembered. [05:40.180 --> 05:41.760] An LDO does something fun. [05:41.760 --> 05:47.700] It takes a high voltage, makes it into a low voltage by converting the energy to thermal energy. [05:47.700 --> 05:51.140] Also known as, if you touch it, it is hot. [05:51.640 --> 05:56.240] And you will burn yourself very quickly unless you have a good ground plane. [05:56.300 --> 05:58.560] I did not have a good ground plane. [06:01.410 --> 06:04.090] So, we get to the second PCB revision. [06:04.090 --> 06:06.010] Slightly less bad. [06:06.010 --> 06:10.210] I started using squeeze terminals because I thought, eh, it looks better. [06:10.210 --> 06:11.630] Add a couple more components. [06:12.130 --> 06:13.170] And it kind of worked. [06:13.170 --> 06:14.490] It looked a little bit better. [06:14.970 --> 06:18.810] And now this is the part where I fucked up and called it alpha instead of version 3. [06:19.130 --> 06:21.290] Because I fucked my own naming schema. [06:22.010 --> 06:27.950] But switching it around, added screw terminals, added multiplexers so I can actually control the lights and the speakers. [06:27.950 --> 06:29.230] You know, you want to be cool. [06:29.230 --> 06:30.050] You want to have the lights. [06:30.050 --> 06:31.490] You want to have the fancy hacking. [06:32.850 --> 06:34.910] And, you know, it was good enough. [06:34.910 --> 06:36.330] It was fine. [06:36.730 --> 06:39.150] But, you know, so many fucking issues as well. [06:39.310 --> 06:42.450] This thing caused me a fucking nightmare of debugging and issues. [06:42.450 --> 06:44.630] And , oh, you do not want to get into it. [06:44.850 --> 06:50.410] But it had a lot of small quirks and I was like, you know, this sounds like a problem for that guy I do not like. [06:50.410 --> 06:51.430] Future me. [06:52.310 --> 06:53.650] So he can deal with it later. [06:53.650 --> 06:55.670] So I went to the fun part of 3D printing. [06:56.550 --> 07:11.610] So, instead of having to go down to a hobby shop, purchase like a box and everything, and do all that, I decided 3D print it, make it easy, assemblable, and make it so that you can send this to some manufacturer, get it printed for yourself, and it is done. [07:11.950 --> 07:15.670] And, you know, modeling it yourself you can do a few interesting things. [07:15.770 --> 07:23.750] Made it all FDM printable so you do not have to use some SLA printer because breathing in resin is not fun. [07:24.530 --> 07:30.030] And threaded inserts make it a little bit better than trying to screw into plastic, which is not fun. [07:30.030 --> 07:34.730] And pre-slicing the holes because I did not want to have to drill holes into plastic. [07:36.510 --> 07:39.170] And, you know, we got a couple of different revisions. [07:39.490 --> 07:45.270] So you can whack this on any type of reader that you have got because it will fit all these different generations. [07:45.870 --> 07:49.350] As a fun note, I have named them all different things. [07:49.350 --> 07:51.310] Good luck figuring out which one is which. [07:51.410 --> 07:54.590] All I will say is one of them is called Long Boy for a reason. [07:57.330 --> 08:00.690] Now, as a little fun aside, I am just going to add this. [08:00.890 --> 08:02.190] Entirely forgot about it. [08:02.190 --> 08:07.590] There is a mild slant on here to make the reading angle on the screen slightly better. [08:08.370 --> 08:11.270] It is annoying as hell for printing. [08:11.330 --> 08:15.870] And it caused me so many issues because I had to add an individual raft to the bottom. [08:15.870 --> 08:20.050] And added like an hour and a half of print time to every single print. [08:20.050 --> 08:26.290] But it looks slightly better so all of you can suffer with me to have that mild aesthetic. [08:27.750 --> 08:32.110] Anyway, now we get to the fun part where I started actually doing PCB properly. [08:32.170 --> 08:34.610] And, you know, we got a four layer PCB. [08:34.670 --> 08:39.370] That makes all of my vias and everything else way easier to map through. [08:39.370 --> 08:43.050] I do not have to worry about horrible trace routing. [08:43.090 --> 08:44.590] Four layers is simple. [08:45.290 --> 08:47.250] Add some nice silk screens. [08:47.250 --> 08:53.310] I had enough of the spring terminals because I kept having to squeeze a screwdriver in there to get something out. [08:53.310 --> 08:55.050] And then it would stab me in the hand. [08:55.730 --> 08:59.630] And after about 20 of those, I went, screw it, we are just using screw terminals. [08:59.630 --> 09:05.530] Because if I am dumb enough to do this, someone else who picks one up is going to do the exact same thing way more times. [09:07.790 --> 09:10.190] And one fun part about this revision. [09:10.190 --> 09:11.590] This is a cursed revision. [09:11.590 --> 09:14.330] Many people do not have this revision for a reason. [09:14.330 --> 09:18.750] I am pretty sure the only person I actually gave this revision specifically to was you, Iceman. [09:18.750 --> 09:19.970] Get scammed. [09:20.070 --> 09:24.490] There is an LDO that I used on it, which worked fine. [09:24.490 --> 09:30.050] But I put a diode in there that was not calculated for in the voltage drop. [09:30.210 --> 09:34.070] So instead of a 5 volt rail, you get a 4.3. [09:34.650 --> 09:35.930] Enjoy that. [09:36.470 --> 09:38.950] Your screen will be slightly dimmer. [09:41.250 --> 09:44.790] Outside of that, we have the 3.1 and 3.2. [09:44.790 --> 09:51.470] The only difference between these two is I added a screw terminal instead of having to hand solder the power in. [09:51.470 --> 09:54.290] And just some very tiny things that no one will ever notice. [09:54.870 --> 09:56.610] And this is the now public revision. [09:56.610 --> 09:58.030] You can go download this. [09:58.030 --> 09:59.050] It works great. [09:59.690 --> 10:03.410] And if you want to go poke at one, I will be down there later on. [10:03.410 --> 10:04.390] Come have a play. [10:05.570 --> 10:08.370] Now, we are going to get to fun parts of firmware. [10:08.370 --> 10:09.990] Firmware sucks. [10:11.150 --> 10:13.090] ChatGPT, thank you. [10:13.370 --> 10:14.350] Same with Copilot. [10:14.350 --> 10:16.310] You have saved me so many hours. [10:16.670 --> 10:21.730] And because I am lazy, I quite literally raw literal-ed a HTML page into this. [10:21.730 --> 10:25.850] Because I did not want to have to figure out how to dynamically do that. [10:26.190 --> 10:30.590] This is heavily based on TeamWorx's work on Tusk. [10:30.590 --> 10:35.030] Just because their implementation of Weagand was better than a lot of others. [10:35.030 --> 10:36.410] And their card decoding. [10:36.410 --> 10:39.750] And we had a couple of cool features in there. [10:40.550 --> 10:43.810] You have the ability to just read the card data instead of on a screen. [10:43.810 --> 10:45.730] On a nice little user interface. [10:45.970 --> 10:49.890] You can go onto a web access point, click on it, copy data. [10:49.890 --> 10:50.770] All of that. [10:51.750 --> 10:54.590] Now, as I said, a big part of this is... [10:54.590 --> 10:58.130] I made this not just for people who want to do training. [10:58.130 --> 11:00.670] But people who want to do CTFs and everything. [11:01.050 --> 11:05.790] So there is a built-in CTF mode where you can add authorized cards, unauthorized cards. [11:05.790 --> 11:07.990] And you can lock people out. [11:08.290 --> 11:11.730] And you can just have this board open and just click that card data. [11:11.730 --> 11:12.930] Hide it all away. [11:13.090 --> 11:14.350] So that people can see... [11:14.350 --> 11:17.310] Oh, I can see on the event logs I am not accessing it. [11:17.310 --> 11:18.850] But it is reading this card data. [11:18.850 --> 11:19.750] Or maybe you do not want to. [11:19.750 --> 11:22.250] Maybe you want your CTF participants to suffer. [11:22.470 --> 11:23.250] Either or. [11:23.250 --> 11:24.070] Up to you. [11:24.070 --> 11:25.130] I am not to judge. [11:25.550 --> 11:27.850] And, you know, you get some standard settings. [11:27.850 --> 11:31.770] You can modify CTF mode and demo mode on the fly from the web UI. [11:31.770 --> 11:41.330] You can make it so the Wi-Fi access point is hidden if you do not want people to try and join your Wi-Fi access point and steal all of the card data running on it. [11:41.870 --> 11:45.090] And, yeah, you can make the display go away. [11:45.830 --> 11:46.970] But here is the question. [11:46.970 --> 11:53.010] Did I actually, after all of this, stick to my goal of making this cheap, accessible, and open source? [11:53.010 --> 11:54.730] The answer is yes. [11:54.730 --> 12:01.510] The entire cost of this version of the DoorSim, which has no reader and a thing. [12:01.510 --> 12:03.310] It has got everything else you need, though. [12:03.310 --> 12:05.150] It is $30 USD. [12:07.810 --> 12:09.590] I am not selling it. [12:11.610 --> 12:17.630] Enjoy trying to get that made by JLBPCB and ordering all of the components yourself off AliExpress. [12:17.750 --> 12:19.410] But it is so easy to make. [12:19.410 --> 12:22.970] It is a fun little project if you want to just do soldering as well. [12:24.010 --> 12:30.150] Now, as a little extra aside, there is future project parts to finish here. [12:30.650 --> 12:32.010] Now, there is a sneaky little trick. [12:32.010 --> 12:33.890] I left GPIO ports on there. [12:34.070 --> 12:36.430] You can add a relay board directly to this. [12:36.430 --> 12:38.450] I just have not added it in the software yet. [12:39.610 --> 12:44.630] Future hardware revisions will probably have RS-485 and OSDP for communication protocols. [12:44.790 --> 12:46.970] So you can do different forms of readers. [12:47.230 --> 12:50.450] You can maybe add a whole string of readers if you want. [12:51.130 --> 12:56.670] PAX level rate limiting is in my dev branch of it that I have not pushed yet. [12:56.830 --> 12:58.030] But it works. [12:58.290 --> 13:01.850] And the UI needs to be changed from looking like the 1990s. [13:02.890 --> 13:05.070] At some point I will get around to that. [13:05.670 --> 13:08.750] Now, I am speed running through this talk at this stage. [13:08.990 --> 13:11.150] So I am just going to do the thanks real quick. [13:11.510 --> 13:13.330] Fish, fuck yeah. [13:13.490 --> 13:15.450] Drunk Rhino for printing all of this stuff. [13:15.450 --> 13:19.570] Iceman, because you had to deal with my beta testing and random stuff. [13:19.570 --> 13:21.890] And Topi for giving me design ideas. [13:22.310 --> 13:24.190] I am going to take any questions people want. [13:24.190 --> 13:26.010] Feel free to ask. [13:26.130 --> 13:31.330] Otherwise, I am going to be floating around with all of the DAW sims just for people to come play around with. [13:31.610 --> 13:33.630] As a note, it is open source. [13:33.710 --> 13:35.930] 100% unlicensed. [13:35.990 --> 13:38.030] You can do whatever the hell you want with it. [13:38.230 --> 13:42.310] If you want to slap your logo on it and say it is mine now, you can do that. [13:42.310 --> 13:43.450] It is unlicensed. [13:53.540 --> 13:54.560] Cool, cool.