1 00:00:00,000 --> 00:00:09,540 Before I introduce the very, very, you know, roll out the red carpet to two old friends of the Wall of Sheep in the Packet Hacking Village, 2 00:00:09,840 --> 00:00:13,700 I want to give a quick thank you to the AV folks, Steve and Troy. 3 00:00:14,480 --> 00:00:20,060 Steve and Troy, thank you so much for all your help for all today, helping record these presentations. 4 00:00:21,400 --> 00:00:26,860 We have many, many, well, we couldn't have done this, the success of this day could not have been done without you. 5 00:00:27,560 --> 00:00:30,840 So, thank you so much, Steve. Thank you so much, Troy. Thank you so much. 6 00:00:37,180 --> 00:00:39,600 So, as I promised, it's 8 p.m. 7 00:00:40,040 --> 00:00:41,820 5 p.m. is going to be 6 o'clock. 8 00:00:45,580 --> 00:00:48,540 Yeah, yeah. 9 00:00:56,000 --> 00:00:56,360 Seconds. 10 00:00:58,100 --> 00:01:01,880 All right. Any second now. Any second. Any second. 11 00:01:04,540 --> 00:01:08,360 Any second. Feel free to make yourself at home. We've got a few empty chairs here. 12 00:01:08,660 --> 00:01:11,240 Feel free to make yourself at home. Okay? 13 00:01:12,280 --> 00:01:16,620 Because we promise this is the week we've saved one of the best talks for last. 14 00:01:17,120 --> 00:01:19,740 Okay? You don't want to miss this. We've got an open seat up in the front. 15 00:01:19,860 --> 00:01:21,600 We've got it in the fourth row. 16 00:01:23,260 --> 00:01:24,060 Oh. Okay. 17 00:01:33,000 --> 00:01:43,660 And now it is 6 p.m. the top of the hour. This is it. This is the time for our last speaker workshop. Okay? 18 00:01:44,120 --> 00:01:53,260 And this speaker workshop, we have two old friends coming back. I'm going to say they are the authors of Penetration Testing with the Raspberry Pi. 19 00:01:53,680 --> 00:01:56,300 Without much ado, Joey Muniz. 20 00:01:56,860 --> 00:01:57,680 Come here, Lakhani. 21 00:02:05,900 --> 00:02:08,620 All right. Hopefully you can hear me now. 22 00:02:09,460 --> 00:02:13,620 So, before you go, at the end of the talk, we actually have a book over here we're going to give away. 23 00:02:14,260 --> 00:02:18,600 We did sign it, so it's gone down in value, unfortunately, but we will throw it out or something. 24 00:02:19,960 --> 00:02:21,940 All right. So, let me just introduce myself. 25 00:02:23,120 --> 00:02:26,600 My name is Amor Lakhani. I'm actually a researcher for Fortinet. 26 00:02:26,860 --> 00:02:30,080 FortiGuard Labs. And I've got my colleague here with me, Joey Muniz. 27 00:02:30,700 --> 00:02:33,000 So, I'm a researcher, and I also work at Cisco. 28 00:02:34,520 --> 00:02:37,420 All right. So, today we want to talk to you about Kali Linux. 29 00:02:38,060 --> 00:02:45,260 We actually wrote a book on Kali and Raspberry Pi, and using the Raspberry Pi as a penetration testing platform. 30 00:02:48,480 --> 00:02:50,780 So, first of all, what is the Raspberry Pi? 31 00:02:51,600 --> 00:02:55,960 Well, it's a $35 computer that was made by the Raspberry Pi Foundation. 32 00:02:57,020 --> 00:03:03,800 Now, when I grew up using computers, it was great because my parents had no idea computers needed software. 33 00:03:04,000 --> 00:03:09,020 They got me this piece of junk box, and they were like, here you go, son, and I have to do something with it. 34 00:03:09,240 --> 00:03:13,580 And today, computers are totally different, right? We click on the Internet, and we consume information. 35 00:03:14,240 --> 00:03:18,700 The Raspberry Pi kind of takes us back to the old days where we actually have to make it do something. 36 00:03:19,040 --> 00:03:24,460 So, we got this idea to actually use the Raspberry Pi as a pen testing platform. 37 00:03:24,960 --> 00:03:26,840 Now, besides that, what else is the Raspberry Pi? 38 00:03:30,480 --> 00:03:32,120 We have one mic, sorry about that. 39 00:03:32,760 --> 00:03:36,160 So, basically the idea came up of, well, what can we do with the Raspberry Pi? 40 00:03:36,440 --> 00:03:37,480 Who here has seen Mr. Robot? 41 00:03:39,120 --> 00:03:42,420 So, I was watching Mr. Robot, and I was like, oh, cool, the reference to Raspberry Pi. 42 00:03:42,660 --> 00:03:51,660 But, basically, in that episode, the idea was they wanted to basically take out the AV system so they can melt the backup system of a major corporation. 43 00:03:52,160 --> 00:03:54,360 So, that's one example of using the Raspberry Pi. 44 00:03:55,500 --> 00:03:56,820 Now, in our use case, we're using the Raspberry Pi. 45 00:03:56,820 --> 00:04:00,760 The idea is, well, first off, how do you turn a Raspberry Pi into a penetration testing arsenal? 46 00:04:01,920 --> 00:04:04,660 Naturally, we went to Kali Linux for that platform. 47 00:04:04,880 --> 00:04:06,900 And Kali Linux has an image for that. 48 00:04:07,000 --> 00:04:09,340 There's an ARM image designed for Raspberry Pi. 49 00:04:09,960 --> 00:04:11,160 We'll talk a little bit later. 50 00:04:11,300 --> 00:04:12,420 We tried some of the other ones. 51 00:04:12,580 --> 00:04:19,780 So, we tried Raspberry Pawn and Pawnberry and Pawn Pie was actually, Pawn Pie is pretty good. 52 00:04:20,300 --> 00:04:25,180 But, from a support perspective, online community, popularity perspective, 53 00:04:26,160 --> 00:04:27,080 Kali Linux was it. 54 00:04:27,480 --> 00:04:31,760 And for those that don't know what Kali Linux is, it's a full-on penetration testing arsenal. 55 00:04:32,860 --> 00:04:38,660 However, the recommendation is, and we'll talk about this, there's only a couple tools that are really good to use in a Raspberry Pi. 56 00:04:38,960 --> 00:04:40,320 Everything else kind of sucks. 57 00:04:40,440 --> 00:04:41,860 Because a Raspberry Pi is pretty limited. 58 00:04:43,100 --> 00:04:44,780 So, speaking of that, what are the use cases? 59 00:04:45,480 --> 00:04:50,380 The big use case that we use, this is from actually a couple of years ago, a penetration test we did. 60 00:04:51,220 --> 00:04:54,960 The idea was, a customer said, hey, we're cheap as shit. 61 00:04:55,080 --> 00:04:55,160 We're going to do this. 62 00:04:55,180 --> 00:04:55,480 Be honest. 63 00:04:55,700 --> 00:04:56,120 We're cheap. 64 00:04:56,300 --> 00:05:00,360 We want you to penetration test multiple locations, particularly international sites. 65 00:05:00,760 --> 00:05:03,220 And they didn't want to pay for it to fly us out there. 66 00:05:03,380 --> 00:05:05,440 So, we tried to figure out, well, how can we do this? 67 00:05:05,960 --> 00:05:11,320 And the idea came up of, well, why don't we just basically build these Raspberry Pis and mail it to our customer. 68 00:05:11,520 --> 00:05:12,820 They can remotely plug it in. 69 00:05:12,920 --> 00:05:18,220 We'll charge them $100 a Pi or assembly fee $200 and do our penetration test. 70 00:05:18,680 --> 00:05:23,180 So, it actually worked out to be a really good use case where rather than having to fly to multiple locations, 71 00:05:23,760 --> 00:05:25,160 literally we just charge our billboard. 72 00:05:25,180 --> 00:05:26,240 So, we spent multiple hours to build the Pis. 73 00:05:26,440 --> 00:05:27,820 And we did this from our house. 74 00:05:28,020 --> 00:05:32,500 And pretty much did a multi-site, like 10 location, international penetration test. 75 00:05:33,120 --> 00:05:36,060 So, we'll talk about the build, how to build that, everything in a few minutes. 76 00:05:36,240 --> 00:05:37,680 But that's a good use case. 77 00:05:38,800 --> 00:05:42,720 Another good use case that we'll talk about today is a leave behind system. 78 00:05:43,200 --> 00:05:47,580 So, Raspberry Pis, we'll talk about building one, are about $30, $50, maybe $70. 79 00:05:48,100 --> 00:05:49,540 So, that's really nothing. 80 00:05:49,740 --> 00:05:52,980 So, to plug that into a network and leave it and lose it, who cares? 81 00:05:53,700 --> 00:05:59,620 I'm a huge fan of those $2,000, $3,000, was it the Pawnee Express tools? 82 00:05:59,900 --> 00:06:00,800 But they're really expensive. 83 00:06:01,120 --> 00:06:03,240 I prefer to spend like $50 and lose that. 84 00:06:04,460 --> 00:06:07,000 Another use case, this is actually, let me hit the thing here real quick. 85 00:06:07,280 --> 00:06:08,840 This is one that I did live at a customer. 86 00:06:09,080 --> 00:06:10,160 They had one of those kiddie clocks. 87 00:06:10,680 --> 00:06:13,820 So, I decided to hide that in the kiddie clock and they didn't notice it. 88 00:06:13,880 --> 00:06:14,440 That's pretty cool. 89 00:06:14,700 --> 00:06:17,380 And by the way, if you guys were at Black Hat, these are awesome. 90 00:06:17,580 --> 00:06:22,580 These USB power supplies, they power the Raspberry Pis for a good three to five days. 91 00:06:22,680 --> 00:06:22,960 So, that's pretty cool. 92 00:06:22,980 --> 00:06:25,820 So, every time I go to a vendor, I typically grab like 10 of those. 93 00:06:26,000 --> 00:06:27,500 I have a whole literally case of those things. 94 00:06:27,640 --> 00:06:33,040 So, if you want to power your Raspberry Pi, go to like a vendor, like an RSA or a Black Hat and collect those. 95 00:06:33,320 --> 00:06:36,140 Because those things work out very well for powering your Raspberry Pis. 96 00:06:37,660 --> 00:06:38,320 You did it again. 97 00:06:39,740 --> 00:06:42,820 So, how do you build a Raspberry Pi to do a penetration test? 98 00:06:42,940 --> 00:06:43,960 Like, what's the cost for this? 99 00:06:44,800 --> 00:06:50,180 There is a lot of packages you can buy, but most of the packages have things you don't really need. 100 00:06:50,180 --> 00:06:55,660 So, if you really were going to like price out a Raspberry Pi, the Pi itself, 30 to 50 bucks. 101 00:06:55,880 --> 00:06:57,640 There's a new version that's out now. 102 00:06:57,880 --> 00:06:58,540 You guys can get that. 103 00:06:58,620 --> 00:07:02,060 Again, 50 bucks is overpriced, but they have it for sale over there. 104 00:07:02,820 --> 00:07:04,660 And then you're probably going to need a couple other things. 105 00:07:05,280 --> 00:07:08,160 The first attack I'll talk about here is being a man in the middle attack. 106 00:07:08,960 --> 00:07:13,720 Raspberry Pis only have one USB port, so most likely you're going to need to buy an adapter for that. 107 00:07:13,900 --> 00:07:18,480 So, about for 10 bucks, and I'll show a picture of that in a minute, you buy a second Ethernet port, 108 00:07:18,660 --> 00:07:20,160 and then basically you're going to be a network. 109 00:07:20,180 --> 00:07:22,300 And I'll talk about that attack in a few minutes. 110 00:07:23,100 --> 00:07:27,520 If you're doing wireless, Raspberry Pis don't have wireless, you need to buy a wireless adapter. 111 00:07:27,860 --> 00:07:31,000 Again, about 10 bucks, and now you basically have a wireless pen test tool. 112 00:07:32,200 --> 00:07:36,000 Raspberry Pis, in most cases, obviously they're small. 113 00:07:36,220 --> 00:07:37,560 They use micro SD. 114 00:07:37,980 --> 00:07:39,700 Most likely your computer won't have that. 115 00:07:39,780 --> 00:07:42,400 I have a Mac here, and it doesn't have a port for that. 116 00:07:42,560 --> 00:07:43,580 So, you buy an adapter. 117 00:07:43,760 --> 00:07:46,120 And adapters, 10 bucks or so, you can get an adapter. 118 00:07:47,000 --> 00:07:49,760 They don't have power, so you either buy a power cable, 119 00:07:50,180 --> 00:07:51,760 or again, go to your favorite vendor conference, 120 00:07:52,000 --> 00:07:54,020 and collect those USB power supplies, 121 00:07:54,320 --> 00:07:56,080 and that can also power your Raspberry Pi. 122 00:07:56,600 --> 00:07:57,840 And then lastly, your image. 123 00:07:58,060 --> 00:08:00,020 So, really, you know, again, cost $30 to $70. 124 00:08:00,840 --> 00:08:03,040 We were billing our customer for $150 to $200, 125 00:08:03,240 --> 00:08:05,340 but you really didn't have to buy all that. 126 00:08:06,260 --> 00:08:10,800 And this is kind of a screen shot of the packages they have on Amazon. 127 00:08:11,080 --> 00:08:12,360 But again, you don't need a case. 128 00:08:12,540 --> 00:08:15,340 You don't need all this color and wire crap and everything. 129 00:08:15,500 --> 00:08:17,280 Really, the only things you need is the wireless adapters. 130 00:08:17,280 --> 00:08:17,740 It's 10 bucks. 131 00:08:18,220 --> 00:08:20,160 And the corner left is your adapter. 132 00:08:20,160 --> 00:08:23,780 And maybe a power supply, which that power supply is like 5 bucks. 133 00:08:24,000 --> 00:08:24,920 And that's really it. 134 00:08:25,020 --> 00:08:26,440 That's your setup. 135 00:08:26,580 --> 00:08:29,020 And then obviously, if you have a monitor, you can do that as well. 136 00:08:30,820 --> 00:08:31,400 Go ahead. 137 00:08:31,640 --> 00:08:33,640 Alright, so, lesson learned. 138 00:08:34,160 --> 00:08:37,680 I've literally imaged probably 500 Raspberry Pis now, 139 00:08:37,860 --> 00:08:41,920 and I've ran across every single issue you would run across by doing this. 140 00:08:42,400 --> 00:08:44,600 Like, some of the example images are problems. 141 00:08:44,800 --> 00:08:46,640 One is, I don't know if you guys have tried this, 142 00:08:46,800 --> 00:08:48,860 but when you put Kali Linux on a Raspberry Pi, 143 00:08:49,040 --> 00:08:50,080 and you fire it up, 144 00:08:50,160 --> 00:08:51,920 you'll get this blank black screen, 145 00:08:52,200 --> 00:08:53,260 but you can move the mouse around. 146 00:08:53,440 --> 00:08:54,240 It's a blank black screen. 147 00:08:54,560 --> 00:08:57,800 And if you go online, everybody has these weird explanations of what it does. 148 00:08:58,300 --> 00:08:59,620 Basically, it's a driver problem. 149 00:08:59,980 --> 00:09:02,920 It's the same thing when I put Kali Linux on a Raspberry Pi, 150 00:09:02,980 --> 00:09:03,940 and the keyboard doesn't work, 151 00:09:03,980 --> 00:09:04,940 or certain things don't work. 152 00:09:05,120 --> 00:09:06,800 So, if you're getting any issues, 153 00:09:07,060 --> 00:09:10,820 here is Amar Akhani and Joey's recommendation for doing it. 154 00:09:12,100 --> 00:09:15,160 Basically, unmount and format and SSD it on there. 155 00:09:16,000 --> 00:09:17,240 Which, by the way, cool trick. 156 00:09:17,460 --> 00:09:18,300 There's control T. 157 00:09:20,160 --> 00:09:21,280 When you image a Raspberry Pi, 158 00:09:21,440 --> 00:09:22,100 when you DD it, 159 00:09:22,280 --> 00:09:25,140 it takes anywhere from 30 minutes to an hour to do it, 160 00:09:25,180 --> 00:09:26,320 and you just don't know what's going on. 161 00:09:26,420 --> 00:09:27,220 It's just kind of hanging there. 162 00:09:27,460 --> 00:09:29,540 If you hit control T, you can actually get a status, 163 00:09:29,560 --> 00:09:30,660 because you'll see the packets moving. 164 00:09:30,940 --> 00:09:33,220 So, kind of a cool trick when you're DDing. 165 00:09:33,420 --> 00:09:34,620 But very, very important, 166 00:09:34,820 --> 00:09:37,120 once you install the image, 167 00:09:38,220 --> 00:09:40,200 immediately do the update and the upgrade. 168 00:09:40,520 --> 00:09:41,940 Do not do start X. 169 00:09:42,420 --> 00:09:43,500 If you do start X, 170 00:09:43,660 --> 00:09:45,980 most likely it's going to fire up with the older drivers, 171 00:09:45,980 --> 00:09:47,480 and then you're kind of screwed. 172 00:09:47,700 --> 00:09:48,800 And then you have to reimage it again. 173 00:09:49,080 --> 00:09:51,600 And again, all those little problems that we found online, 174 00:09:51,860 --> 00:09:53,400 the blank screen with the weird mouse, 175 00:09:54,080 --> 00:09:55,200 keyboard not working, 176 00:09:55,400 --> 00:09:56,460 certain things not working, 177 00:09:56,620 --> 00:09:59,080 all are fixed, because when you do your update and upgrade, 178 00:09:59,460 --> 00:10:00,660 you're updating the drivers. 179 00:10:00,800 --> 00:10:02,780 And Raspberry Pis have really old, shitty drivers. 180 00:10:03,460 --> 00:10:05,800 Even like some of the firewall and some of the images 181 00:10:05,800 --> 00:10:06,620 we'll talk about later, 182 00:10:06,800 --> 00:10:08,440 most of the problems were driver problems. 183 00:10:08,760 --> 00:10:11,000 So, do not do start X. 184 00:10:11,100 --> 00:10:13,200 And actually, a lot of the penetration tests I know where to talk about, 185 00:10:13,360 --> 00:10:14,760 we do it all command line anyways, 186 00:10:15,980 --> 00:10:18,800 but for you ones that like to actually fire up the GUI, 187 00:10:18,920 --> 00:10:20,400 if you have to fire up the GUI, 188 00:10:20,480 --> 00:10:22,800 do not do it before you do your update and upgrade. 189 00:10:23,180 --> 00:10:23,940 If you do that, 190 00:10:24,120 --> 00:10:25,520 you'll probably run into problems. 191 00:10:30,480 --> 00:10:34,000 Alright, so the first example attack, 192 00:10:34,220 --> 00:10:35,940 the first penetration testing we did, 193 00:10:36,160 --> 00:10:37,880 is the man in the middle attack, the classic. 194 00:10:38,380 --> 00:10:39,900 Now what's cool about this is, 195 00:10:39,980 --> 00:10:41,720 this doesn't take an IP address. 196 00:10:41,920 --> 00:10:42,780 This is complete stealth. 197 00:10:43,080 --> 00:10:45,020 So literally you can go in and you can go to a computer, 198 00:10:45,980 --> 00:10:46,900 into the Raspberry Pi, 199 00:10:47,100 --> 00:10:47,760 plug it in the wall, 200 00:10:47,920 --> 00:10:49,200 they won't see it on the network, 201 00:10:49,380 --> 00:10:51,660 and literally you're a full on tap stealing data. 202 00:10:52,460 --> 00:10:54,540 To do this, it's pretty simple. 203 00:10:54,780 --> 00:10:56,780 First thing you need to do is download the bridge utility, 204 00:10:57,100 --> 00:10:58,780 because the commands aren't there in Kali Linux, 205 00:10:58,960 --> 00:10:59,880 so you first download that, 206 00:11:00,000 --> 00:11:01,080 and then at that point, 207 00:11:01,140 --> 00:11:04,580 you get your USB, your $10 second Ethernet adapter, 208 00:11:05,040 --> 00:11:06,400 you'll see both interfaces, 209 00:11:06,580 --> 00:11:07,420 configure them to 00, 210 00:11:07,680 --> 00:11:08,580 and basically bridge it. 211 00:11:08,760 --> 00:11:11,360 At that point, traffic will be going through the Raspberry Pi. 212 00:11:11,820 --> 00:11:12,700 Now, again, 213 00:11:13,280 --> 00:11:15,260 Raspberry Pis are not the most strong, 214 00:11:15,260 --> 00:11:15,980 powerful devices, 215 00:11:16,080 --> 00:11:18,440 so you're not going to run Wireshark or Tshark 216 00:11:18,440 --> 00:11:19,540 or any of those things on it. 217 00:11:19,700 --> 00:11:21,640 Best practice is, make it a tap, 218 00:11:21,820 --> 00:11:23,440 and then basically run a script, 219 00:11:23,580 --> 00:11:24,460 and we'll talk about it in a minute, 220 00:11:24,560 --> 00:11:27,640 and export the data so you have a more powerful system to do that. 221 00:11:28,060 --> 00:11:30,000 I've tried running all those, like, 222 00:11:30,020 --> 00:11:33,040 on-box, like, white versions of Wireshark, 223 00:11:33,080 --> 00:11:33,560 they all suck. 224 00:11:33,780 --> 00:11:34,880 Even the command line ones suck. 225 00:11:35,040 --> 00:11:36,260 They run really slow. 226 00:11:36,260 --> 00:11:38,380 So best practice, turn it into a tap, 227 00:11:38,720 --> 00:11:39,960 stick it on your victim's network, 228 00:11:40,100 --> 00:11:40,600 and move on. 229 00:11:41,180 --> 00:11:42,260 Now, there are other options. 230 00:11:43,360 --> 00:11:45,700 You can do this, the ARP spoofing methods, 231 00:11:46,140 --> 00:11:47,820 but I work for Cisco, he works for Fortinet, 232 00:11:48,020 --> 00:11:50,380 there's anti-ARP spoofing in a lot of the switches, 233 00:11:50,760 --> 00:11:52,200 and most likely it's not going to work. 234 00:11:52,340 --> 00:11:53,800 So, use it as a tap, 235 00:11:54,000 --> 00:11:56,040 don't use it as, like, an ARP spoofing mechanism. 236 00:11:56,260 --> 00:11:58,020 Even Ethercap, a lot of times 237 00:11:58,020 --> 00:11:58,920 will go to customer networks, 238 00:11:59,140 --> 00:12:00,720 and you're going to set off the switching logs, 239 00:12:00,820 --> 00:12:01,380 they're going to catch you. 240 00:12:01,560 --> 00:12:03,960 So there's no reason to do that. Just use it as a general tap. 241 00:12:06,740 --> 00:12:08,220 This is it with the case and everything, 242 00:12:08,440 --> 00:12:10,520 but basically, this is my $10 little USB 243 00:12:10,520 --> 00:12:11,360 Ethernet adapter. 244 00:12:11,780 --> 00:12:13,400 Actually, that one's $6 from China. 245 00:12:13,980 --> 00:12:15,760 And literally, you just plug it in, 246 00:12:15,860 --> 00:12:18,240 it's just because you can get a white or black box 247 00:12:18,240 --> 00:12:19,640 to make it look like it belongs there, 248 00:12:19,720 --> 00:12:21,620 and that's it. You plug it in, no IP address, 249 00:12:21,820 --> 00:12:22,560 you're full on tap. 250 00:12:23,600 --> 00:12:25,240 Now, once you tap the data, 251 00:12:25,680 --> 00:12:27,000 this is a really ghetto script, 252 00:12:27,140 --> 00:12:30,100 but then the idea is just take a TCP dump of that traffic 253 00:12:30,100 --> 00:12:31,500 and basically export it. 254 00:12:31,620 --> 00:12:33,300 And we'll talk about, in a minute, 255 00:12:33,340 --> 00:12:34,440 about how to get it off the network, 256 00:12:36,260 --> 00:12:37,420 because once it's planted on the network, 257 00:12:37,600 --> 00:12:38,880 is you run your script, 258 00:12:39,020 --> 00:12:41,040 and just basically take the data that you want. 259 00:12:41,220 --> 00:12:43,000 So this script, we're just taking usernames and passwords, 260 00:12:43,440 --> 00:12:44,880 but select your data, because again, 261 00:12:44,940 --> 00:12:47,020 it's a Raspberry Pi, not a lot of storage, 262 00:12:47,260 --> 00:12:50,080 so most likely, just run your tap, 263 00:12:50,660 --> 00:12:51,660 selectively steal your data, 264 00:12:51,780 --> 00:12:53,320 and that's kind of part two. 265 00:12:53,980 --> 00:12:55,160 So for part three is, 266 00:12:55,520 --> 00:12:56,480 I'm here to talk about this, 267 00:12:56,540 --> 00:12:57,680 is now, once you have the data, 268 00:12:57,740 --> 00:12:58,800 is getting it off the network. 269 00:13:02,120 --> 00:13:03,660 Yeah, I will tell you in this example, 270 00:13:03,820 --> 00:13:05,620 we just used FTP as an example, 271 00:13:06,260 --> 00:13:06,640 because in real life, 272 00:13:06,740 --> 00:13:09,620 we definitely were using SSH 273 00:13:09,620 --> 00:13:10,900 or some other encrypted protocol. 274 00:13:11,260 --> 00:13:12,660 So what we did find, well, 275 00:13:12,700 --> 00:13:14,700 in this customer, they really weren't monitoring anything, 276 00:13:14,940 --> 00:13:17,240 so it was pretty easy for us to take FTP information 277 00:13:17,240 --> 00:13:18,740 and transfer the data, 278 00:13:18,820 --> 00:13:20,160 but in other customers that are using 279 00:13:20,160 --> 00:13:22,340 some sort of NetFlow or some sort of monitoring, 280 00:13:22,500 --> 00:13:23,940 they probably would catch the data 281 00:13:23,940 --> 00:13:24,900 leaving their network. 282 00:13:25,860 --> 00:13:27,480 So how does the data leave the network? 283 00:13:28,680 --> 00:13:30,700 So we tried to make the Raspberry Pi 284 00:13:30,700 --> 00:13:31,740 a remote access tool, 285 00:13:31,740 --> 00:13:34,180 by essentially having it do reverse SSH. 286 00:13:34,500 --> 00:13:35,880 The main reason for this is 287 00:13:35,880 --> 00:13:38,160 we didn't know where these Raspberry Pis were going. 288 00:13:38,380 --> 00:13:40,540 They were going to 21 different countries 289 00:13:40,540 --> 00:13:42,080 pretty much all over the world, 290 00:13:42,140 --> 00:13:44,380 and we had no idea what was behind 291 00:13:44,380 --> 00:13:45,640 those networks. 292 00:13:45,840 --> 00:13:47,600 They could have any firewall, any rules, 293 00:13:47,860 --> 00:13:49,560 a lot of those places didn't even have 294 00:13:49,560 --> 00:13:50,220 network administrators. 295 00:13:50,680 --> 00:13:53,540 So we're like, how do we get our Raspberry Pi to connect back? 296 00:13:53,940 --> 00:13:55,140 So what we ended up doing is 297 00:13:55,140 --> 00:13:57,280 we ended up creating a Kali Linux box on AWS 298 00:13:57,280 --> 00:13:59,020 with a public IP address 299 00:13:59,020 --> 00:14:00,840 that had a listener on it, 300 00:14:01,820 --> 00:14:03,700 SSH back from the Raspberry Pi 301 00:14:03,700 --> 00:14:06,600 into our AWS Kali Linux box. 302 00:14:09,400 --> 00:14:10,740 So how do we set that up? 303 00:14:10,980 --> 00:14:12,040 It was pretty easy, 304 00:14:12,120 --> 00:14:14,120 and this is just a very basic example 305 00:14:14,120 --> 00:14:15,020 on how to do this. 306 00:14:15,400 --> 00:14:17,860 Now when we actually set this up in real life, 307 00:14:17,920 --> 00:14:20,180 we did use automated logins, certificates, 308 00:14:20,720 --> 00:14:22,360 and we actually had scripts 309 00:14:22,360 --> 00:14:24,200 to run the logins over and over again. 310 00:14:24,380 --> 00:14:25,780 So it got a little more complicated. 311 00:14:30,420 --> 00:14:30,860 Yay! 312 00:14:31,940 --> 00:14:34,200 Alright, so what we did was 313 00:14:34,200 --> 00:14:35,400 we ended up creating a listener, 314 00:14:35,440 --> 00:14:37,840 very easy to do on the Kali Linux box, 315 00:14:37,960 --> 00:14:39,200 you're just going to do an SSH, 316 00:14:39,240 --> 00:14:42,140 we're listening on port 222, 317 00:14:42,240 --> 00:14:43,160 that's the local port, 318 00:14:43,240 --> 00:14:45,780 so any time the Pi actually SSHs 319 00:14:45,780 --> 00:14:48,540 into our AWS server, 320 00:14:48,760 --> 00:14:49,660 which is going to be like 321 00:14:49,660 --> 00:14:51,280 10.10.10.1 in this example, 322 00:14:52,420 --> 00:14:53,580 the Kali server, 323 00:14:53,800 --> 00:14:55,800 the AWS server 324 00:14:55,800 --> 00:14:57,400 is going to open up port 222, 325 00:14:57,560 --> 00:15:00,300 and then forward that to an SSH port. 326 00:15:00,300 --> 00:15:02,660 And then the .n command 327 00:15:02,660 --> 00:15:03,420 basically says, 328 00:15:03,520 --> 00:15:05,280 don't forward more SSH commands 329 00:15:05,280 --> 00:15:07,120 because we only need it on one place, 330 00:15:07,200 --> 00:15:08,400 we don't need it on both boxes 331 00:15:08,400 --> 00:15:09,140 tunneling the commands. 332 00:15:10,600 --> 00:15:11,880 Once the Pi is set up, 333 00:15:11,880 --> 00:15:12,940 on the local box, 334 00:15:13,040 --> 00:15:14,840 we just SSH to a local port, 335 00:15:14,960 --> 00:15:15,860 to 2222, 336 00:15:16,420 --> 00:15:17,920 and then it goes ahead and connects 337 00:15:17,920 --> 00:15:19,100 to the remote Raspberry Pi, 338 00:15:19,320 --> 00:15:20,480 and opens up a session. 339 00:15:20,680 --> 00:15:21,900 And then we have full control 340 00:15:21,900 --> 00:15:22,820 of that Raspberry Pi. 341 00:15:30,300 --> 00:15:30,740 If they would be turned off, 342 00:15:30,860 --> 00:15:31,640 if they would be moved around, 343 00:15:31,820 --> 00:15:32,700 if there would be power issues, 344 00:15:32,900 --> 00:15:36,260 we wrote a quick shell script 345 00:15:36,260 --> 00:15:38,440 to basically go ahead and try to log in 346 00:15:38,440 --> 00:15:39,220 over and over again. 347 00:15:40,080 --> 00:15:41,100 If you're paying attention, 348 00:15:41,240 --> 00:15:42,440 I did this example last night 349 00:15:42,440 --> 00:15:43,840 and I used a different IP address, 350 00:15:44,000 --> 00:15:45,920 so that's why you have 25s on there 351 00:15:45,920 --> 00:15:47,100 instead of 10.1.1.1. 352 00:15:47,300 --> 00:15:49,180 But all this script does is basically 353 00:15:49,700 --> 00:15:52,500 look at trying to SSH over and over again 354 00:15:52,500 --> 00:15:53,980 back into our AWS system. 355 00:15:54,600 --> 00:15:55,920 Don't try and connect to that server, 356 00:16:00,300 --> 00:16:01,580 it's on job and created a cron tab 357 00:16:01,580 --> 00:16:03,440 to make sure that it starts up automatically. 358 00:16:03,780 --> 00:16:05,700 So anytime the Raspberry Pi starts up, 359 00:16:05,740 --> 00:16:07,660 it's always trying to connect back to our server. 360 00:16:08,060 --> 00:16:09,600 Essentially what that made it do 361 00:16:09,600 --> 00:16:11,500 is it made all our remote Raspberry Pis 362 00:16:11,500 --> 00:16:13,540 all in all 21 locations 363 00:16:13,540 --> 00:16:15,600 connecting back to us at AWS 364 00:16:15,600 --> 00:16:17,340 and we're able to connect to them 365 00:16:17,340 --> 00:16:18,520 on different ports anytime. 366 00:16:20,380 --> 00:16:21,380 Once we did that, 367 00:16:21,460 --> 00:16:22,320 we had Eureka. 368 00:16:22,500 --> 00:16:25,280 So this is actually an artist's depiction 369 00:16:25,280 --> 00:16:27,420 of me right here when I was really happy 370 00:16:27,420 --> 00:16:30,180 when we got the Raspberry Pis working in China 371 00:16:30,300 --> 00:16:31,580 and Japan and other places 372 00:16:31,580 --> 00:16:32,580 we weren't supposed to go to. 373 00:16:33,560 --> 00:16:35,100 I just hadn't shaved for a week. 374 00:16:35,140 --> 00:16:35,420 I apologize. 375 00:16:46,760 --> 00:16:48,220 I couldn't quite hear that 376 00:16:48,220 --> 00:16:48,720 but you said, 377 00:16:48,780 --> 00:16:50,760 why was it port 2222? 378 00:16:51,080 --> 00:16:52,400 That was my local port, 379 00:16:52,480 --> 00:16:54,220 so that was the port that I had control over. 380 00:16:54,440 --> 00:16:56,080 I can definitely go over that more in detail. 381 00:16:56,080 --> 00:16:57,460 Just come to me afterwards 382 00:16:57,460 --> 00:16:58,380 and we can go over the config. 383 00:17:00,360 --> 00:17:01,280 The other issue is 384 00:17:01,280 --> 00:17:03,000 when I started doing this test, 385 00:17:03,320 --> 00:17:05,040 I was carrying my Raspberry Pi everywhere 386 00:17:05,040 --> 00:17:06,680 and at first I was going to hotels, 387 00:17:06,860 --> 00:17:07,740 I was traveling a lot 388 00:17:07,740 --> 00:17:09,500 and I had my Apple TV with me everywhere 389 00:17:09,500 --> 00:17:10,860 so I wanted to use my Apple TV 390 00:17:10,860 --> 00:17:12,780 and I said, hey, I'm going to use my Raspberry Pi 391 00:17:12,780 --> 00:17:15,160 as an access point because a lot of hotels 392 00:17:15,160 --> 00:17:17,120 just have wireless, they didn't have LANs 393 00:17:17,120 --> 00:17:19,220 and I wanted to have wireless access points 394 00:17:19,220 --> 00:17:21,000 and I was like, that's pretty cool. 395 00:17:21,100 --> 00:17:23,260 I wonder if I can actually use this in security somehow. 396 00:17:26,080 --> 00:17:26,240 So I went to Apple 397 00:17:26,240 --> 00:17:28,740 to basically look at a lot of different SSIDs 398 00:17:28,740 --> 00:17:30,040 and spoof SSIDs 399 00:17:30,040 --> 00:17:32,620 so I said, if I have these Raspberry Pis 400 00:17:32,620 --> 00:17:33,700 at all these remote locations 401 00:17:33,700 --> 00:17:35,200 can I start doing man-in-the-mill attacks 402 00:17:35,200 --> 00:17:38,280 on wireless and spoofing wireless SSIDs? 403 00:17:38,280 --> 00:17:39,600 Can I have people connect out to me? 404 00:17:39,920 --> 00:17:41,420 Anytime you have a wireless device 405 00:17:41,420 --> 00:17:44,100 it's always probing for the last networks 406 00:17:44,100 --> 00:17:44,960 that it connected to. 407 00:17:45,220 --> 00:17:46,960 So what we did is we ended up configuring 408 00:17:46,960 --> 00:17:48,520 the Raspberry Pi in such a way that 409 00:17:48,520 --> 00:17:50,240 it would respond back to those probes 410 00:17:50,240 --> 00:17:52,660 and say whatever wireless network your device is looking for, 411 00:17:56,080 --> 00:17:56,740 we have full access. 412 00:17:56,860 --> 00:17:59,040 We can give you DHCP, DNS, redirect you 413 00:17:59,040 --> 00:18:00,920 and do some other cool things as well. 414 00:18:01,960 --> 00:18:03,400 What we also ended up doing is 415 00:18:03,400 --> 00:18:04,840 we ended up building the Raspberry Pi 416 00:18:04,840 --> 00:18:08,140 as a local testing tool for wireless as well. 417 00:18:08,540 --> 00:18:10,740 We decided to have a little bit of fun with this 418 00:18:10,740 --> 00:18:12,260 and we recreated something that we found 419 00:18:13,080 --> 00:18:15,080 and we kind of thought it looked pretty cool 420 00:18:15,080 --> 00:18:17,000 but we were able to go around different buildings 421 00:18:17,000 --> 00:18:19,040 and actually look at the Raspberry Pi 422 00:18:19,040 --> 00:18:21,320 and make it connect to other devices 423 00:18:21,320 --> 00:18:22,500 and probe other networks 424 00:18:22,500 --> 00:18:23,620 and rogue networks as well. 425 00:18:24,180 --> 00:18:25,820 This is a wireless card we used 426 00:18:26,080 --> 00:18:26,540 called the Edimax. 427 00:18:26,940 --> 00:18:29,640 I think this is a dime that's just stretched out 428 00:18:29,640 --> 00:18:30,620 in the picture but you can see 429 00:18:30,620 --> 00:18:32,580 it's a very small wireless device 430 00:18:32,580 --> 00:18:33,300 and it works fine. 431 00:18:34,260 --> 00:18:36,660 It is a quarter, okay, I couldn't quite tell. 432 00:18:36,820 --> 00:18:37,880 I might have to examine that. 433 00:18:38,800 --> 00:18:40,660 One of the biggest issues that we found 434 00:18:40,660 --> 00:18:42,440 when you're doing wireless with the Raspberry Pi 435 00:18:42,440 --> 00:18:44,620 is you really have to be careful 436 00:18:44,620 --> 00:18:47,540 on your network cards, on your wireless cards. 437 00:18:47,660 --> 00:18:48,700 You really need a wireless card 438 00:18:48,700 --> 00:18:50,220 that works with host APD. 439 00:18:50,840 --> 00:18:52,800 And what we found is the wireless cards 440 00:18:52,800 --> 00:18:54,540 that work with host APD is pretty much 441 00:18:56,080 --> 00:18:57,480 going to work in Linux for any type of Linux 442 00:18:57,480 --> 00:18:59,600 wireless troubleshooting or pen testing. 443 00:19:00,180 --> 00:19:01,280 These are the recommendations. 444 00:19:01,580 --> 00:19:03,040 I personally love the Alpha cards. 445 00:19:03,140 --> 00:19:04,060 That's really what I use. 446 00:19:04,300 --> 00:19:06,060 The TP links are also very popular. 447 00:19:07,060 --> 00:19:10,040 Adafruit, they sell a lot of OEM type devices 448 00:19:10,040 --> 00:19:11,720 and they're great as well. 449 00:19:11,800 --> 00:19:12,900 Pretty much anything works. 450 00:19:13,120 --> 00:19:14,980 So as long as it works with host APD 451 00:19:14,980 --> 00:19:17,440 you're good to go because you will have to compile that. 452 00:19:18,880 --> 00:19:20,360 So on the Ethernet front though 453 00:19:20,360 --> 00:19:21,360 it doesn't really matter. 454 00:19:21,520 --> 00:19:23,900 I tried like 10 or 11 different Ethernet 455 00:19:23,900 --> 00:19:25,740 like the physical Ethernet USBs. 456 00:19:26,080 --> 00:19:26,540 All of them work. 457 00:19:26,720 --> 00:19:28,100 So we found wireless wise 458 00:19:28,100 --> 00:19:29,580 some work, some didn't work. 459 00:19:29,700 --> 00:19:30,840 But if you see the Ethernet adapters 460 00:19:30,840 --> 00:19:32,540 some on eBay are like $30, $40. 461 00:19:32,840 --> 00:19:33,880 Some are $7, $8. 462 00:19:34,220 --> 00:19:35,280 They all work the same. 463 00:19:35,600 --> 00:19:37,700 And I mean I tried troubleshooting some applications 464 00:19:37,700 --> 00:19:38,780 when it was a driver issue. 465 00:19:39,040 --> 00:19:39,920 It didn't matter. 466 00:19:39,980 --> 00:19:41,580 There was not one Ethernet 467 00:19:41,580 --> 00:19:42,880 that was better than another one. 468 00:19:43,000 --> 00:19:44,340 So my advice to you on the Ethernet front 469 00:19:44,340 --> 00:19:46,680 buy the cheapest one possible on the wireless front. 470 00:19:46,920 --> 00:19:48,740 Pick something that's a little more expensive 471 00:19:56,080 --> 00:19:57,740 and you're pretty much spending about $70 a kit. 472 00:19:58,220 --> 00:19:59,540 Go ahead and start this one. 473 00:20:00,160 --> 00:20:02,400 Alright, so what are some of the things 474 00:20:02,400 --> 00:20:03,300 you can do with a Raspberry Pi? 475 00:20:04,100 --> 00:20:05,380 We had a lot of questions 476 00:20:05,380 --> 00:20:06,820 when we were doing the research on defense. 477 00:20:07,140 --> 00:20:09,260 Can I use Raspberry Pi for a set of security 478 00:20:09,260 --> 00:20:10,660 attacking security defense? 479 00:20:11,820 --> 00:20:13,920 Our experience, first off, 480 00:20:13,980 --> 00:20:15,900 firewalls, IPS's, don't do it. 481 00:20:16,380 --> 00:20:18,320 It's a shitty, shitty firewall. 482 00:20:18,680 --> 00:20:19,980 Even IP tables. 483 00:20:20,160 --> 00:20:20,780 It sucks. 484 00:20:21,140 --> 00:20:24,140 And some of the claimed Raspberry Pi 485 00:20:24,140 --> 00:20:26,060 images for firewalling, they would work 486 00:20:26,080 --> 00:20:28,420 and then basically Raspberry Pi would do an update 487 00:20:28,420 --> 00:20:29,460 and then it wouldn't work anymore. 488 00:20:29,580 --> 00:20:30,560 The drivers wouldn't work anymore. 489 00:20:30,820 --> 00:20:33,220 And you would try to email the firewall vendor 490 00:20:33,220 --> 00:20:34,440 that makes it and they would be like 491 00:20:34,440 --> 00:20:35,360 we don't support it anymore. 492 00:20:35,680 --> 00:20:38,840 So for defenses, firewalls, IPS's suck. 493 00:20:39,180 --> 00:20:41,540 The only defense mechanisms we found that worked 494 00:20:41,540 --> 00:20:43,240 pretty well with the Raspberry Pi 495 00:20:43,240 --> 00:20:45,360 it actually makes a decent content filter. 496 00:20:45,620 --> 00:20:47,620 So instead of buying a network nanny 497 00:20:47,620 --> 00:20:49,400 if you want to basically filter porn and all that 498 00:20:49,400 --> 00:20:51,340 at your home house, the Raspberry Pi actually 499 00:20:51,340 --> 00:20:52,040 does a pretty good job. 500 00:20:52,180 --> 00:20:54,860 There's a good image out there in a book we built it for you. 501 00:20:56,080 --> 00:20:57,120 That worked out well. 502 00:20:57,520 --> 00:20:58,660 VPN concentrator. 503 00:20:58,880 --> 00:21:00,740 It's actually a decent VPN concentrator. 504 00:21:00,920 --> 00:21:03,120 So instead of buying an ASA or something like that 505 00:21:03,120 --> 00:21:05,300 you can make this a VPN concentrator 506 00:21:05,300 --> 00:21:06,140 to get back in your network. 507 00:21:06,640 --> 00:21:08,360 And then last is the Tor system. 508 00:21:08,580 --> 00:21:10,400 That was your thing, you can tell the story there. 509 00:21:11,980 --> 00:21:13,440 Yeah, so pretty recently 510 00:21:13,440 --> 00:21:15,780 what I started doing was a lot of research in malware 511 00:21:15,780 --> 00:21:17,680 and doing a lot of malware reverse engineering. 512 00:21:18,000 --> 00:21:19,960 What I found is a lot of malware out there 513 00:21:19,960 --> 00:21:21,740 you really don't want your ISP 514 00:21:21,740 --> 00:21:22,980 knowing you're running malware 515 00:21:22,980 --> 00:21:25,500 because they get a little unhappy about that. 516 00:21:26,080 --> 00:21:27,680 There's a lot of malware coming out from your home. 517 00:21:28,020 --> 00:21:30,540 And also a lot of command and control servers 518 00:21:30,540 --> 00:21:31,480 they're recording your IP 519 00:21:31,480 --> 00:21:33,600 so you don't want your IP recorded all the time either. 520 00:21:33,820 --> 00:21:35,960 So what we found is it's very easy to turn 521 00:21:35,960 --> 00:21:37,340 the Raspberry Pi into a Tor gateway. 522 00:21:37,780 --> 00:21:39,720 So basically, essentially I have my 523 00:21:39,720 --> 00:21:42,840 Raspberry Pi, my laptop connected to my Raspberry Pi 524 00:21:42,840 --> 00:21:44,180 which is then connected to the internet. 525 00:21:44,380 --> 00:21:45,700 And it's used as a Tor gateway 526 00:21:45,700 --> 00:21:47,240 so it goes through the entire Tor network. 527 00:21:47,500 --> 00:21:48,780 And it worked out really well. 528 00:21:49,100 --> 00:21:51,260 In fact, what you also can do with the Tor gateway 529 00:21:51,260 --> 00:21:54,540 is you can actually specify what your exit nodes are 530 00:21:54,540 --> 00:21:55,860 some malware only works from 531 00:21:56,460 --> 00:21:57,120 the US. 532 00:21:57,400 --> 00:21:59,140 So what we can do is we can actually specify 533 00:21:59,140 --> 00:22:01,160 hey, only use exit nodes in the US 534 00:22:01,160 --> 00:22:03,400 or get a little more granular as well. 535 00:22:03,640 --> 00:22:04,560 Just one example. 536 00:22:05,880 --> 00:22:08,440 As he said, any firewall or IPS 537 00:22:08,440 --> 00:22:10,280 besides IP tables didn't work at all. 538 00:22:11,500 --> 00:22:13,000 We stayed up a lot of nights 539 00:22:13,000 --> 00:22:13,940 just trying to make it work. 540 00:22:14,040 --> 00:22:15,640 The VPN concentrator pretty much worked. 541 00:22:15,740 --> 00:22:17,260 We were able to make it an open VPN server 542 00:22:17,260 --> 00:22:19,220 but not much else besides that. 543 00:22:20,080 --> 00:22:21,980 One of the things I really had a lot of fun with 544 00:22:21,980 --> 00:22:23,300 is I'm a retro gamer 545 00:22:23,300 --> 00:22:25,840 and so I ended up creating a couple 546 00:22:26,080 --> 00:22:26,940 of gaming devices. 547 00:22:27,580 --> 00:22:28,940 These are actually just miniature 548 00:22:28,940 --> 00:22:30,500 these are not full arcade cabinets 549 00:22:30,500 --> 00:22:32,480 they're just miniature arcade cabinets I found. 550 00:22:32,700 --> 00:22:34,420 You can buy little LCD screens 551 00:22:34,420 --> 00:22:35,920 you can actually just hook it up to your TV. 552 00:22:36,220 --> 00:22:38,800 It's actually pretty cool to hook up 553 00:22:38,800 --> 00:22:41,420 just a Raspberry Pi with HDMI on your TV 554 00:22:41,420 --> 00:22:43,040 and start playing Super Mario Brothers. 555 00:22:44,220 --> 00:22:46,260 One thing that I learned about this is 556 00:22:46,260 --> 00:22:47,940 all the retro gaming controllers 557 00:22:47,940 --> 00:22:49,100 pretty much suck. 558 00:22:49,260 --> 00:22:51,560 So try and buy a Super Nintendo controller 559 00:22:51,560 --> 00:22:52,560 and use a USB adapter 560 00:22:52,560 --> 00:22:54,360 or you can actually use a 561 00:22:54,360 --> 00:22:56,480 Xbox 360 controller as well 562 00:22:56,480 --> 00:22:57,560 as long as you're wired in 563 00:22:57,560 --> 00:22:58,920 it works fine. 564 00:22:59,340 --> 00:23:00,140 That's a good point. 565 00:23:01,780 --> 00:23:03,460 Don't buy like the newer controllers 566 00:23:03,460 --> 00:23:05,000 buy the old controller and buy the adapter. 567 00:23:05,840 --> 00:23:07,820 Yeah, the older controllers work a lot better. 568 00:23:08,720 --> 00:23:09,920 We're kind of going ghetto style 569 00:23:09,920 --> 00:23:11,000 since we have one mic here. 570 00:23:11,400 --> 00:23:13,660 This is like my newest project right here 571 00:23:13,660 --> 00:23:14,860 what I'm doing with the Raspberry Pi. 572 00:23:15,180 --> 00:23:17,540 What I ended up doing was I ended up getting a mirror 573 00:23:17,540 --> 00:23:20,180 and you have to actually go to your hardware store 574 00:23:20,180 --> 00:23:22,120 and ask for an observation mirror. 575 00:23:22,560 --> 00:23:24,520 You will definitely get a strange look 576 00:23:24,520 --> 00:23:26,040 when you ask for an observation mirror 577 00:23:26,040 --> 00:23:28,440 because, I don't know, I guess it can be used 578 00:23:28,440 --> 00:23:30,720 for possibly other things as well. 579 00:23:31,480 --> 00:23:32,420 But you want a mirror 580 00:23:32,420 --> 00:23:33,840 that's pretty much a one way mirror 581 00:23:33,840 --> 00:23:36,340 and what I ended up doing was 582 00:23:36,340 --> 00:23:37,360 I ended up taking a monitor 583 00:23:37,360 --> 00:23:39,080 I ended up stripping everything on the monitor 584 00:23:39,080 --> 00:23:40,180 the case, everything 585 00:23:40,180 --> 00:23:42,260 and I ended up mounting it behind the mirror as well. 586 00:23:42,760 --> 00:23:44,760 Now one thing is if you do this 587 00:23:44,760 --> 00:23:46,960 you really want a monitor that has a VGA connection 588 00:23:46,960 --> 00:23:48,520 on the side of the monitor 589 00:23:48,520 --> 00:23:51,000 because if it's in the back of the monitor you will have a hard time 590 00:23:52,560 --> 00:23:52,580 trying to identify. 591 00:23:52,720 --> 00:23:54,500 But you can go ahead and do that 592 00:23:54,500 --> 00:23:55,660 and I actually have some apps 593 00:23:55,660 --> 00:23:58,100 it's actually just connected to my Google account 594 00:23:58,100 --> 00:23:59,160 and I can see my appointments. 595 00:23:59,540 --> 00:24:00,440 Here's another guy. 596 00:24:00,600 --> 00:24:03,140 I guess he had an app that gives him 597 00:24:03,140 --> 00:24:04,240 high suggestions as well. 598 00:24:04,660 --> 00:24:06,360 We're actually working on an iPhone app 599 00:24:06,360 --> 00:24:08,940 that will let you update the little widgets on this as well 600 00:24:08,940 --> 00:24:09,800 so it will be kind of cool. 601 00:24:10,900 --> 00:24:12,440 Kind of just a new project we're working on. 602 00:24:14,720 --> 00:24:16,580 So basically to summarize the talk here 603 00:24:16,580 --> 00:24:17,520 because I know we kind of went on a tangent 604 00:24:17,520 --> 00:24:18,680 on some of the fun projects 605 00:24:18,680 --> 00:24:20,380 in the book we also have some fun projects 606 00:24:20,380 --> 00:24:22,660 but I guess the summary of the talk is this 607 00:24:22,660 --> 00:24:25,900 the Raspberry Pi can make a penetration testing arsenal 608 00:24:26,420 --> 00:24:27,760 you don't want to run anything 609 00:24:27,760 --> 00:24:28,680 that's a high process 610 00:24:28,680 --> 00:24:31,420 so any onboard analytics tools 611 00:24:31,420 --> 00:24:32,680 you don't want to run 612 00:24:32,680 --> 00:24:33,460 they run like crap 613 00:24:33,460 --> 00:24:35,480 any exploit we tried using 614 00:24:35,480 --> 00:24:37,580 I guess we should do some of the don'ts 615 00:24:37,580 --> 00:24:39,400 we tried doing some phishing attacks on it 616 00:24:39,400 --> 00:24:40,460 and it never really worked 617 00:24:40,460 --> 00:24:43,480 so running your set social engineering tool kit 618 00:24:43,480 --> 00:24:45,820 really didn't work. We tried to plan it on networks 619 00:24:47,520 --> 00:24:48,500 and it's just too slow 620 00:24:48,500 --> 00:24:50,980 so when people get redirected it doesn't really work 621 00:24:50,980 --> 00:24:52,080 we couldn't trick people with it 622 00:24:52,080 --> 00:24:54,660 so last year we did a whole social engineering talk 623 00:24:54,660 --> 00:24:56,540 about Emily Williams and all that 624 00:24:56,540 --> 00:24:58,160 we tried pulling that off 625 00:24:58,160 --> 00:24:59,460 it did not work on the Raspberry Pi 626 00:24:59,460 --> 00:25:03,380 so social engineering, beef, all those tools 627 00:25:03,380 --> 00:25:04,940 they don't work on a Raspberry Pi 628 00:25:05,320 --> 00:25:06,600 we've tried it in the real world 629 00:25:06,600 --> 00:25:08,200 and it just doesn't work 630 00:25:08,200 --> 00:25:11,320 so your best bet, really just use it in a command line form 631 00:25:11,320 --> 00:25:12,680 for basically capturing data 632 00:25:12,680 --> 00:25:13,960 and our recommendations 633 00:25:13,960 --> 00:25:16,180 like again the man in the middle tap 634 00:25:17,520 --> 00:25:18,660 and it's really hard to find 635 00:25:18,660 --> 00:25:20,620 even with like net flow based tools 636 00:25:20,620 --> 00:25:22,740 if you're stealthy about it, if your script is good 637 00:25:22,740 --> 00:25:23,740 they won't catch it 638 00:25:23,740 --> 00:25:26,500 and then the second observation was 639 00:25:26,500 --> 00:25:29,060 wireless wise, you can do some wireless testing 640 00:25:29,060 --> 00:25:31,100 but again, have it to basically collect data 641 00:25:31,100 --> 00:25:33,160 and then use a script to export that data 642 00:25:33,160 --> 00:25:34,960 and we found off the recommendations 643 00:25:34,960 --> 00:25:37,480 that if you have an auto always connect 644 00:25:37,480 --> 00:25:38,800 and you do the reverse shell we recommended 645 00:25:38,800 --> 00:25:40,040 that works really well 646 00:25:40,040 --> 00:25:41,240 we tried it in multiple countries 647 00:25:41,240 --> 00:25:42,460 and we were always able to connect 648 00:25:42,460 --> 00:25:45,960 we really didn't have a lot of problems getting past various firewalls 649 00:25:47,520 --> 00:25:48,580 I know I just wanted to add 650 00:25:48,580 --> 00:25:49,340 just in conclusion 651 00:25:49,340 --> 00:25:50,820 we're going to give away our book 652 00:25:50,820 --> 00:25:52,500 but I know this is a security conference 653 00:25:52,500 --> 00:25:54,280 so all you guys are probably just going to get on BitTorrent 654 00:25:54,280 --> 00:25:55,160 and download this book 655 00:25:55,160 --> 00:25:56,160 I guess that's fine 656 00:25:56,160 --> 00:25:57,800 but if you do end up buying it 657 00:25:57,800 --> 00:25:59,780 we are actually giving, I'm giving the proceeds 658 00:25:59,780 --> 00:26:00,900 all to hackers for charity 659 00:26:00,900 --> 00:26:03,280 so it goes to Johnny Long's foundation 660 00:26:03,280 --> 00:26:06,060 and I guess that's in conclusion 661 00:26:06,060 --> 00:26:06,860 have fun 662 00:26:07,300 --> 00:26:08,820 we'll be up here for questions 663 00:26:08,820 --> 00:26:10,380 we finished a little early 664 00:26:10,380 --> 00:26:11,980 so we can definitely start our drinking early 665 00:26:12,600 --> 00:26:13,460 any questions? 666 00:26:16,200 --> 00:26:16,640 alright 667 00:26:16,640 --> 00:26:18,160 I guess Joey is going to throw the book out 668 00:26:18,160 --> 00:26:19,140 as hard as he can 669 00:26:20,840 --> 00:26:21,280 alright 670 00:26:23,420 --> 00:26:25,100 so watch out for your eyes 671 00:26:25,100 --> 00:26:26,420 or head or whatever 672 00:26:26,420 --> 00:26:27,780 just throw it high 673 00:26:27,780 --> 00:26:28,820 throw it right in the spotlight 674 00:26:28,820 --> 00:26:31,140 I can't see so I'm going to hit somebody in the face 675 00:26:31,140 --> 00:26:31,380 alright 676 00:26:35,560 --> 00:26:36,700 you're going to fight 677 00:26:36,700 --> 00:26:37,300 you're going to fight 678 00:26:38,980 --> 00:26:39,380 thanks 679 00:26:39,380 --> 00:26:40,100 alright thanks a lot