1 00:00:00,000 --> 00:00:00,800 I'm Sebastian Kinna. 2 00:00:00,880 --> 00:00:01,660 I'm Darren Kitchen. 3 00:00:01,860 --> 00:00:08,740 And to reverse that together, we form the power of Wi-Fi panel goodness, Hack5. 4 00:00:16,100 --> 00:00:21,700 Hack5 just turned 10 years old on the 5th of August. 5 00:00:21,780 --> 00:00:22,740 That was pretty insane. 6 00:00:23,820 --> 00:00:27,900 So if anybody can tell me the name of the original theme music, they get Freeland Turtle. 7 00:00:30,000 --> 00:00:30,500 Yeah, I didn't think so. 8 00:00:34,020 --> 00:00:36,420 So what we're going to talk about today, do a little pineapple primer. 9 00:00:36,600 --> 00:00:41,020 For those of you who aren't familiar, we're going to quickly recap the changes in the Wi-Fi landscape 10 00:00:41,020 --> 00:00:44,740 as this is a game of cat and mouse that we're continuously enjoying. 11 00:00:45,260 --> 00:00:49,640 We're going to talk a little bit about Pine AP, the success of that, what we've done to make it better, 12 00:00:49,740 --> 00:00:50,840 some of the new features. 13 00:00:51,700 --> 00:00:56,500 We're going to get into a little analysis of some of the captures that we've done with that. 14 00:00:56,800 --> 00:00:57,880 And we're going to talk about security. 15 00:00:58,820 --> 00:00:59,980 And then we're going to talk about the features. 16 00:00:59,980 --> 00:01:01,080 And then we're going to talk about the future of the fruit. 17 00:01:05,380 --> 00:01:06,800 So what is Wi-Fi Pineapple? 18 00:01:06,960 --> 00:01:08,120 It's a rogue access point. 19 00:01:10,100 --> 00:01:11,260 It's so many things. 20 00:01:11,360 --> 00:01:13,160 It's a pen test pivot box, obviously. 21 00:01:13,840 --> 00:01:16,700 It's most known for its intuitive web interface. 22 00:01:17,040 --> 00:01:21,740 The way that we just basically package up these tools and make it simple because, okay, sure, 23 00:01:21,800 --> 00:01:26,520 you may know all of the esoteric TAC, TAC, P, colon, underscore. 24 00:01:26,680 --> 00:01:27,040 That's cool. 25 00:01:27,220 --> 00:01:27,880 Don't get me wrong. 26 00:01:27,940 --> 00:01:28,380 I love that. 27 00:01:28,380 --> 00:01:30,960 Sometimes I just want to, like, make it do the thing. 28 00:01:38,900 --> 00:01:45,560 So with that, what it does best is it's kind of most known for its rogue access point feature. 29 00:01:46,160 --> 00:01:47,380 Again, the Pine AP suite. 30 00:01:48,660 --> 00:01:55,440 And what that provides is being a rogue access point says, like, hey, I'm really interested in collecting clients. 31 00:01:55,540 --> 00:01:55,920 But why? 32 00:01:56,300 --> 00:01:56,700 Right? 33 00:01:56,800 --> 00:01:58,200 Because that's only, like, one step. 34 00:01:58,380 --> 00:01:58,700 That's the end of the game. 35 00:01:59,080 --> 00:02:05,300 And the idea is to poise yourself on the network as the man in the middle, much like Comcast is at home for you. 36 00:02:08,140 --> 00:02:13,260 We also do really well remote management out of band, which is a lot of times fun, 37 00:02:13,340 --> 00:02:15,460 especially if you're using this as, like, a pen test pivot box. 38 00:02:15,560 --> 00:02:16,440 Drop it on an organization. 39 00:02:16,840 --> 00:02:18,820 Get a 3G signal out. 40 00:02:20,220 --> 00:02:21,360 Leads in with pen test pivot. 41 00:02:21,580 --> 00:02:27,400 And, of course, the extensible platform that we've built that a lot of people have contributed to, 42 00:02:27,400 --> 00:02:29,880 in the way of infusions and whatnot. 43 00:02:30,120 --> 00:02:35,260 So really trying to build a platform that's as easy as possible to develop for. 44 00:02:36,100 --> 00:02:43,940 And we're always, we're constantly amazed when we come to DEF CON and we hear the stories of the esoteric things that the Wi-Fi Pineapple is being used for. 45 00:02:44,660 --> 00:02:46,000 So we love that stuff. 46 00:02:47,620 --> 00:02:48,660 It's not space, dude. 47 00:02:49,640 --> 00:02:51,200 He's used to more, not less. 48 00:02:51,460 --> 00:02:51,820 Sorry. 49 00:02:52,180 --> 00:02:52,600 Yeah. 50 00:02:52,780 --> 00:02:57,240 So anyway, our mission is to create simple, affordable, and effective tools for the penetration testers. 51 00:02:57,240 --> 00:02:59,760 The systems administrators, the geek metroids. 52 00:03:00,380 --> 00:03:02,980 And quite simply, our philosophy is make it do the thing. 53 00:03:06,860 --> 00:03:07,660 Those are turtles. 54 00:03:10,560 --> 00:03:12,860 Seb, you want to walk us through the Wi-Fi landscape and how it's evolved? 55 00:03:13,140 --> 00:03:18,380 So we all, hopefully, most people here are familiar with a karma attack that used to exist before. 56 00:03:18,660 --> 00:03:19,060 Yeah? 57 00:03:19,500 --> 00:03:19,900 No? 58 00:03:20,940 --> 00:03:21,340 Wow. 59 00:03:21,460 --> 00:03:22,080 Two people? 60 00:03:22,280 --> 00:03:23,280 That's three people? 61 00:03:23,360 --> 00:03:23,900 Four people? 62 00:03:24,000 --> 00:03:24,440 All right. 63 00:03:24,460 --> 00:03:24,640 Okay. 64 00:03:24,660 --> 00:03:25,020 That's better. 65 00:03:25,580 --> 00:03:25,980 Right. 66 00:03:25,980 --> 00:03:29,840 So there used to be this thing called, or there still is, but there used to be this thing called karma. 67 00:03:29,940 --> 00:03:34,380 And the way it worked is basically that your wireless devices would search for a certain network and say, 68 00:03:35,240 --> 00:03:37,400 is my Acme Wi-Fi around? 69 00:03:37,560 --> 00:03:42,000 And all that karma would say, or the pineapple in that case would say, is yes, I am. 70 00:03:42,200 --> 00:03:43,700 And then the connection would be made. 71 00:03:47,400 --> 00:03:50,660 So that obviously doesn't work well anymore. 72 00:03:50,940 --> 00:03:53,160 Well, it worked really well for its time. 73 00:03:53,400 --> 00:03:55,480 It worked the same way that, say, 74 00:03:55,980 --> 00:03:58,820 the mirror in Harry Potter worked, which was, you know, 75 00:03:58,820 --> 00:04:00,520 you look at it and you see what you want to see. 76 00:04:00,720 --> 00:04:03,940 So if what you're looking for is Linksys, you're going to see Linksys. 77 00:04:04,040 --> 00:04:07,660 And what you're looking for is Coffee Shop Wireless, you're going to see Coffee Shop Wireless. 78 00:04:09,580 --> 00:04:13,180 But that doesn't necessarily, that's not necessarily the way that devices work anymore. 79 00:04:14,200 --> 00:04:18,980 Before we go any further, of course, we need to real quick touch on some real basics of Wi-Fi. 80 00:04:20,180 --> 00:04:23,180 Mainly the management frames are the things that we're most interested in. 81 00:04:23,240 --> 00:04:25,760 And that's what allows us to do some fun. 82 00:04:25,980 --> 00:04:26,080 A couple of tricks. 83 00:04:26,520 --> 00:04:27,480 So beacon frames. 84 00:04:27,680 --> 00:04:28,360 There's only one type. 85 00:04:28,580 --> 00:04:29,340 They're just beacons. 86 00:04:29,500 --> 00:04:30,780 They're just little advertisements. 87 00:04:30,960 --> 00:04:32,240 They're like billboards on the side of the road. 88 00:04:32,380 --> 00:04:36,160 So that everybody can see them and say, like, hey, come over here to this place. 89 00:04:37,920 --> 00:04:39,240 Probes come in two forms. 90 00:04:39,400 --> 00:04:40,040 Probe requests. 91 00:04:40,320 --> 00:04:42,820 Again, I'm looking for Linksys. 92 00:04:42,880 --> 00:04:44,160 I'm looking for that coffee shop. 93 00:04:44,320 --> 00:04:50,960 And of course, the subsequent probe response, which would be, I am that Linksys, or I am 94 00:04:50,960 --> 00:04:51,560 that coffee shop. 95 00:04:53,140 --> 00:04:55,720 And the probe response is actually very similar. 96 00:04:55,980 --> 00:04:59,880 To a beacon, I think there's only a few hex values that are even different in the packet. 97 00:05:00,360 --> 00:05:03,320 It just basically says, like, here's the modes that I support. 98 00:05:03,980 --> 00:05:05,140 Here's my encryption standard. 99 00:05:05,280 --> 00:05:07,240 Here's, you know, all the ways that I like to do things. 100 00:05:07,960 --> 00:05:12,600 And then there's, you know, either creating the relationship or destroying the relationship, 101 00:05:12,740 --> 00:05:18,180 the association and the authentication, and likewise, the disassociation and the deauthentication. 102 00:05:19,280 --> 00:05:22,520 And those are just packets that say, let's be friends or GTFO. 103 00:05:26,700 --> 00:05:31,260 Okay, so Karma worked, as I said before, because it's convenient. 104 00:05:31,440 --> 00:05:35,300 You want your device to turn on, you want to open your laptop lid, and you want to automatically 105 00:05:35,300 --> 00:05:35,660 connect. 106 00:05:35,800 --> 00:05:39,380 And before that was done because you were probing for your PNL, your preferred network 107 00:05:39,380 --> 00:05:39,560 list. 108 00:05:40,240 --> 00:05:45,500 Most devices or a lot of devices, surprisingly, some have reverted what they were doing, 109 00:05:45,560 --> 00:05:46,720 but we'll get into that later. 110 00:05:47,720 --> 00:05:53,120 So a lot of devices, they probe to broadcast now versus for probing for a specific SSID. 111 00:05:53,240 --> 00:05:55,020 So they won't ask for Acme Corp anymore. 112 00:05:55,020 --> 00:05:56,840 They will ask for broadcast. 113 00:05:57,140 --> 00:05:58,500 And then every access point responds. 114 00:05:58,800 --> 00:06:01,160 And then they can pick from the access points that they want. 115 00:06:01,340 --> 00:06:06,060 So that pretty much thwarts the entire Karma attack the way it used to work. 116 00:06:07,220 --> 00:06:12,040 And it's because of Karma and Karma's success that this whole landscape has changed and vendor 117 00:06:12,040 --> 00:06:13,680 implementations have changed as such. 118 00:06:13,920 --> 00:06:15,140 And it changes the convenience. 119 00:06:15,380 --> 00:06:18,320 I mean, as we know, like, convenience and security are constantly at odds. 120 00:06:18,480 --> 00:06:22,480 It's obviously faster if you know the access point you want to directly query it and say, 121 00:06:22,580 --> 00:06:24,680 like, let's be friends, instead of, like, saying. 122 00:06:25,020 --> 00:06:26,100 Is anyone out there? 123 00:06:26,280 --> 00:06:26,560 Is anyone out there? 124 00:06:26,560 --> 00:06:27,200 And waiting around. 125 00:06:29,240 --> 00:06:34,640 And so what it does is it means that the landscape is more like a game of go fish now, 126 00:06:34,820 --> 00:06:38,880 where it's like, hey, are you still there? 127 00:06:39,920 --> 00:06:45,340 And then, of course, that varies by the vendor's implementation, but you kind of have to know 128 00:06:45,340 --> 00:06:49,860 ahead of time what may possibly be in that device's preferred network list. 129 00:06:51,040 --> 00:06:51,520 Right. 130 00:06:51,600 --> 00:06:52,720 And not only that. 131 00:06:52,720 --> 00:06:57,680 The variation in terms of how these things are implemented is so different from vendor 132 00:06:57,680 --> 00:06:58,080 to vendor. 133 00:06:58,240 --> 00:07:04,980 So, for example, some devices will still probe for the network they want, but if they do 134 00:07:04,980 --> 00:07:10,400 not see the actual beacons but only see probe responses or association responses, 135 00:07:10,400 --> 00:07:17,120 requests or responses in that matter, the access point will notice it's not a real access 136 00:07:17,120 --> 00:07:18,980 point, and it'll actually blacklist that. 137 00:07:19,080 --> 00:07:19,880 So it'll not connect. 138 00:07:19,960 --> 00:07:21,460 Even though it's probed, it got a response. 139 00:07:21,880 --> 00:07:23,740 It'll say, okay, well, you're not a real access point. 140 00:07:24,060 --> 00:07:24,820 So there's that. 141 00:07:25,020 --> 00:07:27,720 Then we have devices that just probe to broadcast, as we were saying. 142 00:07:27,820 --> 00:07:29,420 Then there's devices that have both of that. 143 00:07:29,520 --> 00:07:36,660 Some devices, we'll get into that a little bit later again, but huge range in the implementations, 144 00:07:36,720 --> 00:07:39,480 and some are more vulnerable than others, and some are very locked down. 145 00:07:39,620 --> 00:07:39,860 I don't know. 146 00:07:39,880 --> 00:07:42,940 Black phone, if you guys know that, you should. 147 00:07:44,380 --> 00:07:47,980 They changed a few things lately, and it's awesome, and it protects you against these 148 00:07:47,980 --> 00:07:48,400 type of attacks. 149 00:07:50,720 --> 00:07:51,440 So, in this case, it's not a real access point. 150 00:07:51,440 --> 00:07:55,340 In this ever-changing Wi-Fi landscape, what, of course, is a Wi-Fi pineapple to do, which 151 00:07:55,340 --> 00:08:01,400 led us to introduce the PineAP Suite, which extends on Karma, because Karma was great 152 00:08:01,400 --> 00:08:02,100 at just saying yes. 153 00:08:03,180 --> 00:08:06,900 Anybody here recall the code name for the project before just Wi-Fi pineapple? 154 00:08:07,920 --> 00:08:08,480 All right. 155 00:08:12,800 --> 00:08:14,660 I'll let you guys fight over the LAN turtle. 156 00:08:16,640 --> 00:08:17,040 Oops. 157 00:08:17,400 --> 00:08:18,040 Totally missed. 158 00:08:18,200 --> 00:08:18,940 You can't throw, can you? 159 00:08:18,940 --> 00:08:19,300 I can't throw. 160 00:08:19,300 --> 00:08:19,700 Okay. 161 00:08:23,200 --> 00:08:23,640 Right. 162 00:08:23,820 --> 00:08:24,260 So... 163 00:08:24,260 --> 00:08:29,720 So that led to building an entire suite, because there's lots of other ways that we 164 00:08:29,720 --> 00:08:31,840 can basically make the honeypot sweeter. 165 00:08:33,000 --> 00:08:38,920 Karma is just like a hook, and just like hanging out in the pond, and PineAP is like a hook 166 00:08:38,920 --> 00:08:40,880 with a worm on it, if you will. 167 00:08:41,540 --> 00:08:41,980 Right. 168 00:08:42,040 --> 00:08:47,020 So, as I was just saying, basically, devices don't start probing for their PNL anymore. 169 00:08:47,100 --> 00:08:48,880 They are probing to broadcast. 170 00:08:48,880 --> 00:08:51,260 And it's hard to now know what they're probing for. 171 00:08:51,320 --> 00:08:55,900 There's different methods of getting the PNL of devices or getting the best guess that 172 00:08:55,900 --> 00:08:56,220 we know. 173 00:08:56,420 --> 00:09:01,100 But the way we do it is we do it over something called SSID harvesting, where we take all 174 00:09:01,100 --> 00:09:07,300 the probe requests and all the beacons that we see, and we memorize them. 175 00:09:07,420 --> 00:09:08,900 We can sort them. 176 00:09:08,940 --> 00:09:09,860 We have a database for them. 177 00:09:09,960 --> 00:09:15,860 And we can then see what devices would probably respond to what SSIDs. 178 00:09:15,860 --> 00:09:22,640 And we reinforce that by doing beacon injections, which is basically just we're beaconing out 179 00:09:22,640 --> 00:09:23,800 that we're this access point. 180 00:09:23,900 --> 00:09:27,700 So we're actively saying we are this access point, because we've seen other devices probe. 181 00:09:27,820 --> 00:09:33,460 The reason why that works is normally in a certain location, you or a certain site 182 00:09:33,460 --> 00:09:38,680 that you're working on, is going to have devices that are differentiating in terms 183 00:09:38,680 --> 00:09:43,940 of the manufacturers, the policies that they have implemented. 184 00:09:44,160 --> 00:09:45,840 So you're going to be getting some old PNL. 185 00:09:45,840 --> 00:09:49,140 You can see that they overlap in terms of what SSIDs they're looking for, what APs they're 186 00:09:49,140 --> 00:09:49,500 looking for. 187 00:09:51,000 --> 00:09:52,960 So that's what beacon injection is. 188 00:09:53,080 --> 00:09:56,640 And then beacon response is actually something quite odd. 189 00:09:56,840 --> 00:09:58,100 It's kind of an anomaly here. 190 00:09:58,760 --> 00:10:00,080 You can send beacons. 191 00:10:00,500 --> 00:10:02,120 Normally, beacons are sent to broadcast. 192 00:10:03,300 --> 00:10:06,580 You can target a specific MAC address with them. 193 00:10:06,660 --> 00:10:07,840 You just switch out the MAC. 194 00:10:08,220 --> 00:10:14,760 And what happens is most devices will just ignore that frame, because it's not meant 195 00:10:14,760 --> 00:10:15,300 for them, right? 196 00:10:15,840 --> 00:10:19,480 care. They ignore the packet and they won't show it. So it won't show up if you look at your phone 197 00:10:19,480 --> 00:10:23,740 and you look at all the APs that are around you, you're not going to see the ones that are not 198 00:10:23,740 --> 00:10:28,620 targeted towards you. So I was saying the vendor implementation where the vendor requires beacons 199 00:10:28,620 --> 00:10:33,260 to be visible before it will actually associate. So you have to be actively beaconing what they're 200 00:10:33,260 --> 00:10:38,880 looking for. The way we do that is we actually send them targeted so that when you look on your 201 00:10:38,880 --> 00:10:48,700 phone or at least when the normal clients that are around, when they then look at their devices, 202 00:10:48,780 --> 00:10:54,320 it doesn't seem obvious. Obviously, the packets are there. So if you use Wireshark or wireless IDS, 203 00:10:54,980 --> 00:10:58,640 this is going to throw up a lot of red flags and we'll talk about that a little bit too. 204 00:10:59,640 --> 00:11:05,140 But yeah. Right. And then recon mode, which is basically a, and we're going to expand on that 205 00:11:05,140 --> 00:11:08,780 more in a bit, but basically it's a part of the suite that allows you to 206 00:11:08,780 --> 00:11:13,660 visualize the Wi-Fi landscape, which aids considerably in targeting and filtering and 207 00:11:13,660 --> 00:11:19,800 making sure that you are auditing just the access points and just the clients that you're 208 00:11:19,800 --> 00:11:26,660 particularly interested in. And so it's kind of like a front end to a lot of the features of the 209 00:11:26,660 --> 00:11:32,660 Pine AP suite. Right. And that's a quick overview of what we implemented. We gave a whole talk on 210 00:11:32,660 --> 00:11:38,060 that last year. Right. And then the idea there is, you know, building the 211 00:11:38,060 --> 00:11:38,760 the 212 00:11:38,760 --> 00:11:44,960 recon mode, the idea was to give you a landscape so that you're not just turning on the pineapple 213 00:11:44,960 --> 00:11:49,160 and turning on karma, which was pretty much, I mean, this is the revolution. We're in like the 214 00:11:49,160 --> 00:11:53,840 fifth iteration, the Mark five, you know, the original, it was just like on and off, right? 215 00:11:53,920 --> 00:11:59,460 You turn on karma and like, well, there goes the neighborhood. And, uh, and now we, we don't think 216 00:11:59,460 --> 00:12:04,280 that's really the best way to use the tool. So we've set it up in such a way where you can 217 00:12:04,280 --> 00:12:08,740 actually specify filters. So there's allow lists and deny lists, and you can do that in the 218 00:12:08,740 --> 00:12:14,560 on SSID. If you're only interested in a particular, uh, access point, say everybody in the company 219 00:12:14,560 --> 00:12:18,960 associates with this set access point, or the company is across the street from a coffee shop 220 00:12:18,960 --> 00:12:23,840 where they use that set access point. Um, you can filter by that or by the Mac address. So 221 00:12:23,840 --> 00:12:30,680 if you're contracted to just target the CFO, you can get this, the CFO's Mac address and make sure 222 00:12:30,680 --> 00:12:35,580 that only he can connect to, or he or she can connect to your device and allow you to do that 223 00:12:35,580 --> 00:12:38,720 man in the middle attack. Um, what's also really interesting is that you can filter by the 224 00:12:38,740 --> 00:12:43,320 here about the piney piece suite is that not only are we able to set targets, you know, 225 00:12:43,340 --> 00:12:48,660 as opposed to just broadcast, meaning everyone, um, we can actually also set the source, 226 00:12:48,860 --> 00:12:54,840 which is kind of novel, right? So, uh, again, this is something that, that we can do because 227 00:12:54,840 --> 00:13:00,700 we're just injecting frames. Uh, we, uh, we can take any type of pineapple. So say you have 228 00:13:00,700 --> 00:13:06,360 multiple pineapples set up in a certain vicinity and they're connected in one shape or form, 229 00:13:06,400 --> 00:13:08,540 or even if they're not, you'll be able to, 230 00:13:09,040 --> 00:13:12,560 set the source to one pineapple. So say you want to use 231 00:13:12,560 --> 00:13:16,880 five pineapples around a certain site to tell clients to 232 00:13:16,880 --> 00:13:20,900 connect to one pineapple. You can do this by changing your source, making it seem like 233 00:13:20,900 --> 00:13:24,900 it's coming from the original, the one pineapple you're using as a collection and as the 234 00:13:24,900 --> 00:13:27,860 actual access point, which might be providing internet. So you can actually 235 00:13:29,300 --> 00:13:30,460 couple pineapples that way. 236 00:13:32,020 --> 00:13:36,980 And then we can, of course, set it to use different intervals, and we'll take more about that later, 237 00:13:36,980 --> 00:13:40,860 but basically it's speeding up the attacks and being more, just 238 00:13:40,860 --> 00:13:43,140 saturating the airwaves more with these kinds of attacks. 239 00:13:44,320 --> 00:13:45,880 And actually, on the interval thing, 240 00:13:48,960 --> 00:13:52,840 802.11 is expressed in things called time units, and 241 00:13:52,840 --> 00:13:55,500 it has to do with the maths, but 242 00:13:56,480 --> 00:14:00,360 really, when it comes to 802.11, there are really a lot of wireless protocols. 243 00:14:00,780 --> 00:14:04,740 Timing is everything, and with Wi-Fi, everything's done in 244 00:14:04,740 --> 00:14:06,960 microseconds, but we learned 245 00:14:06,980 --> 00:14:10,740 this in particular while we were hanging out in San Francisco at 3 in the morning, 246 00:14:11,320 --> 00:14:14,720 camped outside of T-Mobile to be the first in line for 247 00:14:14,720 --> 00:14:18,860 some god-awful reason to buy the Nexus 6. I don't 248 00:14:18,860 --> 00:14:22,440 recommend hanging out on 3rd and Market in San Francisco at 3 in the morning, 249 00:14:22,540 --> 00:14:26,880 but we did learn that there's security that patrols this one 250 00:14:26,880 --> 00:14:30,320 particular building that had scaffolding all around it. They were doing some construction. 251 00:14:31,020 --> 00:14:34,600 Security guard comes out on a set interval, and then this random 252 00:14:34,600 --> 00:14:36,840 tweaker shows up. And in our hoodies, 253 00:14:36,980 --> 00:14:40,360 we literally have, like, mace and tasers ready to go. And he's like, 254 00:14:41,020 --> 00:14:41,860 Hey, will you watch my bag? 255 00:14:44,040 --> 00:14:47,500 So, you know, we didn't really want to watch this random guy's bag. 256 00:14:47,660 --> 00:14:50,600 And we're like, well, we'd prefer not to. And he just drops his bag and says, 257 00:14:50,640 --> 00:14:54,440 Alright, cool. Drops his bag on the side. And then, like a spider, 258 00:14:54,540 --> 00:14:58,720 climbs that scaffolding up about, I don't know, 12, 16 floors, 259 00:14:58,780 --> 00:15:02,700 something like that. Climbs up, cuts a hole in the 260 00:15:02,700 --> 00:15:06,120 tarp that's covering the window, I suppose, and climbs in. 261 00:15:11,360 --> 00:15:14,820 So, climbs in and on his way out. Well, you know, at some point, 262 00:15:14,860 --> 00:15:18,700 spends five, ten minutes gone. We're thinking, what the hell is going on? 263 00:15:18,760 --> 00:15:21,660 But, like, you know, just focus on just ignoring this. 264 00:15:23,740 --> 00:15:25,760 And, you know, security guard's nowhere to be seen. 265 00:15:27,140 --> 00:15:30,920 And then, you know, he climbs back down. Doesn't seem to have done anything, but he climbs back down 266 00:15:30,920 --> 00:15:34,240 and grabs his bag and comes up to us. And he just goes, dude. 267 00:15:34,720 --> 00:15:36,780 And we're like, okay, I mean, I guess I have to 268 00:15:36,780 --> 00:15:38,500 fist bump, because I don't know what he's going to do next. 269 00:15:39,240 --> 00:15:41,740 And he goes, timing is everything. 270 00:15:42,340 --> 00:15:47,160 And at that exact moment, the security guard shows up. 271 00:15:49,520 --> 00:15:52,640 Okay, so, with 802.11 time units, 272 00:15:53,360 --> 00:15:56,540 they're roughly 1024 microseconds. 273 00:15:56,540 --> 00:16:00,500 It has to do with clock cycles. There's roughly 976 274 00:16:00,500 --> 00:16:04,200 of them per second. And what that means is beacon frames 275 00:16:04,200 --> 00:16:06,760 are typically addressed in... 276 00:16:06,780 --> 00:16:10,520 as an interval, right? So, how many time units are we going to wait 277 00:16:10,520 --> 00:16:14,780 in between each chirp? And that chirp just says, hey, I'm Linksys, connect to me! 278 00:16:15,180 --> 00:16:19,180 So, typically, most routers will wait 100 time units. 279 00:16:19,580 --> 00:16:22,160 Or, you know, they do it 9 times per second. 280 00:16:23,400 --> 00:16:26,500 And with that, what you end up doing is, you end up 281 00:16:26,500 --> 00:16:30,440 chirping out about 108 possible ESS IDs per second. 282 00:16:32,220 --> 00:16:34,440 Right, and that's if you go with a standard 283 00:16:35,640 --> 00:16:36,760 time unit. That's right. 284 00:16:36,780 --> 00:16:39,520 That's recommended. We don't really do that. 285 00:16:39,680 --> 00:16:44,200 We wanted to go faster. So, we do 286 00:16:44,200 --> 00:16:47,780 about twice as many. Nope, that's not true. Almost? 287 00:16:48,520 --> 00:16:52,020 Yeah, many. Almost. Many. We go faster. And that's the default interval. 288 00:16:52,280 --> 00:16:56,560 And the reason why we do for the normal interval, the reason 289 00:16:56,560 --> 00:17:00,660 why we go at this speed is just because we can go faster. We don't have to wait on certain other activities 290 00:17:00,660 --> 00:17:02,920 another AP would have to. But 291 00:17:04,680 --> 00:17:06,760 it's also very CPU-intensive. 292 00:17:06,780 --> 00:17:10,980 It's also very CPU-intensive if we, you know, go much faster than that, as in between packets. 293 00:17:11,100 --> 00:17:14,240 So, we have aggressive mode. We implemented that. And it is 294 00:17:14,240 --> 00:17:18,880 a lot faster. We're down to about 600 microseconds 295 00:17:18,880 --> 00:17:21,960 between beacons. 296 00:17:22,980 --> 00:17:26,740 Yeah, and so what that means is we can basically beacon out, not just 297 00:17:26,740 --> 00:17:30,660 you know, Linksys over and over and over again 9 times, but we have the opportunity 298 00:17:30,660 --> 00:17:34,640 to do hundreds of times per second. And the way that devices 299 00:17:34,640 --> 00:17:36,760 channel hop looking for devices, we can do that. 300 00:17:36,760 --> 00:17:40,660 So, they'll come online and they'll listen on channel 1, anything around. 301 00:17:40,880 --> 00:17:44,900 Okay, move to channel 2 and do that. And they'll loop over and over and over. So, they may only see 302 00:17:44,900 --> 00:17:48,540 one and that may be good enough for it to just show up in the network list. 303 00:17:48,720 --> 00:17:52,900 Which means that at these intervals, we're able to handle thousands 304 00:17:52,900 --> 00:17:56,840 of SSIDs in the SSID pool, if you will, 305 00:17:57,660 --> 00:18:00,840 and successfully transmit those out. And I know 306 00:18:00,840 --> 00:18:02,880 what you're thinking. Yeah, we can go faster. 307 00:18:04,460 --> 00:18:06,740 So, while developing this, we decided to go faster. 308 00:18:06,740 --> 00:18:10,100 Put powerful hardware behind it, i7, 309 00:18:10,400 --> 00:18:14,180 fast wireless cards, and just, you know, thought, let's blow that out. Let's see what happens. 310 00:18:14,360 --> 00:18:18,720 And if you ever want to learn how to turn an Android phone into a turtle, that is 311 00:18:18,720 --> 00:18:22,400 how you do it. Hey, hey, I take offense to that. Turtles are pretty rad. Turn it into a... 312 00:18:22,400 --> 00:18:26,740 No, I meant more in terms of speed. Let's say snail. It's another thing with a shell. 313 00:18:27,180 --> 00:18:30,380 Slug? Okay. Well, anyway, to slug your Android, 314 00:18:30,800 --> 00:18:34,240 all you have to do is beacon out. How many time unit intervals? 315 00:18:35,980 --> 00:18:37,480 None. None. Just do them all. 316 00:18:38,680 --> 00:18:42,280 Well, yeah, kind of. There's one in here. A problem with that, of course, if you keep 317 00:18:42,280 --> 00:18:46,120 saying, hey, connect to me on channel one. Hey, connect to me on channel one. Hey, connect to me on channel one. 318 00:18:46,240 --> 00:18:49,680 Because unlike all of the other, like, datagram frames that use 319 00:18:49,680 --> 00:18:54,320 the control frames, which use, like, things like clear to send and request to send 320 00:18:54,320 --> 00:18:58,080 and things of that nature, these are like ADS-B or any other dumb protocol 321 00:18:58,080 --> 00:19:01,560 that doesn't know what's around, and it's basically 322 00:19:01,560 --> 00:19:05,680 a really bad time division multiplexing or something. It's just, like, 323 00:19:05,760 --> 00:19:09,280 it's just going to squash anything, inherently knowing that, well, you know, 324 00:19:09,300 --> 00:19:12,140 it's TCP that we're going to be squashing, so they'll resend and everything will be cool. 325 00:19:13,360 --> 00:19:17,600 So, yeah, if you do that, you just F over the entire spectrum. So don't 326 00:19:17,600 --> 00:19:21,000 do that. That's no good. 327 00:19:25,080 --> 00:19:29,200 All right, so we covered harvesting a little bit before. Basically, we harvest 328 00:19:29,200 --> 00:19:32,140 probe requests. We harvest beacons using recon mode. 329 00:19:32,680 --> 00:19:36,880 You could use Wiggle to find, to do a bit of recon on your sense. And we actually, 330 00:19:36,960 --> 00:19:40,820 the talk we did at B-Sides, we were told that we have to implement Wiggle 331 00:19:40,820 --> 00:19:45,020 onto the Pineapple, or at least an API for it. If you're not familiar 332 00:19:45,020 --> 00:19:48,440 with Wiggle, Wiggle.net, Wiggle.net with one G, by the way, 333 00:19:49,060 --> 00:19:52,820 is kind of like a open source version of Skyhook or some of those other 334 00:19:52,820 --> 00:19:57,140 geolocation services that collect the locations of access points, which is great as 335 00:19:57,140 --> 00:20:01,080 augmentation to GPS and things like that. And this kind of 336 00:20:01,080 --> 00:20:05,020 spawned out of the whole, like, you know, early 2000s war driving 337 00:20:05,020 --> 00:20:08,960 movement. And it's really cool because people still today, like, are dumping Kismet logs 338 00:20:08,960 --> 00:20:13,220 full of SSIDs and GPS, which are pretty fantastic, too, because if you wanted 339 00:20:13,220 --> 00:20:17,080 to know, hey, what are all the access points around 1600 Pennsylvania Avenue, you could just go on 340 00:20:17,080 --> 00:20:20,760 Wiggle and find out. And then you could download those and pop them into your management list, and now 341 00:20:20,760 --> 00:20:23,520 Dogma would start making it look like you're in downtown D.C., 342 00:20:24,840 --> 00:20:27,120 which is fun. Yeah, exactly. 343 00:20:27,140 --> 00:20:30,980 Yeah, and there's a lot of things you could do with that. So if you know you have a site 344 00:20:30,980 --> 00:20:35,220 and you know that there's information on Wiggle, you might as well plug it into PineAP 345 00:20:35,220 --> 00:20:39,020 and you'll be able to use that again. That way you can ensure that you get the most out of it. 346 00:20:39,080 --> 00:20:42,260 So while it's not as easy as Karma used to be, it is the 347 00:20:43,420 --> 00:20:47,060 best there is for the current situation right now. Of course, the 348 00:20:47,060 --> 00:20:50,840 situation that you're most likely going to be in is if you come in to audit an organization, 349 00:20:51,800 --> 00:20:54,880 you may be given a scope of engagement, in which case 350 00:20:54,880 --> 00:20:58,820 it would probably behoove you to fire up recon mode, see what the 351 00:20:58,820 --> 00:21:02,820 landscape is around there, and then right from within recon mode, you can go ahead and add 352 00:21:02,820 --> 00:21:06,440 to that SSID list, based on the access points in the area, 353 00:21:07,840 --> 00:21:09,460 what you want to clone. 354 00:21:11,580 --> 00:21:12,880 Right. Oh, and we have a tractor. 355 00:21:17,860 --> 00:21:18,260 Okay. 356 00:21:19,180 --> 00:21:22,740 You want to do that one? Yeah. So if PineAP is the ammunition, then 357 00:21:22,740 --> 00:21:26,320 recon mode is the battlefield. It provides that situational awareness 358 00:21:26,320 --> 00:21:30,660 where you have a good sense of what's around you. And we've 359 00:21:30,660 --> 00:21:34,580 seen site surveys before. You can pull up a site survey on your phone 360 00:21:34,580 --> 00:21:38,660 or whatever have you, but that typically only shows you the nearby access points. 361 00:21:38,880 --> 00:21:41,980 And that's only like half the picture. In fact, it's probably even less than that. 362 00:21:42,220 --> 00:21:46,680 Because what we're truly interested in are clients. And specifically 363 00:21:46,680 --> 00:21:50,620 the intelligence we can gather from which clients are connected to 364 00:21:50,620 --> 00:21:54,640 which access points. So the way that recon mode works is it displays to you 365 00:21:54,640 --> 00:21:58,540 all of the access points nearby, but then underneath them, it 366 00:21:58,540 --> 00:22:01,660 displays all of the MAC addresses of the access points, or sorry, the 367 00:22:02,620 --> 00:22:06,420 stations connected to that base station. The clients connected 368 00:22:06,420 --> 00:22:10,420 to that AP. And with that, you know, okay, so 369 00:22:10,420 --> 00:22:14,620 I'm here to target Acme. Now I know here's the MAC addresses that are connected to that 370 00:22:14,620 --> 00:22:18,740 Acme access point, regardless of whether it's WPA, Enterprise, or whatever have you. 371 00:22:19,660 --> 00:22:20,320 And so 372 00:22:20,860 --> 00:22:24,480 with that, you can go ahead and set your filters so that you can 373 00:22:24,480 --> 00:22:28,560 limit the scope of your engagement. And likewise, you can also see not just clients that are 374 00:22:28,560 --> 00:22:32,380 connected to access points, but you can also see unassociated clients. 375 00:22:32,580 --> 00:22:36,280 And so what that means is these are clients that have WiFi on, and 376 00:22:36,280 --> 00:22:39,460 particularly that are sending out probe requests. 377 00:22:40,100 --> 00:22:44,320 So they're like the lowest hanging fruit. These are the clients that 378 00:22:44,320 --> 00:22:48,480 just want to connect to an access point. It just so happens that the access 379 00:22:48,480 --> 00:22:52,540 point that they're looking for isn't in the vicinity, otherwise they'd be on one of the other ones in the list. 380 00:22:54,880 --> 00:22:56,440 So the last one is a bit of a 381 00:22:56,440 --> 00:23:00,400 weird one. It's out-of-range clients, and most people get really confused by that. 382 00:23:00,920 --> 00:23:04,260 What that means is we are able to, we have two radios on the pineapple. 383 00:23:04,620 --> 00:23:07,820 And one is a bit stronger than the other, and there's a few differences between them. 384 00:23:09,340 --> 00:23:12,460 But basically what this comes down to is that we have 385 00:23:12,460 --> 00:23:16,460 the WLAN 0, which is the one that we get all the clients to 386 00:23:16,460 --> 00:23:20,280 connect to. It's a little bit weaker than WLAN 1, which is what we use to scan for clients, 387 00:23:20,420 --> 00:23:24,020 which is what we use to gather this data on the 388 00:23:24,020 --> 00:23:28,400 site. And then we match the two up. So there are some clients that you're not able to actually 389 00:23:28,400 --> 00:23:32,360 currently get onto your pineapple because you're too far away, or because the access point 390 00:23:32,360 --> 00:23:36,380 at least that they're connected to is too far away. So they might 391 00:23:36,380 --> 00:23:40,340 be connected to something, or they are connected to an access point, however we can't 392 00:23:40,340 --> 00:23:44,220 see that access point using WLAN 0, so we're probably out of effective 393 00:23:44,220 --> 00:23:48,560 range if we do kick it off from the access point to bring it back to us. So it's something to be aware of 394 00:23:48,560 --> 00:23:51,920 because if that's one of your targets that you're meant to test for 395 00:23:53,100 --> 00:23:56,360 or find, then you might have to move closer, 396 00:23:56,420 --> 00:23:58,980 you might have to change locations, or you might have to just know. 397 00:24:04,380 --> 00:24:08,260 Recon Mode also provides a really convenient interface to a lot of 398 00:24:08,260 --> 00:24:12,240 the other PineAP stuff, like being able to de-authenticate a client. 399 00:24:12,240 --> 00:24:16,140 So you're like, okay great, so I was brought in to target just the CFO, I've got his 400 00:24:16,140 --> 00:24:19,580 MAC address, there he is connected to the Acme WiFi, and I can see him. 401 00:24:20,040 --> 00:24:24,280 Fantastic. Click on him, say de-auth, he drops off, do that maybe a few times 402 00:24:24,280 --> 00:24:28,160 and eventually the device may just get tired of trying to reconnect to that 403 00:24:28,160 --> 00:24:31,120 network, start looking at other networks in their PNL, and 404 00:24:32,900 --> 00:24:35,720 then connect to you. That's the hope. 405 00:24:36,220 --> 00:24:39,720 This also allows you to do that said filtering. So add him to 406 00:24:39,720 --> 00:24:43,580 your filter list so that only the CFO will 407 00:24:43,580 --> 00:24:47,140 connect to you. Likewise, if you're brought in to audit the entire organization, 408 00:24:47,520 --> 00:24:51,380 you may just de-auth the entire organization by clicking on the SSID of 409 00:24:51,380 --> 00:24:54,720 Acme Co. and then kick off all of those clients. 410 00:24:56,300 --> 00:24:58,920 And then of course, adding those SIDs to your pool. So 411 00:24:58,920 --> 00:25:03,540 I want to go ahead and clone that. So I know that they work here, and I want to clone that 412 00:25:03,540 --> 00:25:07,920 so that I can then go elsewhere. So I'm like, oh hey, you're on corporate-guest 413 00:25:07,920 --> 00:25:09,700 and it's an open WiFi, and you've connected to that. 414 00:25:09,720 --> 00:25:13,140 I've been there before because there were some IT issues, and you know you weren't supposed to, but you didn't anyway. 415 00:25:13,260 --> 00:25:17,220 Because it was open. You didn't even need a password. And it's fun. So now we clone that and we go elsewhere. 416 00:25:17,380 --> 00:25:21,020 And when you go there, and you're probing for it, you're probably going to connect. 417 00:25:23,960 --> 00:25:25,460 And then that also leads into 418 00:25:25,460 --> 00:25:27,820 reporting, which we'll touch on more in just a bit. 419 00:25:32,240 --> 00:25:33,620 So we've added a lot of new 420 00:25:33,620 --> 00:25:37,660 features to PineAP. Actually, we've added a lot of features to 421 00:25:37,660 --> 00:25:41,700 the WiFi Pineapple Mark 5 over the last almost two years 422 00:25:41,700 --> 00:25:44,220 now anyway. Now in version 2.4. 423 00:25:44,980 --> 00:25:49,460 And so two of the really big ones are reporting and tracking. 424 00:25:49,980 --> 00:25:52,180 Do you want to speak to either of those? Yeah, sure. 425 00:25:52,940 --> 00:25:57,580 So the first one we have is reporting. It wasn't very easy before to get a good 426 00:25:57,580 --> 00:26:00,600 report on what's actually going on with your Pineapple. You could 427 00:26:01,280 --> 00:26:05,720 deploy it somewhere and then pull the logs off at some later point. You could log 428 00:26:05,720 --> 00:26:09,480 it to the SD card, but you need physical access. So we implemented reporting, which will 429 00:26:09,480 --> 00:26:12,740 basically gather your Karma or PineAP log. It'll take a 430 00:26:13,620 --> 00:26:16,160 command line version of the site survey or the recon mode. 431 00:26:16,920 --> 00:26:20,340 And it's going to implement the tracking, which I'll talk about at the next point. 432 00:26:20,700 --> 00:26:23,720 But basically, it'll take all the information that we gathered 433 00:26:23,720 --> 00:26:29,460 and the CSV of Macs and the SSIDs they've probed for. So you get a nice 434 00:26:29,460 --> 00:26:32,580 clean view of that, which you can import and actually analyze. 435 00:26:32,580 --> 00:26:36,460 And that can be emailed to you. It can be stored to the SD card in 436 00:26:36,460 --> 00:26:37,260 a histogram. 437 00:26:41,140 --> 00:26:44,540 So a date stamped format. So you have those 438 00:26:44,540 --> 00:26:48,420 options down. This is a really interesting one, too, because 439 00:26:48,420 --> 00:26:52,260 we can just set up a Pineapple, say, in a completely 440 00:26:52,260 --> 00:26:56,000 passive mode. Actually, we're skipping on some of these things that were added in 2.3, but a lot of 441 00:26:56,460 --> 00:27:00,480 passive logging capabilities were added in that version, which makes reporting 442 00:27:00,480 --> 00:27:04,380 all the more useful if you drop it at a site and you have it 443 00:27:04,380 --> 00:27:08,340 powered, say, in an ominous box or something like that. And it's doing 444 00:27:08,340 --> 00:27:12,200 just this reconnaissance and emailing you those reports or saving those reports to SD card. 445 00:27:12,340 --> 00:27:15,980 And that site survey can be really useful if you can now map 446 00:27:16,520 --> 00:27:20,400 where your clients of interest happen to go and when they 447 00:27:20,400 --> 00:27:24,400 go there. So if it's the corporate guest Wi-Fi network 448 00:27:24,400 --> 00:27:28,560 and it sees these clients on these certain days, you can kind of come up with patterns. 449 00:27:28,680 --> 00:27:30,300 And this is 450 00:27:30,480 --> 00:27:34,480 something that might have even been useful for our tweaker friend to know when the security 451 00:27:34,480 --> 00:27:37,120 guard was coming around, which leads really into tracking. 452 00:27:38,820 --> 00:27:42,620 Right. And then we added tracking. And tracking is not a completely 453 00:27:42,620 --> 00:27:46,400 new concept to the Pineapple. So what it does is it takes all the information we get 454 00:27:46,400 --> 00:27:50,420 about clients when you have logging turned on, at least. So probe requests 455 00:27:50,420 --> 00:27:54,480 or, in general, if we see data in the air and you're scanning for 456 00:27:54,480 --> 00:27:58,220 it, if a client or a MAC address that you've specified is 457 00:27:58,220 --> 00:28:01,680 seen in the air, it will fire off a user configurable script. 458 00:28:02,020 --> 00:28:06,160 So you can say when that event happens, you want it to blink an LED or 459 00:28:06,160 --> 00:28:09,900 you want it to send you an email or something along those lines. So it's totally 460 00:28:09,900 --> 00:28:13,580 user customizable, but it means that there's a hook to every time you see a certain MAC, 461 00:28:14,460 --> 00:28:17,820 it'll fire off a certain event. And again, with the reporting, it 462 00:28:17,820 --> 00:28:22,040 ties in with that and can actually then fire off an email to you 463 00:28:22,040 --> 00:28:26,100 or be added to a list, so there's a time-stamped list of when an SSID 464 00:28:26,100 --> 00:28:28,000 was seen, what it was doing, or sorry, 465 00:28:28,120 --> 00:28:30,120 when a BSSID, when a MAC 466 00:28:30,120 --> 00:28:32,080 address was seen, what it was doing or what it 467 00:28:32,080 --> 00:28:34,120 was currently looking for, and if it's got an SSID 468 00:28:34,120 --> 00:28:36,120 associated with it, it'll look, it'll 469 00:28:36,120 --> 00:28:38,140 list the SSID, and it'll email you that again 470 00:28:38,140 --> 00:28:38,800 in a report. 471 00:28:43,760 --> 00:28:44,880 No, those are ducks. 472 00:28:48,420 --> 00:28:50,200 So, what we're trying to do is 473 00:28:50,200 --> 00:28:52,080 make it easier to make sense of 474 00:28:52,080 --> 00:28:54,280 the PineAP log, and 475 00:28:54,280 --> 00:28:55,880 to really get some, you know, 476 00:28:56,100 --> 00:28:58,240 interesting, you know, get some value from that 477 00:28:58,240 --> 00:28:59,960 because there's a lot happening, even if you're not 478 00:28:59,960 --> 00:29:02,160 running Karma and also accepting those 479 00:29:02,160 --> 00:29:04,100 clients to connect to the Wi-Fi Pineapple, there's a lot of 480 00:29:04,100 --> 00:29:06,160 interesting information that you can glean that can be 481 00:29:06,920 --> 00:29:08,120 useful for you on your pen test. 482 00:29:08,600 --> 00:29:08,960 So, 483 00:29:10,140 --> 00:29:12,180 kind of going forward, that's a lot of 484 00:29:12,180 --> 00:29:14,020 the emphasis, especially right now with the 485 00:29:14,020 --> 00:29:16,020 reporting, gathering that data and getting it to you in 486 00:29:16,020 --> 00:29:18,160 a convenient means, means that you'll be able 487 00:29:18,160 --> 00:29:19,960 to run it through some sort of analysis 488 00:29:19,960 --> 00:29:22,120 and see if there's something interesting there. 489 00:29:22,180 --> 00:29:22,940 So, we'll just do that now. 490 00:29:24,220 --> 00:29:24,940 Well, we... 491 00:29:24,940 --> 00:29:25,340 What was that? 492 00:29:26,100 --> 00:29:27,620 Yeah, sure. So, we 493 00:29:27,620 --> 00:29:29,380 visited this place in 494 00:29:29,380 --> 00:29:30,540 Mountain View, California. 495 00:29:32,020 --> 00:29:32,880 Just, you know, 496 00:29:33,560 --> 00:29:35,560 we're there to visit, and we 497 00:29:35,560 --> 00:29:37,620 had a Pineapple with us. Obviously, passive 498 00:29:37,620 --> 00:29:38,620 logging, totally legal. 499 00:29:39,280 --> 00:29:41,680 And we got some really interesting results as we were 500 00:29:41,680 --> 00:29:43,500 talking about, you know, how 501 00:29:43,500 --> 00:29:45,580 devices stop probing. I think this is a really good 502 00:29:45,580 --> 00:29:47,640 place to, you know, test this on. 503 00:29:47,720 --> 00:29:48,620 So, these were the results. 504 00:29:49,560 --> 00:29:51,740 And I'll be going ahead and publishing the script file 505 00:29:51,740 --> 00:29:53,480 on the Hack5 forums, 506 00:29:53,580 --> 00:29:55,480 but essentially what this does is it takes 507 00:29:55,480 --> 00:29:55,700 your 508 00:29:56,100 --> 00:29:58,000 PineAP log, and it 509 00:29:58,000 --> 00:29:59,940 processes it in 510 00:29:59,940 --> 00:30:02,280 conjunction with the IEEE 511 00:30:03,260 --> 00:30:04,260 OUI list, 512 00:30:04,480 --> 00:30:05,700 the list of manufacturers. 513 00:30:06,140 --> 00:30:08,120 And so, just from this little 514 00:30:08,120 --> 00:30:10,040 short engagement in the cafeteria 515 00:30:10,040 --> 00:30:11,760 where the food is all free and amazing, 516 00:30:11,900 --> 00:30:14,120 we were able to find out that 517 00:30:14,960 --> 00:30:15,820 there were 518 00:30:15,820 --> 00:30:18,140 about 255 unique 519 00:30:18,140 --> 00:30:19,900 probes, and of those, 520 00:30:20,060 --> 00:30:22,180 they were from 334 521 00:30:22,180 --> 00:30:24,220 devices. Those devices 522 00:30:24,220 --> 00:30:26,080 spanned 154 OUI's, 523 00:30:26,100 --> 00:30:28,340 but of course, lots of manufacturers have 524 00:30:28,340 --> 00:30:30,380 various OUI's, those being the first three 525 00:30:30,380 --> 00:30:32,140 octets of a MAC address. So, 526 00:30:32,180 --> 00:30:34,420 really, when you just take it down to 527 00:30:34,420 --> 00:30:36,200 the manufacturers, it's really only 528 00:30:36,200 --> 00:30:38,320 30 manufacturers. We were also 529 00:30:38,320 --> 00:30:39,980 able to say, okay, well, here are the top 530 00:30:39,980 --> 00:30:42,380 10 manufacturers, which I was really surprised that this place 531 00:30:42,380 --> 00:30:44,200 in Mountain View used so many Apple 532 00:30:44,200 --> 00:30:44,600 products. 533 00:30:47,160 --> 00:30:47,800 Motorola is 534 00:30:48,340 --> 00:30:49,360 kind of good, too, I guess. 535 00:30:50,260 --> 00:30:52,440 But what surprised us more, I think, 536 00:30:52,460 --> 00:30:53,340 was the 537 00:30:54,440 --> 00:30:55,580 probes we received, or, 538 00:30:56,100 --> 00:30:56,800 you know, saw. 539 00:30:57,540 --> 00:30:58,680 Just take a look. 540 00:31:02,440 --> 00:31:04,020 I like the one, because they're 541 00:31:04,020 --> 00:31:06,100 unique. I like that 16 devices were probing 542 00:31:06,100 --> 00:31:06,880 for that one thing. 543 00:31:07,920 --> 00:31:09,820 That's not 16 probes, that's 16 544 00:31:09,820 --> 00:31:10,820 unique devices. 545 00:31:13,860 --> 00:31:15,320 Maybe it's a hackerspace. 546 00:31:26,160 --> 00:31:28,360 Some other improvements in version 2.4 547 00:31:28,360 --> 00:31:28,760 added 548 00:31:30,140 --> 00:31:31,620 to the... No, we're not. 549 00:31:32,400 --> 00:31:33,160 No, we're not. 550 00:31:33,460 --> 00:31:36,020 So, some of them 551 00:31:36,020 --> 00:31:37,820 added in 2.4 include 552 00:31:38,660 --> 00:31:40,100 the ability to deauth 553 00:31:40,100 --> 00:31:42,240 all of the clients off of 554 00:31:42,240 --> 00:31:44,080 a specific access point. 555 00:31:44,160 --> 00:31:46,140 Again, I'm brought in to audit this network. 556 00:31:46,660 --> 00:31:47,100 Here's 557 00:31:48,060 --> 00:31:50,020 Acme guests, Acme corporate Wi-Fi, whatever 558 00:31:50,020 --> 00:31:52,220 have you. I just want to be able to click it and say, 559 00:31:52,360 --> 00:31:53,740 you know, kick them all. Because previously, 560 00:31:53,980 --> 00:31:56,080 it was just a matter of clicking all of them. I know it's, 561 00:31:56,080 --> 00:31:57,880 it's a convenience thing, but it's 562 00:31:57,880 --> 00:31:59,160 important, and you want to speak to that, don't you? 563 00:32:00,200 --> 00:32:01,860 Yes. So, you guys 564 00:32:01,860 --> 00:32:03,480 all know tools like MDK3, right? 565 00:32:04,720 --> 00:32:05,840 You know. AirDrop 566 00:32:05,840 --> 00:32:07,920 NG. AirDrop NG. You're able to, you know, 567 00:32:07,940 --> 00:32:09,820 kick off clients from access 568 00:32:09,820 --> 00:32:11,800 points, and that's all fun. And 569 00:32:11,800 --> 00:32:13,800 MDK3 has that thing called Amok Mode, where you 570 00:32:13,800 --> 00:32:15,780 can kick off everything from every access point, unless 571 00:32:15,780 --> 00:32:17,680 it's in your allow list, or... Or just Apple 572 00:32:17,680 --> 00:32:19,780 devices. Or just Apple, or Google 573 00:32:19,780 --> 00:32:21,060 Glass, or what have you, right? 574 00:32:21,780 --> 00:32:23,680 But that's, well, fun 575 00:32:23,680 --> 00:32:25,940 oftentimes not really what you want 576 00:32:25,940 --> 00:32:27,760 in a proper test. So, what we 577 00:32:27,760 --> 00:32:29,560 added is deauthentication from recon 578 00:32:29,560 --> 00:32:31,640 mode, which allows you to, once you have a client 579 00:32:31,640 --> 00:32:32,060 scan done, 580 00:32:33,760 --> 00:32:35,760 you're able to, you know, see the 581 00:32:35,760 --> 00:32:37,640 clients. You can click on a single client, and you can kick 582 00:32:37,640 --> 00:32:38,420 that client off. 583 00:32:39,720 --> 00:32:41,440 That by itself isn't fun. So, we added 584 00:32:41,440 --> 00:32:43,620 kick all clients from a client, kick all 585 00:32:43,620 --> 00:32:45,620 clients from an AP, because you might have 586 00:32:45,620 --> 00:32:47,620 to do that for some scenarios. We 587 00:32:47,620 --> 00:32:49,720 did not want to, though, do a proper 588 00:32:49,720 --> 00:32:51,660 deauth, where we scan and 589 00:32:51,660 --> 00:32:53,720 look for everything that is currently on the access 590 00:32:53,720 --> 00:32:55,600 point for the duration of the deauthentication. 591 00:32:55,600 --> 00:32:57,560 And kick off everything that we 592 00:32:57,560 --> 00:32:59,560 might have not seen. So, what we do is we 593 00:32:59,560 --> 00:33:01,340 actually send targeted deauths to 594 00:33:01,340 --> 00:33:03,540 only the client devices you just saw 595 00:33:03,540 --> 00:33:05,120 and that you approved for the kicking off. 596 00:33:05,320 --> 00:33:07,600 So, only those devices will be disassociated 597 00:33:07,600 --> 00:33:09,300 or deauthenticated. 598 00:33:09,680 --> 00:33:11,520 And not devices that might 599 00:33:11,520 --> 00:33:13,580 have connected in the meantime, just because you want to keep 600 00:33:13,580 --> 00:33:15,280 it clean, and you want to limit collateral damage 601 00:33:15,280 --> 00:33:16,140 as much as possible. 602 00:33:17,240 --> 00:33:19,520 And, likewise, the tool isn't built 603 00:33:19,520 --> 00:33:21,380 to also do any sort of continuous 604 00:33:21,380 --> 00:33:23,640 deauthing, and that kind of 605 00:33:23,640 --> 00:33:24,800 leads into the deauth multiplier. 606 00:33:25,700 --> 00:33:27,300 So, we're trying to think of, like, what's 607 00:33:27,300 --> 00:33:29,420 a good way to set 608 00:33:29,420 --> 00:33:31,300 it up in such a way so that, like, sometimes, some 609 00:33:31,300 --> 00:33:33,460 devices, you know, you kick them off, you know, 610 00:33:33,480 --> 00:33:35,140 maybe it takes, I don't know, what, six, seven 611 00:33:35,600 --> 00:33:37,200 deauth packets, and then 612 00:33:37,200 --> 00:33:39,360 more, okay, and then it decides, 613 00:33:39,500 --> 00:33:41,360 okay, well, this access point doesn't want 614 00:33:41,360 --> 00:33:43,280 to be friends with me anymore, that's cool, I'll 615 00:33:43,280 --> 00:33:45,400 disconnect. What is the vendor, well, most 616 00:33:45,400 --> 00:33:47,300 vendor implementations immediately want 617 00:33:47,300 --> 00:33:49,280 to now become friends again, like, wait, what? 618 00:33:49,540 --> 00:33:51,420 Lost Wi-Fi? Oh, woo, Wi-Fi! 619 00:33:51,560 --> 00:33:53,300 And they'll do that so many 620 00:33:53,300 --> 00:33:55,500 times until they finally 621 00:33:55,500 --> 00:33:57,440 eventually give up. What we didn't 622 00:33:57,440 --> 00:33:59,420 want to do, though, was just have it be 623 00:34:00,080 --> 00:34:01,560 continuous. So, we set up multipliers 624 00:34:01,560 --> 00:34:03,020 where you 625 00:34:03,480 --> 00:34:05,320 could get that, like, say, three attempts before 626 00:34:05,320 --> 00:34:07,380 they stop trying and then go on to the next 627 00:34:07,380 --> 00:34:09,380 one in their P&L. And so, it just seemed 628 00:34:09,380 --> 00:34:11,280 like the most obvious choice was to set a multiplier. 629 00:34:12,280 --> 00:34:13,460 So, if you set it to 630 00:34:13,460 --> 00:34:15,300 two, that's going to be twice as many. If you set it to 631 00:34:15,300 --> 00:34:17,340 ten, that's going to be a lot. 632 00:34:21,720 --> 00:34:22,900 Yeah, and moreover, 633 00:34:23,340 --> 00:34:25,240 going in with the reporting 634 00:34:25,240 --> 00:34:27,360 and tracking functionality spawned 635 00:34:27,360 --> 00:34:29,220 the ability to then also do the recon 636 00:34:29,220 --> 00:34:31,100 mode from the CLI. If that's where you're more 637 00:34:31,100 --> 00:34:32,960 comfortable, the command is 638 00:34:33,680 --> 00:34:34,740 site underscore survey. 639 00:34:34,880 --> 00:34:37,200 Yes. And so, you basically get the same output, 640 00:34:37,320 --> 00:34:38,920 but, of course, now you don't get that contextual 641 00:34:38,920 --> 00:34:41,160 thing where you can click on an SSID or 642 00:34:41,160 --> 00:34:43,100 a MAC address and add them to lists 643 00:34:43,100 --> 00:34:45,020 and filters and deauth them. 644 00:34:46,140 --> 00:34:47,080 And we made it more 645 00:34:47,080 --> 00:34:47,340 prettier. 646 00:34:51,360 --> 00:34:52,640 So, now we're going to talk about security, 647 00:34:53,080 --> 00:34:55,220 some of the things that worked, and some 648 00:34:55,240 --> 00:34:57,220 of the things that didn't. And I want to take the first one. 649 00:34:59,160 --> 00:35:01,080 Who here uses pineapples are yummy as 650 00:35:01,080 --> 00:35:02,200 your password on your pineapple? 651 00:35:03,280 --> 00:35:04,520 Okay, you probably have a mark for. 652 00:35:06,620 --> 00:35:07,220 That didn't 653 00:35:07,220 --> 00:35:09,060 work out so well. Who's using Tor as their 654 00:35:09,060 --> 00:35:09,900 password on Kali? 655 00:35:11,000 --> 00:35:12,900 Okay, so you guys are... Oh, everybody 656 00:35:12,900 --> 00:35:14,000 but Mubix is smart. 657 00:35:17,280 --> 00:35:19,040 So, yeah, that didn't work, obviously. 658 00:35:19,240 --> 00:35:21,140 And, yeah, so hard-coded 659 00:35:21,140 --> 00:35:22,980 passwords are bad. Not doing that. 660 00:35:26,960 --> 00:35:27,680 So, another 661 00:35:27,680 --> 00:35:29,100 thing... Oh, we did the shuffle. Okay. 662 00:35:29,460 --> 00:35:31,780 So, anyway, we... That was the 663 00:35:31,780 --> 00:35:33,540 Mark 4 days. On the Mark 5, we went through 664 00:35:33,540 --> 00:35:35,480 a lot of different things. One of the first 665 00:35:35,480 --> 00:35:37,420 things we did to kind of try to secure 666 00:35:37,420 --> 00:35:39,380 the tester a lot more 667 00:35:39,380 --> 00:35:40,820 from potential attacks 668 00:35:42,880 --> 00:35:43,600 was to 669 00:35:43,600 --> 00:35:45,500 implement a WPA2 management interface, which meant 670 00:35:45,500 --> 00:35:47,560 that your packets can't just be sniffed out. You can't 671 00:35:47,560 --> 00:35:48,440 just get your 672 00:35:51,320 --> 00:35:52,040 session ID. 673 00:35:52,120 --> 00:35:53,580 You can't get your session ID out of the air, 674 00:35:53,680 --> 00:35:55,100 which made it really easy. 675 00:35:55,600 --> 00:35:57,120 to, you know, compromise 676 00:35:57,120 --> 00:35:59,320 the pineapple. Don't really 677 00:35:59,320 --> 00:36:01,300 like that, so we added the WPA2 management 678 00:36:01,880 --> 00:36:02,280 interface. 679 00:36:03,320 --> 00:36:05,140 We added... Oh, and it's forced. 680 00:36:05,220 --> 00:36:06,900 It's the default. Right, yeah. So, 681 00:36:06,960 --> 00:36:09,100 on initial setup, you have to 682 00:36:09,100 --> 00:36:10,320 configure this management interface. 683 00:36:10,780 --> 00:36:13,040 We also protect against cross-site request forgery now, 684 00:36:13,160 --> 00:36:15,380 which is something we just didn't really do before 685 00:36:15,380 --> 00:36:17,200 and it's important that we do. 686 00:36:17,300 --> 00:36:18,800 Yeah, yeah, I know. You can give me 687 00:36:18,800 --> 00:36:20,060 trouble for that. It's okay. 688 00:36:21,260 --> 00:36:23,100 But we, you know, the scenario of where 689 00:36:23,100 --> 00:36:25,080 you're on a test and you're on a website that's 690 00:36:25,240 --> 00:36:27,180 targeting pineapples is something 691 00:36:27,180 --> 00:36:28,560 that we didn't really consider much. 692 00:36:29,480 --> 00:36:31,080 And then we did presence verification. 693 00:36:31,180 --> 00:36:33,260 We previously did this with LEDs, and this is actually 694 00:36:33,260 --> 00:36:35,260 something that's going to lead into the point underneath, but 695 00:36:35,860 --> 00:36:36,920 we said, okay, 696 00:36:36,980 --> 00:36:39,300 your pineapple has got four LEDs. One of 697 00:36:39,300 --> 00:36:40,940 them is fixed. It's a power LED, but 698 00:36:40,940 --> 00:36:43,220 you know. And to 699 00:36:43,220 --> 00:36:45,240 set up your pineapple, you have to, you know, 700 00:36:45,240 --> 00:36:47,220 say which LED is either on, 701 00:36:47,220 --> 00:36:47,900 off, or blinking. 702 00:36:50,900 --> 00:36:51,300 That's... 703 00:36:51,300 --> 00:36:52,860 Well, the importance of that and our 704 00:36:52,860 --> 00:36:54,720 thinking there was, well, let's make it... 705 00:36:54,720 --> 00:36:56,600 Let's make sure that only the 706 00:36:56,600 --> 00:36:58,620 user of the Wi-Fi pineapple is setting up their own 707 00:36:58,620 --> 00:37:00,740 pineapple and that it's not somebody 708 00:37:00,740 --> 00:37:02,320 else accidentally connecting to theirs 709 00:37:02,320 --> 00:37:04,600 and trying to set it up. Because previously 710 00:37:04,600 --> 00:37:06,480 they were all set up with pineapple5 711 00:37:06,480 --> 00:37:08,580 underscore, you know, last two octets of the 712 00:37:08,580 --> 00:37:10,600 MAC address. Of course, now we forced them to 713 00:37:10,600 --> 00:37:12,660 create a really creative management 714 00:37:12,660 --> 00:37:14,200 interface, SSID, and all of that. 715 00:37:14,460 --> 00:37:16,460 But, yeah. 716 00:37:16,820 --> 00:37:18,540 So that didn't really work out so well, though. 717 00:37:18,980 --> 00:37:20,480 Because it turns out there's how many 718 00:37:20,480 --> 00:37:22,680 combinations? Not enough 719 00:37:22,680 --> 00:37:24,580 so that when we locked ourselves out, 720 00:37:24,580 --> 00:37:26,160 at some point, because we broke the LEDs, 721 00:37:26,360 --> 00:37:28,520 we just brute-forced it by saying on, on, 722 00:37:28,520 --> 00:37:30,120 on, on, on, and just hitting enter 723 00:37:30,120 --> 00:37:31,280 ten times and we ran. 724 00:37:32,040 --> 00:37:34,400 So that did not work. So what 725 00:37:34,400 --> 00:37:36,260 we do now is to make the initial 726 00:37:36,260 --> 00:37:38,340 setup, which was the most dangerous portion of 727 00:37:38,340 --> 00:37:40,380 the pineapple, because somebody can race you to 728 00:37:40,380 --> 00:37:42,380 it and set it up and brute-force his way in 729 00:37:42,380 --> 00:37:43,580 or his or her way in. 730 00:37:45,140 --> 00:37:46,480 But, so what we do 731 00:37:46,480 --> 00:37:48,160 now is we require you to flip a dip switch. 732 00:37:48,700 --> 00:37:50,520 Now, that sounds scary because some people 733 00:37:50,520 --> 00:37:52,300 do over-the-air updates, so they might not have 734 00:37:52,300 --> 00:37:54,520 access to their pineapple because it's in an ominous 735 00:37:54,580 --> 00:37:56,500 box and plugged into a wall or something. They don't want to have to 736 00:37:57,020 --> 00:37:57,880 undo the screws. 737 00:37:58,680 --> 00:38:00,460 Talk about that in a second. But basically what we 738 00:38:00,460 --> 00:38:02,020 did is we included 739 00:38:02,700 --> 00:38:03,880 the possibility to 740 00:38:03,880 --> 00:38:06,480 by flipping down the dip switches, it tells 741 00:38:06,480 --> 00:38:08,180 you to flip down. It'll disable the radios 742 00:38:08,180 --> 00:38:10,540 and then let you proceed with the setup by re-flipping 743 00:38:10,540 --> 00:38:12,400 them up. So that means the radios are disabled during 744 00:38:12,400 --> 00:38:14,400 initial setup. So it really is just you 745 00:38:14,400 --> 00:38:16,420 over Ethernet connected to the device. So you 746 00:38:16,420 --> 00:38:18,280 can set it up safely. You've got the time to do so. 747 00:38:18,380 --> 00:38:20,420 And you can't proceed with it. Unless your Ethernet 748 00:38:20,420 --> 00:38:21,520 cable is man-in-the-middle'd. 749 00:38:22,580 --> 00:38:23,280 Right, yes. 750 00:38:23,760 --> 00:38:24,120 Yeah. 751 00:38:24,580 --> 00:38:27,740 The other one is you just flip one of the 752 00:38:27,740 --> 00:38:29,300 dip switches that it tells you to flip 753 00:38:29,300 --> 00:38:31,700 and it's going to just leave Wi-Fi 754 00:38:31,700 --> 00:38:33,480 on and let you proceed because you might be at home 755 00:38:33,480 --> 00:38:35,640 setting up your pineapple for a test and you don't 756 00:38:35,640 --> 00:38:36,800 really need to be that safe there. 757 00:38:37,060 --> 00:38:39,660 Of course, there's a workaround to that. Or not a workaround, but there's 758 00:38:39,660 --> 00:38:41,620 a convenience thing. Right. Yeah, exactly. 759 00:38:41,720 --> 00:38:43,620 So this is convenience. It's always convenience versus security. 760 00:38:44,620 --> 00:38:45,660 And for this, 761 00:38:45,760 --> 00:38:47,480 if you want to skip this entire dip switch up 762 00:38:47,480 --> 00:38:49,420 totally, you just, on the SD card, 763 00:38:49,540 --> 00:38:51,720 add a file that's listed 764 00:38:51,720 --> 00:38:53,380 in our changelog. Skip dips. 765 00:38:54,580 --> 00:38:56,740 Or skip dip setup. And if you have that 766 00:38:56,740 --> 00:38:58,620 file on there, it'll just skip that portion 767 00:38:58,620 --> 00:39:00,380 entirely so you can actually deploy it like that. 768 00:39:01,000 --> 00:39:02,700 Because if you have physical access to the device 769 00:39:02,700 --> 00:39:03,900 anyway, it's owned. 770 00:39:06,140 --> 00:39:08,600 The next point is the reason why you 771 00:39:08,600 --> 00:39:10,440 should just stay in this room for the next talk. 772 00:39:10,600 --> 00:39:12,860 I know that we will be because this sounds really interesting. 773 00:39:14,300 --> 00:39:15,820 Because Kenny's standing right there. 774 00:39:15,860 --> 00:39:18,300 He's got a black hat on. 775 00:39:18,340 --> 00:39:19,280 I don't know what that's supposed to mean. 776 00:39:20,760 --> 00:39:22,840 Why is it brown? 777 00:39:24,040 --> 00:39:24,440 Okay. 778 00:39:24,940 --> 00:39:26,060 You want to speak to the CVE? 779 00:39:26,160 --> 00:39:28,000 Yes, sure. So CVE 780 00:39:29,880 --> 00:39:30,520 2015-4624. 781 00:39:31,460 --> 00:39:32,100 That is 782 00:39:32,100 --> 00:39:34,060 a really fun 783 00:39:35,320 --> 00:39:36,460 vulnerability on the Pineapple. 784 00:39:36,480 --> 00:39:38,620 That was basically a way to, first of all, 785 00:39:38,640 --> 00:39:39,920 you brute force the initials. 786 00:39:39,920 --> 00:39:41,580 We don't want to take away from the talk too much. 787 00:39:41,840 --> 00:39:44,200 Do you want me to explain anything or 788 00:39:44,660 --> 00:39:45,140 skip it? 789 00:39:46,500 --> 00:39:47,560 We're going to cover it. 790 00:39:47,960 --> 00:39:48,280 Yeah. 791 00:39:50,120 --> 00:39:50,700 I figured. 792 00:39:51,360 --> 00:39:51,820 All right. 793 00:39:52,040 --> 00:39:53,100 To give you a really quick run. 794 00:39:53,120 --> 00:39:54,320 There you are. 795 00:39:54,580 --> 00:39:57,020 All right. 796 00:39:57,520 --> 00:39:58,680 So to give you a really quick rundown. 797 00:39:59,700 --> 00:40:01,280 Basically, you were able to skip 798 00:40:01,280 --> 00:40:02,500 because of the LED setup. 799 00:40:02,560 --> 00:40:04,720 You're able to get past that quite quickly by brute forcing it. 800 00:40:04,880 --> 00:40:06,260 And then you were able to, 801 00:40:06,280 --> 00:40:08,360 by having the default password 802 00:40:08,360 --> 00:40:09,820 being pineapplesareyummy, 803 00:40:10,800 --> 00:40:12,480 you know, because you're meant to change it. 804 00:40:12,540 --> 00:40:13,640 But you could skip that part, 805 00:40:13,780 --> 00:40:15,220 go directly to the login interface, 806 00:40:15,560 --> 00:40:17,760 log in, and then change the password 807 00:40:17,760 --> 00:40:19,880 and execute commands and so on and so forth. 808 00:40:21,360 --> 00:40:21,760 Yay. 809 00:40:22,120 --> 00:40:22,520 Yay. 810 00:40:23,560 --> 00:40:24,360 So actually, 811 00:40:24,580 --> 00:40:25,280 quite a while ago, 812 00:40:25,440 --> 00:40:26,860 or I guess at least a year ago, 813 00:40:27,000 --> 00:40:28,260 we started looking into like, 814 00:40:28,720 --> 00:40:30,320 yo, dog, we should just use SSL. 815 00:40:30,360 --> 00:40:32,800 That was even before the WPA management interface, 816 00:40:33,000 --> 00:40:34,400 which was really just like, 817 00:40:34,840 --> 00:40:35,660 SSL is hard. 818 00:40:35,720 --> 00:40:36,400 Let's do WPA. 819 00:40:38,200 --> 00:40:40,020 But there are some inherent problems 820 00:40:40,020 --> 00:40:43,600 with doing SSL in this kind of embedded device nature. 821 00:40:44,360 --> 00:40:47,120 Who here really enjoys installing certificates 822 00:40:47,120 --> 00:40:47,900 in your browser? 823 00:40:49,420 --> 00:40:49,860 Okay. 824 00:40:49,920 --> 00:40:52,440 I think McGrew really likes installing certificates 825 00:40:52,440 --> 00:40:53,160 in his browser. 826 00:40:53,500 --> 00:40:54,080 It's like, 827 00:40:54,080 --> 00:40:57,440 it used to be like, what, file import or something. 828 00:40:57,560 --> 00:40:58,380 It used to be that easy. 829 00:40:58,820 --> 00:41:01,840 And at least with Chrome and Firefox lately, 830 00:41:02,040 --> 00:41:03,700 it's just a real pain in the ass. 831 00:41:04,020 --> 00:41:04,780 So we're- 832 00:41:04,780 --> 00:41:05,180 A lot worse on Android. 833 00:41:05,440 --> 00:41:07,120 Yeah, a lot worse on Android. 834 00:41:07,260 --> 00:41:10,540 And so it's, again, balancing the convenience 835 00:41:10,540 --> 00:41:12,920 and the usability and the security. 836 00:41:12,940 --> 00:41:16,100 And we should absolutely find some more convenient way 837 00:41:16,100 --> 00:41:17,800 to do this because I know when you were originally 838 00:41:17,800 --> 00:41:19,520 researching this, you've come up with something, 839 00:41:19,560 --> 00:41:22,440 but it's just like, for that subset, 840 00:41:22,620 --> 00:41:24,000 but for like everybody else, it's just going to be 841 00:41:24,000 --> 00:41:24,520 a real hassle. 842 00:41:24,660 --> 00:41:29,140 So it's built in, actually, and there's a Wiki page 843 00:41:29,140 --> 00:41:30,060 on how to set it up. 844 00:41:30,220 --> 00:41:31,360 So you can do this. 845 00:41:32,140 --> 00:41:34,880 We're just trying to find a way to like automate 846 00:41:34,880 --> 00:41:37,180 that process and make it more simpler-er. 847 00:41:38,800 --> 00:41:39,200 Yes. 848 00:41:39,820 --> 00:41:43,780 Right, and then we have things like today's 849 00:41:43,780 --> 00:41:46,040 y'all hunt pineapples, right there. 850 00:41:47,000 --> 00:41:51,480 No, so we fixed the things that are on this list mostly, 851 00:41:52,720 --> 00:41:53,980 but the enhancements that we've done, like, you know, 852 00:41:54,000 --> 00:41:54,160 if you've ever seen an episode before and you'd be thinking, 853 00:41:54,160 --> 00:41:55,820 And then the underlying inherent flaw on the network 854 00:41:55,820 --> 00:41:58,600 is that you can be arbcache poisoned. 855 00:41:59,120 --> 00:42:01,640 So if you're connect to the same network, 856 00:42:01,780 --> 00:42:05,300 and you have to be the way that pineapple's currently setup, 857 00:42:05,520 --> 00:42:07,120 say you're connected to over Ethernet, 858 00:42:07,200 --> 00:42:08,880 you're using yourself as the default gateway, 859 00:42:09,080 --> 00:42:12,280 the victims have to have a connection through to you, 860 00:42:12,940 --> 00:42:14,740 which means an attacker can use that, 861 00:42:14,840 --> 00:42:17,320 and he can get in between you and the actual pineapple, 862 00:42:18,180 --> 00:42:20,560 and now you're getting your session stolen again. 863 00:42:21,040 --> 00:42:21,520 Right. 864 00:42:22,080 --> 00:42:23,980 There are a couple of ways to go about this. 865 00:42:23,980 --> 00:42:29,000 I guess one of the most simplest would be to implement client isolation. 866 00:42:29,400 --> 00:42:39,260 But again, that creates a problem in that I want to be able to actually see my targets, not just their traffic, because I want to scan them for any potential vulns and exploit them. 867 00:42:39,520 --> 00:42:46,140 So that's another one that we're just kind of still working on, and we've mocked up some stuff that works in certain scenarios but not in others. 868 00:42:46,140 --> 00:42:58,220 And it really has to come down to, well, what's the usability aspect here, and how do we find a way to put something together that's secure that's not also hindering a lot of your abilities? 869 00:42:58,480 --> 00:43:02,840 And if it's just a checkbox that you're going to uncheck because you need to be able to access those, then that's not going to work either. 870 00:43:02,960 --> 00:43:04,800 So that's still one that we're toying with. 871 00:43:07,040 --> 00:43:10,520 And then, of course, the bug reporting aspect of it. 872 00:43:11,600 --> 00:43:15,920 I'm fine with any method of disclosure, but I should point out that we also do. 873 00:43:16,140 --> 00:43:23,700 We also accept bug reports at bugs at hack5.org, as well as wifipineapple.com slash security, and we have a bug tracker there as well. 874 00:43:23,960 --> 00:43:30,080 And actually, Kenneth, who's going to speak after us, came directly to us at Pentest with Hack 5, which was pretty cool. 875 00:43:30,240 --> 00:43:34,500 And we're both standing there looking over his code going, oh, that is so rad. 876 00:43:34,860 --> 00:43:36,740 So I can absolutely respect that. 877 00:43:41,960 --> 00:43:45,780 So going forward, I could probably list. 878 00:43:46,140 --> 00:43:55,320 I could probably list, like, 50 esoteric features that I want implemented that are in the Trello doc, you know, the list of all of the things that we want to add. 879 00:43:56,700 --> 00:43:58,100 He means what I need to do. 880 00:43:58,320 --> 00:43:58,620 Yeah, yeah. 881 00:43:58,780 --> 00:44:07,300 Like, I really like that one where you can just punch in a cross-section of a street, and then it'll download all the SSIDs from wiggle.net, and then put them in your SSID pool, which is going to be epic! 882 00:44:08,580 --> 00:44:09,760 Because I don't have to code it. 883 00:44:10,980 --> 00:44:13,500 Or I could, but it would look like the script that I'm about to show you. 884 00:44:13,540 --> 00:44:13,720 Anyway. 885 00:44:16,140 --> 00:44:26,080 But the two biggest pillars, though, the paths that we're going down in the future is both abstracting the engine and working on the Pentest workflow. 886 00:44:26,500 --> 00:44:34,080 So I'll let you talk about abstracting the engine, because PineAP, the engine itself, is really well-built, and there's a lot of awesome functionality there. 887 00:44:34,220 --> 00:44:37,280 But it's also, in some ways, tied to the interface. 888 00:44:37,380 --> 00:44:41,480 And what we want to do is get out of the way so that you can do what you do best. 889 00:44:43,020 --> 00:44:43,460 Right. 890 00:44:43,520 --> 00:44:45,320 So we would like to... 891 00:44:46,680 --> 00:44:54,820 Differentiate between what is the Pineapple, or the Pineapple's engine, and what is the way to manage it, what is the way to hook into it, what are the tools you can run in it. 892 00:44:55,180 --> 00:45:00,920 Because we simply have this device, and the device, the Mark V right now, is great at doing wireless. 893 00:45:01,180 --> 00:45:05,240 That is what it excels in, at least what I think, or what we think. 894 00:45:06,720 --> 00:45:10,200 What we're not so great with is it's a 400 MHz processor. 895 00:45:10,920 --> 00:45:13,840 So you're not going to be running your Metasploit suite on it. 896 00:45:13,920 --> 00:45:14,820 You're not going to be running... 897 00:45:16,960 --> 00:45:26,020 Full, I don't know, all the man-in-the-middle tools that are written in Python or Ruby that are ginormous and have giant dependencies and require, you know, four gigabytes of RAM to run properly. 898 00:45:26,720 --> 00:45:30,120 Or you could get them to work slowly, but then... 899 00:45:30,120 --> 00:45:30,620 In my next year. 900 00:45:31,780 --> 00:45:32,140 Exactly. 901 00:45:32,460 --> 00:45:35,100 Well, no, you could get them to work slowly, but not with many clients. 902 00:45:35,160 --> 00:45:36,840 Like, we can handle, like, 200 clients. 903 00:45:36,900 --> 00:45:37,420 It's no big deal. 904 00:45:40,000 --> 00:45:40,680 Wi-Fi side? 905 00:45:40,760 --> 00:45:40,920 Yes. 906 00:45:41,180 --> 00:45:41,420 Yes. 907 00:45:41,560 --> 00:45:41,700 Yeah. 908 00:45:41,880 --> 00:45:43,920 So the issue isn't the Wi-Fi. 909 00:45:44,180 --> 00:45:44,900 It's the... 910 00:45:45,440 --> 00:45:45,980 What do you do? 911 00:45:45,980 --> 00:45:47,100 What do you do after you have the clients? 912 00:45:47,240 --> 00:45:53,540 So we're working on a way that you can basically take the clients and get them to a location where... 913 00:45:53,540 --> 00:45:54,720 So they abstract the engine. 914 00:45:54,860 --> 00:46:06,080 The thing that does the thing, keep doing the Wi-Fi, and then offload tools and so on to other devices, be it, you know, your ARM devices or your laptop or a device in the cloud, which runs your tools. 915 00:46:06,300 --> 00:46:11,000 But basically, we're going in that direction with this engine so that you just, you know, you run a pineapple. 916 00:46:11,260 --> 00:46:13,700 It does the pulling of the clients and... 917 00:46:14,160 --> 00:46:14,580 Right. 918 00:46:14,720 --> 00:46:15,720 Because you've done fantastic. 919 00:46:15,980 --> 00:46:21,400 You've done a great job already with the API of making it really easy to write those infusions for, say, the web interface and all of those tools. 920 00:46:22,220 --> 00:46:29,480 But it would be really better if, in addition to that, we could also take those same clients and just kind of, like, run them through what we're already used to doing. 921 00:46:29,520 --> 00:46:34,180 We don't need to reinvent the wheel here if you have a workflow, if you have tools that you're using. 922 00:46:34,380 --> 00:46:36,380 And so that's the other thing that we're working on is workflow. 923 00:46:37,200 --> 00:46:43,480 And that looking back at the 1.0 version of the Mark V, it's really grown a lot. 924 00:46:43,520 --> 00:46:44,900 And there's, like, so many features now. 925 00:46:45,020 --> 00:46:45,740 And so if you've been... 926 00:46:45,980 --> 00:46:50,340 With the project for a long time, you're probably very familiar with where all of those options are. 927 00:46:50,560 --> 00:46:54,820 And when you get a new version, you're clicking around and realizing, we've done a lot to make it easier. 928 00:46:54,980 --> 00:46:58,860 There's little help bubbles next to most of the big features that kind of explain what they do and how they work. 929 00:46:59,100 --> 00:47:05,920 But our next emphasis, in addition to abstracting the engine, would also be on creating, like, what is the pen test workflow? 930 00:47:06,160 --> 00:47:12,020 And it may differ dramatically depending on, you know, who the client is and what kind of audit they're looking for. 931 00:47:12,300 --> 00:47:15,000 So what we're hoping to do is make it clearer. 932 00:47:15,140 --> 00:47:15,780 Like, okay. 933 00:47:15,780 --> 00:47:17,660 Here is the recipe for success. 934 00:47:18,220 --> 00:47:20,080 And if you're doing this kind of, you know, select a profile. 935 00:47:20,260 --> 00:47:23,640 If you're doing this kind of an audit, then these are the steps you may want to go through. 936 00:47:23,720 --> 00:47:25,900 And if you're doing that kind of, then these are the steps. 937 00:47:25,920 --> 00:47:28,060 And this is the report that you're going to get at the end of that. 938 00:47:28,260 --> 00:47:31,640 And if you've then done that and you're like, well, this works, great. 939 00:47:32,120 --> 00:47:34,560 Charged a bunch of money. 940 00:47:35,240 --> 00:47:35,960 Did an audit. 941 00:47:36,480 --> 00:47:37,260 Got them the report. 942 00:47:37,640 --> 00:47:38,240 They're happy. 943 00:47:38,540 --> 00:47:40,780 They call me again next year and want the same thing. 944 00:47:40,860 --> 00:47:45,140 I want you to be able to more easily do that again without having to, you know, 945 00:47:45,140 --> 00:47:46,300 find all the things again. 946 00:47:48,400 --> 00:47:48,900 Yep. 947 00:47:53,540 --> 00:47:57,280 Oh, before we do that, do you want to speak on this? 948 00:47:57,580 --> 00:48:00,260 So there's also things you should not do with a pineapple. 949 00:48:01,180 --> 00:48:03,460 One of those things is this. 950 00:48:04,020 --> 00:48:05,100 Don't do that. 951 00:48:05,820 --> 00:48:07,320 You'll get arrested. 952 00:48:07,520 --> 00:48:09,020 It's just slightly obvious. 953 00:48:10,680 --> 00:48:11,180 Yeah. 954 00:48:11,980 --> 00:48:13,500 But you got the interesting information. 955 00:48:13,820 --> 00:48:14,320 Yeah. 956 00:48:14,320 --> 00:48:16,220 There's lots of fun things you can do passively. 957 00:48:16,360 --> 00:48:20,840 But then, like, trying to explain it to the NPS is always interesting, too. 958 00:48:22,080 --> 00:48:24,080 Wi-Fi geocaching, just go with that. 959 00:48:30,080 --> 00:48:30,800 There it is. 960 00:48:30,820 --> 00:48:31,700 Find us off camera. 961 00:48:33,900 --> 00:48:36,220 And with that, let's do some ASCII Q&A. 962 00:48:40,900 --> 00:48:41,800 I have a question. 963 00:48:42,000 --> 00:48:42,260 Yes. 964 00:48:42,480 --> 00:48:44,060 So I'm trying to use the... 965 00:48:44,320 --> 00:48:48,160 The radios between each other want to be a client and want to re-serve via the AP. 966 00:48:48,340 --> 00:48:49,580 So there's been some speed issues. 967 00:48:49,700 --> 00:48:52,260 I've followed on the forums and saw that you guys work to fix that. 968 00:48:52,340 --> 00:48:53,680 Is there any more work? 969 00:48:53,820 --> 00:48:58,740 Is that just the hardware limitation between the bridge going through the chip or what 970 00:48:58,740 --> 00:48:59,420 you thought on that? 971 00:49:00,540 --> 00:49:04,560 What we've found is that we get the best throughput when we use a third radio. 972 00:49:05,620 --> 00:49:09,020 And we recommend, of course, the Alpha NEH, which we supply. 973 00:49:09,620 --> 00:49:10,020 Yes? 974 00:49:11,220 --> 00:49:11,620 Suck. 975 00:49:13,020 --> 00:49:13,500 That's okay. 976 00:49:13,600 --> 00:49:13,920 Well... 977 00:49:13,920 --> 00:49:18,660 Well, I guess we should address that in saying that initially from the onset of the Wi-Fi 978 00:49:18,660 --> 00:49:24,900 Pineapple, I mean, you're looking at it, you know, the two of us, launching the Mark V, 979 00:49:25,100 --> 00:49:29,500 big dreams of Pine AP, and of course, some things get finished before others. 980 00:49:29,740 --> 00:49:34,240 So when we launched the device, we really went with the software-wise, there were a 981 00:49:34,240 --> 00:49:37,460 lot of improvements, but it was also the best that we had had on the previous generation. 982 00:49:37,840 --> 00:49:42,180 But of course, we built the custom hardware, dreaming of what is possible when we have 983 00:49:42,180 --> 00:49:43,560 a dedicated interface. 984 00:49:43,920 --> 00:49:47,680 So we built the software-wise for that constant sniffing and packet injection, and there was 985 00:49:47,680 --> 00:49:51,940 the sketch on the board of, like, this is what the Pine AP future is going to look like, 986 00:49:51,980 --> 00:49:53,460 so let's make hardware for that. 987 00:49:54,520 --> 00:49:57,960 So we put the cart a little bit before the horse there, and in that case, we're like, 988 00:49:58,080 --> 00:50:00,180 okay, well, what are we doing with WLAN 1? 989 00:50:00,520 --> 00:50:05,260 So we threw in client mode, which turned out to be, like, a huge feature that everybody 990 00:50:05,260 --> 00:50:05,660 loved. 991 00:50:05,900 --> 00:50:11,380 So then later, when we came out with Pine AP, which requires WLAN 1, it then got a little 992 00:50:11,380 --> 00:50:12,920 trickier, where it's like, okay, well... 993 00:50:13,460 --> 00:50:13,800 Okay. 994 00:50:13,880 --> 00:50:13,900 Okay. 995 00:50:13,920 --> 00:50:18,180 Well, we want to make it optional, because some people are, like, using this, but really 996 00:50:18,180 --> 00:50:22,680 we want it to be the dedicated interface that you use to support that first interface. 997 00:50:22,860 --> 00:50:28,260 We don't want to tie up WLAN 0, the Atheros doing Karma, with too many other tasks, because 998 00:50:28,260 --> 00:50:30,300 then we're going to start dropping clients, and that's not what we want. 999 00:50:31,720 --> 00:50:34,340 And yes, we did also run into throughput issues. 1000 00:50:34,820 --> 00:50:42,720 And so we did dev another board and solved one issue and broke several others, and I 1001 00:50:42,720 --> 00:50:43,900 wish it was as easy... 1002 00:50:43,900 --> 00:50:45,860 I wish it was as easy as it is, because Seb's got it easy. 1003 00:50:45,960 --> 00:50:46,900 He just has to do code. 1004 00:50:47,120 --> 00:50:52,000 He just hits F5, and it says warning, or doesn't compile, and then he, like, does the... 1005 00:50:52,000 --> 00:50:53,040 He's hit semi-code. 1006 00:50:53,140 --> 00:50:53,760 This is what you do, Seb. 1007 00:50:53,780 --> 00:50:54,460 You just, like, that. 1008 00:50:54,580 --> 00:50:59,500 And then, like, the code happens, and so he just hits F5 and compiles again. 1009 00:50:59,620 --> 00:51:00,640 Like, we've got to, like, do... 1010 00:51:00,640 --> 00:51:01,060 F5 and stock overflow. 1011 00:51:01,320 --> 00:51:01,520 Yes. 1012 00:51:02,000 --> 00:51:06,260 So it's much more difficult to do revs, and I can show you boards that, like, hey, this 1013 00:51:06,260 --> 00:51:09,060 is fixed, and now we totally screwed over storage. 1014 00:51:10,160 --> 00:51:12,440 So, yeah, maybe we'll put those in the museum. 1015 00:51:12,640 --> 00:51:13,320 We've got, like, a... 1016 00:51:13,320 --> 00:51:18,680 All these shadow boxes of all of the various prototype boards that, for some reason or 1017 00:51:18,680 --> 00:51:19,860 another, are derpy. 1018 00:51:23,260 --> 00:51:23,880 Anyone else? 1019 00:51:24,780 --> 00:51:25,120 Yeah. 1020 00:51:25,160 --> 00:51:28,500 Based on the abstraction process you mentioned, say, do you assume there won't be a Mark VI? 1021 00:51:30,940 --> 00:51:35,320 We'll always carry on working on new things, because there are clearly things that we can 1022 00:51:35,320 --> 00:51:35,600 improve. 1023 00:51:35,720 --> 00:51:36,680 We could add more processing. 1024 00:51:36,700 --> 00:51:37,800 We could add 5 gigahertz. 1025 00:51:37,860 --> 00:51:39,480 We could, you know, add an SSD. 1026 00:51:39,560 --> 00:51:40,580 You never know, right? 1027 00:51:40,640 --> 00:51:42,860 So I'm not saying there's not going to be a Mark VI. 1028 00:51:44,100 --> 00:51:49,740 But it is definitely one of those things where, with this abstraction of the engine, it wouldn't 1029 00:51:51,040 --> 00:51:55,460 impact that either, because the engine would be abstracted from the device and from the 1030 00:51:55,460 --> 00:51:59,340 tools that would be running on your computer or on your Android phone or on your what have 1031 00:51:59,340 --> 00:51:59,760 you, right? 1032 00:51:59,880 --> 00:52:03,560 So we want to kind of be able to, you know, you pull out your Android phone, you connect 1033 00:52:03,560 --> 00:52:05,400 to your Pineapple, manage it from there. 1034 00:52:05,480 --> 00:52:07,800 It might be through an Android app, because it's agnostic, right? 1035 00:52:07,860 --> 00:52:11,660 It wouldn't care what you're doing for management, which also means that anyone can write apps 1036 00:52:11,660 --> 00:52:12,040 for it. 1037 00:52:12,100 --> 00:52:13,300 Anyone can, you know, hook it up. 1038 00:52:13,320 --> 00:52:17,400 You can have big integrations into entire other systems and so on. 1039 00:52:17,460 --> 00:52:18,060 So we're working on that. 1040 00:52:18,180 --> 00:52:21,880 We want to get hooks into Kali that just make that totally painless. 1041 00:52:22,300 --> 00:52:27,000 We want to get hooks or, like, modules for Metasploit out and just kind of, you know, make 1042 00:52:27,000 --> 00:52:28,120 ourselves more... 1043 00:52:28,120 --> 00:52:28,720 Integrated. 1044 00:52:28,820 --> 00:52:29,140 Integrated. 1045 00:52:29,140 --> 00:52:29,360 Yes. 1046 00:52:30,260 --> 00:52:33,740 But, no, I mean, that's like asking Apple if there's going to be an iPhone 7. 1047 00:52:35,460 --> 00:52:35,780 So... 1048 00:52:35,780 --> 00:52:37,020 Do you think there's going to be an iPhone 7? 1049 00:52:37,280 --> 00:52:38,520 I think they're stopping, though. 1050 00:52:38,620 --> 00:52:38,780 Yeah. 1051 00:52:38,820 --> 00:52:39,840 No, 802.11ac. 1052 00:52:40,040 --> 00:52:40,980 We could go on and on and on. 1053 00:52:41,020 --> 00:52:42,920 In fact, I love hearing people shout out. 1054 00:52:43,320 --> 00:52:45,720 People at B-Side sell us they wanted BTLE. 1055 00:52:47,980 --> 00:52:48,340 Okay. 1056 00:52:49,400 --> 00:52:52,320 Maybe we can also, you know, work better with things like the Uber Tooth or something like 1057 00:52:52,320 --> 00:52:52,480 that. 1058 00:52:52,700 --> 00:52:53,500 But, yes. 1059 00:52:53,800 --> 00:52:54,960 There was another question over here. 1060 00:52:55,920 --> 00:52:59,140 Is the title of your presentation based off of your Snoop Dogg song? 1061 00:53:00,400 --> 00:53:00,760 No. 1062 00:53:01,040 --> 00:53:02,140 Completely original. 1063 00:53:05,900 --> 00:53:06,500 Anyone else? 1064 00:53:10,060 --> 00:53:10,420 Cool. 1065 00:53:11,920 --> 00:53:12,380 All right. 1066 00:53:12,420 --> 00:53:13,300 Thank you so much for letting me be here. 1067 00:53:13,300 --> 00:53:14,140 Thank you for having us do this. 1068 00:53:14,340 --> 00:53:14,820 Thank you.