1 00:00:00,000 --> 00:00:05,440 With that said, it is now my pleasure to introduce to you the first speaker of the day. 2 00:00:06,600 --> 00:00:15,620 It's going to be Ghost. Ghost. And he'll talk about microcontrollers. And Michael's going 3 00:00:15,620 --> 00:00:21,040 for, oh, yes, for fun and profit. Without much ado, Ghost, everyone. 4 00:00:23,680 --> 00:00:29,620 Give me a second to get everything on. So just a couple of logistical notes. The 5 00:00:29,620 --> 00:00:35,600 talk is slated for about a half hour every time I've timed it. So that's probably where we're 6 00:00:35,600 --> 00:00:46,280 going to end up today. And, yeah. So my hope with this talk is that I'm not introducing a zero-day, 7 00:00:46,340 --> 00:00:50,760 but I'm showing you guys something that I thought was cool and fun. And hopefully inspire you 8 00:00:50,760 --> 00:00:55,940 guys to maybe pick some of these boards up and come up with something even more awesome. So 9 00:00:57,000 --> 00:00:59,600 let's get the technical details out of the way. Who is the first speaker of the day? 10 00:00:59,600 --> 00:01:03,580 Who is this crazy person sitting up here? This is me. I'm an application security engineer for a 11 00:01:03,580 --> 00:01:10,680 company called Open Door in San Francisco. I started out as a front-end full-stack developer. So 12 00:01:10,680 --> 00:01:14,440 those of you who are full-stack front-end developers, engineers, and thinking about getting 13 00:01:14,440 --> 00:01:21,500 into security, it's an awesome way to go about doing it. Your development skills are very much in 14 00:01:21,500 --> 00:01:29,040 need. And so I highly recommend it. I'm very passionate about information security. If you've 15 00:01:29,040 --> 00:01:33,540 talked to me at the Wall of Sheep, hopefully my, by the way, I apologize if my voice is going. I've 16 00:01:33,540 --> 00:01:39,820 been talking at Wall of Sheep for going on three days now. So if you've talked to me, you know that 17 00:01:39,820 --> 00:01:45,220 I'm very passionate about this field. I'm the concept creator behind something called Day of 18 00:01:45,220 --> 00:01:52,280 Security. If, yeah, thank you. So if you haven't heard of Day of Security, this is a conference 19 00:01:52,280 --> 00:01:57,920 that we've created in San Francisco. We're hoping to take it national to bring more women into the 20 00:01:57,920 --> 00:01:59,020 industry. And so I'm going to give you a little bit of an overview of what we're going to do today. 21 00:01:59,040 --> 00:02:03,160 We're going to go through a full day of hands-on training, and we raffle off full expensive paid 22 00:02:03,160 --> 00:02:07,780 trips to DEF CON. So if that's something you're interested in hearing about or participating in or 23 00:02:07,780 --> 00:02:14,020 volunteering with, please let me know. I'll be glad to talk about it. I'm also a volunteer with 24 00:02:14,020 --> 00:02:22,000 the Bay Area OAS, B-Sides, and, of course, Wall of Sheep. And I can't leave this out. I'm a 25 00:02:22,000 --> 00:02:29,020 Philadelphian. Proud. So the big question that I usually get from all of you is, well, I'm a 26 00:02:29,040 --> 00:02:35,500 lot of this is, well, I can't just buy these things. Why even make it yourself? So a lot of the 27 00:02:35,500 --> 00:02:41,440 commercial solutions that are out there are expensive. I, there are companies here, I own most 28 00:02:41,440 --> 00:02:47,760 of their products. I love those products, but they're not, they're not cheap. A lot of these, you 29 00:02:47,760 --> 00:02:53,140 may have an engagement that requires disposable hardware. I love my rubber ducky. I don't want you 30 00:02:53,140 --> 00:02:58,980 to love my rubber ducky, so I'm going to keep my rubber ducky. So for disposable stuff, it may 31 00:02:58,980 --> 00:03:06,520 make much more sense to have something that's maybe cheaper. And much like that, they are also 32 00:03:06,520 --> 00:03:10,500 recognizable. So if I walk down the street and I see a bash bunny or a rubber ducky on the ground, 33 00:03:10,660 --> 00:03:17,060 that's going home with me. I'm not turning that in. And a lot of these features, a lot of these 34 00:03:17,060 --> 00:03:21,220 solutions offer a ton of features, which is great if you need those features, but if you just need a 35 00:03:21,220 --> 00:03:26,760 one-off or something very cheap, sometimes it's better to make it yourself. And, of course, in 36 00:03:26,760 --> 00:03:28,960 this crowd, DIY is fun. We all do. 37 00:03:28,980 --> 00:03:37,860 We all love DIY. Just some basics. Forgive me if this is overly simple, but really what we're 38 00:03:37,860 --> 00:03:40,660 looking at the difference here is the difference between a microcontroller and a 39 00:03:40,660 --> 00:03:46,240 microprocessor. So with the microcontroller, that's that guy right there. It's the integrated 40 00:03:46,240 --> 00:03:54,300 system on an Arduino versus our microprocessor that we all know is part of a larger system, which 41 00:03:54,300 --> 00:03:58,960 is that, which is the Raspberry Pi. Just as an aside, I'm going to show you a little bit of a 42 00:03:58,980 --> 00:04:03,000 little bit of an example here. If we're not aware, that the Arduino itself is not a microcontroller. 43 00:04:03,300 --> 00:04:13,180 The microcontroller is the item in the circle. The Arduino is the development platform. So let's take 44 00:04:13,180 --> 00:04:18,320 it one step further and look at microcontrollers versus systems on a chip. So the system on a chip 45 00:04:18,320 --> 00:04:23,960 is a microcontroller, but it's all soldered together. It's one unit. That's that guy right there. 46 00:04:24,020 --> 00:04:28,760 There's your microcontrollers. So unlike the Arduino platform, you can't 47 00:04:28,980 --> 00:04:34,960 swap these microcontrollers off. That unit comes as it is. However, much like a lot of the 48 00:04:34,960 --> 00:04:41,380 Arduinos, these are considered development boards because they have the USB port in there. And as 49 00:04:41,380 --> 00:04:45,480 you'll note from my arm, which I'm going to talk about later, that's something that I felt was, 50 00:04:46,040 --> 00:04:53,820 worked very well for the use case. So when to choose a microcontroller or a system on a chip. 51 00:04:54,160 --> 00:04:57,720 By the way, let me just slip back because I actually wanted to walk through one other thing with you. 52 00:04:59,100 --> 00:05:08,220 I forgot. Those boards, that is the ESP8266 in the top. The middle one is ESP32 and the bottom one is 53 00:05:08,220 --> 00:05:15,760 the ES32B. And that is the order in which they've, I believe, been released. I haven't done much work 54 00:05:15,760 --> 00:05:27,600 with the ES32s, but the ESP8266, which is the one that I'm wearing, works fairly well. So, 55 00:05:27,720 --> 00:05:34,280 when to choose a microcontroller or a system on a chip. I tend to like the UNIX philosophies here, 56 00:05:34,400 --> 00:05:40,640 is when you want to do one thing and do it well. And again, there's the ESP8266 and then the 57 00:05:40,640 --> 00:05:51,020 bottom two are ATtiny85s in the male and female versions. So here's a little overview of the 58 00:05:51,020 --> 00:05:57,280 ATtiny85. This is a board that I really like. It's a development board. What I wanted to draw your 59 00:05:57,280 --> 00:06:01,700 attention to is two things. First of all, the cost is $1.75 to $4.50, depending on where you get 60 00:06:01,700 --> 00:06:08,120 it on eBay. But this is the real clincher here. You only have about 6K after the bootloader. That's 61 00:06:08,120 --> 00:06:12,940 not a lot of room. However, for some of the things that we're going to do with this, 6K is really 62 00:06:12,940 --> 00:06:21,340 all that we need. So, we take a look at the case study, which many of you, I'm sure, can relate 63 00:06:21,340 --> 00:06:27,260 to. I used to work for a company where laptops get, we got left unlocked all the time. So, it's a 64 00:06:27,280 --> 00:06:32,720 lot of work. It was easy to get access to them and send out emails and harass them, but 65 00:06:32,720 --> 00:06:36,380 unfortunately, as we all know, employees don't learn from shame. They learn from demonstration. 66 00:06:36,860 --> 00:06:44,260 So, I wanted to come up with some way to show people what the damage and what the cost is of 67 00:06:44,260 --> 00:06:48,740 leaving laptops unlocked. At the same time, not embarrassing that one particular individual 68 00:06:48,740 --> 00:06:56,220 because they're not going to learn from that. So, what did we do? We used ATtiny85 during our new 69 00:06:56,220 --> 00:06:57,260 higher orientation to drive the ATtiny85. We used the ATtiny85 to drive the ATtiny85 to drive the 70 00:06:57,280 --> 00:07:03,320 reverse shell on a demo laptop. And we showed employees how easy it was to basically get full 71 00:07:03,320 --> 00:07:11,200 administrative access to their machine. The result? Everybody loved new higher orientation. All 72 00:07:11,200 --> 00:07:14,900 of the employees were excited that their first month in this company that they got to see 73 00:07:14,900 --> 00:07:21,120 hacking. Numbers of laptops unlocked went down drastically. Although, nobody would make anything 74 00:07:21,120 --> 00:07:27,260 USB related for me. Which, as an aside, I remember one day I came in and I had a USB drive and I 75 00:07:27,280 --> 00:07:31,440 had a USB charger and the only person who would take it would be it was a senior, senior, senior, 76 00:07:31,500 --> 00:07:35,760 senior, senior manager because he knew that if there was anything wrong with it, I would be 77 00:07:35,760 --> 00:07:44,760 smited into the ground. So, yeah, nobody takes anything USB from me anymore. So, I will blow up the 78 00:07:44,760 --> 00:07:52,060 screen. I'll blow it up so we can walk through the code in a minute. That's the ATtiny85. Now, one 79 00:07:52,060 --> 00:07:57,140 of the things I noticed, if you play with this board on Macs, you're going to have to slightly 80 00:07:57,140 --> 00:08:05,720 file down the edges. And one of my more intuitive friends said, what do you mean by slightly? So, 81 00:08:05,760 --> 00:08:12,200 let me show you. This is the before and after. And as you can see, it is literally very, very 82 00:08:12,200 --> 00:08:18,740 slight. What the symptoms are is if you plug it in and you haven't done this, you'll see power 83 00:08:18,740 --> 00:08:24,900 going through the circuit but it won't do anything. And so the leads aren't touching. They're just 84 00:08:24,900 --> 00:08:27,120 out of range. And so if you just plug it in and you haven't done this, it will, you'll see power going 85 00:08:27,140 --> 00:08:32,500 just take a file and just very carefully work those edges, it will work on a USB on a Mac. 86 00:08:35,580 --> 00:08:41,460 So let's pop that code up. By the way, everything is available in my Git lab. So if you can't 87 00:08:41,460 --> 00:08:47,440 read it, don't worry about it. But this is basically it. The DigiKeyboard library is 88 00:08:47,440 --> 00:08:52,660 loaded. I have a Boolean in there. And the reason I do that is I tend to like to put 89 00:08:52,660 --> 00:08:57,680 things in the places where they should be. I mean, you might see some people put stuff in the 90 00:08:57,680 --> 00:09:03,740 setup and it works. I tend to like it in the loop. You have a ‑‑ for me, I had an AWS 91 00:09:03,740 --> 00:09:11,400 public IP. I'm not giving you my AWS public IP, of course. And then you have your reverse shell 92 00:09:11,400 --> 00:09:17,160 command, which there's thousands of them online. So this is just the first one that I grabbed. 93 00:09:18,660 --> 00:09:22,640 You then ‑‑ in my setup, I set pin mode. The first thing that I do is I set the 94 00:09:22,660 --> 00:09:25,600 first pin to output. And what that's going to do, for those who aren't familiar with 95 00:09:25,600 --> 00:09:33,880 Arduinos, is that it's going to allow me to send output to the LED so I can make it flash. I then 96 00:09:33,880 --> 00:09:38,500 go through the loop. It hasn't run. So if you're not familiar with the Mac, I'm going to walk 97 00:09:38,500 --> 00:09:42,400 you through this. You hit the space and the mod GUI key. The mod GUI key is the command key. So 98 00:09:42,400 --> 00:09:49,040 we basically call up spotlight. We wait 100 milliseconds. We type in terminal. We hit the 99 00:09:49,040 --> 00:09:52,640 enter key. Hit 200 milliseconds. Type in command key. We wait 100 milliseconds. We type in 100 00:09:52,660 --> 00:09:59,340 command end. So we kick up a new terminal window. A couple things to ‑‑ as a point. You'll 101 00:09:59,340 --> 00:10:06,840 notice that I'm tossing in these delays. The AT-1085 and the rubber ducky are faster than the 102 00:10:06,840 --> 00:10:11,180 Apple GUI can handle. So if you haven't put these demos ‑‑ if you haven't put these timers in, 103 00:10:11,300 --> 00:10:15,960 you'll notice it will just outpace the GUI and it won't work. So you have to put these little 104 00:10:15,960 --> 00:10:21,840 timers in. And they're relative based on the system. The other reason why I'm using a new terminal 105 00:10:21,840 --> 00:10:27,940 window is if your target happens to be a developer who's running in the terminal or he's doing 106 00:10:27,940 --> 00:10:32,640 something with the terminal and you interrupt it, he may get flagged somewhere else and then your 107 00:10:32,640 --> 00:10:37,360 cover is blown. So you don't want to do that. So we open up a brand new terminal window. We 108 00:10:37,360 --> 00:10:43,080 then drop in our reverse shell command. Hit the enter key. And then we do command M. So for 109 00:10:43,080 --> 00:10:46,780 those of you who aren't aware, that's on the Mac. It minimizes it out of the way. So we don't 110 00:10:46,780 --> 00:10:51,760 want them to see it. And then we flash five times to let the attacker know, hey, I'm done. 111 00:10:51,760 --> 00:11:00,600 And then we set the bully in so it doesn't continue to run. So. These are some of the 112 00:11:00,600 --> 00:11:07,020 commands. Again, I'll make these available that I like to run. But, I mean, frankly, it's a 113 00:11:07,020 --> 00:11:13,860 terminal. You can do anything. These are some of the fun ones. If you run the top one and the 114 00:11:14,760 --> 00:11:20,020 target uses Mac mail, you'll get back every e‑mail address that they've used in Mac mail. 115 00:11:20,200 --> 00:11:21,740 That's really kind of nice. If you want to e‑mail, you can do that. But if you want to run 116 00:11:21,740 --> 00:11:26,240 to e‑mail all their friends and family and remind them about locking laptops. You can go 117 00:11:26,240 --> 00:11:31,740 through the bash history. You can go through the bash sessions. The second to last one is my 118 00:11:31,740 --> 00:11:37,540 personal favorite. This is running OSAScript. So for those who aren't aware, AppleScript on the 119 00:11:37,540 --> 00:11:42,660 Mac is the automation language. You can run it from the terminal using OSAScript. Marking it 120 00:11:42,660 --> 00:11:47,120 with the e‑flag saying this is a command. The piece that you want to pay attention to is the 121 00:11:47,120 --> 00:11:51,720 part that says, where's the icon file? That is a core icon file that Installer ICN has found. 122 00:11:51,720 --> 00:11:57,160 comes with the system. You can pretty much guarantee that that's going to be there. So you 123 00:11:57,160 --> 00:12:01,360 pop up a little box that says, hey, I would love to install something, but I need your 124 00:12:01,360 --> 00:12:06,620 password. Why don't you go ahead and give it to me? And it works effectively. It works 125 00:12:06,620 --> 00:12:10,140 surprisingly well. And, of course, if you just want to be a jerk and shut down the system, you 126 00:12:10,140 --> 00:12:16,620 can. But you have that control. The key ‑‑ the thing you have to keep in mind with the AT985 127 00:12:16,620 --> 00:12:21,980 and doing the reverse shells is you want to do things that don't require administrative access 128 00:12:21,980 --> 00:12:27,860 unless you have the password, in which case it's game over. But if you don't, you're going to want 129 00:12:27,860 --> 00:12:36,780 to do things that don't require that. So what does this look like? Let's walk through it. As you 130 00:12:36,780 --> 00:12:41,040 see, you'll see two different screens. The terminal window is the attacker window. The GUI is 131 00:12:41,040 --> 00:12:46,400 the target window. So you're going to see a giant hand. There you go. There's the giant hand. 132 00:12:46,620 --> 00:12:53,680 And plug this guy in. So the default boot loader is about 5 to 8 seconds. There are ways that I've 133 00:12:53,680 --> 00:12:58,720 read that you can reduce that. I have not been able to get it to work. So 5 to 8 seconds is fine 134 00:12:58,720 --> 00:13:07,660 for me for now. Pops up. Boom. That's it. I now have a reverse shell on your laptop. So first 135 00:13:07,660 --> 00:13:13,000 thing I want to do is I want to start to ask for a password. Because why not? That would be 136 00:13:13,000 --> 00:13:16,600 awesome. And so I pop that in. And then I pop that in. And then I pop that in. And then I pop that 137 00:13:21,840 --> 00:13:28,400 in. I'd say that's pretty effective. Now, your verbiage might be different. But the icon really 138 00:13:28,400 --> 00:13:35,460 makes it as far as I'm concerned. So, of course, I'm going to put my password in. Why not? And as 139 00:13:35,460 --> 00:13:40,840 you can see, there we go. I got the password. So now I don't need to worry about anything 140 00:13:40,840 --> 00:13:45,480 popping up on the screen. I can sudo. But let's say I want to go ahead and e-mail our friends 141 00:13:45,480 --> 00:13:46,600 and family. And let's say I want to go ahead and e-mail our friends and family. And let's say I 142 00:13:46,600 --> 00:13:47,340 want to go ahead and e-mail our friends and family. And let's say I want to go ahead and e-mail 143 00:13:47,340 --> 00:13:50,800 some of the screens are blurred out. I'm not looking to social engineer myself in front of all 144 00:13:50,800 --> 00:13:57,920 of you. So, I'm not releasing those e-mail addresses. But you'll see how well it works. So, 145 00:13:57,940 --> 00:14:05,660 boom, those are all the e-mail addresses that I was able to pull back. And it's fairly effective. 146 00:14:06,720 --> 00:14:10,660 The other nice thing is you can look at bash history. So maybe if it's the developer I can start 147 00:14:10,660 --> 00:14:16,580 to find out what IP addresses they're hitting, how they're running some of their Git repos. Told 148 00:14:16,580 --> 00:14:20,660 they're storing things, just all sorts of like fun, fun things. 149 00:14:21,040 --> 00:14:25,280 So yeah, there you go. A couple other things that we tried, just 150 00:14:25,280 --> 00:14:28,800 as an aside. I sat down with a buddy of mine and we said okay 151 00:14:28,800 --> 00:14:30,980 well how can we do this with Docker and how can we like spin 152 00:14:30,980 --> 00:14:34,520 up a Kali instance. For those who aren't aware with Mac with 153 00:14:34,520 --> 00:14:37,900 Docker it's a DMG file and if the Docker isn't on the machine 154 00:14:37,900 --> 00:14:40,440 itself then it's going to require a GUI and then all of 155 00:14:40,440 --> 00:14:43,720 a sudden a GUI pops up and that's not a cool thing. So in 156 00:14:43,720 --> 00:14:47,240 that particular case what you can do is you can use homebrew 157 00:14:47,240 --> 00:14:49,720 which doesn't require a password and then you can start 158 00:14:49,720 --> 00:14:53,720 installing your tools that way and it's arguably a little bit 159 00:14:53,720 --> 00:14:56,340 slower but you at least get your attack tools on the target 160 00:14:56,340 --> 00:15:01,480 machine. If they do have a Docker on the machine then you 161 00:15:01,480 --> 00:15:04,680 can install Kali image and spin that up and go to town. So 162 00:15:05,200 --> 00:15:08,300 there's really endless things that you can do with this thing. 163 00:15:10,300 --> 00:15:13,700 But does it work with USB-C? Will it play? Well, it does. 164 00:15:13,720 --> 00:15:20,400 So short answer is yes, long answer is yeah, kind of. So as 165 00:15:20,400 --> 00:15:23,620 some of you may have found out if you own an Apple product or 166 00:15:23,620 --> 00:15:26,800 work with Apple products, their adapters are very, very touchy. 167 00:15:26,860 --> 00:15:29,280 They don't like things that aren't necessarily Apple or 168 00:15:29,280 --> 00:15:33,640 things they don't recognize. But I did find this guy which is 169 00:15:33,640 --> 00:15:37,200 five dollars on fries and ten dollars in the store. You get a 170 00:15:37,200 --> 00:15:41,480 handful of those and you're good to go. No more barriers. 171 00:15:45,080 --> 00:15:48,500 So we're going to talk about this guy now, the one on my wrist. 172 00:15:49,180 --> 00:15:55,040 This is the ESP8266. And so the cost of this board is between 173 00:15:55,040 --> 00:16:00,280 four and eight dollars. So there's your microcontroller and 174 00:16:01,300 --> 00:16:06,440 there's your antenna. It's 2.4 gigahertz BGNN. I've seen a 175 00:16:06,440 --> 00:16:09,640 whole bunch of really cool stuff done with this. I have the base 176 00:16:10,780 --> 00:16:13,700 build on my wrist which is simply just doing a, you know, a 177 00:16:13,720 --> 00:16:18,240 wardriving, which we'll talk about in a minute. Again, this is 178 00:16:18,240 --> 00:16:22,520 considered a development board because it has the USB female 179 00:16:22,520 --> 00:16:25,680 connector on there. However, I happen to like it because I 180 00:16:25,680 --> 00:16:35,180 charge my USB. So this is more of the fun side of it. Those of 181 00:16:35,180 --> 00:16:38,540 you who are from California, if you went to B-Sides SF you know 182 00:16:38,540 --> 00:16:41,260 that the theme was steampunk this year. So I was like 183 00:16:41,260 --> 00:16:43,440 thinking, okay, could I build something that was steampunk, 184 00:16:43,720 --> 00:16:48,800 DIY, Arduino, security based, what could I come up with? And I 185 00:16:48,800 --> 00:16:53,160 came up with my steampunk wrist mounted network scanner. Until 186 00:16:53,160 --> 00:16:58,100 the blood drains out of my arm, I'll hold my arm up. And so I 187 00:16:58,100 --> 00:17:00,580 put this in here as I'm putting a photo in because I didn't think 188 00:17:00,580 --> 00:17:04,360 this was going to make through TSA and whatnot. But surprisingly 189 00:17:04,360 --> 00:17:06,820 if you take it apart and put it in boxes and label it, it does. 190 00:17:07,600 --> 00:17:10,580 So, yeah, so it made it okay. I have it on. I am okay with 191 00:17:10,580 --> 00:17:13,640 photos. Afterward, you guys can take photos and take a look at it. 192 00:17:14,880 --> 00:17:19,280 But as you can see on the screen, what it does is it's 193 00:17:19,280 --> 00:17:21,820 basically using the core library that works with the chip. And it 194 00:17:21,820 --> 00:17:26,500 grabs an array of a whole bunch of APs. I've modified it, 195 00:17:26,540 --> 00:17:29,280 modified the output so that if it's hidden, it comes up with 196 00:17:29,280 --> 00:17:31,720 unknown, otherwise it would have been blank. It shows the 197 00:17:31,720 --> 00:17:35,380 encryption type, the signal strength, the channel, the, the 198 00:17:35,380 --> 00:17:39,280 MAC address, all sorts of fun things that you can, can spin 199 00:17:39,280 --> 00:17:43,540 up. Yeah, if you're spinning stuff up, I'll read it out. 200 00:17:43,640 --> 00:17:48,460 Although I'm not seeing anything, uh, crazy show up. Uh, by the 201 00:17:48,460 --> 00:17:51,820 way, just huge props to this woman. Uh, this is Monique from 202 00:17:51,820 --> 00:17:54,700 Mythical Masks. She's the one who made the leather that I'm 203 00:17:54,700 --> 00:17:58,380 wearing. Uh, that mask that she is sitting next to, she made. She 204 00:17:58,380 --> 00:18:03,800 is crazy good with leather. So, uh, big major props to her for 205 00:18:03,800 --> 00:18:10,480 the work that she did. So, those were the Arduinos. When we 206 00:18:10,480 --> 00:18:13,620 look at single board computers, uh, what are some things that we 207 00:18:13,640 --> 00:18:16,780 can, we can do with these things? And when do we use them? 208 00:18:17,220 --> 00:18:21,220 Um, frankly, if you need the flexibility of an OS and cost 209 00:18:21,220 --> 00:18:29,880 isn't terribly a concern, then I would definitely move up. So, 210 00:18:30,390 --> 00:18:33,780 there is a bazillion Raspberry Pi variations. I'm gonna look at 211 00:18:33,780 --> 00:18:37,240 the top one and the bottom one. Uh, for the latest, this is 212 00:18:37,240 --> 00:18:41,920 Raspberry Pi 3. Uh, this has got, uh, 1.2 gigahertz CPU, 1 213 00:18:41,920 --> 00:18:43,620 giga RAM, uh, and all sorts of other things. Uh, it's got, uh, 214 00:18:43,620 --> 00:18:46,820 a bunch of other fun stuff. The cost is about $35, depending on 215 00:18:46,820 --> 00:18:50,960 where you get it. Um, I've found that getting it through, uh, MCM 216 00:18:50,960 --> 00:18:54,280 Electronics, who's owned, they just got purchased recently, 217 00:18:54,400 --> 00:19:01,360 but, uh, kind of kits also on, uh, Amazon work well, too. And 218 00:19:01,360 --> 00:19:04,340 this is the Zero W. So, this is the smallest board that they 219 00:19:04,340 --> 00:19:09,500 make. Uh, 1 gigahertz CPU, half the RAM, much smaller, uh, not 220 00:19:09,500 --> 00:19:13,340 as many, uh, adapt, uh, not as many, uh, sockets, but depends on 221 00:19:13,340 --> 00:19:23,260 what your needs are. So, what was my case study for this? So, I 222 00:19:23,260 --> 00:19:26,140 was curious about the network traffic around my home. Uh, I 223 00:19:26,140 --> 00:19:28,840 live in Northern California where people, uh, like the 224 00:19:28,840 --> 00:19:33,080 internet, uh, a lot. Uh, and so, uh, at the time I didn't 225 00:19:33,080 --> 00:19:35,160 own a pineapple and I was thinking, okay, what could I 226 00:19:35,160 --> 00:19:39,280 build this thing? So, I came up with a custom-built Raspberry 227 00:19:39,280 --> 00:19:43,320 Pi network analyzer, also known as a WordCamp. Uh, it's a, uh, a 228 00:19:43,340 --> 00:19:47,420 server-driven kit. Uh, and I'll show you what it looks like. I 229 00:19:47,420 --> 00:19:51,780 did not bring this one through TSA. Um, I, I felt that I was 230 00:19:51,780 --> 00:19:55,080 gonna just have a photo of it. Um, so, I'm using a TP-Link 231 00:19:55,080 --> 00:19:58,580 antenna. I'm not an antenna guy. Um, if the person asking about 232 00:19:58,580 --> 00:20:01,240 antennas yesterday, I did find that link. It's in the end. So, 233 00:20:01,340 --> 00:20:06,380 I don't know if he's here today. Um, I use a TP-Link. Uh, 234 00:20:06,480 --> 00:20:10,200 we're running Raspbian on it. Uh, the internal antenna we use 235 00:20:10,200 --> 00:20:13,320 for administrative access, and I'll explain that in one second. 236 00:20:13,340 --> 00:20:23,200 Okay. So, we have the external antenna for RF monitoring. And we 237 00:20:23,200 --> 00:20:25,300 use error dump and screen. Now, when you're thinking about 238 00:20:25,300 --> 00:20:28,380 screen, the reason we use screen is that we can keep the 239 00:20:28,380 --> 00:20:31,940 bash session going. So, if you have multiple engineers who are 240 00:20:31,940 --> 00:20:35,160 around this item, they can all log in to the administrative 241 00:20:35,160 --> 00:20:38,260 access and all log in to screen and see, see the dump of what's 242 00:20:38,260 --> 00:20:41,260 going on from error dump. So, it's kind of nice. It's multi-user. 243 00:20:41,440 --> 00:20:43,320 Uh, and running off like this, I'm going to show you how to 244 00:20:43,340 --> 00:20:46,200 run it. So, I have a battery. I have a, a Titan. That thing will 245 00:20:46,200 --> 00:20:48,700 run all day. Uh, that's not what's in the photo by the way, 246 00:20:48,720 --> 00:20:55,740 but it's, it will literally run all darn day. Um, excuse me. 247 00:20:55,760 --> 00:21:00,180 Powered off USB. And so the approximate cost for this whole 248 00:21:00,180 --> 00:21:04,100 thing, if you had none of these parts, is about $85. Um, I'm 249 00:21:04,100 --> 00:21:06,420 assuming most people in this room have some portions of these 250 00:21:06,420 --> 00:21:13,320 parts. So, uh, your cost may vary. And, uh, the, the, the, the, 251 00:21:13,320 --> 00:21:16,980 um, I am not a lawyer so uh, I just put this up there as 252 00:21:16,980 --> 00:21:21,280 a warning. Please be careful what you scan. Um, Error Dump has 253 00:21:21,280 --> 00:21:24,980 the ability to record. So, just be careful what you're scanning 254 00:21:24,980 --> 00:21:32,260 and recording before you do it. So, one last thing I wanted to 255 00:21:32,260 --> 00:21:38,520 talk about, um, is this guy. Uh, this was the precursor to the 256 00:21:38,520 --> 00:21:44,820 the poor man's rubber ducky that I built. I know that previously I had said that, you 257 00:21:44,820 --> 00:21:49,880 know, employees don't learn from shame. The only caveat to that is if that employee happens 258 00:21:49,880 --> 00:21:55,180 to be a friend of yours and they continuously leave their laptop unlocked. So I needed to 259 00:21:55,180 --> 00:22:00,360 build something to remind this person that they need to lock their laptop. And so using 260 00:22:00,360 --> 00:22:07,460 AppleScript and Bash and this really awesome USB thing I found on eBay, I was able to do 261 00:22:07,460 --> 00:22:16,300 that. So what does the PwnMe USB look like? By the way, this is also in GitLab as well. 262 00:22:17,620 --> 00:22:23,580 You have an application called ClickMe and you have the PwnMe script. You have a wallpaper 263 00:22:23,580 --> 00:22:30,460 image. You have an init script and you have an audio MP3. So inside the PwnMe script, 264 00:22:30,620 --> 00:22:34,020 basically it's an AppleScript that generates the ClickMe and that's what it looks like. 265 00:22:34,080 --> 00:22:36,840 It literally calls up and kicks off the init script. 266 00:22:41,240 --> 00:22:50,520 There we go. I will blow that in a second. So if you can't read it, I will walk through it. 267 00:22:50,740 --> 00:22:54,200 We'll stop at the top down. I mean, I have a giant message that's going to get read out. 268 00:22:54,360 --> 00:22:59,840 Please note that I am calling the environment variables log there, as you'll see in the video. 269 00:22:59,940 --> 00:23:05,560 Otherwise it won't make sense. I call out my wallpaper image, my audio image, and my USB path. 270 00:23:05,840 --> 00:23:07,440 And if you're interested in that, I'm going to show you how to do that. So I'm going to go to my 271 00:23:07,440 --> 00:23:10,240 If you can't tell, by the way, I was a JavaScript developer, so everything is very functional. 272 00:23:11,320 --> 00:23:18,940 So at the bottom, you'll see where I started calling my methods. I basically copy the wallpaper 273 00:23:18,940 --> 00:23:25,620 image over to the pictures. I copy the MP3 file over to the music file, to their music directory. 274 00:23:26,420 --> 00:23:31,320 I change their background and I wipe away all of their applications so they can see it. 275 00:23:31,940 --> 00:23:36,320 I then set the volume to 10. 276 00:23:37,440 --> 00:23:52,400 This is called Light the Fuse. And it took us a while to figure this out, but basically I put it in sleep mode and I eject the drive and put it in sleep mode, and then the script is still running, because the files are localized, it will keep going, and I now have a nice long time to walk away. 277 00:23:55,580 --> 00:24:06,940 Now, before I run this video, I did the best to make this entertaining. The part of it that you're missing is watching the engineer scramble to try and shut this down, so you kind of have to use your memory, your imagination. 278 00:24:06,940 --> 00:24:11,720 And imagine what this would be like if this blows up in your office. It's a lot of fun. 279 00:24:17,640 --> 00:24:19,520 So, again, that link will be at the end. 280 00:24:23,320 --> 00:24:28,040 I made it look like a CD. And because I used to be a designer, I made my own icon. 281 00:24:30,600 --> 00:24:36,440 Runs the script, kicks it out. Oh, no, no, you wait. It's coming. 282 00:24:37,700 --> 00:24:40,160 Hopefully the audio won't blow up your ears. I apologize. 283 00:24:41,080 --> 00:24:44,360 It was set to volume 10. I'm going to keep my hand over here just in case. 284 00:24:46,500 --> 00:24:48,580 I had about 15 seconds to walk away. 285 00:24:50,900 --> 00:24:54,740 Unfortunately, a typical user has left their laptop open and unlocked. 286 00:24:55,080 --> 00:24:59,960 Some cheeky hacker might have done some not-so-nice things given this advantageous opportunity. 287 00:25:00,340 --> 00:25:06,160 With information security being so important these days, I'm sure this was just a minor oversight, 288 00:25:06,160 --> 00:25:07,860 which will get corrected immediately. 289 00:25:08,340 --> 00:25:14,360 In the meantime, please enjoy this delightful musical selection, courtesy of a typical user. 290 00:25:14,540 --> 00:25:14,980 Cheers. 291 00:25:16,100 --> 00:25:18,300 This one's on the AF Play service. 292 00:25:19,580 --> 00:25:22,980 You have to imagine they're now sitting on like the right side of the stand. 293 00:25:23,220 --> 00:25:26,340 The fastest type that I would teach you is actually that way. 294 00:25:27,100 --> 00:25:30,940 So, if you don't have the right money, this is going to be a good one. 295 00:25:30,940 --> 00:25:31,860 I like her. 296 00:25:36,160 --> 00:25:38,420 My boss is going to get a six-pass change. 297 00:25:38,700 --> 00:25:47,920 So, then he gets quiet and he's like, oh, thank God, it's over. 298 00:25:53,720 --> 00:25:55,700 And, by the way, the script for this is available. 299 00:25:57,000 --> 00:25:59,860 You won't have the audio because I don't want to get copyrighted. 300 00:25:59,940 --> 00:26:00,740 There's no question about that. 301 00:26:01,860 --> 00:26:02,580 Thank you. 302 00:26:17,340 --> 00:26:21,200 Now, the other piece of it that you don't see is that at the end, if you don't catch it, 303 00:26:21,260 --> 00:26:22,200 it will delete all the files. 304 00:26:22,440 --> 00:26:25,000 So, not his files, not his files. 305 00:26:25,100 --> 00:26:26,660 The files associated with this. 306 00:26:26,700 --> 00:26:28,640 So, if he tries to find the MP3, it's gone. 307 00:26:28,880 --> 00:26:31,540 If he changes his background, it goes, poof, disappears. 308 00:26:31,540 --> 00:26:33,500 So, I clean up after myself. 309 00:26:37,300 --> 00:26:38,940 So, a couple extra little points. 310 00:26:39,800 --> 00:26:41,940 These are some links that I thought were helpful. 311 00:26:43,980 --> 00:26:45,300 There was a guy who asked. 312 00:26:45,480 --> 00:26:46,160 I don't know if he's here. 313 00:26:46,380 --> 00:26:48,360 Is the guy who asked for the antenna here? 314 00:26:49,120 --> 00:26:49,640 Raise your hand. 315 00:26:49,740 --> 00:26:50,200 Yeah, there you are. 316 00:26:50,300 --> 00:26:50,900 Okay, good. 317 00:26:51,060 --> 00:26:52,200 So, third link down. 318 00:26:52,300 --> 00:26:53,960 Dude, I take care of you, man. 319 00:26:54,160 --> 00:26:58,740 I found it last night after running to Walmart at 1230 because I didn't think I had the right adapter. 320 00:26:59,560 --> 00:27:01,360 Ironically, if you're not from Las Vegas, 321 00:27:01,540 --> 00:27:03,500 the Walmart is open 24 hours a day. 322 00:27:03,600 --> 00:27:04,740 They have lots of good stuff. 323 00:27:06,040 --> 00:27:07,880 So, that link right there, 324 00:27:08,380 --> 00:27:13,900 basically what it does is it talks about everybody who's had experience with Wi-Fi adapters. 325 00:27:14,000 --> 00:27:16,040 If you're not sure which one to pick, 326 00:27:16,300 --> 00:27:17,700 they do a pretty good walkthrough. 327 00:27:17,920 --> 00:27:19,380 I am not a good person for that. 328 00:27:20,540 --> 00:27:21,880 There's the link for Dave's Security. 329 00:27:22,460 --> 00:27:23,440 Please check it out. 330 00:27:23,600 --> 00:27:25,420 It is an awesome, awesome convention. 331 00:27:26,700 --> 00:27:28,140 We need more engineers. 332 00:27:28,340 --> 00:27:30,320 We need more women engineers in the industry. 333 00:27:31,020 --> 00:27:31,520 We need more women engineers in the industry. 334 00:27:31,540 --> 00:27:32,960 We are confident that our team can do that. 335 00:27:34,540 --> 00:27:35,260 Mythica Masks, 336 00:27:35,280 --> 00:27:37,720 she does amazing, amazing stuff. 337 00:27:38,020 --> 00:27:39,500 And one of the ones that's 338 00:27:39,500 --> 00:27:40,420 always been passed on to me 339 00:27:40,940 --> 00:27:43,020 is something called Electric Goldmine. 340 00:27:43,260 --> 00:27:45,120 If you're looking for just weird stuff 341 00:27:45,120 --> 00:27:46,480 to tie into your Arduinos, 342 00:27:46,640 --> 00:27:47,980 or your badges, if that will, 343 00:27:49,040 --> 00:27:50,400 they do get some pretty cool stuff. 344 00:27:54,680 --> 00:27:55,420 So, that was me. 345 00:27:55,500 --> 00:27:56,040 It was nice and short. 346 00:27:56,740 --> 00:27:57,960 This is where you can find me. 347 00:27:57,960 --> 00:27:58,880 That's my blog. 348 00:27:59,640 --> 00:28:00,760 I'm on Mastodon, 349 00:28:00,760 --> 00:28:01,860 because I'm that kind of hacker. 350 00:28:03,400 --> 00:28:04,720 And there's my GitLab. 351 00:28:05,100 --> 00:28:06,500 Sorry it's all weird, 352 00:28:06,560 --> 00:28:07,380 but yeah, that's it. 353 00:28:09,680 --> 00:28:11,400 And any questions or comments, 354 00:28:11,480 --> 00:28:11,820 let me know. 355 00:28:15,960 --> 00:28:16,580 Thank you.