1 00:00:00,000 --> 00:00:04,860 Good morning everyone and thank you for waiting through all the technical 2 00:00:04,860 --> 00:00:09,740 problems getting up before the crack of noon to come listen to this talk. The 3 00:00:09,740 --> 00:00:15,660 title of it is called Zulu, a command line wireless frame injector. There were 4 00:00:15,660 --> 00:00:20,060 two people that wrote this tool, myself, Damon McCoy, and Anmel Seth. 5 00:00:20,560 --> 00:00:25,560 Unfortunately I couldn't talk Anmel into coming down to Vegas. He's up in Berkeley 6 00:00:25,560 --> 00:00:29,900 working this summer, but when I asked him to come and have a fun time in Vegas 7 00:00:29,900 --> 00:00:32,480 he said he was a little bit nervous about the people that came to these 8 00:00:32,480 --> 00:00:37,200 kinds of things. I said but I come to these things and he said exactly that's 9 00:00:37,200 --> 00:00:42,700 his point. So you're stuck just listening to me and not some guy with a cool 10 00:00:42,700 --> 00:00:54,060 Indian accent. He also asked that all email be directed to me. Something about 11 00:00:54,060 --> 00:00:55,540 his visa and worrying about it. 12 00:00:57,840 --> 00:01:04,360 Okay, so the whole point of this talk is basically to get you to download the Zulu tool, play 13 00:01:04,360 --> 00:01:08,960 with it, mess around, break it, tell me what bugs there are so that I can fix them. So 14 00:01:08,960 --> 00:01:15,440 anyone that doesn't need any convincing yet, there's a SourceForge project, zuluwireless.sourceforge.net. 15 00:01:15,620 --> 00:01:19,880 You can just go ahead and download it, play with it while I'm talking. For those of you 16 00:01:19,880 --> 00:01:24,100 that aren't convinced yet to download it or are too scared to connect to the DEF CON wireless 17 00:01:24,100 --> 00:01:24,460 network. 18 00:01:24,460 --> 00:01:27,020 You can listen to the rest of the talk. 19 00:01:30,540 --> 00:01:34,680 So the first question that you'll be asking yourself, what the hell is Zulu good for? 20 00:01:35,840 --> 00:01:41,400 The easy answer is that it's used to inject custom frames into an 802.11 network. 21 00:01:43,660 --> 00:01:50,580 Uses for this is you could probe that network for security holes possibly. If you had some 22 00:01:50,580 --> 00:01:54,400 kind of device that was acting up, this might be a good tool to debug it with. 23 00:01:54,400 --> 00:01:57,300 Okay, those are the quasi-legitimate uses. 24 00:01:58,520 --> 00:02:04,900 You could also use this tool probably to launch a de-author or de-association attack. Or you 25 00:02:04,900 --> 00:02:10,200 could launch some kind of association attack to flood the access point fairly easily with 26 00:02:10,200 --> 00:02:10,600 this tool. 27 00:02:11,840 --> 00:02:23,580 You could also use it probably to test wireless device drivers. So now that you know the motivations, 28 00:02:23,640 --> 00:02:24,380 I'm gonna turn this one off. 29 00:02:24,400 --> 00:02:25,680 What exactly is this tool? 30 00:02:25,740 --> 00:02:27,620 I've said that it can inject custom frames, 31 00:02:27,820 --> 00:02:29,380 but what the hell does that mean? 32 00:02:31,680 --> 00:02:36,240 So basically this tool allows you to set and unset most fields 33 00:02:36,240 --> 00:02:40,140 within a 802.11 wireless frame, is the whole point of this tool. 34 00:02:41,620 --> 00:02:44,440 I want it to be incredibly configurable. 35 00:02:44,560 --> 00:02:48,660 Right now it has about 20-plus documented command line options. 36 00:02:48,960 --> 00:02:52,340 There are a few more that are undocumented and less tested. 37 00:02:52,340 --> 00:02:56,140 So you can look at the source code to find out what those are. 38 00:02:57,800 --> 00:03:02,320 Currently it works on Linux with the MAD Wi-Fi drivers fairly stably. 39 00:03:02,600 --> 00:03:05,380 There's also been some testing on the Prism 2 drivers. 40 00:03:05,720 --> 00:03:08,120 So it works kind of with those. 41 00:03:08,240 --> 00:03:10,620 You have to compile it with a special command flag. 42 00:03:13,920 --> 00:03:18,060 Also as a pitch, it includes some code from the LoreCon project, 43 00:03:18,180 --> 00:03:20,160 which some of you might be familiar with, 44 00:03:20,710 --> 00:03:22,320 to help with settings. 45 00:03:22,340 --> 00:03:23,780 So you can see here that I'm writing the channel in the ESS ID. 46 00:03:28,440 --> 00:03:33,460 When I wrote this tool, I wanted to have a goal in mind for this tool. 47 00:03:34,160 --> 00:03:40,460 So that it didn't get cluttered up and become this useless heap of buggy garbage 48 00:03:40,460 --> 00:03:42,160 that some tools become. 49 00:03:43,920 --> 00:03:47,240 So when I set out to write this tool, my number one vision is that 50 00:03:47,240 --> 00:03:50,240 everything that I did had to be easy to use. 51 00:03:50,400 --> 00:03:52,320 I didn't want anything where you needed to be, you know, 52 00:03:52,320 --> 00:03:54,900 you needed to bust out your definitive wireless guidebook 53 00:03:54,900 --> 00:03:58,000 to look at framing for 802.11 specifications. 54 00:03:59,040 --> 00:04:01,480 So that was my number one goal in everything. 55 00:04:02,000 --> 00:04:03,340 It's got to be easy to use. 56 00:04:04,900 --> 00:04:09,200 I would equate this tool to, I don't know, how many of you are familiar with HPing? 57 00:04:11,080 --> 00:04:12,400 Yeah, quite a few of you. 58 00:04:12,540 --> 00:04:18,980 So that was built to inject packets into TCP to basically turn off frames and stuff. 59 00:04:19,180 --> 00:04:21,780 And that was kind of my inspiration for building this tool. 60 00:04:21,780 --> 00:04:23,680 Was to model it off of HPing. 61 00:04:25,400 --> 00:04:27,360 Other things that I had in mind is that 62 00:04:27,360 --> 00:04:30,780 I didn't want you to have to type in two billion command line options 63 00:04:30,780 --> 00:04:32,280 just to generate a stupid frame. 64 00:04:32,760 --> 00:04:37,200 So I wanted there to be as few required command line options as possible. 65 00:04:37,420 --> 00:04:40,380 And then just sane defaults for everything that you didn't specify. 66 00:04:40,760 --> 00:04:44,540 So that was, again, with the easy to use vein. 67 00:04:45,580 --> 00:04:47,200 But I also didn't want to cripple it. 68 00:04:47,280 --> 00:04:49,240 I didn't want to make it so that, you know, you said, 69 00:04:49,460 --> 00:04:51,360 damn, I wish I could set this field. 70 00:04:51,780 --> 00:04:52,520 This tool can't do it. 71 00:04:52,980 --> 00:04:57,240 So I wanted to make sure that basically any field within a wireless frame, 72 00:04:57,400 --> 00:04:59,760 you could set that value to whatever you wanted. 73 00:05:02,200 --> 00:05:04,960 Also, I didn't want there to be any programming language, 74 00:05:05,820 --> 00:05:07,060 programming skills required. 75 00:05:07,280 --> 00:05:10,720 I wanted it to be usable by any network debugger. 76 00:05:12,040 --> 00:05:15,000 And also I wanted it to work with unmodified drivers. 77 00:05:15,360 --> 00:05:19,020 Some tools in the past you've had to apply patches to your drivers and stuff 78 00:05:19,020 --> 00:05:20,500 to get to see inject frames. 79 00:05:21,780 --> 00:05:23,420 I wanted it to just work right out of the box. 80 00:05:23,600 --> 00:05:24,620 Again, easy to use. 81 00:05:27,400 --> 00:05:28,620 A quick review. 82 00:05:29,240 --> 00:05:33,740 At the top you can see there's essentially two required options 83 00:05:33,740 --> 00:05:35,420 are all that are required to run this tool. 84 00:05:35,640 --> 00:05:38,920 The dash T option and you provide it with the type of frame. 85 00:05:39,040 --> 00:05:41,220 This can be a probe request frame. 86 00:05:41,560 --> 00:05:43,060 It could be a data frame. 87 00:05:43,600 --> 00:05:46,160 It could be a RTS or CTS frame. 88 00:05:46,740 --> 00:05:50,960 It supports any frame within the 802.11 specification. 89 00:05:50,960 --> 00:05:53,680 Except for the control acts. 90 00:05:53,980 --> 00:05:56,940 Since those are controlled by the firmware of the card. 91 00:05:57,280 --> 00:05:59,240 Most drivers won't allow you to send those. 92 00:05:59,980 --> 00:06:03,400 Looking down it has tons of optional parameters. 93 00:06:04,080 --> 00:06:07,560 You can set the source and destination MAC of the frame. 94 00:06:07,960 --> 00:06:10,820 You can tell it how many of these frames you want to spit out 95 00:06:10,820 --> 00:06:13,040 if you want to do deauth attacks and stuff like that. 96 00:06:13,840 --> 00:06:15,440 You can specify the delay. 97 00:06:15,740 --> 00:06:18,480 So you can send out one pack and then wait a little bit 98 00:06:18,480 --> 00:06:21,260 and then send out the other frames that you want to send out. 99 00:06:22,880 --> 00:06:27,580 The dash D, I mean the dash W option will like... 100 00:06:27,580 --> 00:06:27,900 Oh shoot. 101 00:06:28,060 --> 00:06:28,500 Okay. 102 00:06:29,460 --> 00:06:30,940 I've been babbling for too long. 103 00:06:31,380 --> 00:06:33,560 That will allow you to set the web frame and stuff like that. 104 00:06:33,720 --> 00:06:35,380 I'm going to have to race through this. 105 00:06:35,740 --> 00:06:38,520 So I was thinking since this is kind of a sales pitch 106 00:06:38,520 --> 00:06:42,660 for you to download this tool that this would be the slogan for Zulu. 107 00:06:45,640 --> 00:06:48,260 Then I wanted to have a cool flash 108 00:06:48,480 --> 00:06:48,760 animation. 109 00:06:51,340 --> 00:06:53,160 So this might be an attack scenario. 110 00:07:00,380 --> 00:07:01,540 Thank you, thank you. 111 00:07:02,440 --> 00:07:05,920 So now let me just run through some really quick examples. 112 00:07:06,760 --> 00:07:08,780 This was the tool run. 113 00:07:09,060 --> 00:07:11,880 I provided it with an interface, the MAD Wi-Fi interface. 114 00:07:12,220 --> 00:07:14,480 I told it to generate an association request 115 00:07:14,480 --> 00:07:17,480 and then it filled in all these default parameters. 116 00:07:17,480 --> 00:07:20,160 You can see it set the SSID to Zulu. 117 00:07:20,460 --> 00:07:22,320 It set all the flags to Zulu. 118 00:07:22,460 --> 00:07:24,160 It set the destination to zero. 119 00:07:24,360 --> 00:07:26,980 It set the destination address to the broadcast address. 120 00:07:27,440 --> 00:07:31,100 It has a default source address and everything. 121 00:07:31,300 --> 00:07:34,460 So these two parameters, it generated the frame just fine. 122 00:07:35,880 --> 00:07:37,600 A little bit more complicated example, 123 00:07:37,840 --> 00:07:39,960 you could toss in the dash S and dash D. 124 00:07:40,980 --> 00:07:43,960 You can see from the ethereal dump it set those fields correctly. 125 00:07:44,420 --> 00:07:44,800 Okay. 126 00:07:46,020 --> 00:07:47,880 I'm getting a little bit more fancy. 127 00:07:48,900 --> 00:07:51,740 This one I kicked in the dash P option, 128 00:07:51,960 --> 00:07:53,160 which if you look at the flags, 129 00:07:53,320 --> 00:07:55,240 turned on the power management option. 130 00:07:55,720 --> 00:07:57,640 I kicked on the sequence number. 131 00:07:57,740 --> 00:07:59,000 So I overwrote the sequence number. 132 00:07:59,520 --> 00:08:01,960 This on the MAD Wi-Fi drivers caused it. 133 00:08:02,040 --> 00:08:03,980 I also had to set the retry bit 134 00:08:03,980 --> 00:08:07,420 or else the firmware itself will overwrite the sequence number. 135 00:08:07,820 --> 00:08:09,520 So if it's a retry thing, 136 00:08:09,660 --> 00:08:11,500 you can specify the sequence number if it's not. 137 00:08:11,700 --> 00:08:13,600 And the tool automatically took care of that. 138 00:08:13,600 --> 00:08:16,960 It set the retry bit without you asking it to. 139 00:08:18,720 --> 00:08:20,340 And I set the SSID. 140 00:08:22,640 --> 00:08:24,020 Really quick again. 141 00:08:24,780 --> 00:08:28,060 You might say there's a boatload of these tools. 142 00:08:28,620 --> 00:08:30,260 What's so special about this tool? 143 00:08:30,680 --> 00:08:34,340 So file to air was a tool that worked with the Prism 3 chipset. 144 00:08:34,500 --> 00:08:37,980 You basically laid out the frame and a file 145 00:08:37,980 --> 00:08:39,740 and it would just send it to the air. 146 00:08:40,980 --> 00:08:42,120 Again, our tool, 147 00:08:42,120 --> 00:08:44,740 you don't have to read the 802.11 specification 148 00:08:44,740 --> 00:08:45,760 and get everything correct. 149 00:08:46,660 --> 00:08:50,080 lib wlan, lib radiate were both menace programming tools. 150 00:08:50,400 --> 00:08:52,220 Ours is supposed to be a command line tool. 151 00:08:52,440 --> 00:08:54,040 No programming knowledge required. 152 00:08:54,920 --> 00:08:58,240 Air jack, fake AP had limited injection capabilities. 153 00:08:59,940 --> 00:09:01,980 Not as flexible as our tool probably. 154 00:09:02,340 --> 00:09:03,600 Airbase is an interesting one. 155 00:09:03,680 --> 00:09:06,000 And the author of that is going to be speaking on Sunday. 156 00:09:06,840 --> 00:09:09,960 It basically allows you to replay PCAP files. 157 00:09:10,320 --> 00:09:11,840 And he might have some other. 158 00:09:12,120 --> 00:09:12,740 Some other tricks up his sleeve 159 00:09:12,740 --> 00:09:13,900 that he's going to reveal in his talk. 160 00:09:16,520 --> 00:09:19,740 Future work, we want to just make it more robust. 161 00:09:19,900 --> 00:09:20,920 Do more testing. 162 00:09:23,520 --> 00:09:24,380 Stuff like that. 163 00:09:24,920 --> 00:09:26,920 So that it can pile on your toaster. 164 00:09:29,260 --> 00:09:31,340 Okay, if I've convinced you to download it now, 165 00:09:31,520 --> 00:09:33,060 the address is again, 166 00:09:34,200 --> 00:09:36,320 zulu-wireless.sourcecode.net. 167 00:09:36,520 --> 00:09:38,440 If you download it within the next five minutes, 168 00:09:38,540 --> 00:09:40,220 I'll throw in the free ginseng knives. 169 00:09:45,340 --> 00:09:46,300 Quick acknowledgements. 170 00:09:46,300 --> 00:09:48,420 I'd definitely like to thank Joshua Wright, 171 00:09:48,660 --> 00:09:50,940 Dragorn for writing the LORCON tools. 172 00:09:51,380 --> 00:09:54,020 They rock for helping people write these kind of tools. 173 00:09:54,620 --> 00:09:57,560 There's an address for the current tarball that they have. 174 00:09:57,760 --> 00:10:00,480 I'd like to thank my advisor for actually letting me do this talk. 175 00:10:00,980 --> 00:10:03,220 And I'd like to thank a member of our lab, 176 00:10:03,360 --> 00:10:08,020 Kevin Bauer for compiling this thing on every Linux distro that I've ever heard of. 177 00:10:10,760 --> 00:10:11,880 Thank you very much. 178 00:10:18,060 --> 00:10:18,900 Any questions? 179 00:10:28,740 --> 00:10:33,160 Yes, there's actually a mode that isn't per se a frame type, 180 00:10:33,260 --> 00:10:34,900 but it's just what we call the junk mode. 181 00:10:35,160 --> 00:10:38,040 And in that mode, you can send it whatever random string you want. 182 00:10:42,260 --> 00:10:43,020 Yeah, totally. 183 00:10:43,120 --> 00:10:46,380 You can script this thing just to iterate through every possible value in that field. 184 00:10:51,360 --> 00:10:52,160 Johnny Cash. 185 00:10:52,680 --> 00:10:56,800 He's the one that released the wireless exploits for the OSX. 186 00:10:57,860 --> 00:10:59,200 Oh, excuse me, it's today. 187 00:11:00,560 --> 00:11:01,620 Okay, it must have gotten moved.