1 00:00:00,000 --> 00:00:07,860 Thanks for coming to my talk and showing some interest. I'll be showing this slide again 2 00:00:08,780 --> 00:00:18,400 during the questions portion so you can write that down or follow whatever. So my name is 3 00:00:18,400 --> 00:00:24,180 Steven. My friends call me Stevo. This is my 11th DEF CON and my first time as a speaker. 4 00:00:24,180 --> 00:00:33,100 So, yeah, this is kind of cool. This is my third year participating in the wireless capture 5 00:00:33,100 --> 00:00:39,640 of the flag. My team has won three years in a row. And two of the years we won a black badge. 6 00:00:41,720 --> 00:00:47,640 My day job is I'm a system engineer or ops guy as a lot of people like to call it. And at 7 00:00:48,060 --> 00:00:54,160 night I like to play with security stuff. So, now, really what I've been doing for the last 8 00:00:54,180 --> 00:00:57,900 process now. So, Rick gave a breakdown of what fox hunting was. I'm not sure how many of you 9 00:00:57,900 --> 00:01:04,240 guys were there when you saw him go over that. But basically they release people out there 10 00:01:05,180 --> 00:01:14,360 with Wi-Fi foxes in their pocket that have a BSS ID and associated with it. And we're 11 00:01:14,360 --> 00:01:20,960 supposed to go out there and try to track it down, follow where it is. And ask the person if 12 00:01:20,960 --> 00:01:24,160 they're the fox. One of the new challenges which I've been doing for the last few years is we're 13 00:01:24,160 --> 00:01:34,140 kind of cool. I wrote this into my program as crack the WPA. So, anyhow, the foxes actively 14 00:01:34,140 --> 00:01:40,100 avoid you. So if you have like a Wi-Fi cactus on your back and you look like you're looking 15 00:01:40,100 --> 00:01:47,380 for somebody, you're not going to catch the fox because they're going to avoid you. And 16 00:01:47,380 --> 00:01:51,960 sometimes they can go into nonpublic areas and go hide and stuff. So you have to like wait it 17 00:01:51,960 --> 00:01:57,400 out or what have you. So you have to kind of be stealth about it. And that's kind of what this 18 00:01:57,400 --> 00:02:05,760 tool is based on is the ability to just have like your pie hiding in your backpack or, you 19 00:02:05,760 --> 00:02:17,600 know, wherever you want to put it. And search for the fox from audio cues. So I just kind of 20 00:02:17,600 --> 00:02:21,940 went over this. Why I built this. And the reason I built this is because I wanted to get 21 00:02:21,960 --> 00:02:24,560 the fox out of the way. And the inspiration was kind of like a Wi-Fi Geiger counter. Wouldn't it 22 00:02:24,560 --> 00:02:29,680 be cool if you could like walk around and, you know, the frequency of the clicks would increase 23 00:02:29,680 --> 00:02:41,680 as you got closer to the fox? So last year, my team captured a fox with version 1 of this 24 00:02:41,680 --> 00:02:45,860 software. And it's on GitHub. You can download it now and you can like throw it on your pie if 25 00:02:45,860 --> 00:02:51,940 you can get it to work. That version has click only. So if you want to download it now, you can 26 00:02:51,940 --> 00:02:55,900 download it. So it's just sound. The configuration wasn't dynamic so it didn't have a web UI or 27 00:02:55,900 --> 00:03:02,500 anything like that. And there wasn't any external interaction like pulling from an API or 28 00:03:02,500 --> 00:03:10,900 something like that. So version 2 is what I'm hopefully going to demo today if things go well. 29 00:03:11,240 --> 00:03:21,920 And I'll go ahead and release that version to my GitHub repo after DEF CON. This has a web UI and 30 00:03:21,940 --> 00:03:27,680 it's team aware. So I have a slack integration. So you can put a slack command in, say like add 31 00:03:27,680 --> 00:03:35,100 fox with the BSSID and it will talk to the database and my device will go and grab that 32 00:03:35,100 --> 00:03:44,500 dynamically. It also has an auto cracking feature with Wi-Fi 2. Really cool tool. Like, it's 33 00:03:44,500 --> 00:03:49,240 point and shoot. It's really simple. If you haven't used it, I recommend giving it a shot. It's 34 00:03:49,240 --> 00:03:51,920 pretty neat. I have other ideas if you want. I know I have a lot of ideas. No? All right. Thank you. 35 00:03:51,920 --> 00:03:56,560 actually zero was just talking to me about maybe doing a little 36 00:03:56,560 --> 00:04:00,400 collaboration with this. Might be cool. I had a lot of fun 37 00:04:00,400 --> 00:04:06,600 making this, too, by the way. So a minimal set up, which is 38 00:04:06,600 --> 00:04:09,660 kind of what you see on the table here, is going to cost you 39 00:04:09,660 --> 00:04:17,600 about $90. So this particular version is running Cali on the 40 00:04:17,600 --> 00:04:22,200 Raspberry Pi, so it's a Cali image. I'm using an alpha 41 00:04:22,200 --> 00:04:25,140 adapter that can go into monitor mode and do package injection. 42 00:04:27,080 --> 00:04:30,840 It has a USB sound card because I couldn't get the onboard 43 00:04:30,840 --> 00:04:36,460 version to work. And it's a little particular about the USB 44 00:04:36,460 --> 00:04:38,660 sound card, so some of them crash. So you have to find the 45 00:04:38,660 --> 00:04:41,980 right one. I'll probably work on that later. I didn't have time 46 00:04:41,980 --> 00:04:45,100 this go around. Obviously you have a battery pack and 47 00:04:45,100 --> 00:04:47,580 headphones. So I'm going to go ahead and show you a little 48 00:04:47,600 --> 00:04:51,540 bit. So this is, you can come up and look at it. Or this is 49 00:04:51,540 --> 00:04:56,060 what it looks like picture wise. And I'll post a link to the 50 00:04:56,060 --> 00:05:00,920 slides after so you can download them. So from a program flow 51 00:05:00,920 --> 00:05:07,700 perspective, so me as a user, I have my phone with me. And I'm 52 00:05:07,700 --> 00:05:13,360 connected to a shared AP between me and the Pi. And I interface 53 00:05:13,360 --> 00:05:16,740 with a web UI where I can issue commands. I can select what BSS 54 00:05:16,740 --> 00:05:17,580 ID I want to scan. And I can see what I want to scan. And I can 55 00:05:17,600 --> 00:05:20,540 see what I want to scan for. And there's also a flag to auto 56 00:05:20,540 --> 00:05:27,560 crack. So it's not turned on by default. In the background, it's 57 00:05:27,560 --> 00:05:33,960 got a, the cracking adapter, basically, that does the 58 00:05:33,960 --> 00:05:38,820 scanning, the signal scanning, and does the cracking. The 59 00:05:39,520 --> 00:05:42,880 program is controlled and it has a shared state among all the 60 00:05:42,880 --> 00:05:45,580 threads. This is the first time I've actually written a 61 00:05:45,580 --> 00:05:47,580 multi-threaded application, too, which was a little bit 62 00:05:47,580 --> 00:05:53,040 different. Which was interesting. So it's got the UI 63 00:05:53,040 --> 00:05:56,620 module, which you'll see where you control it. A sound module, 64 00:05:56,740 --> 00:06:02,060 which is what controls what is played sound wise. Signal 65 00:06:02,060 --> 00:06:05,720 scanner, which is telling, it's constantly pulling when this is 66 00:06:05,720 --> 00:06:11,220 turned on. Telling you what the signal strength is. And depending 67 00:06:11,760 --> 00:06:15,540 on what the situation is, it will play different sounds. And 68 00:06:16,200 --> 00:06:17,560 there's a module that pulls the signal strength. So it's a 69 00:06:17,560 --> 00:06:21,760 module that pulls the API to see if there's new foxes. And 70 00:06:21,760 --> 00:06:29,240 it'll play sounds depending on if it successfully pulled it or it 71 00:06:29,240 --> 00:06:32,540 had an error. And I don't know. You might hear both sounds. You 72 00:06:32,540 --> 00:06:42,080 might just hear one. And yeah. So I kind of went over the slack 73 00:06:42,080 --> 00:06:46,280 part. So the team could be sitting at the workstation. And 74 00:06:46,280 --> 00:06:50,560 they can type a command into slack that will add the MAC 75 00:06:50,560 --> 00:06:55,300 address or the BSS ID. That will in turn go to a Flask app in AWS. 76 00:06:57,700 --> 00:07:02,520 And the pi clicker will download the latest data. Yeah. So it's 77 00:07:02,520 --> 00:07:05,960 just kind of an interactive component. I do some of this for 78 00:07:05,960 --> 00:07:14,660 work. So the slack stuff and the API was kind of fun to do. So 79 00:07:16,700 --> 00:07:19,440 yeah. I think I kind of went over some of the design principles. 80 00:07:19,580 --> 00:07:22,420 Now I'm going to try to do a live demo. I have screen shots 81 00:07:22,420 --> 00:07:25,280 just in case it doesn't work. I've practiced this a couple of 82 00:07:25,280 --> 00:07:31,480 times. So we'll see how this turns out. All right. Stand by. 83 00:07:46,900 --> 00:07:46,940 . 84 00:07:46,940 --> 00:07:46,960 . 85 00:07:46,960 --> 00:07:46,980 . 86 00:07:58,520 --> 00:07:58,560 . 87 00:07:58,560 --> 00:07:58,580 . 88 00:07:58,580 --> 00:07:58,600 . 89 00:07:58,600 --> 00:07:58,620 . 90 00:07:58,620 --> 00:07:58,640 . 91 00:07:58,640 --> 00:07:58,660 . 92 00:07:58,660 --> 00:07:58,680 . 93 00:07:58,680 --> 00:07:58,700 . 94 00:07:59,220 --> 00:07:59,260 . 95 00:08:16,280 --> 00:08:17,100 . 96 00:08:22,480 --> 00:08:23,880 . 97 00:08:23,880 --> 00:08:25,380 . 98 00:08:25,380 --> 00:08:25,400 . 99 00:08:32,280 --> 00:08:33,680 . 100 00:08:33,680 --> 00:08:34,880 . 101 00:08:34,880 --> 00:08:34,900 . 102 00:08:34,900 --> 00:08:34,920 . 103 00:08:35,560 --> 00:08:40,340 point zero point one zero six. All right. So sorry about that. 104 00:08:40,620 --> 00:08:48,140 Didn't realize I didn't have the microphone. So I am going to, I 105 00:08:48,140 --> 00:08:53,580 clicked on the wrong one. I have two active APs by the way. So 106 00:08:53,580 --> 00:09:00,720 all right. So that's the sound where it's not picking up signal. 107 00:09:03,740 --> 00:09:16,900 And this should pick up in just a second. Any time. All right. 108 00:09:17,460 --> 00:09:21,740 So who wants to go, like, run away? All right. Here you go. 109 00:09:23,460 --> 00:09:25,980 Yeah, you need to come back. Yeah, I'd like my AP back. Thanks. 110 00:09:28,240 --> 00:09:30,640 Yeah, so you don't need to go very far. Like, you know, I don't 111 00:09:30,720 --> 00:09:39,540 know, go down that way a little bit. And he's holding it up to his badge. 112 00:09:39,660 --> 00:09:44,900 No, it doesn't do anything with the badge. Go that way a little bit. I 113 00:09:44,900 --> 00:09:50,420 want it to disconnect and play the sonar sound. Can you guys hear this 114 00:09:50,420 --> 00:09:57,300 okay? All right. Cool. What's going on in the program here is, like, 115 00:09:57,340 --> 00:10:00,700 this is the debug stuff. It's not going to be nearly as verbose. It's 116 00:10:01,820 --> 00:10:05,860 going to be, you know, when it's actually enabled. All right. So we lost 117 00:10:05,860 --> 00:10:14,600 signal. All right. You can come back now. Oh, did you, did you, did you 118 00:10:14,600 --> 00:10:19,760 have it on your, okay. If you put it in tin foil, it'll stop responding, too. 119 00:10:23,160 --> 00:10:28,420 What's that? I think there's a lot going on in this room, too, so it kind of makes sense. 120 00:10:31,560 --> 00:10:42,180 Or did it switch off? No. It's possible someone's messing with it, too. 121 00:10:42,800 --> 00:10:51,900 Like, that's, that is a very, yeah. Anyway. So it, especially when there's not a whole lot of 122 00:10:51,900 --> 00:10:57,260 interference, it actually works pretty well. So in order for it to start cracking, it needs a 123 00:10:57,260 --> 00:11:00,700 number of successful polls, how many is it at right there? Okay. 18. So that 124 00:11:00,700 --> 00:11:08,340 should be enough. And we're going to, let me see here. You guys haven't seen 125 00:11:08,340 --> 00:11:15,800 the Web UI yet, have you? Sorry about that. I forgot that I had it up here. 126 00:11:15,800 --> 00:11:39,460 here. Alright, so, does it say enabled? Cracking enabled? Alright. 127 00:11:46,980 --> 00:12:01,540 Did I get it? Sorry, it's a little awkward. You know, you gotta have something to listen 128 00:12:01,540 --> 00:12:15,780 to while it's doing its thing. And I may have lost connection to my phone. 129 00:12:15,800 --> 00:12:45,340 Let me make sure. Yeah. Just a second. Alright, so, that's Wi-Fi. 130 00:12:45,800 --> 00:12:50,460 It's doing its thing. Now, I need to connect to it so it can properly de-auth. 131 00:13:11,980 --> 00:13:14,740 Alright. Did it cap it yet? 132 00:13:16,260 --> 00:13:23,360 I can't tell. Alright. Alright, so, now it's doing its cracking. 133 00:13:31,000 --> 00:13:35,540 And it's a pi, because this isn't very fast. I thought about offloading that to the AWS instance 134 00:13:35,540 --> 00:13:38,860 as well, but didn't have time. 135 00:13:47,100 --> 00:13:48,040 Any day now. 136 00:13:57,340 --> 00:13:57,700 Alright. 137 00:14:06,180 --> 00:14:13,020 That's the tone to, like, okay, you can go on to the next one. You can go grab the fox and say this is the pass phrase. 138 00:14:13,020 --> 00:14:19,020 So, don't need any of those slides now. 139 00:14:23,940 --> 00:14:34,080 Alright. This was just in case the demo got wonky. Alright, so, does anybody have any questions? 140 00:14:35,720 --> 00:14:43,000 What's the blast? What's the blast? It was, like, super secret secure pass phrase or something like that. 141 00:14:45,060 --> 00:14:48,060 What's that? Yeah. Yeah. 142 00:14:50,160 --> 00:14:51,700 Anybody have any other questions or? 143 00:14:54,480 --> 00:15:01,960 That word list? It was, like, 200K or something like that. The word list this year is, like, 6, 335K, I think. 144 00:15:03,020 --> 00:15:09,580 Or, actually, I'm sorry, lines. So, words. Yeah. Yes. 145 00:15:09,920 --> 00:15:11,320 Do you want to add something? 146 00:15:12,640 --> 00:15:15,660 Features? I want to add Bluetooth scanning. 147 00:15:16,180 --> 00:15:23,680 I also, during the signal scanning portion, it's actually going through all the different BSSIDs and names. 148 00:15:24,360 --> 00:15:29,840 I also want to generate a list of BSSIDs that are dynamic in that web interface that I showed you. 149 00:15:29,880 --> 00:15:34,060 So that, I don't know, you can select one of those without having to actually do any configuration. 150 00:15:35,460 --> 00:15:38,320 Like I said, I didn't have time to do that. But, yes. 151 00:15:40,400 --> 00:15:41,200 . No. 152 00:15:41,220 --> 00:15:41,300 . No. 153 00:15:41,300 --> 00:15:43,480 . No pictures. No pictures. 154 00:15:44,880 --> 00:15:46,140 No pictures, I guess. 155 00:15:47,220 --> 00:15:49,500 Have I considered? Yes. Actually, I have one. 156 00:15:49,840 --> 00:15:55,240 So, like, my thought is, like, when you're doing the fox hunting is you can use Omni to, like, get a general vicinity. 157 00:15:55,440 --> 00:15:59,100 And then, like, when you have a lock on the fox and you can use a directional one. 158 00:16:00,700 --> 00:16:02,660 Yeah. So, that's the plan anyway. 159 00:16:06,060 --> 00:16:06,940 . Yes, sir. 160 00:16:10,560 --> 00:16:11,280 . . 161 00:16:11,280 --> 00:16:12,780 I have thought about that. 162 00:16:12,860 --> 00:16:14,580 . I have thought about that. 163 00:16:14,580 --> 00:16:16,320 But math is hard and I didn't have enough time. 164 00:16:18,020 --> 00:16:20,780 So, but, yeah, that's an awesome suggestion. 165 00:16:21,020 --> 00:16:21,760 I have thought about it. 166 00:16:21,800 --> 00:16:22,920 But, yeah, I didn't. 167 00:16:24,100 --> 00:16:25,540 Yeah, maybe version 3. 168 00:16:26,080 --> 00:16:28,940 And, like I said, like, the source code is going to be online. 169 00:16:29,880 --> 00:16:33,020 So, like, if you guys want to contribute, feel free. 170 00:16:33,560 --> 00:16:35,960 It's totally welcome if you can bear my crappy code. 171 00:16:36,200 --> 00:16:36,560 So. 172 00:16:37,180 --> 00:16:37,540 . 173 00:16:40,360 --> 00:16:40,960 All right, guys. 174 00:16:41,000 --> 00:16:41,880 Well, thank you very much. 175 00:16:42,000 --> 00:16:43,320 And thanks.