1 00:00:00,000 --> 00:00:04,400 Everybody, welcome to DEF CON. I know you guys are already here. For me, this is my first time 2 00:00:04,400 --> 00:00:10,480 speaking in front of everybody here. So this is pretty much an honor slash dream come true. I'm 3 00:00:10,480 --> 00:00:17,400 kind of a fanboy. So I'm not that hard technical. I'm just a programmer. But anyways, so today my 4 00:00:17,400 --> 00:00:26,740 talk is about Wi-Fi beacons. We'll give you up. And the beaconator here. So the beaconator is 5 00:00:26,740 --> 00:00:33,960 pretty fun. It's just put it together. It's basically ESP8266s. But instead of just one or two, 6 00:00:34,220 --> 00:00:44,020 it's about 57 of them. So I'll get to more about that later on in the talk. But basically, I'm a 7 00:00:44,020 --> 00:00:50,280 programmer. And I've done a bunch of things. You could say sometimes they're potato and sometimes 8 00:00:50,280 --> 00:00:56,360 potato things. But, you know, we're not talking about, you know, low-level stuff here at all. I'm 9 00:00:56,360 --> 00:00:56,720 much more of a programmer. So I'm going to talk a little bit about that. So let's get started. 10 00:00:56,720 --> 00:01:02,940 I'm more of a working at higher-level languages, still getting into more security stuff. I know 11 00:01:02,940 --> 00:01:10,280 enough how to get myself into a lot of trouble trying not to do that. So this is the basic 12 00:01:10,280 --> 00:01:17,120 agenda. So I'm going to go over ESP8266s in general. Then I'm going to rickroll everybody and 13 00:01:17,120 --> 00:01:22,160 show you how to roll your own real quick. Then I'll show you a survey of a bunch of stuff you can do 14 00:01:22,160 --> 00:01:26,700 with ESP8266s and show off the beaconator towards the end of the talk. So let's get started. 15 00:01:26,720 --> 00:01:30,540 So I'm going to go over ESP8266s. And the beaconator I've been working on for a while. It's 16 00:01:30,540 --> 00:01:40,540 germinated last year. But it took me a while to actually bring it to fruition. So basically, ESP8266s 17 00:01:40,540 --> 00:01:48,100 are a bit like a gateway drug to microcontrollers. Chances are, for some of you, your first one is 18 00:01:48,100 --> 00:01:54,720 free with a badge. So rickroll. Okay. One sec. 19 00:01:59,300 --> 00:02:05,120 Right now I'm firing it up. So if you have a Wi-Fi device, nothing I'm doing here is going to do 20 00:02:05,120 --> 00:02:10,900 anything bad to you guys because I'm more afraid of generic you than I am an asshole. So overall, 21 00:02:11,140 --> 00:02:17,340 right now, pretty soon, this is going to pop up on your Wi-Fi. And throughout the talk, I'll turn 22 00:02:17,340 --> 00:02:22,260 on some more stuff in a little bit. I may not turn on the whole top range because it's a little bit 23 00:02:22,260 --> 00:02:26,700 powerful. But if you want a quick thing for just rickrolls, you know, I'm going to go over ESP8266s. 24 00:02:26,720 --> 00:02:36,600 And this is basically the impetus of me getting into the ESP8266s. Because it's just fun. So 25 00:02:37,600 --> 00:02:43,440 basically, to roll your own is pretty simple. I mean, this is, like, really broken down here. But 26 00:02:43,440 --> 00:02:50,680 you just need a ESP8266 unit, which is a Wi-Fi module. The code for the roll, which I'll have 27 00:02:50,680 --> 00:02:55,860 posted Wednesday, but there's a bunch of them on GitHub. If you just search for GitHub ESP8266, 28 00:02:56,000 --> 00:02:56,700 rickroll. And it's going to pop up. So basically, if you're a beginner and you want to do this, 29 00:02:56,700 --> 00:03:01,660 roll, a bunch of people have Rick rolls up there. So feel free to use mine, somebody else's, 30 00:03:01,660 --> 00:03:08,140 whatever. And basically to run it, you've got to have something that programs ESP8266, which I 31 00:03:08,140 --> 00:03:13,200 tend to use Arduino IDE. A, because I don't have experience with the other ones, they may be 32 00:03:13,200 --> 00:03:20,540 better. So your mileage may vary. If you want it portable, not just stuck underneath somebody's 33 00:03:20,540 --> 00:03:24,240 desk, so whenever they're computer on, they have all these access points. Got to have a little 34 00:03:24,240 --> 00:03:31,680 battery, cable, all that stuff. But once you get that set up, it's not too bad. If you've never 35 00:03:31,680 --> 00:03:38,560 set up Arduino IDE before, you may have to Google a few steps regarding ESP8266s because you've got 36 00:03:38,560 --> 00:03:45,980 to add libraries to it to preferences for it to actually pull up and build and compile and push on 37 00:03:45,980 --> 00:03:51,340 there. I'm just giving that out for the new people. If you're totally familiar with it, you 38 00:03:51,340 --> 00:03:52,980 know, it's for the new people. 39 00:03:54,240 --> 00:04:01,180 I was new, too, not that long ago. So this is the part where I have a villain exposition part 40 00:04:01,180 --> 00:04:06,460 because I've got a lot of stuff to get through and I didn't make enough slides here for this part. 41 00:04:06,700 --> 00:04:14,060 But so the ESP8266 is basically a physical manifestation of a minimally viable Wi-Fi 42 00:04:14,060 --> 00:04:22,220 controller board. And I was first exposed to it back in CactusCon two years ago in Phoenix. I was 43 00:04:22,220 --> 00:04:24,220 fascinated that a programmable Wi-Fi controller board could be used to control a Wi-Fi controller 44 00:04:24,240 --> 00:04:30,700 and a microcontroller system could be made so small and affordable. And like all good con goers, I 45 00:04:30,700 --> 00:04:37,780 got home and I promptly put it in a bag, box, and forgot about it. But I did do one cool thing after 46 00:04:37,780 --> 00:04:43,280 the convention. I got online and I ordered a few of them because I wanted to do something with RGB 47 00:04:43,280 --> 00:04:49,020 LEDs. I do light box photography on the side. So I wanted to have a field of these light boxes set 48 00:04:49,020 --> 00:04:54,220 up and control it with a laptop, which is awesome. But unfortunately, it's not going to work. So I 49 00:04:54,240 --> 00:05:00,460 turned out that life, everything kind of got in the way. So I never really had a chance to do 50 00:05:00,460 --> 00:05:06,020 that. So last year before DEF CON, I was looking at all the stuff I had for the previous conventions 51 00:05:06,020 --> 00:05:12,920 and I saw the ESP8266 and I was like, dude, I wonder what I can do with this. So I looked up 52 00:05:12,920 --> 00:05:19,640 online projects on GitHub and within the top 20 projects at the time was Rickroll. So I looked up 53 00:05:19,640 --> 00:05:24,220 Rickroll and found it. And the guy used was my friend, my friend, my friend, my friend, my friend, my 54 00:05:24,240 --> 00:05:33,740 friend, Mark Zasbo, M-A-R-K-S-Z-A-B-O. He has a thing called fake beacon ESP8266. He's a 55 00:05:34,280 --> 00:05:40,100 security student over in Europe. And I used his GitHub as a reference point for a lot of the 56 00:05:40,100 --> 00:05:49,360 stuff I was doing with this thing. So, you know, I have the GitHub download and everything. And in 57 00:05:49,360 --> 00:05:54,220 short order, I got it working. Yay, Rickrolls! But honestly, it took me longer than I'd like to 58 00:05:54,240 --> 00:05:59,180 admit professionally to get Arduino up and running because it was my first time with Arduino by 59 00:05:59,180 --> 00:06:05,600 myself. So, you know, Google, YouTube. It wasn't too bad. It was just your basic Google foo of, 60 00:06:05,740 --> 00:06:11,720 hey, I've got an error message. What do I do? It's not too bad. And part of it, too, is I never 61 00:06:11,720 --> 00:06:15,900 really did experimenting with these things until I was really tired late at night because after 62 00:06:15,900 --> 00:06:20,560 doing all the other stuff. So I was like, you know, I'm not always in the right mind when I do 63 00:06:20,560 --> 00:06:24,220 some of these things. So ESP8266, I was like, I'm not going to do this. I'm not going to do this. So ESP8266, 64 00:06:25,300 --> 00:06:31,460 they're made by a company called Expressif. They make the IP, the intellectual property, and 65 00:06:31,460 --> 00:06:37,100 license it out to different companies to make it. So overall, there's multiple different companies 66 00:06:37,100 --> 00:06:42,920 that produce different versions of this. And with those different versions, some of them are 67 00:06:42,920 --> 00:06:54,200 optimized for cost, memory size. Some have more pin outs. Like NodeMCU ones have 30 pins. And 68 00:06:54,200 --> 00:07:01,680 some USB development boards or some boards have a USB port on them. The one up here on the screen 69 00:07:01,680 --> 00:07:09,240 here, that doesn't have a USB microcontroller part. So you've got to get like a USB to serial 70 00:07:09,240 --> 00:07:16,220 programmer to actually code that. Now the flip side is once you have that done, this is smaller and 71 00:07:16,880 --> 00:07:24,060 lower power, et cetera. So, you know, there's always kind of a yin and yang. Now there's also a really neat thing with these 72 00:07:25,180 --> 00:07:29,880 ESP8266s is that there's a lot of things called shields. If you're not familiar with a shield, 73 00:07:30,020 --> 00:07:35,480 because I assume someone somewhere watching this isn't, it's basically a little board that sits on 74 00:07:35,480 --> 00:07:41,500 top of it or underneath, depending, that with that you can actually break out and do other stuff 75 00:07:41,500 --> 00:07:48,040 and attach cool things to it. So like there's relay boards. There's micro SD boards. There's soil 76 00:07:48,040 --> 00:07:54,180 temperature sensors. There's humidity sensors. The list kind of goes on and on. So there's a lot of 77 00:07:54,200 --> 00:08:00,200 stuff out there. And this is a pretty common device. So if you look up a project with ESP8266s 78 00:08:01,140 --> 00:08:06,140 chances are somebody has done something and you can learn from their mistakes or just riff off of 79 00:08:06,140 --> 00:08:16,180 what they did, which is not rip but riff. So that's pretty cool. So with these PIN outs, sorry, a few of 80 00:08:16,180 --> 00:08:20,520 the PIN outs are reserved for programming so you can't use all the PINs if you want to be able to use 81 00:08:20,520 --> 00:08:26,620 it later. And most of them have an analog IO pin which basically means it can read voltages 82 00:08:26,620 --> 00:08:32,860 between zero and one volts. So you can have like a rheostat or a trim pot hooked up to a 83 00:08:32,860 --> 00:08:37,980 voltage and step down so you can actually read the dial which is kind of cool. But you have to 84 00:08:37,980 --> 00:08:43,840 write the code for that which, you know, is always that. Now, I haven't done too much with 85 00:08:43,840 --> 00:08:49,320 the relays and stuff yet but you can do some pretty neat stuff with them. So if you've gone 86 00:08:49,320 --> 00:08:55,060 to enough conventions, you probably have ESP8266s hanging around in your badge bag on the 87 00:08:55,060 --> 00:09:02,060 badge. Alternatively, you can buy them on Amazon Prime for cheap. Not too cheap but, you know, 88 00:09:02,060 --> 00:09:07,840 under ten bucks delivered. And eBay, you can get them on a slow boat from China for under four or 89 00:09:07,840 --> 00:09:13,600 five bucks depending on what you want to do. Now, in quantity, like what I'm doing, it's 90 00:09:13,600 --> 00:09:19,300 having something cheap adds up when you're doing a bunch of it. So depending on what you're 91 00:09:19,300 --> 00:09:23,680 doing and what you want to do with them, I don't have empirical proof but the NodeMCU boards 92 00:09:23,680 --> 00:09:29,980 tend to be less power hungry than the Wemos chips. And later on I can show you what they look 93 00:09:29,980 --> 00:09:37,800 like up here on the device. But so what I got hooked on was that last year I rickrolled a bunch 94 00:09:37,800 --> 00:09:46,500 of people at the con and I broadcasted some SSIDs, which was pretty fun. So with SSIDs, it's 95 00:09:46,500 --> 00:09:49,280 basically when you open up your phone, you know, you're going to get a message saying, you know, 96 00:09:49,300 --> 00:09:51,080 I'm going to use this. And then you're going to go back and look at the available Wi-Fi networks. 97 00:09:51,440 --> 00:09:56,860 That's just the access points. So what these are doing is just broadcasting just the beacon frame 98 00:09:56,860 --> 00:10:02,480 of the Wi-Fi access point, not actually responding to any other results. So you see all these 99 00:10:02,480 --> 00:10:06,840 access points but you can't actually connect to them or do anything to them. So that's pretty fun 100 00:10:06,840 --> 00:10:12,600 because there's nothing like having something that looks malicious that you can't connect to. But 101 00:10:12,600 --> 00:10:19,280 that's just me. And what I did is I just basically had it in a little Ziploc bag and it was just 102 00:10:19,280 --> 00:10:24,800 put it together and just with the USB powered and I kept that in my backpack the whole convention 103 00:10:24,800 --> 00:10:28,620 and it was fun. People were like, have you checked the Wi-Fi? And I was like, yeah, 104 00:10:28,680 --> 00:10:37,720 I have. But that's me kind of bragging on myself there. So technicalities. So one thing I found 105 00:10:37,720 --> 00:10:45,780 with these ESP8266s, if you want to advertise a persistent set of Wi-Fi SSIDs with randomized 106 00:10:45,780 --> 00:10:53,020 Macs, I had to stick between 13 and 17 total access points per board to have it stable when 107 00:10:53,020 --> 00:10:57,220 you pull up your phone because you have to broadcast the beacon frames often enough for a 108 00:10:57,220 --> 00:11:02,120 computer to pick it up and my code is not perfectly optimized because I borrowed other people's and 109 00:11:02,120 --> 00:11:07,680 honestly I'm just like a little gorilla with the code sometimes just going poke, poke, poke, what 110 00:11:07,680 --> 00:11:14,820 happens. So that was pretty funny which led me to an idea I had which is, well, if you have a 111 00:11:14,820 --> 00:11:15,760 couple of these things, if you have a couple of these things, if you have a couple of these 112 00:11:15,780 --> 00:11:23,880 things, what happens if you have a bunch of them in your broadcast? So if you haven't heard of it, 113 00:11:23,960 --> 00:11:31,660 this Wi-Fi mapper, Echo Who's Wi-Fi mapper, they have, it's like a laptop-based product. It's 114 00:11:31,660 --> 00:11:37,340 free. You can get it, download it, install it. And it generates really beautiful, pretty picture 115 00:11:37,340 --> 00:11:41,400 graphs and charts which is pretty much the most important thing when you're talking to business 116 00:11:41,400 --> 00:11:45,760 to say, hey, I need three more access points over here. You can do the business. You can do the 117 00:11:45,760 --> 00:11:51,120 work with this mapper and show them that, yeah, this red part here, that's bad. We need to have 118 00:11:51,120 --> 00:11:56,600 more access points or change the channels, that type of thing. But, you know, for personal use, 119 00:11:56,660 --> 00:12:05,440 it's free. So that's pretty cool. So what I did is this is a baseline scan of my house. And some 120 00:12:05,440 --> 00:12:11,900 of it's been redacted for obvious reasons. I mean, you know, but so basically the line in the 121 00:12:11,900 --> 00:12:15,740 middle near the top, that's where I set in the scanner that I was walking around with my 122 00:12:15,760 --> 00:12:21,280 house. So each of those is a point in my house. And that's just what the scanner looks like. It 123 00:12:21,280 --> 00:12:27,460 actually was run on this laptop at the time, which is pretty cool. But I found out something 124 00:12:27,460 --> 00:12:35,780 fun. Is that when I did with 14 early beaconators, a previous version of this, ones on the top here, I 125 00:12:35,780 --> 00:12:44,720 had those running. I ran the Wi-Fi scanner and something fun happened. Ta-da! Windows slowed to a 126 00:12:44,720 --> 00:12:51,180 crawl, and the program crashed. It just didn't want to do anything. So after that I basically 127 00:12:51,180 --> 00:12:55,880 decided not to be a complete tool, and I restarted the computer fresh. So I don't have any 128 00:12:55,880 --> 00:13:04,220 memory issues. It's not a super vask computer here. So going again, I was like, huh, well, I did 129 00:13:04,220 --> 00:13:11,020 the restart here. And then, boom! So what happened was you can't really see much here. But that 130 00:13:11,020 --> 00:13:14,700 little thing in the middle was all the data I was able to connect, collect. But, there's a lot of 131 00:13:14,700 --> 00:13:18,840 because it just wouldn't, it just slowed to a crawl. 132 00:13:19,120 --> 00:13:21,500 There's so many little things happening. 133 00:13:21,660 --> 00:13:23,920 As I was walking along, you can barely see it, 134 00:13:23,940 --> 00:13:28,100 but there's that green line has little striations, 135 00:13:28,300 --> 00:13:30,660 and each of those striations is an access point. 136 00:13:31,400 --> 00:13:35,760 So in theory, you could use a bunch of beacons like this to mask other attacks 137 00:13:35,760 --> 00:13:41,280 or to be a red team and just kind of make a squawker 138 00:13:41,280 --> 00:13:43,900 and see if anybody notices on the blue team that, 139 00:13:43,900 --> 00:13:46,320 hey, there's 24 access points where there used to be two. 140 00:13:47,240 --> 00:13:48,440 It goes investigate. 141 00:13:48,800 --> 00:13:54,480 And you can do that based off of one little thing that fits in the palm of your hand in a battery. 142 00:13:54,680 --> 00:13:55,880 It's pretty cool. 143 00:13:56,120 --> 00:14:01,180 So a close-up, you know, it took a long time. 144 00:14:01,320 --> 00:14:05,860 It literally took about 10 minutes from the time I turned off the beaconator 145 00:14:05,860 --> 00:14:11,020 before actually the results were able to show up in here and the application caught up to it. 146 00:14:11,140 --> 00:14:13,700 And it's Java-based, which isn't bad. 147 00:14:13,900 --> 00:14:16,980 But, you know, Java memory, but it's multi-platform. 148 00:14:17,180 --> 00:14:20,760 So I zoomed in and enhanced it, but enhancing doesn't work 149 00:14:20,760 --> 00:14:23,980 because it's not the best resolution. 150 00:14:24,300 --> 00:14:29,480 But each of those striations is basically an access point, which is pretty cool. 151 00:14:30,320 --> 00:14:33,960 And that's just with basically a third of what's here on the top. 152 00:14:34,320 --> 00:14:38,800 If I had it fully running, which I haven't had a chance to test yet, that would be pretty fun. 153 00:14:40,880 --> 00:14:43,260 So with ESP8266s, 154 00:14:43,260 --> 00:14:45,600 you can do things like a deauth, 155 00:14:45,780 --> 00:14:49,720 space hunt, develop the ESP8266 Wi-Fi deauthor, 156 00:14:49,920 --> 00:14:54,700 which is neat, but I just don't really feel like it's kind of a dick move 157 00:14:54,700 --> 00:14:56,180 and it's not really something I want to do. 158 00:14:57,480 --> 00:15:02,580 But really cool stuff that you can build in terms of just craziness 159 00:15:03,860 --> 00:15:07,280 is you can build, like, IoT relay devices. 160 00:15:07,620 --> 00:15:11,140 You can use these devices to hook up to, like, your garage door 161 00:15:11,140 --> 00:15:12,340 so you get close to your house, 162 00:15:12,520 --> 00:15:13,240 connect to your phone, 163 00:15:13,240 --> 00:15:13,700 connect to your Wi-Fi, 164 00:15:13,880 --> 00:15:17,200 hit a button and pop your garage. 165 00:15:17,640 --> 00:15:21,040 You do hook them up to power strips, lawn garden sprinkler systems. 166 00:15:21,480 --> 00:15:22,880 One guy did a tea kettle. 167 00:15:23,060 --> 00:15:26,660 So he's sitting in bed, has a tea kettle ready to go, 168 00:15:26,800 --> 00:15:30,380 pops open his phone and just logs into his tea kettle 169 00:15:30,380 --> 00:15:32,680 and hits a button and it starts up the tea kettle. 170 00:15:32,820 --> 00:15:35,360 So he can get his tea started without being out of bed. 171 00:15:35,600 --> 00:15:37,120 You can do the same thing with coffee. 172 00:15:37,720 --> 00:15:42,200 And with a soil sample or soil sensors in there, 173 00:15:42,300 --> 00:15:43,060 you can also, 174 00:15:43,060 --> 00:15:46,640 like, hook up your own grow house for, you know, vegetables. 175 00:15:48,040 --> 00:15:49,160 That type of thing. 176 00:15:49,760 --> 00:15:51,860 You wouldn't want to use these to control it 177 00:15:51,860 --> 00:15:53,080 because they don't have a ton of power, 178 00:15:53,320 --> 00:15:56,320 but you could use it to monitor every plant for under, 179 00:15:56,880 --> 00:16:01,320 or every pot for every, probably under 15 bucks total 180 00:16:01,320 --> 00:16:03,200 if you didn't buy things in bulk, 181 00:16:03,400 --> 00:16:06,400 which per, you know, that's a pretty reasonable price for tomatoes. 182 00:16:08,180 --> 00:16:10,700 But it's amazing the stuff you can do with it. 183 00:16:10,780 --> 00:16:13,040 Like, if you wanted to build your own Christmas lightsabers, 184 00:16:13,040 --> 00:16:15,320 you could have a display, you could have a Wi-Fi power with these guys, 185 00:16:15,720 --> 00:16:20,480 with little, um, the mains power running the ESP266s, 186 00:16:20,480 --> 00:16:21,220 so it wouldn't lose power. 187 00:16:21,440 --> 00:16:22,440 You don't have to worry about battery. 188 00:16:22,700 --> 00:16:23,740 Just doing a little relay. 189 00:16:23,940 --> 00:16:25,900 I've got a board relay I can show you guys. 190 00:16:26,180 --> 00:16:27,720 Well, actually it's, I'm sorry. 191 00:16:27,960 --> 00:16:29,900 I have a board relay at home I could show you guys. 192 00:16:30,060 --> 00:16:32,100 But basically you see what a relay looks like. 193 00:16:32,260 --> 00:16:34,220 It just fits on a little shield that goes on it 194 00:16:34,220 --> 00:16:35,760 or you can wire up it yourself to it. 195 00:16:36,100 --> 00:16:36,860 It's pretty cool. 196 00:16:39,000 --> 00:16:42,960 So, the limitations of ESP266s is, well, 197 00:16:42,960 --> 00:16:44,040 it's single threaded. 198 00:16:44,280 --> 00:16:46,440 So it's limited to about a mega program space. 199 00:16:47,400 --> 00:16:52,140 And then on top of that you have some flash memory you can access, 200 00:16:52,260 --> 00:16:54,000 but it's not stupid easy. 201 00:16:54,320 --> 00:16:56,060 You have to actually do a little bit of work. 202 00:16:56,620 --> 00:17:00,740 And then the other thing with these is the reading and writing from the micro SD cards 203 00:17:00,740 --> 00:17:01,760 is a bit slow. 204 00:17:02,060 --> 00:17:04,260 It's probably me, but I had the pin out, 205 00:17:04,340 --> 00:17:07,780 I had the, um, text coming from serving, 206 00:17:07,820 --> 00:17:10,480 like I had a web page serving from the micro SD card, 207 00:17:10,580 --> 00:17:12,400 and I was watching the text scroll, 208 00:17:12,400 --> 00:17:13,180 and refresh, 209 00:17:13,400 --> 00:17:15,760 and it was just painful to watch the text show up on the screen. 210 00:17:16,200 --> 00:17:17,360 So that was kind of funny. 211 00:17:17,460 --> 00:17:18,960 Now it could totally be me, 212 00:17:19,120 --> 00:17:22,240 and there may be ways to serve it quickly for micro SD cards, 213 00:17:22,520 --> 00:17:24,780 but I think they're better suited for logging. 214 00:17:25,120 --> 00:17:27,060 So you could use it like for a logging system. 215 00:17:28,300 --> 00:17:31,020 But one thing I noticed, which is kind of interesting, 216 00:17:31,200 --> 00:17:33,080 is that something was missing. 217 00:17:33,260 --> 00:17:35,160 So when I was working on this, 218 00:17:35,280 --> 00:17:37,620 I could show things up in my phone, right? 219 00:17:37,860 --> 00:17:41,500 But I couldn't find anything in Wireshark. 220 00:17:41,500 --> 00:17:45,160 So basically what I had to do right here is, 221 00:17:45,920 --> 00:17:47,760 well, it's kind of small to see, 222 00:17:47,840 --> 00:17:49,580 but I had to set the time, 223 00:17:49,780 --> 00:17:51,920 because when you turn an ESP266 on, 224 00:17:52,080 --> 00:17:54,980 it has an internal timer from the time it turns on. 225 00:17:55,200 --> 00:17:57,760 I'm not familiar with how to actually change that timer, 226 00:17:57,900 --> 00:17:59,620 so you probably have to mod the, 227 00:17:59,720 --> 00:18:02,560 like add the value to that to actually adjust the time. 228 00:18:02,900 --> 00:18:04,580 But with that timer, 229 00:18:04,680 --> 00:18:06,560 it gives you a timestamp, 230 00:18:06,760 --> 00:18:09,040 which is awesome because in the beacon frame, 231 00:18:09,120 --> 00:18:09,900 which is pretty long, 232 00:18:09,900 --> 00:18:12,180 one of those slots is for the time. 233 00:18:12,260 --> 00:18:13,940 And without that timestamp being populated, 234 00:18:14,300 --> 00:18:18,540 you're going to end up with basically it not showing up in Wireshark, 235 00:18:18,640 --> 00:18:19,760 at least the way I had it configured. 236 00:18:23,180 --> 00:18:25,480 So this is the beaconator lit up. 237 00:18:33,200 --> 00:18:34,660 And with the beaconator, 238 00:18:37,080 --> 00:18:38,780 it's two sections. 239 00:18:38,780 --> 00:18:40,800 The big section and the smaller section. 240 00:18:45,200 --> 00:18:47,260 So in the smaller section, 241 00:18:47,400 --> 00:18:48,320 it's got a Rickroll unit. 242 00:18:48,760 --> 00:18:50,960 It's got a couple of Project Trevor units. 243 00:18:51,220 --> 00:18:52,980 So in about 10, 15 seconds, 244 00:18:53,200 --> 00:18:54,420 you can look at your Wi-Fi. 245 00:18:54,560 --> 00:18:57,260 You should see some interesting Wi-Fi access points available. 246 00:18:57,940 --> 00:18:59,000 When I say available, 247 00:18:59,300 --> 00:19:00,620 they're not really available. 248 00:19:00,820 --> 00:19:01,400 They're just there. 249 00:19:01,580 --> 00:19:03,700 But one cool thing about them 250 00:19:03,700 --> 00:19:07,300 is I do have four book servers on there, 251 00:19:07,400 --> 00:19:08,280 where they're connected 252 00:19:08,280 --> 00:19:09,780 to DEF CON open right now. 253 00:19:10,000 --> 00:19:11,160 And because of that, 254 00:19:11,160 --> 00:19:11,980 you can find them 255 00:19:12,460 --> 00:19:14,260 and actually download Little Brother 256 00:19:14,720 --> 00:19:16,320 and some other books on there. 257 00:19:17,340 --> 00:19:19,300 But the reason I was able to do that, 258 00:19:19,400 --> 00:19:21,460 even though there's a meg program limitation space 259 00:19:21,460 --> 00:19:22,940 and the files are bigger than a meg, 260 00:19:23,060 --> 00:19:25,240 is that there's a thing called SPIFs. 261 00:19:25,580 --> 00:19:27,980 Now, not SPLIF, but SPIFs. 262 00:19:28,080 --> 00:19:28,700 It's called 263 00:19:29,880 --> 00:19:32,300 Stereo Peripheral Interface Flash File System, 264 00:19:32,460 --> 00:19:33,700 which is a mouthful, 265 00:19:33,740 --> 00:19:36,280 but it basically allows you to put the files 266 00:19:36,280 --> 00:19:38,460 in the leftover memory 267 00:19:38,460 --> 00:19:39,680 after you've programmed the device. 268 00:19:39,940 --> 00:19:44,960 You have to download a tool from GitHub to do this, 269 00:19:45,020 --> 00:19:45,880 but it's pretty cool. 270 00:19:47,340 --> 00:19:50,700 So you're limited to about 3 megs of space on it, 271 00:19:50,760 --> 00:19:51,520 which is pretty neat. 272 00:19:52,680 --> 00:19:55,420 But overall, on this thing, too, 273 00:19:55,540 --> 00:19:57,180 it's got an aluminum frame. 274 00:19:57,360 --> 00:20:01,500 The battery in here is AGM gel lead acid, 275 00:20:01,660 --> 00:20:03,240 which is 110. 276 00:20:03,600 --> 00:20:06,040 And because of time and skill, 277 00:20:06,040 --> 00:20:07,980 I just have it running at 110, 278 00:20:08,640 --> 00:20:10,200 dropping down to 12 volts 279 00:20:10,200 --> 00:20:12,340 through some Anker adapters. 280 00:20:12,800 --> 00:20:13,840 In a perfect world, 281 00:20:13,960 --> 00:20:16,000 I would put lithium ion batteries in here, 282 00:20:16,140 --> 00:20:17,220 because this thing's heavy, 283 00:20:17,340 --> 00:20:19,700 but I did add wheels, which is pretty cool. 284 00:20:21,740 --> 00:20:23,920 And overall, with this thing, 285 00:20:27,240 --> 00:20:28,740 the hardware's pretty nice, 286 00:20:28,860 --> 00:20:30,380 but I got the hardware at the hardware store, 287 00:20:30,560 --> 00:20:33,540 so the frame is just some aluminum stuff, stock, 288 00:20:34,340 --> 00:20:34,800 and... 289 00:20:34,800 --> 00:20:36,640 different things here. 290 00:20:38,600 --> 00:20:39,920 And it's ungainly, 291 00:20:39,980 --> 00:20:41,100 but I can wear it if I have to. 292 00:20:41,460 --> 00:20:44,980 And the software for the Beaconator is pretty basic. 293 00:20:45,180 --> 00:20:48,180 So what I did is I basically tinkered with a sample 294 00:20:48,180 --> 00:20:50,900 Arduino IDE program 295 00:20:50,900 --> 00:20:54,140 that could do exactly what I wanted it to do. 296 00:20:54,220 --> 00:20:57,440 And you use Python to go through 297 00:20:57,440 --> 00:21:03,800 and basically tag on the body of the program 298 00:21:04,900 --> 00:21:10,660 and just tag on like 2,800 lines of beacons per sample. 299 00:21:10,800 --> 00:21:13,460 So it would go through and create an Arduino sketch 300 00:21:13,460 --> 00:21:17,280 for every 2,800 samples that it's running, 301 00:21:17,420 --> 00:21:18,220 which is pretty neat. 302 00:21:18,420 --> 00:21:20,460 And I'll be posting that here after the convention. 303 00:21:23,020 --> 00:21:24,840 And so with the mobile book library, 304 00:21:25,180 --> 00:21:27,440 it's basically just electronic only. 305 00:21:27,680 --> 00:21:29,560 There's just four of them running right now. 306 00:21:29,860 --> 00:21:31,920 And thanks to the Gutenberg Library 307 00:21:31,920 --> 00:21:33,780 for basically supporting me 308 00:21:33,780 --> 00:21:36,460 and supplying free books for me to use. 309 00:21:37,320 --> 00:21:40,180 So the first book I put on there was Frankenstein 310 00:21:40,180 --> 00:21:42,480 because, I mean, why not? 311 00:21:43,800 --> 00:21:47,100 And I also have to give a shout out to Foon on Twitter 312 00:21:47,100 --> 00:21:49,440 because he wrote the Sierra Death Generator, 313 00:21:49,500 --> 00:21:50,720 which I use to generate these images. 314 00:21:51,800 --> 00:21:54,460 And the second one I put on there was Alice in Wonderland 315 00:21:55,200 --> 00:21:59,680 because, you know, Alice and Bob, I had to. 316 00:21:59,880 --> 00:22:02,100 And for the fun of it, I put on Sherlock Holmes. 317 00:22:02,100 --> 00:22:06,320 You know, now I could have, if I had enough time, 318 00:22:06,360 --> 00:22:07,540 I could have done some steganography 319 00:22:07,540 --> 00:22:08,820 and messed with people a little bit, 320 00:22:08,900 --> 00:22:11,220 but I didn't have enough time. 321 00:22:11,660 --> 00:22:13,800 And, of course, I put on Little Brother 322 00:22:13,800 --> 00:22:15,900 because, I mean, why not? 323 00:22:17,840 --> 00:22:19,960 So overall here on the top part, 324 00:22:20,460 --> 00:22:22,600 I'm about to plug it all in here for a second. 325 00:22:22,760 --> 00:22:24,000 This hasn't been running at all. 326 00:22:25,040 --> 00:22:29,560 Each, it'll pump out, every six seconds, 327 00:22:29,620 --> 00:22:32,080 it pumps out 130,000 beacon frames. 328 00:22:32,080 --> 00:22:34,460 It pumps out 130,000 beacon IDs a second, 329 00:22:34,620 --> 00:22:36,100 or not, every six seconds. 330 00:22:36,340 --> 00:22:37,840 And back in the napkin math, 331 00:22:37,980 --> 00:22:41,300 it works out to be about a million beacons, 332 00:22:42,140 --> 00:22:44,580 wireless access points get advertised every minute. 333 00:22:44,800 --> 00:22:47,220 And because each beacon consists of two frames, 334 00:22:47,900 --> 00:22:51,460 it's actually pumping about two million frames a minute, 335 00:22:51,640 --> 00:22:52,460 which is fun. 336 00:22:52,640 --> 00:22:54,780 And the reason I know this is because... 337 00:23:07,840 --> 00:23:08,320 . 338 00:23:12,700 --> 00:23:15,280 Is because every six seconds or so, 339 00:23:15,440 --> 00:23:16,940 these suckers will light up. 340 00:23:17,140 --> 00:23:18,040 And let me just double check. 341 00:23:19,880 --> 00:23:20,360 . 342 00:23:27,640 --> 00:23:29,280 The demo gods are not smiling. 343 00:23:29,280 --> 00:23:30,120 One second, sorry. 344 00:23:47,720 --> 00:23:48,120 Okay. 345 00:23:48,360 --> 00:23:50,140 So now we're rocking and rolling. 346 00:23:50,480 --> 00:23:52,340 So pretty soon you're going to see a few 347 00:23:52,340 --> 00:23:54,980 Wi-Fi access points on your phone. 348 00:23:55,220 --> 00:23:57,180 It's probably going to take 30 seconds to a minute 349 00:23:57,180 --> 00:23:58,340 for all of them to spin up. 350 00:23:59,280 --> 00:24:01,460 Right now, if you're running just 8021B, 351 00:24:01,680 --> 00:24:03,420 you may have problems with the Internet. 352 00:24:03,580 --> 00:24:04,620 It may be getting a little bit slow. 353 00:24:05,180 --> 00:24:07,260 It's not de-offing anything. 354 00:24:07,440 --> 00:24:09,080 It's basically a bunch of people in a room 355 00:24:09,080 --> 00:24:10,460 shouting really loud, going, 356 00:24:10,620 --> 00:24:12,000 hey, I've got a Wi-Fi access point. 357 00:24:12,120 --> 00:24:13,300 I've got a Wi-Fi access point. 358 00:24:14,120 --> 00:24:16,060 130,000 times every six seconds. 359 00:24:17,460 --> 00:24:18,580 Just for the fun of it. 360 00:24:19,000 --> 00:24:21,120 Now, I don't run that thing everywhere 361 00:24:21,120 --> 00:24:23,500 because I don't want to be a complete, 362 00:24:25,080 --> 00:24:26,340 complete dick on it. 363 00:24:26,660 --> 00:24:28,680 But so the way I know that... 364 00:24:28,680 --> 00:24:29,900 how many it's running 365 00:24:29,900 --> 00:24:32,460 is because I have a list of about 2,900 366 00:24:32,460 --> 00:24:34,620 each one of these 44 units 367 00:24:34,620 --> 00:24:35,340 on the top here. 368 00:24:35,540 --> 00:24:36,820 And from that list, 369 00:24:36,940 --> 00:24:39,600 I turn the LED on at the start 370 00:24:39,600 --> 00:24:41,920 and every time it hits the start of it, 371 00:24:41,960 --> 00:24:43,540 it toggles LED light. 372 00:24:43,980 --> 00:24:45,620 So if you're running, like, 373 00:24:46,900 --> 00:24:47,760 Wireshark right now, 374 00:24:47,780 --> 00:24:49,320 you might be seeing a few beacon frames 375 00:24:49,320 --> 00:24:50,560 if you have your beacons enabled. 376 00:24:51,100 --> 00:24:52,980 And what shows up on your phone 377 00:24:52,980 --> 00:24:55,400 isn't actually all the beacons available. 378 00:24:55,680 --> 00:24:57,800 It's just what your phone can actually capture 379 00:24:58,680 --> 00:25:01,100 and there's also a bunch of RFID collision 380 00:25:01,100 --> 00:25:02,840 or radio collision because of that. 381 00:25:03,100 --> 00:25:04,560 So this is much more 382 00:25:04,560 --> 00:25:06,520 of like a cool toy than it is 383 00:25:06,520 --> 00:25:08,600 actually something you could use 384 00:25:08,600 --> 00:25:10,860 overall, like in the package it is in. 385 00:25:10,980 --> 00:25:12,720 It's just more like a fun experiment. 386 00:25:13,280 --> 00:25:13,800 But 387 00:25:14,600 --> 00:25:16,260 for possible future uses, 388 00:25:16,500 --> 00:25:18,500 you know, I thought of maybe 389 00:25:18,500 --> 00:25:20,700 making this thing 390 00:25:20,700 --> 00:25:22,140 into a big open library 391 00:25:22,680 --> 00:25:23,940 where have it broadcast 392 00:25:23,940 --> 00:25:25,500 all these access points 393 00:25:25,500 --> 00:25:27,840 and each access point is a book that you can connect to 394 00:25:28,680 --> 00:25:29,720 and have a whole bunch of books. 395 00:25:29,880 --> 00:25:32,120 Like you just have a mobile electronic book library. 396 00:25:32,900 --> 00:25:34,220 Which, you know, I thought was kind of fun. 397 00:25:34,920 --> 00:25:36,360 I thought maybe of doing like a 398 00:25:36,360 --> 00:25:37,320 route map beaconator. 399 00:25:37,500 --> 00:25:38,960 So you have a load of route map 400 00:25:38,960 --> 00:25:40,440 if you want to share with some friends 401 00:25:40,440 --> 00:25:41,880 that are just within a Wi-Fi range 402 00:25:41,880 --> 00:25:44,140 so they can connect to it and see what's going on. 403 00:25:47,480 --> 00:25:48,120 And also 404 00:25:48,120 --> 00:25:49,940 I thought maybe a survival beaconator 405 00:25:49,940 --> 00:25:51,420 where you can hook up a solar cell to it 406 00:25:51,420 --> 00:25:52,820 and actually run a bunch of stuff 407 00:25:53,920 --> 00:25:56,120 with like survival manuals 408 00:25:56,120 --> 00:25:57,720 and that type of thing. But it's a little impractical. 409 00:25:58,800 --> 00:26:00,840 But another fun thing I thought of 410 00:26:00,840 --> 00:26:02,420 is basically what happens 411 00:26:02,420 --> 00:26:04,560 if you go to the Yankees game 412 00:26:04,560 --> 00:26:06,960 broadcasting a whole bunch of times 413 00:26:06,960 --> 00:26:08,580 that the Red Sox 414 00:26:08,580 --> 00:26:09,480 are going to win. 415 00:26:09,660 --> 00:26:10,880 Or Yankees suck. 416 00:26:11,180 --> 00:26:13,160 I mean, take your way. 417 00:26:13,280 --> 00:26:15,520 Or here, saying that Vim is better than Emacs. 418 00:26:15,760 --> 00:26:16,280 But anyways. 419 00:26:17,660 --> 00:26:20,640 You know, there's lots of ways to start stuff. 420 00:26:20,980 --> 00:26:22,160 And unfortunately 421 00:26:22,160 --> 00:26:23,260 with something like this 422 00:26:23,260 --> 00:26:25,100 eventually people are going to use it 423 00:26:25,100 --> 00:26:27,460 to basically broadcast spam. 424 00:26:28,680 --> 00:26:30,280 Which is maybe not right away 425 00:26:30,280 --> 00:26:31,100 but eventually. 426 00:26:33,080 --> 00:26:33,760 So 427 00:26:34,680 --> 00:26:35,100 basically 428 00:26:36,580 --> 00:26:37,260 ESP8266's 429 00:26:39,140 --> 00:26:41,140 are a gateway drug 430 00:26:41,140 --> 00:26:42,240 to microcontrollers 431 00:26:42,240 --> 00:26:44,500 and possibly some pretty bad decisions 432 00:26:44,500 --> 00:26:46,300 depending on what you want to do. 433 00:26:46,880 --> 00:26:47,560 But 434 00:26:47,560 --> 00:26:48,980 right here 435 00:26:48,980 --> 00:26:50,660 is the Github 436 00:26:50,660 --> 00:26:51,900 if you want to write it down 437 00:26:51,900 --> 00:26:52,920 it will be available Wednesday 438 00:26:52,920 --> 00:26:55,800 and if anybody has any questions 439 00:26:58,680 --> 00:26:59,000 please let me know in the comments. 440 00:26:59,000 --> 00:27:00,480 If you want to see any specific spots 441 00:27:00,480 --> 00:27:01,280 ahead of time. 442 00:27:02,120 --> 00:27:03,460 And I really thank you guys 443 00:27:03,460 --> 00:27:04,760 for sticking through it 444 00:27:04,760 --> 00:27:07,380 and enjoy the rest of the convention guys.