[00:01.980 --> 00:03.160] I hate you. [00:03.320 --> 00:03.880] Sit down. [00:03.980 --> 00:04.860] I hate you. [00:04.860 --> 00:05.680] Sit down. [00:09.940 --> 00:12.920] I asked the exile if he wanted me to give an introduction for him. He said, [00:12.920 --> 00:15.180] God knows, stay away from me, so here I am. [00:16.880 --> 00:19.420] Now I present to you a man who needs no introduction. [00:20.220 --> 00:21.360] I hate you. [00:24.080 --> 00:24.880] Alright. [00:25.500 --> 00:27.160] Appreciate you guys being patient. [00:27.160 --> 00:30.640] We had some minor technical difficulties as we set the recording stuff back up. [00:31.260 --> 00:33.580] The schedule was slightly off. [00:33.580 --> 00:37.100] This is a talk on, you know, getting into 802.11 hacking. [00:37.180 --> 00:39.940] This is the, hey, this always sounded so cool. [00:40.180 --> 00:41.940] I don't know where to start. [00:42.300 --> 00:43.940] I'm not going to teach you how to crack web. [00:43.940 --> 00:46.480] I'm not going to teach you WPA hacking or anything else like that. [00:46.480 --> 00:51.840] If you're familiar with Wi-Fi, I'm sorry, but you're going to be bored. [00:52.700 --> 00:58.060] That being said, if this sounds like a topic that's going to be interesting to you, awesome. [00:58.060 --> 01:01.980] You know, we'll run through a bunch of quick slides and then I'll sit here and field questions for you all day long. [01:01.980 --> 01:06.780] The goal of this being is that you'll walk out of here with enough knowledge to go get started, [01:06.780 --> 01:09.660] go out in the vendor area, go buy some gear, [01:09.660 --> 01:15.740] and learn from all of my mistakes and the hundreds of dollars that is sitting in a box in my office [01:15.740 --> 01:18.920] of stuff that I bought mistakenly and never used. [01:19.680 --> 01:23.600] So that being said, the first thing, when you're getting into wireless hacking, [01:24.060 --> 01:25.740] you need to know your chipset. [01:26.520 --> 01:28.240] Learn your chipset. [01:28.240 --> 01:32.780] There are all sorts of different radios. There are all sorts of different radio models. [01:33.060 --> 01:36.200] There are only so many wireless chipsets. [01:36.200 --> 01:42.220] And when you start asking for help, the first question out of just about anybody who knows what they're doing mouth is, [01:42.220 --> 01:43.820] what chipset are you using? [01:43.960 --> 01:47.700] I don't care what model number the card is, unless I ask for it, [01:47.700 --> 01:50.220] but generally I want to know what the chipset is. [01:50.320 --> 01:53.520] Atheros, great, wonderful, wonderful chipsets. [01:53.520 --> 01:55.400] Rawlink, they're pretty decent. [01:55.720 --> 01:58.280] Realtek, eh, depends on the model. [01:59.240 --> 02:01.280] You can see how I feel about Broadcom. [02:02.080 --> 02:03.800] And then of course you have Intel. [02:03.960 --> 02:06.640] The Intels are fine, they're baked into most of our computers. [02:06.640 --> 02:13.400] Most of the time you will have the ability to do monitor mode, but not necessarily injection. [02:14.000 --> 02:16.900] I don't quite remember if I have a slide on that or not, but I'll get into that. [02:17.740 --> 02:23.320] When buying hardware, bigger is not always better. [02:23.700 --> 02:28.860] It is wonderful to walk into the vendor area and they have, you know, the little 2 decibel antenna, [02:28.860 --> 02:31.300] and they have the huge 9 decibel antenna. [02:31.300 --> 02:33.580] Well, 9 is bigger than 2, 9 must be better. [02:33.680 --> 02:36.220] No. Bigger is not better. [02:36.720 --> 02:40.640] What happens when you do that, and we'll do a quick antenna theory, [02:40.640 --> 02:45.480] but if you basically picture a sphere, that's the signal coming off of your antenna. [02:45.480 --> 02:50.300] When you take it from 2 to 9, it's the equivalent of taking that sphere and crushing it. [02:50.640 --> 02:54.980] It stretches way out on the sides, but it means you lose everything up here and everything down here. [02:55.420 --> 02:58.520] So you want to make sure you're using the right tool for the right job. [02:58.880 --> 03:03.520] Don't run out, don't go buying a whole bunch of different antennas. You don't have to. [03:07.840 --> 03:11.020] You really just need a 5 decibel Omni. [03:11.940 --> 03:16.660] They're about yay big. They come in a little rubber duck form. You can pick them up for a couple of bucks. [03:16.860 --> 03:20.540] Heck, some of the radios come with them. The Alpha's used to you for the longest time. [03:20.540 --> 03:23.060] I haven't bought hardware in a while, so I'm not sure if they still do. [03:24.100 --> 03:28.060] Mini panel, you know, your little directional panels, those are useful for DFing, [03:28.060 --> 03:31.020] or if you know the direction of the access point you want to mess with, [03:31.020 --> 03:34.140] or if you're playing in RCTF and you want to drown out one of the other teams. [03:35.020 --> 03:36.300] Very, very useful for that. [03:36.300 --> 03:42.540] If you want to buy your first wireless cart, I'm pretty sure they're still for sale over there. [03:42.540 --> 03:46.860] Simple Wi-Fi has been helping us out. They sponsor us. They're wonderful. [03:47.120 --> 03:51.800] Go talk to him. See if he's got an Alpha 36NHA. [03:52.380 --> 03:58.260] Do not buy the R. The R leads to much sadness. [03:59.020 --> 04:01.460] Both will work, sort of. [04:01.740 --> 04:05.660] The R will just lead to miserable injection rates. You don't want it. [04:05.660 --> 04:10.060] You want the A1. It uses an atheros chipset. It's a better chipset. Go buy the A. [04:10.740 --> 04:15.320] If you can't, just save yourself the trouble. Save yourself the money. Don't buy the R. [04:15.320 --> 04:16.520] Order the A online. [04:17.580 --> 04:23.340] The Rookland N3 cards, which apparently... hang on a second here. [04:23.340 --> 04:24.900] I'll actually show you what those look like. [04:44.850 --> 04:48.510] So after years of doing this, you end up with a bag kind of like this. [04:48.510 --> 04:54.330] And in this bag is full of just about everything you could ever want. [04:56.250 --> 04:59.230] Here's your Alpha cards, for those of you who are out there looking. [04:59.230 --> 05:02.590] There are many different versions of Alpha cards. This one is typically a... [05:02.590 --> 05:06.930] This is an ABGN one. Model number is 50NH. [05:06.930 --> 05:10.090] Great card. They're relatively cheap. They work. [05:10.790 --> 05:15.510] The N3 cards. These are one of my particular favorites. I've got tons of these things. They're relatively cheap. [05:15.510 --> 05:19.510] 30, 40 bucks. They do, um... [05:20.290 --> 05:21.410] BGN, I believe? [05:22.850 --> 05:27.290] You find that you can never find one wireless card that is going to do everything you want. [05:27.510 --> 05:28.730] You end up with a bunch. [05:29.450 --> 05:34.030] One is going to be really good at A injection and it's going to have abysmal BG support. [05:34.030 --> 05:37.870] One of them is going to be really good for 802.11N. One is going to be really good for 802.11G. [05:37.990 --> 05:40.850] You mix and match. You talk to the guys who have been doing it for a while. [05:40.850 --> 05:46.750] We'll help you write model numbers down and, you know, help you learn from our mistakes and what works well and what doesn't. [05:46.750 --> 05:50.630] You hang out in the IRC channels long enough, you'll get an idea of the new stuff that's coming out. [05:51.970 --> 05:55.010] Um... 5 decibels. Just talking about the antennas. [05:55.010 --> 05:58.790] Looks kind of like that. Versus your little 2.2 cheap rubber ducks. [06:00.950 --> 06:02.830] Other than that, uh... [06:02.830 --> 06:07.730] TP links. We're actually running... These things are wonderful. [06:07.730 --> 06:11.470] We're running the entire CTF, well, most of it anyways, off of these. [06:11.950 --> 06:17.230] They're, what, 15, 20 bucks on Amazon? These things are so cheap, they're throwaway. [06:17.930 --> 06:20.610] And I used to have a whole bunch. I'm down to, like, one now. [06:20.610 --> 06:23.250] Because I ended up giving them all away because they're just that cheap. [06:23.270 --> 06:27.110] These are, uh... BGN? BGN. [06:27.410 --> 06:32.630] Really cheap. They won't get in the 5 gigahertz A bands, but they're so cheap and so useful. [06:32.630 --> 06:36.450] They just work. I'd highly recommend picking one of these up. You're not going to, you know, regret it. [06:37.490 --> 06:40.510] The Etamax cards, which... I don't have mine with me. [06:40.530 --> 06:44.690] These things are really old. They use the old RT73 chipset. [06:44.890 --> 06:49.310] They are wonderful because they have a ridiculously high injection rate. [06:49.410 --> 06:53.870] Which means I can spit packets into the air really, really, really, really quickly. [06:53.930 --> 06:57.110] They're kind of hard to come by these days. If you can find one, seriously, pick it up. [06:57.110 --> 07:01.770] They're wonderful, but I just kind of put it in there for a, you know, oldie but goodie. [07:01.770 --> 07:03.290] Kind of a historical thing. [07:03.970 --> 07:06.450] You get a little nugget of gold if you can find one. [07:07.550 --> 07:12.740] So mistakes. You can see how I feel. [07:16.660 --> 07:18.660] You want to start off more than [07:18.660 --> 07:22.060] anything else by knowing your terms. [07:23.060 --> 07:26.480] If you don't know the terms and you don't know the terminology, you can ask [07:26.480 --> 07:30.680] questions and I'll sit here and I'll start rattling stuff off and you're going to be clueless. [07:31.580 --> 07:33.280] Sorry, I'm not talking to this mic, am I? [07:33.280 --> 07:36.900] Um, there are a couple of things that you're going to want to know. [07:36.900 --> 07:41.360] You want to know what a MAC address is. MAC address is just simply what that is. [07:41.360 --> 07:45.380] It's the MAC address of the wireless or, uh, card. Most of them have them written on the [07:45.380 --> 07:49.360] back. These devices talk at layer 2, so when you're looking at them via [07:49.360 --> 07:53.480] packets and, you know, through Wireshark or Arrowdump or any of the Aircrack [07:53.480 --> 07:57.220] stuff, you're going to be using a MAC address to either address the access [07:57.220 --> 08:01.440] points you want or determine who you want to attack or anything else along those lines. [08:02.460 --> 08:04.860] BSSID. BSSID [08:05.360 --> 08:09.620] is the MAC address of the access point. So you have a [08:09.620 --> 08:14.580] client MAC, it talks to the BSSID, pretty simple. [08:14.580 --> 08:18.040] ESSID. That's your human readable. That's the part [08:18.040 --> 08:21.840] that says, you know, this is Joe Schmoe's wireless network. It's the part that's broadcast [08:21.840 --> 08:27.260] out in the clear. You can have one ESSID that covers [08:27.260 --> 08:29.360] multiple BSSIDs. So that's when you've got, you know, multiple [08:29.360 --> 08:32.220] access points. If you look at my house, I think I've got like 5. [08:33.540 --> 08:37.560] You've got your ESS, which stands for an extended service set area. [08:37.560 --> 08:41.400] That's where, that essentially describes when you have one name across multiple [08:41.400 --> 08:45.540] access points. A BSS, or a basic service set, [08:45.540 --> 08:49.020] is simply just an access point and a client [08:49.020 --> 08:53.600] happily talking to each other. I've compiled a much, much, [08:53.600 --> 08:57.680] much longer list of terms. I've done training for various groups, [08:57.680 --> 09:01.600] military, things along those lines. I usually do it as a handout. Trying to do printouts and [09:01.600 --> 09:05.360] handing it out to everybody, I apologize, is too difficult. I've gone ahead and I've put it up [09:05.360 --> 09:09.600] on the Defcon Wireless page. You can pull it down, either directly [09:09.600 --> 09:13.680] via that link, or, if you can't remember that, go find me on the [09:13.680 --> 09:17.320] staff page. I got saddled with a ridiculous picture of a My Little Pony. [09:17.480 --> 09:21.560] Bastards. Go through, right down at the end of that, [09:21.560 --> 09:24.820] you can click on the link. It'll take you right to it. You can download it. It talks about [09:25.360 --> 09:28.240] antenna azimuth elevation. It gets into [09:28.720 --> 09:32.860] just about everything you could probably want to know with a short little description, and enough that you can go out and learn [09:32.860 --> 09:36.840] more. I've found that students have been really, really happy with it, and it [09:36.840 --> 09:40.800] ends up being a really nice reference for them. The next [09:40.800 --> 09:44.960] thing that people really, really make mistakes on, and I can stand up here and say [09:44.960 --> 09:48.880] it kicked my ass for years, is interfaces. It's just [09:48.880 --> 09:52.740] an interface, right? I plug it into my computer, I get the little ETH0, or I get [09:52.740 --> 09:56.380] WN0, or now because the Udev guys are assholes, [09:56.380 --> 10:00.280] I get WL3PQZR whatever the hell, [10:00.280 --> 10:03.340] because they can't come up with the same naming scheme. [10:04.200 --> 10:06.540] It's a little bit more complicated than that. [10:07.980 --> 10:12.120] You have the PHY, which is actually the physical radio device. [10:12.440 --> 10:16.880] It's what the driver interacts with. On top of that is a [10:16.880 --> 10:19.560] virtual interface. This is known as a VIF. [10:22.000 --> 10:24.200] When you plug your radio in, [10:24.200 --> 10:27.720] it creates PHY0 or PHY1 or however many radios you have [10:27.720 --> 10:31.640] and then it settles a VIF name on top of that. You actually interact with the VIF. The VIF is [10:32.540 --> 10:35.540] WLAN0, WLAN1, things like that. When you put devices [10:35.540 --> 10:39.620] into monitor mode... just a show of hands, how many people know what I'm talking about [10:39.620 --> 10:43.180] when I say monitor mode? Alright, so about half the room. [10:43.960 --> 10:47.580] Apologize, I'll do a quick short for the rest of the folks. So, you got three states [10:47.580 --> 10:51.060] to a wireless card. Well, in what you care about, but [10:51.560 --> 10:55.660] you have managed, i.e. I'm gonna connect up to my access point [10:55.660 --> 10:58.960] I'm gonna use my access point and I'm gonna surf the internet. [10:59.500 --> 11:03.800] You've got monitor mode. Monitor mode means I can no longer use it to surf the internet [11:03.800 --> 11:07.620] but I'm going to strip all of the filters away and I'm going to suck [11:07.620 --> 11:11.920] every single packet in and I can save it, I can do whatever I need to. [11:12.000 --> 11:15.620] Monitor mode is how we listen. It's how we see what's going on, it's how we see the [11:15.620 --> 11:19.940] management frame packets, it's how we start doing all the really fun stuff. [11:20.000 --> 11:23.540] The third state, which is just kind of an expansion onto [11:23.540 --> 11:28.340] monitor mode, is injection. Monitor mode is passive. [11:28.340 --> 11:31.840] I can only listen. Injection gives me ability to raw send packets [11:31.840 --> 11:35.980] into the air. When you're using most of your attack tools, you're using injection mode. [11:36.260 --> 11:39.560] Injection mode is simply an extension onto monitor mode. [11:39.560 --> 11:43.680] The reason why I consider it a third quote unquote state is simply [11:43.680 --> 11:48.140] just because not every card has it. It has to be implemented in the driver. [11:48.140 --> 11:51.520] It's gotten a lot better with the Mac 802.11 drivers and centralized [11:51.520 --> 11:55.360] stuff in the kernel, but it still happens from time to time. [11:57.750 --> 12:00.870] There is a, well, there is a fourth one. [12:01.470 --> 12:05.710] You got your master mode, which doesn't really exist so much anymore. [12:06.310 --> 12:09.110] Most of that's all handled by host APD, which [12:09.110 --> 12:12.950] handles it all in software now. That's your access point mode. [12:12.950 --> 12:16.730] And that's where, you know, I take this and I hook it up and I want to do a rogue AP like last year [12:16.730 --> 12:20.650] when we messed up DefCon Secure WiFi and proceeded to become them [12:20.650 --> 12:24.610] for most of the con. We were doing it in host AP monitor, er, [12:24.610 --> 12:28.530] AP mode. The number one mistake that you can make [12:28.530 --> 12:33.450] on doing any of this though, and even though the fact I've been doing this for years, [12:33.450 --> 12:36.670] I still continuously make this mistake. [12:37.750 --> 12:40.950] Put down the interface. For the love of [12:40.950 --> 12:44.890] God, put down your interface. When you plug your card in [12:44.890 --> 12:48.970] to your laptop, depending on how your OS is configured, it very [12:48.970 --> 12:53.550] well may automatically say, hey, I've got a new interface and bring it up. Great. [12:53.570 --> 12:56.830] The problem is when you do that, the managed [12:56.830 --> 13:00.790] portion of the driver takes over and if you then set up another VIF [13:00.790 --> 13:05.090] in monitor mode, suddenly you get these really weird errors that are really [13:05.090 --> 13:08.910] ambiguous and you can't change the channel. And none of your tools work. [13:08.910 --> 13:13.130] And you don't know why. And I can admit that there were certain changes [13:13.130 --> 13:16.690] done to the driver and it took me the better part of a month to figure out why everything I was doing [13:16.690 --> 13:21.010] broke. It was not fun. What you [13:21.010 --> 13:24.730] need to do, anytime you're doing anything, is when you plug it in [13:25.490 --> 13:28.910] and that interface comes up for the first time, before you put it in monitor mode, [13:28.910 --> 13:32.750] before you do anything, ifconfig your interface [13:32.750 --> 13:36.990] down. That relinquishes control of the card and [13:36.990 --> 13:40.890] it means when you put it in monitor mode and you bring that monitor mode virtual interface up, [13:40.890 --> 13:45.450] you have control of the channels. No channel hopping, no bueno. [13:45.890 --> 13:47.310] It's not any fun. [13:51.320 --> 13:53.520] So, radio basics. [13:53.700 --> 13:59.340] In the US, [13:59.340 --> 14:06.010] we've got 11 channels. Wait, what? [14:06.770 --> 14:10.070] Oh, you mean, how do you do this in Windows? It's really cool. You go out to the [14:10.070 --> 14:13.990] internet, you download this thing called Pentoo and you boot the live CD. [14:15.010 --> 14:19.110] Sorry. In theory, [14:19.110 --> 14:22.530] and I emphasize theory, [14:22.530 --> 14:25.990] you can do wireless hacking on Windows. [14:26.970 --> 14:30.530] Don't. Unless you really, really, really hate yourself. [14:31.450 --> 14:34.130] In fact, no, no, no. This is where you punch [14:34.130 --> 14:37.810] yourself in the face a bunch of times and go sit in a corner banging your head against the wall for an hour [14:37.810 --> 14:41.910] before you even consider it. That we're talking that level of hate. You can go [14:41.910 --> 14:45.810] buy commercial software where they've got custom drivers that will do it from a monitor [14:45.810 --> 14:49.790] mode. I don't think they really have injection. There are old [14:49.790 --> 14:53.830] ports of Aircrack for Windows. Don't try it. We don't [14:53.830 --> 14:57.910] support it. Everybody's going to laugh at you. Go buy a live [14:57.910 --> 15:02.030] CD and you got it a lot easier when I started because when I started, everything was [15:02.030 --> 15:04.990] PCI Express. Yeah. [15:05.670 --> 15:09.010] Now you got USB. I can pass these into VMs. I can attach [15:09.010 --> 15:12.830] them to a laptop all day long. They work on my desktop. They work on my laptop. They're [15:12.830 --> 15:16.930] wonderful. There's absolutely no reason to try [15:16.930 --> 15:20.990] to do anything on Windows. Go grab a live CD. You can do it with Backtrack. [15:20.990 --> 15:24.390] You can do it with the Kali stuff. You can do it with Pentoo, which is my personal favorite. [15:24.710 --> 15:28.970] You can go build your own system. Heck, if you really want to be sick in the head and try to make everything compile [15:28.970 --> 15:33.390] on Ubuntu, you can do it there too. Um, but that being said, [15:33.390 --> 15:37.410] back to the radio basics. 2.4 gigahertz. You got two different [15:37.410 --> 15:41.070] frequencies. 2.4 and 5. [15:41.310 --> 15:44.370] In 2.4 gigahertz, there are 14 channels total. [15:45.150 --> 15:49.490] Most of them overlap. There are 11 channels that you are legally allowed to use in the [15:49.490 --> 15:53.470] United States. Technically, you could go into 12 and 13 if you really wanted [15:53.470 --> 15:56.710] to, but because of overlap, it causes issues. [15:57.270 --> 16:01.490] I'll actually show you what that looks like here in a minute. Um, the problem [16:01.490 --> 16:05.750] with 2.4 is you've only got three non-overlapping channels. You got 1, [16:05.750 --> 16:09.570] you got 6, and you got 11. Otherwise, you actually are bleeding [16:09.570 --> 16:13.550] over onto each one of the channels. Which makes it interesting when you're, you know, looking at your [16:13.550 --> 16:17.570] tools and it's like, well I set my card to channel 6, why am I seeing access points on [16:17.570 --> 16:21.350] channel 8, 9, and, you know, 4 and 5? [16:21.710 --> 16:24.970] What that, what gives? It's because of the bleed over. [16:25.830 --> 16:29.670] Um, 5 gigahertz, you got 41 channels, 21 you're allowed to use [16:29.670 --> 16:34.190] in the United States. Because of the spacing, they don't bleed over. [16:34.610 --> 16:37.630] So, it's a little bit easier to use. This is why I always recommend running [16:37.630 --> 16:41.830] 802.11n in 5 gigahertz because trying to do it in 2.4 is just a [16:41.830 --> 16:47.330] little sadistic, if you ask me. It's just not going to work well. [16:47.330 --> 16:50.750] Um, here's what the overlap looks like. [16:50.750 --> 16:53.130] So, you see, [16:53.550 --> 16:58.270] you got 1, you have 6, and we have 11. [16:58.270 --> 17:01.250] Other than that, everybody else is kind of overlapping. [17:02.150 --> 17:07.190] So, they've actually found, after much searching around and everything, there is a [17:07.190 --> 17:10.250] order to best hop through all the channels. Most of the tools already have it all figured out [17:10.250 --> 17:14.410] to do it in the most efficient manner. So, you can cover the vast majority [17:14.410 --> 17:18.450] of the space most of the time when you're listening with a single radio. If you want to throw [17:18.450 --> 17:22.970] in 2 or 3, you can cover most of it all the time. [17:22.970 --> 17:26.430] Or if you really want to be mean, you could, I guess, hook up 11 radios and sniff everything [17:26.430 --> 17:30.270] all at once. 14 is kind of off by itself. It gets used in Japan. [17:31.210 --> 17:33.830] Um, if you're using Linux, [17:34.790 --> 17:38.430] it is possible to override the country codes and [17:38.430 --> 17:41.850] put an access point up on channel 14. [17:42.930 --> 17:45.350] I don't know why anybody would ever want to do that. [17:46.410 --> 17:48.710] But, yeah, you can totally do that. [17:50.050 --> 17:54.550] Any questions at this point? So, either I'm boring the hell [17:54.550 --> 17:57.310] out of you guys, or I'm doing really well and I'm not quite sure which. [17:58.270 --> 18:01.250] Yeah, shut up. Alright, great. [18:02.870 --> 18:04.370] Let's talk about tools. [18:06.130 --> 18:10.730] Exactly. I am a massive tool. Or if you speak to my wonderful [18:10.730 --> 18:13.830] girlfriend who's over there in the corner, I'm also an asshole. But that's a whole other story. [18:14.910 --> 18:21.150] Um, so, there are certain staples. [18:21.790 --> 18:23.550] Which, is Thomas still around? [18:25.170 --> 18:27.330] There's a guy running around here with a camera. He looks like [18:27.690 --> 18:31.730] a small skinny Jesus. Um, yeah, he wandered around. [18:31.730 --> 18:34.910] He'll be back. If you see him, you go and you thank him [18:35.470 --> 18:39.010] and you shake his hand and you offer to buy him whatever drink he wants. [18:39.270 --> 18:43.450] The man is wonderful. He's the guy who sat down and who put the Aircrack NG [18:43.450 --> 18:47.690] suite together. He's great. Sadly, I don't have a picture [18:47.690 --> 18:51.770] of him. One of these days I'll get it in the slide deck. But, within that suite, [18:51.770 --> 18:55.070] if you want to sniff Wi-Fi, you got Aerodump NG. [18:55.510 --> 19:00.170] Just, you know, basic, no name tool, or simple tool. You can write out to PCAPS, [19:00.170 --> 19:03.570] you can save things, you can view the access points, you can view what the clients are doing, who they're [19:03.570 --> 19:07.750] probing for. It's N-curses interface, which means that it's just on the command [19:07.750 --> 19:11.450] line. Um, [19:11.450 --> 19:15.790] just a nice, simple, go-to tool. I usually will fire it up real quick to get an idea [19:15.790 --> 19:19.610] of what I'm looking at in the area, what's going on. And then, you know, say, okay, [19:19.610 --> 19:23.570] I want to attack this guy, and then I'll give you something else. There's also [19:23.570 --> 19:27.630] tools in there to crack WEP. I'm sure at some point, all of you will be [19:27.630 --> 19:31.610] trying to crack WEP. It is the best place to start. It is the easiest place to start. [19:31.750 --> 19:35.230] I highly recommend you take an old access point, you set it up, [19:35.230 --> 19:38.210] and you attack that. Leave your neighbors alone. [19:39.710 --> 19:43.730] I'm dead serious. Leave your neighbors alone. Um, although, it's actually [19:43.730 --> 19:47.450] getting harder and harder to do that, because most people have finally gotten rid of WEP. But, [19:47.450 --> 19:50.790] that being said, if you're asking for help in the IRC channels, you go, hey, I'm trying to hack my [19:50.790 --> 19:54.930] neighbor's access point, we're just going to kick you out. We, we don't condone it. [19:55.090 --> 19:59.310] We don't help with it. Just be intelligent. Go attack your own stuff. Um, [19:59.310 --> 20:03.430] you can crack WPA as well. You learn all about the four byte handshake, which [20:03.430 --> 20:07.210] you can, er, four packet handshake, which you can capture there or don't. Um, [20:07.210 --> 20:11.090] you can manage interfaces. There are two ways of doing this. There's airmon-ng. [20:11.310 --> 20:14.250] Don't use this anymore. In fact, Rick? [20:16.970 --> 20:17.970] Hey. [20:19.910 --> 20:22.670] Marina. The tool. [20:24.250 --> 20:27.670] How long until you replace ng with zc? [20:34.430 --> 20:37.130] So, you know, six months. Um, [20:37.130 --> 20:40.950] gentleman back in the corner who I was just yelling at, took the time [20:40.950 --> 20:44.930] to sit down and fix airmon-ng, which uses the old way, [20:44.930 --> 20:48.970] and the old style of drivers to do things, and created airmon-zc, [20:48.970 --> 20:53.110] which stands for zero chaos, or as I prefer to call them, zero tool. Um, [20:54.750 --> 20:57.250] highly, highly recommend airmon-zc. [20:57.410 --> 21:00.950] It will allow you to put your cards into monitor mode. It will allow you [21:00.950 --> 21:04.990] to take your cards safely out of monitor mode. It'll allow you to destroy interfaces, [21:04.990 --> 21:08.950] start them up. It's a really, really easy way to put your card in and out of monitor [21:08.950 --> 21:12.970] mode. There are other ways to do it. It's a command about this long with frickin [21:12.970 --> 21:17.070] iw, and it's painful, and I don't like typing it. Versus airmon-zc [21:17.070 --> 21:21.190] start and my interface name. Done. Nice, simple, [21:21.190 --> 21:24.910] and easy. Sadly, my slides are slightly out of date. You'll notice I'm [21:24.910 --> 21:29.190] referencing wlan0. If you guys grab a modern Linux distribution [21:29.190 --> 21:33.070] these days, because once again, I hate you dev guys, they [21:33.070 --> 21:37.110] have decided to rename all of the interfaces based on how they are plugged [21:37.110 --> 21:41.570] in. So if it's a USB, it'll be like w and then [21:42.050 --> 21:45.270] u something or other, and the entire PCI bus [21:45.270 --> 21:49.550] that it's on. It makes sort of sense when they explain it. [21:49.710 --> 21:53.310] Typing it gets really, really, really tiresome. There are ways to turn it off and get [21:53.310 --> 21:57.350] it back to the old, you know, just give me wlan0. So do not [21:57.350 --> 22:01.430] be surprised if you type ifconfig and you go, well, I don't have wlan0 [22:01.430 --> 22:05.390] or 1 or 5 or whatever the heck. Actually, if you type [22:05.390 --> 22:09.290] airmon-zc with no commands, it'll show you just your wireless interfaces. Which is a great way of [22:09.290 --> 22:13.270] finding them if you're lost. For sniffing traffic, [22:14.530 --> 22:17.730] Wireshark. Put your card in monitor mode, [22:17.730 --> 22:21.350] use Wireshark. I love it. I cannot tell you [22:21.350 --> 22:25.290] enough when I'm doing research how often I go to Wireshark. [22:25.290 --> 22:29.170] For two reasons. One, it's great for filtering packets, and two, [22:29.170 --> 22:33.550] because their knowledge of protocols is fantastic. [22:33.950 --> 22:37.350] So when I'm sitting down and working on things and I'm trying to break something down and figure out [22:37.350 --> 22:41.370] how it all works, it's wonderful to be able to sit down, look at the packet, I want to [22:41.370 --> 22:44.990] look at this bit, I want to look at this bit, I want to see how it's constructed and hexed. [22:45.930 --> 22:48.770] Fantastic. Cannot state this enough. You can [22:49.310 --> 22:53.590] use all the other tools you want, but at the end of the day, if something's not working right, or [22:54.170 --> 22:57.530] you don't know where to start, or you can't [22:57.530 --> 23:01.890] find a tool to do what you want, start poking around at Wireshark. You'd be amazed what you'd find. [23:02.050 --> 23:05.730] For example, did anybody know that Cisco access points, [23:05.730 --> 23:09.790] even when they're encrypted, will broadcast their host name and the number of clients attached to them? [23:10.310 --> 23:13.670] Yeah. None of the tools show this, but it's [23:13.670 --> 23:16.990] totally there. Cisco CCX extensions. [23:17.650 --> 23:21.530] You find this, look at stuff in Wireshark. It's just kind of one of those things I stumbled across and went [23:21.530 --> 23:23.290] huh, interesting. [23:25.410 --> 23:29.890] The other fun thing you can do with Wireshark, you can live decrypt, well, [23:29.890 --> 23:33.830] you have to have the key, but you go into the little tools config, you hand it the [23:33.830 --> 23:37.770] key, and boom, it just auto decrypts all the packets for you. [23:37.770 --> 23:41.570] It's really handy. You can do the same thing with WPA. [23:42.570 --> 23:45.890] That being said, you still gotta have the pre-shared key [23:45.890 --> 23:49.890] and you gotta have the network name, but it will, if it has the four packet handshakes, [23:49.890 --> 23:53.830] it'll actually decrypt all of the traffic for you. Which is awesome [23:53.830 --> 23:57.930] when you're in the coffee shop and they sort of hand that all out to you [23:57.930 --> 24:01.850] and, you know, you watch people join and, you know, suddenly that security that they think [24:01.850 --> 24:05.550] they have is completely non-existent and you're not even using a hacking tool. [24:05.550 --> 24:09.510] It's Wireshark. So, yeah, just kind of one of those fun things [24:09.510 --> 24:12.890] you can start off with, get the idea behind it. [24:13.450 --> 24:17.690] Like I said, I love it. I cannot do any of the research I do without it. [24:17.730 --> 24:19.710] I don't know what I would do if it broke. [24:20.850 --> 24:23.810] Another favorite tool. Kismet. [24:25.550 --> 24:29.550] So, the guy who writes Kismet, Dragorner, I believe [24:29.550 --> 24:33.890] he's wandering around the con. If you see him, thank him. [24:33.890 --> 24:38.010] Buy him alcohol, buy him drinks. Oh, is he? Okay. [24:38.070 --> 24:42.410] He's at the Blackphone booth. He's actually doing all sorts of cool things with them. [24:43.110 --> 24:46.410] Seriously, I cannot state how awesome Kismet is [24:46.410 --> 24:50.310] for wardriving and sniffing packets and seeing what's going on. [24:50.310 --> 24:52.950] I don't think he's ever really made any money for it. [24:53.350 --> 24:56.890] He's just the most quiet, nicest guy in the world [24:56.890 --> 25:01.530] and nobody knows he exists. That's what he looks like. [25:01.530 --> 25:05.510] Go say hello, go say thank you. He's fantastic. [25:07.930 --> 25:09.970] So, getting help when you're really screwed. [25:11.890 --> 25:13.530] Although, I don't know if any of you guys have heard [25:13.530 --> 25:17.850] they actually got this thing reafloat and finally got it down for, uh, scrappage. [25:19.170 --> 25:21.550] Um, there are certain [25:21.550 --> 25:24.010] places you can go to get... help. [25:27.420 --> 25:31.540] And I didn't do this in the order that I strongly, strongly suggest you go. [25:32.160 --> 25:35.660] Go look at wikis. Those of us who know what we're doing [25:35.660 --> 25:39.340] and we sit down and rewrite the wikis, we don't do it because it's fun. [25:39.480 --> 25:43.760] We do it because we get tired of getting asked the same questions over and over and over [25:43.760 --> 25:48.340] and over again. We don't mean to be mean. It's just really annoying and really tiresome. [25:49.760 --> 25:51.700] Forums. Once again, great place. [25:51.700 --> 25:55.860] You'll find people's little shortcut scripts. You'll find instructions. Nine times out of ten [25:55.860 --> 25:59.760] you find somebody else who's got the same problem you do. You take the little error message you have [25:59.760 --> 26:04.460] you throw it into Google, you search, bada bing bada boom, you're bound to get some support. [26:04.900 --> 26:07.500] Um, Google. Seriously. [26:08.020 --> 26:11.500] Try putting in what you're doing. There are all sorts of blogs [26:11.500 --> 26:16.060] there are all sorts of forum posts, there are all sorts of wikis that will turn up. [26:16.060 --> 26:19.220] Go out and look in Google. If you can't get help [26:20.380 --> 26:22.820] that's when you start going to the IRC channels. [26:23.760 --> 26:28.000] Couple of channels. Pentoo, Kismet, AircrackNG [26:28.000 --> 26:32.080] I hang out there, Rick hangs out there, several of the other guys hang [26:32.080 --> 26:36.140] out there. We're not there all the time. A lot of us will idle in there [26:36.140 --> 26:40.000] so you'll see our names. That does not mean we are there. We will attempt [26:40.000 --> 26:42.580] to help. Provided [26:43.600 --> 26:48.140] you stay on topic. If I can get my thing to work here. [26:52.420 --> 26:54.840] And this, and I'm sorry, I don't mean to be mean [26:54.840 --> 26:58.400] and I don't mean to be insulting, but sadly we've found [26:58.400 --> 27:01.760] that we have to cover how to ask questions on IRC. [27:03.120 --> 27:06.800] Please do not start with, can I ask a question? [27:06.800 --> 27:10.340] You already did. Don't tell us it's broken. [27:10.420 --> 27:14.060] Telling me it doesn't work is wasting my time, it's wasting your time [27:14.060 --> 27:18.120] and it's not getting us any closer to solving your issue. [27:18.200 --> 27:22.960] 9 times out of 10 it's working just fine for everybody else. Give me an error message. [27:24.080 --> 27:26.980] We're not assholes. Except for Zero. [27:26.980 --> 27:31.900] He will stand up and tell you he's an asshole. He's ignoring me right now. [27:33.520 --> 27:34.960] Don't paste massive error [27:34.960 --> 27:38.880] messages into the channel. That is the fastest and quickest way to annoy [27:38.880 --> 27:42.300] everybody in the channel and make everybody want to kick you out. [27:42.960 --> 27:46.840] Three line max. Short little blurb. If it's bigger than that [27:46.840 --> 27:50.560] go grab a pastebin. There's paste.ca, there's [27:50.560 --> 27:54.920] selexy, there's pastebin, there's a bazillion of them out there. [27:54.920 --> 27:58.380] Paste your error there, send us a link, [27:58.720 --> 28:02.620] people will probably try to help you respond. If we don't know, [28:02.620 --> 28:06.580] we may not respond. If we do know, [28:06.580 --> 28:10.720] we may not be online right away. There are channels [28:10.720 --> 28:14.620] to the IRC topics. Do not go into, say, [28:14.620 --> 28:18.880] the Kismet channel and start asking about Aircrack. You're not going to get help, [28:18.880 --> 28:23.340] you're just going to annoy the natives. Life will not be good for you. [28:24.060 --> 28:27.440] And if we do respond, we may tease you a little bit, [28:27.440 --> 28:31.220] we may ask if you've gone out and searched the web and done everything else that we usually [28:31.220 --> 28:35.340] tell people to go do, we'll probably give you a little bit of a hard time, but nine times out of ten [28:35.340 --> 28:38.740] we'll help you. That's how I met Rick, sadly. [28:38.920 --> 28:45.820] And everything went downhill from there. Maybe? [28:47.260 --> 28:49.880] There we go. Do we have any questions [28:49.880 --> 28:52.900] at this point? Yes? [28:55.440 --> 28:56.640] Next generation. [28:57.780 --> 29:00.800] Although at that point, god, that's probably a decade [29:00.800 --> 29:05.520] old at this point. So, there was an earlier Aircrack, [29:05.520 --> 29:08.820] I don't know what happened to it, the guy who originally wrote it, I don't think [29:08.820 --> 29:11.880] it's supported anymore, so when they redid it, they called it NG. [29:13.780 --> 29:14.780] Anybody else? [29:20.340 --> 29:21.140] So, [29:21.140 --> 29:24.580] he wants to know if there's any significant advantage to using one tool over the other. [29:25.040 --> 29:29.000] Actually, yes. It depends on what you're trying to do. [29:29.000 --> 29:32.980] So, for example, let's say I wanted to collect data for [29:34.360 --> 29:37.220] a WPA attack. And I want to, you know, have my [29:37.220 --> 29:41.020] four packet handshake. I got [29:41.020 --> 29:45.000] Wireshark that can do it, I've got Kismet that can do it, I've got [29:45.000 --> 29:48.980] Arrowdump that can do it. Which one's easiest? Well, I gotta [29:48.980 --> 29:53.160] write a config file usually to deal with Kismet, or Wireshark [29:53.160 --> 29:57.140] is, you know, you gotta handle your filters and everything else like that, I gotta save the PKF out [29:57.140 --> 30:00.940] and do it for another tool. Or I can do Arrowdump, which fires up, [30:00.940 --> 30:04.840] you tell it your interface, and it goes, hey, I caught a handshake. And it sticks it up right at the top [30:04.840 --> 30:08.940] and it says it has a handshake from this MAC address. So, yeah, you learn your tools, you learn [30:08.940 --> 30:13.300] which ones are better suited, which ones kinda take a little bit longer to set up, which ones don't. [30:13.300 --> 30:17.080] Sit down and play around. I've got my way of doing things, Justin's got his [30:17.080 --> 30:21.180] way of doing things, Rick has his way of doing things. He'll constantly tell you he's right and the rest of us [30:21.180 --> 30:25.180] are wrong. But yeah, there are subtle [30:25.180 --> 30:28.760] differences, there is overlap, it really just depends [30:28.760 --> 30:32.980] on what your personal preference is and what you're trying to do at that time. [30:38.140 --> 30:41.020] Okay, so I mentioned you go to wikis. Yes, [30:41.020 --> 30:45.420] Aircrack has all sorts of wikis, Kismet has all sorts of wikis, [30:45.420 --> 30:49.140] Wireshark has all sorts of wikis. Pick your tool, [30:49.140 --> 30:53.580] go to the download site, see if they got a wiki. There's not one in particular, [30:53.580 --> 30:57.660] the Backtrack guys put out a great wiki, I think Pentoo's got one on stuff. [30:57.900 --> 31:01.100] It's all over the place. Just search for wikis first, because that's [31:01.100 --> 31:05.620] usually your general knowledge base. If you hop into the IRC channel, we're gonna go tell you to look there first anyways. [31:08.600 --> 31:09.320] Genuinely. [31:10.120 --> 31:13.240] Some of the stuff I've written, if you get a hold of it, I'm sorry. [31:14.020 --> 31:17.020] You're lucky if you get to read me. But [31:17.020 --> 31:19.320] that's done on purpose for a whole lot of other reasons. [31:21.180 --> 31:24.500] You just did. There's always one. [31:28.130 --> 31:31.890] Is there any what? Sure. [31:32.350 --> 31:35.790] So, the reason why I personally prefer Pentoo is [31:35.790 --> 31:39.650] Farina started out as a wireless hacker, and so [31:39.650 --> 31:43.970] all of the shit that I like to use is pre-baked in. He makes sure all of the drivers [31:43.970 --> 31:47.890] works out of the box, and generally it tends to be a little bit more wireless [31:47.890 --> 31:51.950] focused than, say, general pen testing. It's a personal preference, but [31:51.950 --> 31:56.010] it tends to work pretty well. Other than [31:56.010 --> 32:00.230] that, yeah, the backtrack stuff works fine if you can get the drivers to play nice. [32:01.690 --> 32:04.010] It really just depends. After you [32:04.010 --> 32:07.930] start doing it for a little bit, inevitably you're gonna go roll your own OS, and [32:07.930 --> 32:11.750] personally I like Pentoo because I'm a Gentoo user, and so I just kind of pull down the packages that I want [32:11.750 --> 32:15.750] and I ignore the rest. Questions? [32:15.750 --> 32:22.030] How important is it to mask my MAC address? [32:23.150 --> 32:25.570] It depends. Am I doing anything [32:25.570 --> 32:29.670] that might, say, annoy law enforcement? Then [32:29.670 --> 32:33.830] yeah, obviously go ahead and mask your MAC address. It is quite possible to do it. [32:33.830 --> 32:37.670] So, all of these devices have a hardware-coded MAC address in them. [32:37.710 --> 32:41.610] You can change that in software, either via the IFConfig lines [32:41.610 --> 32:45.970] or the tools will do it, depending on the attacks when you need to, say, pretend to be somebody else. [32:46.870 --> 32:49.910] When I'm using an access point for general [32:49.910 --> 32:54.030] surfing, do I go out of my way to do it? No, because I'm not doing anything wrong. But yeah, [32:54.030 --> 32:55.310] you can totally do it. [32:58.110 --> 33:01.930] It's important when the attack that you're doing requires you to become [33:01.930 --> 33:06.170] somebody else. Other than that, for general hiding and purposes [33:06.170 --> 33:09.890] and things like that, I've actually had it cause me problems. So, at a certain [33:09.890 --> 33:14.450] point, I just look, you know, if I'm really that worried, I always throw the card out. [33:14.450 --> 33:18.490] God knows they're cheap these days. I have hardware at home that costs me [33:18.490 --> 33:22.610] $300 for one card. Most of this, I don't think I have $300 [33:22.610 --> 33:26.210] of hardware sitting on this table. So, [33:27.570 --> 33:30.270] these are wonderful. If you can get these for [33:30.270 --> 33:34.410] wardriving, this is a BU353 USB puck for [33:34.410 --> 33:37.590] GPS. It'll integrate with Kismet really, really nicely. [33:38.270 --> 33:42.410] They're like $35. I don't know if you'll find any in the vendor area, but you can [33:42.410 --> 33:46.790] pick them up off Amazon. Anything else? [33:52.160 --> 33:54.460] No, did not. That was actually the talk before [33:54.460 --> 33:58.340] me. However, I can, you know, give you a brief on that. So, the WiFi Pineapple is [33:58.340 --> 34:02.380] great. If you don't want to bother writing your own configuration [34:02.380 --> 34:06.680] files and you don't want to bother setting up all your radios and things like that, [34:06.680 --> 34:10.420] everything it does, I can do with a laptop and the pile of hardware sitting [34:10.420 --> 34:14.620] on this table and it will work just as well. That being said, [34:14.620 --> 34:18.660] I will also spend five hours getting it all to play nice. I will pull out what little hair I have [34:18.660 --> 34:22.560] left and will probably be drunk and angry at the end of it. WiFi [34:22.560 --> 34:26.660] Pineapple, you pull out of the box, you type in, and you're busy annoying the crap [34:26.660 --> 34:30.980] out of your neighbor in about five to ten minutes. So, you know, it's a [34:30.980 --> 34:34.840] time thing. You'll see a lot of the professional guys will start using it just because they [34:34.840 --> 34:47.730] know they can do it with their laptop. It's just easier. [34:47.730 --> 34:51.230] It's, yeah, it's a problem with the actual spec. Sadly, I've read [34:51.230 --> 34:54.750] far too much of it. However, [34:56.120 --> 34:59.720] to answer your question, yes. [35:00.700 --> 35:04.640] Apple devices, when they're talking to other Apple devices in particular, [35:04.640 --> 35:08.420] are particularly difficult to get to disconnect. And this is because [35:08.420 --> 35:12.760] Apple takes a very narrow, narrow, by-the-book [35:12.760 --> 35:16.500] approach to the spec. Which means that if my nasty [35:16.500 --> 35:20.440] packet is, say, one byte off because there's a bug in the tool or something else like that, they will [35:20.440 --> 35:24.060] happily ignore it. It will also try to, you know, pick [35:24.540 --> 35:28.760] Apple packets over other ones and they throw extra headers in there and things like that. [35:28.760 --> 35:32.580] So, have they actively done it? Yeah. [35:32.580 --> 35:36.460] I mean, you can get into, say, was it 802.11w? [35:36.740 --> 35:40.500] Which is out, and that's protected management frames, which is their attempt to fix [35:40.500 --> 35:43.120] the whole deauth attacks. They failed. [35:44.420 --> 35:48.160] If you really want to go down that route, I will be more than happy to explain to you all the little [35:48.160 --> 35:51.240] esoteric ways of them trying to do things and the way we keep breaking it [35:52.020 --> 35:56.080] outside of that. Because that's really kind of a dark and I'm gonna lose people and people will be [35:56.080 --> 36:00.180] bored and things like that. But, yes. To answer your question, there are [36:00.180 --> 36:03.440] some vendors who are trying to do things. They haven't succeeded. [36:04.700 --> 36:05.780] Anything else? [36:09.040 --> 36:13.400] In all honesty, I don't own one. Probably [36:13.400 --> 36:17.560] whatever the latest one is. Yeah. The 5.1 [36:17.560 --> 36:21.140] sounded like it had some unique new features. I actually considered going and getting one. [36:21.380 --> 36:25.480] Ah! Thomas, come here. If you folks [36:25.480 --> 36:29.500] remember me talking about Aircrack a few minutes ago and I said, you know, we're looking [36:29.500 --> 36:30.360] for Jesus. [36:35.340 --> 36:37.160] I wouldn't be doing this stuff [36:37.160 --> 36:41.600] if it wasn't for his work. And there are a lot of guys who can stand up here [36:41.600 --> 36:45.780] and say this. So, Thomas has been wonderful. He's the nicest guy in the world. [36:45.780 --> 36:49.380] Once again, he'll sit here and talk to you about wireless. Great guy. [36:50.360 --> 36:54.100] But, yeah. Hey! That'd be good. Questions? [36:54.920 --> 36:55.600] Good? [36:59.500 --> 37:02.120] Yes. So, you want to know if we've got the schedule? [37:02.120 --> 37:05.200] The schedule is on the website. It was not handed out. [37:05.580 --> 37:08.860] So, if you go to... what is it? Wireless Village [37:08.860 --> 37:12.620] Tech Defcon... or... [37:13.800 --> 37:16.120] WirelessVillage.Ninja? Is it a redirect? [37:16.400 --> 37:20.640] Okay. So, apparently we have an easier to remember. WirelessVillage.Ninja [37:20.640 --> 37:24.900] which will redirect you to our website. The full schedule is up on the website. [37:24.900 --> 37:27.800] We will have some more workshops. We will have some more talks. [37:28.220 --> 37:32.940] I seem to remember there being a particularly awesome couple of talks tomorrow. [37:33.020 --> 37:37.140] Michael Osmond with the HackRF. It will be up here. [37:37.140 --> 37:41.060] And he's another unicorn where the guy's just freaking awesome. [37:42.260 --> 37:44.960] Just absolutely brilliant. He loves to talk to you. [37:44.960 --> 37:48.360] He's very, very friendly. He's another one of those guys where we're not worthy. [37:49.880 --> 37:51.980] Really cool stuff. So, he'll be coming and giving a talk. [37:51.980 --> 37:57.280] But there's a whole slew of really cool stuff. People are coming to talk about way cooler than anything I'm doing. [38:01.880 --> 38:04.180] Yes. Osmond will be talking here tomorrow. [38:06.040 --> 38:08.160] I might actually have... [38:09.400 --> 38:11.380] Let's see here. Full schedule. [38:13.440 --> 38:15.380] Osmond will be up at...