1 00:00:01,400 --> 00:00:06,120 Hi, I'm AbleDamond and today's talk is on door sims. 2 00:00:06,120 --> 00:00:10,440 I hate traveling for conferences and you will find out why in this talk. 3 00:00:11,020 --> 00:00:12,340 First off, who am I? 4 00:00:12,340 --> 00:00:13,720 Some of you know me. 5 00:00:13,740 --> 00:00:15,260 Quite a few of you know me. 6 00:00:15,460 --> 00:00:16,840 This is me. 7 00:00:16,940 --> 00:00:19,080 I'm known for making a lot of stickers. 8 00:00:19,800 --> 00:00:23,720 I also talk a bit about physical security and stuff in Australia. 9 00:00:23,980 --> 00:00:24,920 RFID. 10 00:00:24,920 --> 00:00:27,920 Trying to, you know, just trying to be cool and all that. 11 00:00:27,920 --> 00:00:29,260 Want to be a cool hacker. 12 00:00:29,480 --> 00:00:34,520 And this was what it looked like when I tried to travel to a conference earlier in the year. 13 00:00:34,740 --> 00:00:36,560 All of this had to fit in a suitcase. 14 00:00:39,080 --> 00:00:42,220 So that's two physical access control systems. 15 00:00:42,440 --> 00:00:43,780 Mini doors. 16 00:00:43,860 --> 00:00:45,240 More mini doors. 17 00:00:45,240 --> 00:00:46,360 More RFID readers. 18 00:00:46,360 --> 00:00:47,160 Everything else. 19 00:00:47,160 --> 00:00:50,060 And I still had two suitcases and a big box to ship. 20 00:00:50,060 --> 00:00:52,580 And I said, this sucks. 21 00:00:53,060 --> 00:00:54,200 Simple problem. 22 00:00:55,060 --> 00:00:56,940 This is all expensive as fuck. 23 00:00:56,940 --> 00:00:59,960 Cost me like 900 bucks to buy an access control system. 24 00:00:59,960 --> 00:01:01,380 I don't want to do that. 25 00:01:01,780 --> 00:01:06,540 So let's make a new version of it that is less expensive. 26 00:01:06,860 --> 00:01:08,260 Easy to make. 27 00:01:08,600 --> 00:01:09,660 And, you know, fuck it. 28 00:01:09,660 --> 00:01:11,960 We're just going to make this for training and CTFs as well. 29 00:01:11,960 --> 00:01:13,240 Just because we can. 30 00:01:14,820 --> 00:01:17,500 Now, a quick acknowledgement of previous work. 31 00:01:17,500 --> 00:01:19,800 Two people have done really cool stuff with this in the past. 32 00:01:19,800 --> 00:01:21,240 And they're big inspirations for this. 33 00:01:21,240 --> 00:01:24,480 First off, we got RTA and their RFID door simulator. 34 00:01:24,540 --> 00:01:27,360 They mainly use it for, like, training at their courses. 35 00:01:29,060 --> 00:01:31,180 They never released it open source. 36 00:01:31,340 --> 00:01:32,180 It's really cool. 37 00:01:32,180 --> 00:01:32,820 I love it. 38 00:01:32,820 --> 00:01:35,940 But that screen is so tiny and I can't read it for the life of me. 39 00:01:35,940 --> 00:01:38,440 The other one, Tusk by Team Walrus. 40 00:01:38,440 --> 00:01:39,500 Mainly fish. 41 00:01:39,960 --> 00:01:44,180 Really cool thing with MaxiProx to try and get longer read ranges. 42 00:01:44,800 --> 00:01:51,680 They inspired me because they had this really cool user interface for a web and beautiful, beautiful start. 43 00:01:52,140 --> 00:01:57,080 So, with those out of the way, here's our key requirements. 44 00:01:57,600 --> 00:01:59,980 I wanted this to be open for everyone. 45 00:01:59,980 --> 00:02:01,580 You can have it, you can make it. 46 00:02:01,580 --> 00:02:03,820 It's going to be cheap, open source, and hackable. 47 00:02:03,820 --> 00:02:06,300 It has to be portable and self-contained. 48 00:02:06,300 --> 00:02:08,960 None of this extra box that you need to run it. 49 00:02:09,680 --> 00:02:12,540 It has to have a physical display and a web GUI. 50 00:02:13,680 --> 00:02:17,200 And it has to have a common RFID interface. 51 00:02:17,200 --> 00:02:20,920 WeGand, RS-485, and a modern power source. 52 00:02:20,920 --> 00:02:25,560 Because I've had enough of random barrel jacks, random connectors that I don't like. 53 00:02:26,340 --> 00:02:27,380 Simple run through. 54 00:02:27,380 --> 00:02:28,680 We're going to speed through it. 55 00:02:29,520 --> 00:02:30,900 ESP32 as a base. 56 00:02:30,900 --> 00:02:33,020 Really cheap, really inexpensive. 57 00:02:33,300 --> 00:02:35,500 Comes from the magical land of China. 58 00:02:35,780 --> 00:02:37,380 And very easy to program. 59 00:02:37,560 --> 00:02:39,000 And it's like $5. 60 00:02:39,560 --> 00:02:41,920 And I'm going to be a little bit fun here. 61 00:02:42,540 --> 00:02:48,140 Buying the dev board is like $9 cheaper than getting it pick and placed at a PCB assembly. 62 00:02:48,440 --> 00:02:52,280 So, me telling you to solder it in is saving you like $9. 63 00:02:53,220 --> 00:03:01,460 So, if your time is worth more than $9 for 10 minutes of soldering, your billable rates are better than mine. 64 00:03:02,840 --> 00:03:04,620 Now, displays. 65 00:03:05,060 --> 00:03:08,540 OLED sucks because it is small and hard to read. 66 00:03:08,540 --> 00:03:12,180 No one's made really cheap and inexpensive large OLEDs. 67 00:03:12,420 --> 00:03:15,680 Same with LEDs, but character displays. 68 00:03:15,680 --> 00:03:18,420 Character displays have been around for fucking ever. 69 00:03:18,900 --> 00:03:21,220 So, this is a 2004A. 70 00:03:21,220 --> 00:03:25,040 20 characters, 4 lines, beautiful, readable. 71 00:03:25,040 --> 00:03:27,500 They're used in industrial systems for a reason. 72 00:03:28,340 --> 00:03:29,880 And they're cheap as hell. 73 00:03:30,980 --> 00:03:31,700 Power. 74 00:03:32,180 --> 00:03:34,180 We've got a little bit of stuff we have to contend with. 75 00:03:34,180 --> 00:03:36,140 We've got a 5V rail, 12V rail. 76 00:03:36,300 --> 00:03:39,980 We could make it a 3.3, RFID readers go up to 24. 77 00:03:40,320 --> 00:03:44,400 We need a solution, but let's just get the highest voltage out of the way. 78 00:03:45,400 --> 00:03:47,740 And we went with USB PD trigger boards. 79 00:03:48,600 --> 00:03:51,200 These, coming out of China, are like $1 each. 80 00:03:51,200 --> 00:03:55,680 You can plug them in, you can choose the voltage from 5, 12, 18, 24. 81 00:03:55,740 --> 00:03:57,000 Easy as anything. 82 00:03:57,620 --> 00:03:59,160 Super easy to bolt in. 83 00:03:59,460 --> 00: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. 84 00:04:07,400 --> 00:04:10,980 As long as you're not drawing, like, 3 amps, you'll be fine. 85 00:04:11,820 --> 00:04:14,040 And this is where we get to the fun part. 86 00:04:14,040 --> 00:04:17,680 This is called the speedrun any% to get on a no-fly list. 87 00:04:19,360 --> 00:04:21,520 This is what my first prototype looked like. 88 00:04:21,520 --> 00:04:26,400 It was just a bunch of perf boards, whacking everything together and just going, yeah, it's good enough. 89 00:04:26,580 --> 00:04:28,960 You know, I've got a screen, I've got everything looking in there. 90 00:04:29,120 --> 00:04:32,140 But here's the thing, it looked okay. 91 00:04:32,420 --> 00:04:35,800 And I got the reader to work and, you know, read data off of it. 92 00:04:36,000 --> 00:04:38,560 It's enough to say, we got the basics, right? 93 00:04:38,840 --> 00: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. 94 00:04:44,180 --> 00:04:47,800 And, yeah, as I said, any% to the no-fly list. 95 00:04:47,800 --> 00:04:50,680 If you try and take this on a plane, do not do that. 96 00:04:51,840 --> 00:04:53,280 But, yeah, it works. 97 00:04:53,860 --> 00:04:56,300 And then, you know, do a little bit of 3D printing. 98 00:04:56,300 --> 00:04:57,800 We get a nice little thing. 99 00:04:57,960 --> 00: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. 100 00:05:04,740 --> 00:05:05,720 We'll be fine. 101 00:05:06,680 --> 00:05:09,400 This is where we get to the part that I suck at. 102 00:05:09,480 --> 00:05:10,200 PCB. 103 00:05:11,620 --> 00:05:14,160 Now, JBO PCB and EasyADA. 104 00:05:14,340 --> 00:05:16,360 Great integration. 105 00:05:16,360 --> 00: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. 106 00:05:23,420 --> 00:05:25,880 You now have a PCB in your hand. 107 00:05:26,260 --> 00:05:29,040 Plugged in, worked, used an LDO. 108 00:05:29,040 --> 00:05:32,080 This will come back later as a fun little surprise for me. 109 00:05:32,160 --> 00:05:33,620 And it worked. 110 00:05:34,340 --> 00:05:36,440 Fit in a little electronic case. 111 00:05:36,500 --> 00:05:38,780 So, you know, it looks better. 112 00:05:38,780 --> 00:05:40,180 And this is where I remembered. 113 00:05:40,180 --> 00:05:41,760 An LDO does something fun. 114 00:05:41,760 --> 00:05:47,700 It takes a high voltage, makes it into a low voltage by converting the energy to thermal energy. 115 00:05:47,700 --> 00:05:51,140 Also known as, if you touch it, it is hot. 116 00:05:51,640 --> 00:05:56,240 And you will burn yourself very quickly unless you have a good ground plane. 117 00:05:56,300 --> 00:05:58,560 I did not have a good ground plane. 118 00:06:01,410 --> 00:06:04,090 So, we get to the second PCB revision. 119 00:06:04,090 --> 00:06:06,010 Slightly less bad. 120 00:06:06,010 --> 00:06:10,210 I started using squeeze terminals because I thought, eh, it looks better. 121 00:06:10,210 --> 00:06:11,630 Add a couple more components. 122 00:06:12,130 --> 00:06:13,170 And it kind of worked. 123 00:06:13,170 --> 00:06:14,490 It looked a little bit better. 124 00:06:14,970 --> 00:06:18,810 And now this is the part where I fucked up and called it alpha instead of version 3. 125 00:06:19,130 --> 00:06:21,290 Because I fucked my own naming schema. 126 00:06:22,010 --> 00:06:27,950 But switching it around, added screw terminals, added multiplexers so I can actually control the lights and the speakers. 127 00:06:27,950 --> 00:06:29,230 You know, you want to be cool. 128 00:06:29,230 --> 00:06:30,050 You want to have the lights. 129 00:06:30,050 --> 00:06:31,490 You want to have the fancy hacking. 130 00:06:32,850 --> 00:06:34,910 And, you know, it was good enough. 131 00:06:34,910 --> 00:06:36,330 It was fine. 132 00:06:36,730 --> 00:06:39,150 But, you know, so many fucking issues as well. 133 00:06:39,310 --> 00:06:42,450 This thing caused me a fucking nightmare of debugging and issues. 134 00:06:42,450 --> 00:06:44,630 And , oh, you do not want to get into it. 135 00:06:44,850 --> 00: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. 136 00:06:50,410 --> 00:06:51,430 Future me. 137 00:06:52,310 --> 00:06:53,650 So he can deal with it later. 138 00:06:53,650 --> 00:06:55,670 So I went to the fun part of 3D printing. 139 00:06:56,550 --> 00: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. 140 00:07:11,950 --> 00:07:15,670 And, you know, modeling it yourself you can do a few interesting things. 141 00:07:15,770 --> 00: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. 142 00:07:24,530 --> 00:07:30,030 And threaded inserts make it a little bit better than trying to screw into plastic, which is not fun. 143 00:07:30,030 --> 00:07:34,730 And pre-slicing the holes because I did not want to have to drill holes into plastic. 144 00:07:36,510 --> 00:07:39,170 And, you know, we got a couple of different revisions. 145 00:07:39,490 --> 00: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. 146 00:07:45,870 --> 00:07:49,350 As a fun note, I have named them all different things. 147 00:07:49,350 --> 00:07:51,310 Good luck figuring out which one is which. 148 00:07:51,410 --> 00:07:54,590 All I will say is one of them is called Long Boy for a reason. 149 00:07:57,330 --> 00:08:00,690 Now, as a little fun aside, I am just going to add this. 150 00:08:00,890 --> 00:08:02,190 Entirely forgot about it. 151 00:08:02,190 --> 00:08:07,590 There is a mild slant on here to make the reading angle on the screen slightly better. 152 00:08:08,370 --> 00:08:11,270 It is annoying as hell for printing. 153 00:08:11,330 --> 00:08:15,870 And it caused me so many issues because I had to add an individual raft to the bottom. 154 00:08:15,870 --> 00:08:20,050 And added like an hour and a half of print time to every single print. 155 00:08:20,050 --> 00:08:26,290 But it looks slightly better so all of you can suffer with me to have that mild aesthetic. 156 00:08:27,750 --> 00:08:32,110 Anyway, now we get to the fun part where I started actually doing PCB properly. 157 00:08:32,170 --> 00:08:34,610 And, you know, we got a four layer PCB. 158 00:08:34,670 --> 00:08:39,370 That makes all of my vias and everything else way easier to map through. 159 00:08:39,370 --> 00:08:43,050 I do not have to worry about horrible trace routing. 160 00:08:43,090 --> 00:08:44,590 Four layers is simple. 161 00:08:45,290 --> 00:08:47,250 Add some nice silk screens. 162 00:08:47,250 --> 00:08:53,310 I had enough of the spring terminals because I kept having to squeeze a screwdriver in there to get something out. 163 00:08:53,310 --> 00:08:55,050 And then it would stab me in the hand. 164 00:08:55,730 --> 00:08:59,630 And after about 20 of those, I went, screw it, we are just using screw terminals. 165 00:08:59,630 --> 00: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. 166 00:09:07,790 --> 00:09:10,190 And one fun part about this revision. 167 00:09:10,190 --> 00:09:11,590 This is a cursed revision. 168 00:09:11,590 --> 00:09:14,330 Many people do not have this revision for a reason. 169 00:09:14,330 --> 00:09:18,750 I am pretty sure the only person I actually gave this revision specifically to was you, Iceman. 170 00:09:18,750 --> 00:09:19,970 Get scammed. 171 00:09:20,070 --> 00:09:24,490 There is an LDO that I used on it, which worked fine. 172 00:09:24,490 --> 00:09:30,050 But I put a diode in there that was not calculated for in the voltage drop. 173 00:09:30,210 --> 00:09:34,070 So instead of a 5 volt rail, you get a 4.3. 174 00:09:34,650 --> 00:09:35,930 Enjoy that. 175 00:09:36,470 --> 00:09:38,950 Your screen will be slightly dimmer. 176 00:09:41,250 --> 00:09:44,790 Outside of that, we have the 3.1 and 3.2. 177 00:09:44,790 --> 00:09:51,470 The only difference between these two is I added a screw terminal instead of having to hand solder the power in. 178 00:09:51,470 --> 00:09:54,290 And just some very tiny things that no one will ever notice. 179 00:09:54,870 --> 00:09:56,610 And this is the now public revision. 180 00:09:56,610 --> 00:09:58,030 You can go download this. 181 00:09:58,030 --> 00:09:59,050 It works great. 182 00:09:59,690 --> 00:10:03,410 And if you want to go poke at one, I will be down there later on. 183 00:10:03,410 --> 00:10:04,390 Come have a play. 184 00:10:05,570 --> 00:10:08,370 Now, we are going to get to fun parts of firmware. 185 00:10:08,370 --> 00:10:09,990 Firmware sucks. 186 00:10:11,150 --> 00:10:13,090 ChatGPT, thank you. 187 00:10:13,370 --> 00:10:14,350 Same with Copilot. 188 00:10:14,350 --> 00:10:16,310 You have saved me so many hours. 189 00:10:16,670 --> 00:10:21,730 And because I am lazy, I quite literally raw literal-ed a HTML page into this. 190 00:10:21,730 --> 00:10:25,850 Because I did not want to have to figure out how to dynamically do that. 191 00:10:26,190 --> 00:10:30,590 This is heavily based on TeamWorx's work on Tusk. 192 00:10:30,590 --> 00:10:35,030 Just because their implementation of Weagand was better than a lot of others. 193 00:10:35,030 --> 00:10:36,410 And their card decoding. 194 00:10:36,410 --> 00:10:39,750 And we had a couple of cool features in there. 195 00:10:40,550 --> 00:10:43,810 You have the ability to just read the card data instead of on a screen. 196 00:10:43,810 --> 00:10:45,730 On a nice little user interface. 197 00:10:45,970 --> 00:10:49,890 You can go onto a web access point, click on it, copy data. 198 00:10:49,890 --> 00:10:50,770 All of that. 199 00:10:51,750 --> 00:10:54,590 Now, as I said, a big part of this is... 200 00:10:54,590 --> 00:10:58,130 I made this not just for people who want to do training. 201 00:10:58,130 --> 00:11:00,670 But people who want to do CTFs and everything. 202 00:11:01,050 --> 00:11:05,790 So there is a built-in CTF mode where you can add authorized cards, unauthorized cards. 203 00:11:05,790 --> 00:11:07,990 And you can lock people out. 204 00:11:08,290 --> 00:11:11,730 And you can just have this board open and just click that card data. 205 00:11:11,730 --> 00:11:12,930 Hide it all away. 206 00:11:13,090 --> 00:11:14,350 So that people can see... 207 00:11:14,350 --> 00:11:17,310 Oh, I can see on the event logs I am not accessing it. 208 00:11:17,310 --> 00:11:18,850 But it is reading this card data. 209 00:11:18,850 --> 00:11:19,750 Or maybe you do not want to. 210 00:11:19,750 --> 00:11:22,250 Maybe you want your CTF participants to suffer. 211 00:11:22,470 --> 00:11:23,250 Either or. 212 00:11:23,250 --> 00:11:24,070 Up to you. 213 00:11:24,070 --> 00:11:25,130 I am not to judge. 214 00:11:25,550 --> 00:11:27,850 And, you know, you get some standard settings. 215 00:11:27,850 --> 00:11:31,770 You can modify CTF mode and demo mode on the fly from the web UI. 216 00:11:31,770 --> 00: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. 217 00:11:41,870 --> 00:11:45,090 And, yeah, you can make the display go away. 218 00:11:45,830 --> 00:11:46,970 But here is the question. 219 00:11:46,970 --> 00:11:53,010 Did I actually, after all of this, stick to my goal of making this cheap, accessible, and open source? 220 00:11:53,010 --> 00:11:54,730 The answer is yes. 221 00:11:54,730 --> 00:12:01,510 The entire cost of this version of the DoorSim, which has no reader and a thing. 222 00:12:01,510 --> 00:12:03,310 It has got everything else you need, though. 223 00:12:03,310 --> 00:12:05,150 It is $30 USD. 224 00:12:07,810 --> 00:12:09,590 I am not selling it. 225 00:12:11,610 --> 00:12:17,630 Enjoy trying to get that made by JLBPCB and ordering all of the components yourself off AliExpress. 226 00:12:17,750 --> 00:12:19,410 But it is so easy to make. 227 00:12:19,410 --> 00:12:22,970 It is a fun little project if you want to just do soldering as well. 228 00:12:24,010 --> 00:12:30,150 Now, as a little extra aside, there is future project parts to finish here. 229 00:12:30,650 --> 00:12:32,010 Now, there is a sneaky little trick. 230 00:12:32,010 --> 00:12:33,890 I left GPIO ports on there. 231 00:12:34,070 --> 00:12:36,430 You can add a relay board directly to this. 232 00:12:36,430 --> 00:12:38,450 I just have not added it in the software yet. 233 00:12:39,610 --> 00:12:44,630 Future hardware revisions will probably have RS-485 and OSDP for communication protocols. 234 00:12:44,790 --> 00:12:46,970 So you can do different forms of readers. 235 00:12:47,230 --> 00:12:50,450 You can maybe add a whole string of readers if you want. 236 00:12:51,130 --> 00:12:56,670 PAX level rate limiting is in my dev branch of it that I have not pushed yet. 237 00:12:56,830 --> 00:12:58,030 But it works. 238 00:12:58,290 --> 00:13:01,850 And the UI needs to be changed from looking like the 1990s. 239 00:13:02,890 --> 00:13:05,070 At some point I will get around to that. 240 00:13:05,670 --> 00:13:08,750 Now, I am speed running through this talk at this stage. 241 00:13:08,990 --> 00:13:11,150 So I am just going to do the thanks real quick. 242 00:13:11,510 --> 00:13:13,330 Fish, fuck yeah. 243 00:13:13,490 --> 00:13:15,450 Drunk Rhino for printing all of this stuff. 244 00:13:15,450 --> 00:13:19,570 Iceman, because you had to deal with my beta testing and random stuff. 245 00:13:19,570 --> 00:13:21,890 And Topi for giving me design ideas. 246 00:13:22,310 --> 00:13:24,190 I am going to take any questions people want. 247 00:13:24,190 --> 00:13:26,010 Feel free to ask. 248 00:13:26,130 --> 00: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. 249 00:13:31,610 --> 00:13:33,630 As a note, it is open source. 250 00:13:33,710 --> 00:13:35,930 100% unlicensed. 251 00:13:35,990 --> 00:13:38,030 You can do whatever the hell you want with it. 252 00:13:38,230 --> 00:13:42,310 If you want to slap your logo on it and say it is mine now, you can do that. 253 00:13:42,310 --> 00:13:43,450 It is unlicensed. 254 00:13:53,540 --> 00:13:54,560 Cool, cool.