1 00:00:00,000 --> 00:00:11,700 My talk doesn't start for eight minutes, but they've given me permission to tell you something outside my talk first, which I totally want to do, because there's something great that happened last week, and it was way too late to get it in my talk. 2 00:00:11,980 --> 00:00:14,020 So forget about this for eight minutes. 3 00:00:15,060 --> 00:00:16,020 We'll get back to that. 4 00:00:16,960 --> 00:00:21,200 What I want you to see is the link vulnerability. 5 00:00:21,420 --> 00:00:23,460 How many people know about the link shortcut vulnerability? 6 00:00:24,620 --> 00:00:26,540 Yeah, not even half of you. 7 00:00:26,920 --> 00:00:29,740 That means you guys can totally take over those guys. 8 00:00:30,000 --> 00:00:40,560 So on my website, samsclass.info, they had Wi-Fi on my airplane, so I got this working on the plane to another conference I just got back from, and we did it down there. 9 00:00:40,680 --> 00:00:43,600 This is awesome, and you don't need to know anything. 10 00:00:44,620 --> 00:00:47,960 So I wrote it up here, and I tried to get it in the speaker's corner, but I was too late to do it. 11 00:00:48,280 --> 00:00:55,400 So go to samsclass.info, and you can take over everybody around you and everybody in the whole blasted world right now. 12 00:00:55,480 --> 00:00:56,820 This is one of those rare times. 13 00:00:57,020 --> 00:00:58,400 So what's going on is... 14 00:00:58,860 --> 00:00:59,040 Okay. 15 00:01:01,560 --> 00:01:12,100 So Microsoft has a vulnerability that was found in their operating system so that link files, the routine that draws the picture on the screen, on the icon, has a bug in it. 16 00:01:12,300 --> 00:01:13,560 And I don't know exactly what it is. 17 00:01:13,620 --> 00:01:14,620 It's something like a buffer overflow. 18 00:01:14,900 --> 00:01:17,380 But anyway, you can put malicious binary in that file. 19 00:01:17,740 --> 00:01:21,440 So just viewing the file and seeing the icon means you're owned. 20 00:01:22,260 --> 00:01:25,460 So you can do it, and glorious HD Moore put it in Metasploit. 21 00:01:25,700 --> 00:01:27,500 So all you do is load up Metasploit. 22 00:01:27,720 --> 00:01:29,980 Issue the same old commands you always use in Metasploit. 23 00:01:30,000 --> 00:01:38,240 You tell it, use exploit, show payloads, choose a payload like reverse TCP Meta interpreter. 24 00:01:39,240 --> 00:01:41,920 And then your victim just... 25 00:01:41,920 --> 00:01:46,480 You have to trick your victim into going to a website, an Internet Explorer, or going to an SMB share. 26 00:01:47,020 --> 00:01:48,740 Because what you make is a malicious server. 27 00:01:48,900 --> 00:01:56,440 But if they go and view your server, the IE will pop to Windows Explorer, and they will see a window with these two files. 28 00:01:56,720 --> 00:01:59,680 And when this was originally found in the wild, it was traveling on USB sticks. 29 00:01:59,680 --> 00:02:01,600 And it was taking over power stations through SCADA. 30 00:02:02,140 --> 00:02:07,440 But the first step of that attack, which is a three-stage attack, was this one, which is awesome. 31 00:02:07,840 --> 00:02:14,260 So as soon as you see this shortcut, and the little picture appears, it's all over. 32 00:02:14,400 --> 00:02:15,100 You are owned. 33 00:02:15,300 --> 00:02:18,520 It has injected this DIL into memory and executed it. 34 00:02:18,580 --> 00:02:22,560 And if you're using Metasploit, it goes a phone back to you saying, please control me. 35 00:02:22,840 --> 00:02:24,640 And you control it, and you own that box. 36 00:02:24,860 --> 00:02:26,720 And that's what these instructions show you how to do. 37 00:02:27,640 --> 00:02:29,280 Metasploit looks like this when you're running it. 38 00:02:30,480 --> 00:02:36,420 Then when they connect, it does all this complicated stuff back and forth, sending more and more stuff over to the victim. 39 00:02:37,020 --> 00:02:40,860 And eventually, when it's done with all that hogwash, you get a session open. 40 00:02:41,740 --> 00:02:45,140 And then you just open the session, and you have a command prompt on that machine. 41 00:02:45,620 --> 00:02:47,840 And you can do whatever you want to it. 42 00:02:47,960 --> 00:02:50,620 I, of course, just go to the desktop and make a directory called owned. 43 00:02:51,920 --> 00:02:54,480 And your victim will just see directories start appearing on their desktop. 44 00:02:54,680 --> 00:02:55,140 It's wonderful. 45 00:02:55,740 --> 00:02:57,880 And there's nothing you can do about it. 46 00:02:57,960 --> 00:02:58,900 At least easy. 47 00:02:58,900 --> 00:03:00,240 There is no Microsoft patch. 48 00:03:00,720 --> 00:03:03,740 There are some things you can do, though, and that's, of course, the serious side of this. 49 00:03:03,920 --> 00:03:06,160 This is an awesome demonstration for students to get their attention. 50 00:03:06,360 --> 00:03:08,520 And it'll be homework for all my students next semester. 51 00:03:08,760 --> 00:03:13,800 But it'll be old and tired by then, like all my other homework, stuff that's been patched. 52 00:03:13,820 --> 00:03:16,000 So you have to get an old machine that's not patched, and then you can see it. 53 00:03:16,080 --> 00:03:17,640 But right now, you can do it to real living machines. 54 00:03:18,660 --> 00:03:20,840 And if they want to be patched, they have to go off the map. 55 00:03:21,080 --> 00:03:22,500 And you can use Sophos. 56 00:03:22,540 --> 00:03:24,340 Made a nice tool that will patch it. 57 00:03:24,720 --> 00:03:28,780 Microsoft Security Essentials apparently detects it because we tried it in the classroom. 58 00:03:28,780 --> 00:03:29,760 Two days ago in Orlando. 59 00:03:30,080 --> 00:03:33,000 And a guy with Microsoft Security Essentials, it popped up and saved him. 60 00:03:33,320 --> 00:03:33,820 So that's cool. 61 00:03:34,140 --> 00:03:39,500 So if you want to be safe, probably the most reasonable sane thing to do is put on Microsoft Security Essentials. 62 00:03:39,760 --> 00:03:43,700 I imagine the other antivirus products will eventually catch it, too. 63 00:03:43,800 --> 00:03:44,740 And maybe they already have. 64 00:03:45,040 --> 00:03:48,360 But anyway, there's a Microsoft workaround, but it stinks. 65 00:03:48,700 --> 00:03:52,020 You have to hack the registry, and you have to turn off the display of all icons. 66 00:03:52,420 --> 00:03:56,360 So all your icons look like dirt. 67 00:03:56,480 --> 00:03:57,440 So it's not much fun. 68 00:03:57,680 --> 00:03:58,080 Anyway. 69 00:03:58,780 --> 00:04:02,820 It's great for me that the previous speaker ended a bit early because I was thinking, I can't add this to my talk. 70 00:04:03,340 --> 00:04:04,020 And this is exciting. 71 00:04:04,180 --> 00:04:06,820 So you should all take over everybody around you at Windows, and then you can laugh. 72 00:04:07,000 --> 00:04:08,560 Because at DEF CON, you can do this stuff. 73 00:04:09,180 --> 00:04:15,220 And this is, as far as I know, it's not common that you have these living zero days with no patch. 74 00:04:15,520 --> 00:04:21,380 But it means that every server on the Internet running Windows and almost everybody running a Windows machine in here like me is probably vulnerable. 75 00:04:22,300 --> 00:04:23,640 As a matter of fact, I am vulnerable. 76 00:04:23,880 --> 00:04:25,480 I never got around to patching my own box. 77 00:04:26,360 --> 00:04:27,520 Which is commonly the case. 78 00:04:27,520 --> 00:04:28,960 Attacking boxes, you never patch them. 79 00:04:29,020 --> 00:04:29,740 I never run the firewall. 80 00:04:29,980 --> 00:04:31,620 I'm always getting all that junk out of my way. 81 00:04:31,880 --> 00:04:34,160 So you could take me over, actually. 82 00:04:34,280 --> 00:04:35,820 But you'd have to trick me into clicking on your link. 83 00:04:36,740 --> 00:04:36,980 Anyway. 84 00:04:37,800 --> 00:04:39,920 Let me see if it's time for my official talk yet. 85 00:04:40,620 --> 00:04:41,440 Looks like it is. 86 00:04:41,700 --> 00:04:42,720 Is there an authority figure? 87 00:04:42,880 --> 00:04:43,180 There you are. 88 00:04:43,280 --> 00:04:44,040 Is it time to get started? 89 00:04:45,600 --> 00:04:45,920 Okay. 90 00:04:46,020 --> 00:04:46,560 He says it is. 91 00:04:46,640 --> 00:04:46,820 All right. 92 00:04:46,860 --> 00:04:52,840 So let me depart from that, which is great stuff, but it's not my official talk here, which is also extremely important. 93 00:04:53,000 --> 00:04:54,260 I'm here on a mission from God. 94 00:04:55,060 --> 00:04:55,380 Okay. 95 00:04:56,560 --> 00:04:58,180 Which is IP version 6. 96 00:04:58,940 --> 00:05:06,420 Now, I've heard about IP version 6 for years and years, and it was like this total waste of time that I didn't really care about, and it seemed all complicated. 97 00:05:06,660 --> 00:05:11,200 And about three years ago, for some reason, I got all excited, and I tried to do it, and I got my best student. 98 00:05:11,280 --> 00:05:18,720 We spent six weeks replacing the firmware of routers with DDWRT and putting on things that were supposed to make it route IP version 6, and we couldn't make it work. 99 00:05:19,040 --> 00:05:20,520 We just got fed up and gave up. 100 00:05:20,800 --> 00:05:24,360 One other student of mine actually got it working because he had a Cisco router at home. 101 00:05:24,360 --> 00:05:35,820 But it would cost $200 a month to get IP version 6 to your house, and I said, well, you know, there's no point teaching anybody anything yet because there's no equipment worth having yet that you can afford in your house, and I better wait for them to do that. 102 00:05:35,980 --> 00:05:47,400 But in the back of my mind, the reason why I thought it would probably be okay is because there's class D and E just sitting there, 32 class As, enough to last us five or eight more years. 103 00:05:47,640 --> 00:05:49,840 So I figured there's really no crisis coming. 104 00:05:50,160 --> 00:05:54,120 But then I went to Hurricane Electric in Fremont, California. 105 00:05:54,120 --> 00:05:56,860 I went to a talk there, and they told us about IP version 6. 106 00:05:56,980 --> 00:06:07,680 And Aaron, the American Regional Internet Number Association, something like that, the people that really hand out the IP addresses were there, and they said they are not going to hand out D and E for general use. 107 00:06:08,880 --> 00:06:12,260 So we're coming into a time of crisis, and nobody is ready. 108 00:06:12,380 --> 00:06:20,960 And I knew this was my mission from God, to make sure all you people know about the crisis and what you can do about it because it's easy this time thanks to Hurricane Electric. 109 00:06:22,060 --> 00:06:23,420 So I'm Sam Bowne. 110 00:06:23,440 --> 00:06:24,100 I teach at Stanford. 111 00:06:24,120 --> 00:06:24,900 I go to City College San Francisco. 112 00:06:25,260 --> 00:06:27,000 And everything, my talk and everything is all on the web. 113 00:06:27,200 --> 00:06:29,320 All my stuff is always available for anybody to use. 114 00:06:29,640 --> 00:06:31,560 So let me show you why I care. 115 00:06:33,060 --> 00:06:33,960 IP version 4. 116 00:06:34,140 --> 00:06:36,860 We've all seen these addresses, 192, 168, 110. 117 00:06:37,440 --> 00:06:40,520 And, of course, in binary, that's a 32-bit binary number. 118 00:06:40,760 --> 00:06:46,320 And we all know how to subnet that and everything, but there's only 32 binary numbers, so there's only 2 to the 32 of them. 119 00:06:46,440 --> 00:06:49,440 And that's only 4 billion, and that's ridiculous, right? 120 00:06:49,580 --> 00:06:54,100 There's 7 billion people, and how many devices do you have on your body right now that need an IP address? 121 00:06:54,100 --> 00:06:55,400 I must have 4. 122 00:06:55,700 --> 00:06:57,500 And when I'm in my house, I have another 12. 123 00:06:57,780 --> 00:07:00,200 And, you know, there's no way 4 billion is ever going to cut it. 124 00:07:01,040 --> 00:07:01,980 So that's a problem. 125 00:07:02,860 --> 00:07:04,560 IP version 6 is the answer. 126 00:07:04,820 --> 00:07:08,760 Make the addresses really long and disgusting like this in hexadecimal. 127 00:07:09,540 --> 00:07:11,240 That is an IP version 6 address. 128 00:07:11,540 --> 00:07:12,580 Learn to love it. 129 00:07:13,380 --> 00:07:18,040 That is 128 bits long, and the good thing about that is there are enough of them, of course. 130 00:07:18,320 --> 00:07:21,420 That is 256 billion billion billion billion. 131 00:07:21,420 --> 00:07:29,340 So until we colonize the entire galaxy and have every atom in our body independently addressed to reformat will, we're not going to run out of those addresses. 132 00:07:29,780 --> 00:07:32,880 So we will not have to have IP version 7 in another 10 years. 133 00:07:33,960 --> 00:07:35,740 At least not because we ran out of addresses. 134 00:07:37,260 --> 00:07:39,740 And we really are running out of IP version 4 addresses. 135 00:07:40,100 --> 00:07:41,080 Here's the current situation. 136 00:07:41,380 --> 00:07:46,200 There are 256 class A's, blocks of 16 million, which is how they are commonly allocated. 137 00:07:46,480 --> 00:07:51,260 And we are now down to maybe 16 left. 138 00:07:51,420 --> 00:07:54,620 And they've already allocated something like six or eight of them this year. 139 00:07:55,060 --> 00:07:58,760 They're going to completely run out of them in 2011 at the current rate. 140 00:07:58,960 --> 00:08:04,020 It is an estimate because they are not allocated on a regular timetable. 141 00:08:04,120 --> 00:08:06,220 But they're going to run out in about one year. 142 00:08:06,380 --> 00:08:14,400 In about one year, whoever invents the new cell phone or iPad or any kind of gizmo and wants to sell 50 million of them is going to go say, 143 00:08:14,480 --> 00:08:16,440 okay, I have 50 million more things to attach to the Internet. 144 00:08:16,580 --> 00:08:18,060 And Aaron is going to say, tough. 145 00:08:18,360 --> 00:08:19,340 The Internet is full. 146 00:08:19,340 --> 00:08:21,520 You cannot attach any more devices to it. 147 00:08:22,480 --> 00:08:23,840 This is not going to be fun. 148 00:08:24,900 --> 00:08:26,460 So there's a crisis coming. 149 00:08:26,740 --> 00:08:32,160 We could see it coming 10 years ago and we're now down to less than one year left and nobody cares. 150 00:08:32,560 --> 00:08:37,680 Everywhere I go, most everybody, about 90% of my audiences have no interest in IP version 6 at all. 151 00:08:37,800 --> 00:08:44,160 They still think the way I did four months ago, it was some piece of nonsense, it's just a fake crisis like Y2K. 152 00:08:44,420 --> 00:08:46,820 Because they can just hand out those D and E addresses. 153 00:08:47,080 --> 00:08:47,820 They're just sitting there. 154 00:08:47,820 --> 00:08:49,540 Here's the projected timetable. 155 00:08:50,440 --> 00:08:53,440 The main reservoir addresses will run out in 2011. 156 00:08:53,860 --> 00:08:59,980 But the regional Internet registries will have some left over which they can continue to distribute and they will begin running out in 2012. 157 00:09:00,460 --> 00:09:01,080 That's the prediction. 158 00:09:01,360 --> 00:09:04,800 And then people will really go and there won't be any more IP addresses available. 159 00:09:06,400 --> 00:09:07,420 That's the end of the world. 160 00:09:07,640 --> 00:09:08,360 The Internet is full. 161 00:09:08,780 --> 00:09:10,400 Pack up the Internet and go do something else. 162 00:09:11,780 --> 00:09:12,780 That's not going to be a hit. 163 00:09:12,900 --> 00:09:14,680 But let me tell you what's already started happening. 164 00:09:14,960 --> 00:09:17,240 I brought up two years ago to my network administrator. 165 00:09:17,240 --> 00:09:19,900 Sydney College, we have a whole Class B address space. 166 00:09:20,120 --> 00:09:21,800 We have 65,000 IP addresses. 167 00:09:22,020 --> 00:09:24,880 And we're only using 30 of them for public-facing web servers. 168 00:09:25,080 --> 00:09:26,020 So we don't need them. 169 00:09:26,100 --> 00:09:28,000 So I wanted to sell them a long time ago because we're broke. 170 00:09:28,160 --> 00:09:28,560 We need money. 171 00:09:28,900 --> 00:09:31,740 And I went to my network administrator and he said, you can't sell them. 172 00:09:31,820 --> 00:09:32,580 We don't really own them. 173 00:09:32,680 --> 00:09:37,420 They're on loan or, you know, rent from some agency like IANA. 174 00:09:37,660 --> 00:09:42,080 But they just changed their policy about a month ago so you can really sell your IP addresses now. 175 00:09:42,200 --> 00:09:45,500 Because they said there are only two possibilities in the next year. 176 00:09:45,500 --> 00:09:51,600 They're either going to be a black market for used IP addresses or there's going to be a white market for used IP addresses. 177 00:09:51,860 --> 00:09:54,420 So we might as well choose the second of these two alternatives. 178 00:09:54,860 --> 00:10:01,140 And now when people apply to them and try to get IP addresses, they actually investigate why you're getting them. 179 00:10:01,300 --> 00:10:07,340 Because they want to determine if you really are going to use them or if you're just hoarding them so you can scalp them and sell them later. 180 00:10:08,320 --> 00:10:09,440 Speculators and IP addresses. 181 00:10:10,240 --> 00:10:11,540 And that's all coming. 182 00:10:11,720 --> 00:10:15,040 So in about a year, panic will set in. 183 00:10:15,120 --> 00:10:15,480 And it will happen. 184 00:10:15,500 --> 00:10:18,240 In about two years, I think we can really get a million bucks for our Class B. 185 00:10:18,300 --> 00:10:18,860 That's my goal. 186 00:10:19,040 --> 00:10:19,680 But we'll see. 187 00:10:19,840 --> 00:10:20,940 Because we don't need it. 188 00:10:21,160 --> 00:10:28,260 What you'll have to do instead of getting fresh IP addresses is you'll have to get IP version 4 addresses from some other company that was smarter than you and already went to IPv6. 189 00:10:28,600 --> 00:10:29,540 And that's what we're doing. 190 00:10:29,720 --> 00:10:31,900 And that's what all of you should do as soon as possible. 191 00:10:33,240 --> 00:10:36,700 Anyway, the Department of Defense changed to IP version 6 in 2008. 192 00:10:37,980 --> 00:10:39,600 They had a goal and they met it. 193 00:10:39,720 --> 00:10:42,720 To have the whole network runnable on IP version 6 in 2008. 194 00:10:42,960 --> 00:10:44,980 That is what put pressure on the end users. 195 00:10:44,980 --> 00:10:47,520 And operating systems like Microsoft put it in Windows XP. 196 00:10:48,100 --> 00:10:50,400 And they put it very well in Vista and Windows 7. 197 00:10:50,520 --> 00:10:51,020 It's in Linux. 198 00:10:51,180 --> 00:10:51,740 It's in Unix. 199 00:10:51,840 --> 00:10:52,640 It's in the Apple. 200 00:10:52,780 --> 00:10:54,480 Although Apple did a pretty bad job of it. 201 00:10:54,620 --> 00:10:56,560 But they will eventually be pressured to fix it. 202 00:10:57,720 --> 00:11:01,180 The rest of the federal government will switch in 2012 to IP version 6. 203 00:11:01,720 --> 00:11:12,720 And therefore, since every large manufacturer has to sell to the government, they have all been pressured into putting IP version 6 in their products even though there is no significant amount of traffic on the backbone in IP version 6 yet. 204 00:11:12,720 --> 00:11:16,140 And no significant consumer demand for it yet. 205 00:11:17,000 --> 00:11:18,100 But it's coming. 206 00:11:18,240 --> 00:11:20,020 And there will be a huge rush for it. 207 00:11:20,140 --> 00:11:23,380 And when it comes, there will be mad chaos because we are not ready. 208 00:11:23,540 --> 00:11:26,940 And most manufacturers and technicians are not getting ready. 209 00:11:27,480 --> 00:11:30,280 So the people that do know are going to be sitting pretty. 210 00:11:30,480 --> 00:11:31,500 And that should be you. 211 00:11:31,680 --> 00:11:35,820 And it's going to be my students because whether they like it or not, they're all going to do IP version 6 homework next semester. 212 00:11:38,020 --> 00:11:40,660 And my prediction is they will be glad of that in a year. 213 00:11:40,960 --> 00:11:41,880 So here's the summary. 214 00:11:41,880 --> 00:11:43,500 This is the current state of the Internet. 215 00:11:45,580 --> 00:11:47,200 And this is our fate. 216 00:11:48,480 --> 00:11:51,980 Those who accept soon will have a position of power in the new order. 217 00:11:52,240 --> 00:11:53,900 Those who resist will be crushed. 218 00:11:56,320 --> 00:12:01,740 So now that you have hopefully been motivated, you can now face the problem I faced, which is what do you do? 219 00:12:01,780 --> 00:12:05,020 Because there are big, thick books full of long, complicated, irritating things. 220 00:12:05,180 --> 00:12:10,620 And I looked at Microsoft's recommendation for an IP version 6 lab, and it was 260 pages long. 221 00:12:10,620 --> 00:12:12,260 And I said, how can it be this hard? 222 00:12:13,000 --> 00:12:15,140 It doesn't have to be that hard if you're a wimp. 223 00:12:15,300 --> 00:12:20,980 If you want to do it the Microsoft way and get all your domain controllers and exchange servers and everything, there's a bunch of fancy stuff you have to do. 224 00:12:21,060 --> 00:12:25,980 But you can get started and do the essentials easy and it's fun and it's a game. 225 00:12:27,140 --> 00:12:28,440 So anyway, but here's the plan. 226 00:12:29,340 --> 00:12:32,560 One plan which is really popular is to ignore it and hope it just goes away. 227 00:12:32,820 --> 00:12:35,600 This is not a practical plan, but it's the most popular one. 228 00:12:37,180 --> 00:12:38,900 The other one is to buy a gateway. 229 00:12:39,040 --> 00:12:40,420 And this is what's really going to happen. 230 00:12:40,620 --> 00:12:45,720 There's a lot of people, unfortunately, in everybody's house because they have a bunch of legacy equipment in their house that's IP version 4 only. 231 00:12:45,940 --> 00:12:50,840 So they are going to buy an IP version 6 device that will convert it to IP version 6 to go on the Internet. 232 00:12:51,300 --> 00:12:59,460 And there are currently four incompatible standards for that and four manufacturers making poorly designed devices to do that. 233 00:12:59,580 --> 00:13:06,540 So in the future, actually making a game connect to a game over here is going to require 16 combinations of imperfect translation on the way. 234 00:13:07,060 --> 00:13:10,140 And even more than that, Aaron will be giving some talks here. 235 00:13:10,620 --> 00:13:11,040 I'm not going to get into this. 236 00:13:11,300 --> 00:13:18,820 But the IETF guy at the last conference I went to was very unhappy because there's now NAT 4 to 4, changing IP version 4 to other version 4. 237 00:13:18,960 --> 00:13:20,020 There's NAT 4 to 6. 238 00:13:20,260 --> 00:13:21,440 There's NAT 6 to 4. 239 00:13:21,580 --> 00:13:25,200 And now there's even NAT 6 to 6, which was never supposed to happen. 240 00:13:26,140 --> 00:13:29,520 The whole point of IP version 6 was going to be end-to-end addressing. 241 00:13:30,040 --> 00:13:35,200 But that's already broken because the end-user machines can't handle the multi-homing. 242 00:13:35,420 --> 00:13:36,860 And I'll show you a little bit of that later. 243 00:13:37,040 --> 00:13:37,420 Anyway. 244 00:13:38,420 --> 00:13:40,020 So gateways are in the future. 245 00:13:40,620 --> 00:13:41,200 They're going to be a bloody mess. 246 00:13:41,460 --> 00:13:42,980 But companies are not going to use them. 247 00:13:43,560 --> 00:13:45,840 What you really want to have is dual stack on your company. 248 00:13:45,980 --> 00:13:48,340 This is the goal for the foreseeable future. 249 00:13:48,500 --> 00:13:56,200 For the next 10 years, we're going to have to run both IP version 4 and IP version 6 on our whole networks because everybody's going to have a mix of devices. 250 00:13:56,960 --> 00:14:00,620 And right now you can run IP version 4 only, but in 360 days. 251 00:14:00,900 --> 00:14:08,320 And therefore, all the people that plan more than a year ahead have already begun doing this, like Comcast and Verizon and Facebook and Google. 252 00:14:08,700 --> 00:14:10,420 They're already putting up IP version 6. 253 00:14:10,620 --> 00:14:16,060 So soon there will be IP version 6 only websites and IP version 6 only end-user devices. 254 00:14:16,420 --> 00:14:19,760 I think Verizon's cell phones are already IP version 6 only. 255 00:14:20,000 --> 00:14:21,180 It might be Comcast. 256 00:14:21,360 --> 00:14:21,940 I get it mixed up. 257 00:14:22,160 --> 00:14:25,800 One of those companies has already decided to use IP version 6 only on their cell phones. 258 00:14:26,040 --> 00:14:27,920 Smart meters are IP version 6 only. 259 00:14:28,040 --> 00:14:30,700 And Japanese televisions are IP version 6 only. 260 00:14:31,440 --> 00:14:35,680 And they get converted at the enterprise network address translation. 261 00:14:36,580 --> 00:14:40,600 Anyway, in the short run, the trick to get started learning is to use a technology. 262 00:14:40,620 --> 00:14:41,840 This is awesome. 263 00:14:42,160 --> 00:14:47,840 If you tunnel, you can take an existing IP version 4 Internet connection and you can run IP version 6 over it. 264 00:14:48,140 --> 00:14:50,240 Now, of course, this does not solve the problem. 265 00:14:50,400 --> 00:14:51,780 You're still using an IP version 4 address. 266 00:14:52,080 --> 00:14:56,360 It makes all your performance in IP version 6 inferior to your IP version 4 and all that. 267 00:14:56,500 --> 00:14:58,300 But it means you can learn how to do it now. 268 00:14:58,580 --> 00:15:04,620 And then you've got everything ready when you get native IP version 6 from your Internet service provider, which is coming very soon. 269 00:15:05,320 --> 00:15:08,040 AT&T offers it now, I've been told, with their latest U-verse. 270 00:15:08,320 --> 00:15:09,360 And various providers. 271 00:15:09,360 --> 00:15:15,120 I think Comcast just had their first rollout in California a month ago of IP version 6 directly to the businesses. 272 00:15:15,420 --> 00:15:16,260 So it's coming. 273 00:15:16,480 --> 00:15:18,260 So the fast thing is to set up a tunnel. 274 00:15:18,380 --> 00:15:19,600 And you can all do this right now. 275 00:15:19,700 --> 00:15:20,820 And all my students are going to do it. 276 00:15:20,840 --> 00:15:21,560 And you should. 277 00:15:21,820 --> 00:15:22,700 Because it's great. 278 00:15:23,340 --> 00:15:24,920 There are free tunnel brokers out there. 279 00:15:25,140 --> 00:15:27,280 Hurricane Electric runs one called Tunnel Broker. 280 00:15:27,720 --> 00:15:29,340 6XS is one someplace in Europe. 281 00:15:29,700 --> 00:15:31,740 GoGo6 is my favorite because it's easy. 282 00:15:31,940 --> 00:15:35,960 You don't have to do anything to get a GoGo6 tunnel up except use Windows. 283 00:15:36,400 --> 00:15:38,580 And if you can't stand that, you should try one of the others. 284 00:15:39,460 --> 00:15:40,940 But here's GoGo6. 285 00:15:41,300 --> 00:15:44,600 And let me just show you because I am on IP version 6 right now. 286 00:15:45,620 --> 00:15:50,520 I'm connected with a wire to this DEF CON network. 287 00:15:51,940 --> 00:15:53,160 I'm using Windows 7. 288 00:15:53,440 --> 00:15:59,080 And so here is my local area connection down here. 289 00:15:59,320 --> 00:16:03,740 I have an IP version 4 address of 172.16.8.233. 290 00:16:04,040 --> 00:16:07,260 Now this FE80 address is a link local address. 291 00:16:07,460 --> 00:16:09,260 That's like a 169.254. 292 00:16:09,260 --> 00:16:11,440 It can only be used for local traffic. 293 00:16:11,760 --> 00:16:14,360 But I'm tunneling through the GoGo server. 294 00:16:14,800 --> 00:16:17,520 And I should have it running in one of my other panes here. 295 00:16:18,540 --> 00:16:19,240 There it is. 296 00:16:19,360 --> 00:16:20,380 The GoGo client. 297 00:16:21,220 --> 00:16:22,260 This is awesome. 298 00:16:22,400 --> 00:16:24,700 Because once you set it up, you don't have to touch it. 299 00:16:24,980 --> 00:16:29,000 And everywhere I carry my laptop, it connects to IP version 4 at a coffeehouse. 300 00:16:29,140 --> 00:16:31,740 And within a minute, the IP version 6 tunnel turns on. 301 00:16:31,800 --> 00:16:33,320 So I always have IP version 6. 302 00:16:33,420 --> 00:16:35,220 And I don't have to do anything to earn that. 303 00:16:36,400 --> 00:16:39,240 Because it automatically connects with a non-authentication network. 304 00:16:39,240 --> 00:16:40,880 So I have an authenticated free account to these guys. 305 00:16:41,620 --> 00:16:43,620 And I can choose how I want to do it. 306 00:16:43,800 --> 00:16:47,720 Right now I'm using the most universal one, UDP traversal. 307 00:16:47,780 --> 00:16:50,280 It will go right through network address translation and right through everything. 308 00:16:50,500 --> 00:16:51,120 I can go anywhere. 309 00:16:51,280 --> 00:16:52,480 It goes right through firewalls. 310 00:16:52,840 --> 00:16:54,800 It sends UDP packets out. 311 00:16:54,880 --> 00:16:58,840 And inside the UDP packets is IP version 6 hiding inside the IP version 4. 312 00:16:59,500 --> 00:17:04,200 And if I want to see my address, here is my glorious IP version 6 address. 313 00:17:05,360 --> 00:17:06,780 A long, horrible mess. 314 00:17:07,680 --> 00:17:08,760 But I've got it. 315 00:17:08,760 --> 00:17:13,140 And if I want to see the effect, I can go look at the 6SS website. 316 00:17:15,520 --> 00:17:16,540 Let's go to this one. 317 00:17:17,640 --> 00:17:19,400 And just go to 6SS. 318 00:17:20,780 --> 00:17:22,760 And the awesome bar should find it. 319 00:17:24,100 --> 00:17:25,360 Yeah, yeah, yeah. 320 00:17:25,360 --> 00:17:26,040 Open TNS. 321 00:17:26,340 --> 00:17:27,240 Well, here it is. 322 00:17:27,320 --> 00:17:27,800 6SS. 323 00:17:32,420 --> 00:17:33,160 All right. 324 00:17:33,360 --> 00:17:37,260 And 6SS are the people that run one of those many tunnels. 325 00:17:37,260 --> 00:17:42,700 But the particular thing cool about them is at the bottom, they will tell you whether you've got it. 326 00:17:42,780 --> 00:17:43,060 Typically. 327 00:17:43,220 --> 00:17:44,580 Well, now it's not doing it to me. 328 00:17:45,760 --> 00:17:47,580 As always, I'm getting host. 329 00:17:47,660 --> 00:17:48,100 Enter website. 330 00:17:48,320 --> 00:17:48,600 Oh, okay. 331 00:17:48,940 --> 00:17:49,340 Dot. 332 00:17:50,780 --> 00:17:51,180 Okay. 333 00:17:52,900 --> 00:17:54,020 And there we are. 334 00:17:54,520 --> 00:17:57,720 At the bottom it should tell me you've got IP version 6. 335 00:18:02,680 --> 00:18:04,360 Non-SSL IP version 6 connection. 336 00:18:04,540 --> 00:18:05,240 It puts my address there. 337 00:18:05,360 --> 00:18:06,380 It's not as clear as it could be. 338 00:18:06,380 --> 00:18:07,860 But there it shows that's my IP address. 339 00:18:08,140 --> 00:18:10,260 You can make your IP address look a little smaller. 340 00:18:10,420 --> 00:18:11,500 Let me go back to my slides. 341 00:18:11,680 --> 00:18:14,360 But that shows I connected over version 6 instead of version 4. 342 00:18:14,580 --> 00:18:15,360 And that's the point. 343 00:18:18,560 --> 00:18:20,260 Now, let me go back to here. 344 00:18:21,340 --> 00:18:25,600 And show you actually I'll go back and do a couple other things when I've got my IP version 6 connection up. 345 00:18:25,780 --> 00:18:26,640 I can ping. 346 00:18:26,820 --> 00:18:27,840 You're probably used to this. 347 00:18:27,900 --> 00:18:35,380 If I ping yahoo.com, I see some replies from those boring old IP version 4 addresses. 348 00:18:35,380 --> 00:18:45,500 But if I ping google.com, I get IP version 6 by default because it prefers it. 349 00:18:45,900 --> 00:18:48,300 And that's Google's IP version 6 address. 350 00:18:48,540 --> 00:18:55,020 If you want to see what they've got, you do NS lookup in interactive mode so you can set the query. 351 00:18:55,200 --> 00:18:58,420 And set the query to give me the A record, which is IP version 4. 352 00:18:58,580 --> 00:19:02,600 And the IP version 6 record, which is four times longer, is the AAAA record. 353 00:19:03,580 --> 00:19:05,080 And now I can look up Google. 354 00:19:06,720 --> 00:19:08,340 I can get them both. 355 00:19:08,740 --> 00:19:13,820 There's the IP version 4 address for Google and the IP version 6 address for Google. 356 00:19:14,460 --> 00:19:20,220 And most people at Facebook has got my server. 357 00:19:20,320 --> 00:19:21,840 I'm using IP version 6 DNS server. 358 00:19:21,960 --> 00:19:24,920 But see, Facebook only has IP version 4 DNS records. 359 00:19:25,240 --> 00:19:31,100 But if you do, I think it's v6.facebook.com. 360 00:19:35,200 --> 00:19:36,200 I guess not. 361 00:19:37,800 --> 00:19:41,120 They do have an IP version 6 presence, but it's not resolving on me now. 362 00:19:41,280 --> 00:19:43,920 And I'm not going to struggle with it because something always has to go wrong. 363 00:19:44,240 --> 00:19:46,400 But anyway, that's the deal there. 364 00:19:46,580 --> 00:19:48,620 So let me just show you the way to do this that's fun. 365 00:19:48,980 --> 00:19:50,820 Hurricane Electric made a certification process. 366 00:19:52,580 --> 00:19:53,880 And I finished it. 367 00:19:53,940 --> 00:19:56,080 And all my students are going to suffer through it. 368 00:19:56,280 --> 00:19:57,640 So here's what you do. 369 00:19:57,800 --> 00:20:00,240 You first prove that you're an IP version 6 client. 370 00:20:00,240 --> 00:20:01,800 And then you make it to a certain level. 371 00:20:01,980 --> 00:20:05,620 Then you prove that you run a web server that responds to IP version 6 requests. 372 00:20:06,020 --> 00:20:07,580 Then you set up a DNS server. 373 00:20:07,760 --> 00:20:11,400 Then you set up a mail server that takes IP version 6 email. 374 00:20:11,680 --> 00:20:17,020 And then you set up a DNS server that takes IP version 6 DNS resolution and hands out that quad A record. 375 00:20:17,520 --> 00:20:23,880 And then you set up a DNS server that propagates an IP version 6 glue record to the root of your domain. 376 00:20:24,300 --> 00:20:26,700 Now, by the way, perhaps I won't feel so stupid. 377 00:20:26,820 --> 00:20:28,480 How many people know what a glue record is? 378 00:20:29,520 --> 00:20:29,960 Yeah. 379 00:20:30,240 --> 00:20:30,740 Well, I didn't. 380 00:20:30,840 --> 00:20:31,740 You're smarter than me. 381 00:20:32,100 --> 00:20:32,240 Anyway. 382 00:20:33,500 --> 00:20:37,080 But the glue record, you're going to learn about it if you do this certification, which I highly recommend. 383 00:20:37,680 --> 00:20:38,400 And it's fun. 384 00:20:38,720 --> 00:20:39,640 There are steps in it. 385 00:20:39,800 --> 00:20:41,540 So Google gave me a free cell phone. 386 00:20:41,780 --> 00:20:43,120 They gave me an Evo, which is awesome. 387 00:20:43,360 --> 00:20:45,660 But they didn't tell us they were going to give us an Evo at this conference. 388 00:20:45,820 --> 00:20:48,360 They said they mailed me a Droid six weeks before the conference. 389 00:20:48,460 --> 00:20:50,260 So I transferred my service to the Droid. 390 00:20:50,420 --> 00:20:53,200 Then when I got the Evo, I said, this Droid was wonderful six weeks ago. 391 00:20:53,340 --> 00:20:54,080 But it's junk. 392 00:20:54,200 --> 00:20:54,740 Now it's junk. 393 00:20:54,860 --> 00:20:55,520 I ought to have my Evo. 394 00:20:55,820 --> 00:20:56,860 So I transferred to there. 395 00:20:57,020 --> 00:20:59,500 And I gave the Droid away to my students that would get the highest certification. 396 00:20:59,500 --> 00:21:01,040 And they embraced this. 397 00:21:01,320 --> 00:21:01,960 This was a hit. 398 00:21:02,600 --> 00:21:05,460 So they had 30 days to get the highest level of IP version 6 certification. 399 00:21:05,720 --> 00:21:07,000 And one of them made it all the way to the end. 400 00:21:07,220 --> 00:21:12,900 And if you do make it all the way to the top, where you have all those things working and you are a sage, you get a T-shirt. 401 00:21:13,260 --> 00:21:18,460 And I told them that if they gave me the T-shirt, I would wear it to DEF CON and they mailed it to me right before the conference. 402 00:21:19,120 --> 00:21:22,460 So this is the awesome T-shirt you get for being a sage. 403 00:21:23,360 --> 00:21:25,200 And there is every possible fact. 404 00:21:28,320 --> 00:21:28,940 Thank you. 405 00:21:29,500 --> 00:21:34,880 There is every possible fact about IP version 6 crammed on the back, including one typo, which someone pointed out on Twitter. 406 00:21:35,260 --> 00:21:35,980 That should be your homework. 407 00:21:36,120 --> 00:21:38,080 Find the typo on this shirt after you get it. 408 00:21:38,980 --> 00:21:42,600 But anyway, I highly recommend getting these certs. 409 00:21:42,740 --> 00:21:43,460 And it's really fun. 410 00:21:44,340 --> 00:21:46,660 And let me check my time here. 411 00:21:48,040 --> 00:21:48,480 Right. 412 00:21:48,580 --> 00:21:50,440 I may not demonstrate the stages here. 413 00:21:50,560 --> 00:21:53,560 But you take some multiple choice tests and then you just connect. 414 00:21:53,820 --> 00:21:54,880 It's like a video game. 415 00:21:55,060 --> 00:21:55,360 You connect. 416 00:21:55,520 --> 00:21:56,560 It detects whether you got it. 417 00:21:56,640 --> 00:21:58,180 Does your web server host this file? 418 00:21:58,360 --> 00:21:58,540 No. 419 00:21:59,500 --> 00:22:00,060 Come back later. 420 00:22:00,240 --> 00:22:01,560 So it's really a lot of fun. 421 00:22:02,800 --> 00:22:04,640 And you ought to all do it. 422 00:22:04,700 --> 00:22:05,420 That's my opinion. 423 00:22:05,500 --> 00:22:07,340 Unless you already know everything about IP version 6. 424 00:22:08,700 --> 00:22:12,180 So I promised to say something about hacking since we are a security conference. 425 00:22:12,480 --> 00:22:19,560 And it is actually extremely important for the hackers to be in here fast because IP version 6 is a security nightmare. 426 00:22:22,400 --> 00:22:26,520 Because just to set it up, you have to turn off all security devices just to get it going. 427 00:22:26,820 --> 00:22:29,400 And most of your security devices are not IP version 6. 428 00:22:29,400 --> 00:22:29,740 It's capable. 429 00:22:29,980 --> 00:22:33,140 So typically you bypass the firewall and everything on the way in. 430 00:22:33,880 --> 00:22:35,560 So here's just a few things about it. 431 00:22:36,060 --> 00:22:40,240 The IP version 6 address is 64 bits for routing and 64 bits for the host. 432 00:22:40,520 --> 00:22:43,520 The 64 bits for the host are made up by each host. 433 00:22:43,700 --> 00:22:46,560 They are not distributed by DHCP typically, although they can be. 434 00:22:46,640 --> 00:22:50,060 Your device just makes up its own address by using its MAC address. 435 00:22:50,540 --> 00:22:53,800 The MAC address determines the outer six octets. 436 00:22:53,900 --> 00:22:55,780 The inner six octets are FFFE. 437 00:22:55,960 --> 00:22:56,880 Don't ask me why. 438 00:22:57,080 --> 00:22:58,980 But that's called the extended unique identifier. 439 00:22:58,980 --> 00:23:03,020 And it means that everything you send or receive is labeled with your real MAC address. 440 00:23:03,320 --> 00:23:12,700 And therefore, if you were to do something naughty like download copyrighted material, they would know who you are much better than they do if all they have is an IP version 4 address. 441 00:23:13,840 --> 00:23:19,320 So Windows Vista and Windows 7 have privacy extensions turned on by default. 442 00:23:19,500 --> 00:23:26,040 So it makes up a random number instead of using the recommended EUI, which also tends to break end-to-end addressing. 443 00:23:26,320 --> 00:23:28,420 But it does have the effect of protecting your privacy. 444 00:23:28,420 --> 00:23:29,960 You can turn that off if you want to. 445 00:23:30,080 --> 00:23:38,360 And many companies prefer to turn that off so that they can tell who's connecting and have policies to let this person do one thing and that person do another thing. 446 00:23:39,560 --> 00:23:41,220 Anyway, ICMP version 6. 447 00:23:41,420 --> 00:23:42,240 Good old ping. 448 00:23:42,360 --> 00:23:46,540 This is optional in IP version 4 and everyone got so tired of it they pretty much blocked it at the router. 449 00:23:46,760 --> 00:23:49,300 But in IP version 6 you must have it. 450 00:23:49,380 --> 00:23:50,760 Because it replaces ARP. 451 00:23:51,140 --> 00:23:53,400 There are no broadcasts in IP version 6. 452 00:23:53,520 --> 00:23:54,600 There are nothing but multicasts. 453 00:23:54,840 --> 00:23:58,400 And you find your neighbors with Neighbor Discovery Protocol over ICMP. 454 00:23:59,740 --> 00:24:01,780 There's a hacker's toolkit for IP version 6. 455 00:24:02,080 --> 00:24:02,480 THC. 456 00:24:02,480 --> 00:24:03,220 This rocks. 457 00:24:03,840 --> 00:24:07,940 And I sent to a Google conference in IP version 6 and they had an IP version 6 network. 458 00:24:08,260 --> 00:24:09,360 And we were connected. 459 00:24:09,580 --> 00:24:12,880 And so I immediately loaded an Ubuntu virtual machine on top of my Windows 7. 460 00:24:12,960 --> 00:24:16,580 It connected through IP version 6 through the virtual NIC, which I didn't think would work. 461 00:24:16,980 --> 00:24:20,280 And then I loaded the hacker's toolkit, which I had never seen until I found it right there. 462 00:24:20,400 --> 00:24:22,960 And I did a scan and I was able to find people here. 463 00:24:23,140 --> 00:24:25,760 You could never do a normal ping sweep in IP version 6. 464 00:24:25,920 --> 00:24:28,400 You could not sweep 2 to the 64 addresses to go through IP. 465 00:24:28,400 --> 00:24:29,960 It would take forever. 466 00:24:30,540 --> 00:24:35,820 But you can use Neighbor Discovery, which is pretty much like just sending a broadcast ping and they just tell you where they are. 467 00:24:35,940 --> 00:24:37,160 Because they need to for ARP. 468 00:24:37,260 --> 00:24:38,220 It's like the ARP cache. 469 00:24:38,640 --> 00:24:40,540 And there's a list of everybody at that conference. 470 00:24:40,800 --> 00:24:43,560 Just picked them right up with IP version 6. 471 00:24:44,520 --> 00:24:46,580 Anyway, I just mentioned security appliances. 472 00:24:46,740 --> 00:24:49,140 Typically don't do anything for your IP version 6 yet. 473 00:24:49,240 --> 00:24:49,940 They aren't ready. 474 00:24:50,840 --> 00:24:52,940 So you can run torrents over IP version 6. 475 00:24:53,260 --> 00:24:54,820 The torrent fiends know this. 476 00:24:54,880 --> 00:24:58,140 You can usually do that and the blocks don't block it. 477 00:24:58,400 --> 00:25:01,300 One other thing that's fun is the packet amplification attack. 478 00:25:02,240 --> 00:25:03,940 You can run a routing header 0. 479 00:25:04,480 --> 00:25:07,300 There's a header in front of each packet which can head to more headers. 480 00:25:07,820 --> 00:25:12,660 And if you use routing header 0, you can specifically specify the path for your packets to take. 481 00:25:12,760 --> 00:25:15,280 And you can tell it to follow a path that's going to make a loop. 482 00:25:15,660 --> 00:25:18,080 So much that RH0 has already been deprecated. 483 00:25:18,160 --> 00:25:22,300 Before IP version 6 is even hardly rolled out, they've already deprecated a few standards that cause problems. 484 00:25:22,700 --> 00:25:24,620 And the other one that's really funny is the ping pong. 485 00:25:26,000 --> 00:25:28,320 Every subnet in your network should be a slash 64. 486 00:25:28,400 --> 00:25:30,020 That's the rule to avoid going mad. 487 00:25:30,220 --> 00:25:34,080 You could have subnets from slash 1 to slash 127 for the Cisco guys out there. 488 00:25:34,560 --> 00:25:39,260 And you would use a slash 126 to make a subnet with only two addresses for a point-to-point link. 489 00:25:39,420 --> 00:25:43,860 But they recommend using a slash 64 for everything because you've got so many addresses you can waste them. 490 00:25:44,140 --> 00:25:49,240 But if you do, if I make one end of the cable end in 1 and the other end end in 2, 491 00:25:49,340 --> 00:25:54,640 all I have to do is send in one packet destined for 3 and coming from 4. 492 00:25:54,840 --> 00:25:57,120 And this packet will return an ICMP unreachable. 493 00:25:57,120 --> 00:25:59,280 And this packet will return an ICMP unreachable. 494 00:25:59,380 --> 00:26:01,660 It will flood the packet completely at line speed. 495 00:26:01,780 --> 00:26:03,640 One packet, that line is dead. 496 00:26:04,220 --> 00:26:06,140 There are devices out there that really fall for this. 497 00:26:06,520 --> 00:26:10,080 And if you have a long memory, you may remember TFTP had a similar problem. 498 00:26:10,520 --> 00:26:14,320 TFTP originally, as written in the RFC, Trivial File Transfer Protocol, said, 499 00:26:14,460 --> 00:26:16,220 you can send data and it's acknowledged. 500 00:26:16,540 --> 00:26:18,060 Every packet will always be acknowledged. 501 00:26:18,360 --> 00:26:20,520 If there is an error, you will send an error acknowledgement. 502 00:26:20,740 --> 00:26:21,940 And that will have to be acknowledged. 503 00:26:22,420 --> 00:26:24,260 And, you know, they didn't think of this. 504 00:26:24,740 --> 00:26:26,740 But TFTP works until the first error. 505 00:26:26,740 --> 00:26:31,280 And then it floods the wire with acknowledging each other back and forth. 506 00:26:31,780 --> 00:26:32,500 They patched that. 507 00:26:33,680 --> 00:26:35,760 Anyway, those are just a few of the problems coming up. 508 00:26:36,700 --> 00:26:41,560 And I guess I've run out of things to tell you. 509 00:26:41,960 --> 00:26:43,900 This is, everything is on my website if you want it. 510 00:26:44,620 --> 00:26:46,680 And we're going to have the questions in Room 106. 511 00:26:47,000 --> 00:26:49,840 And I think I might even have, oh, I'm right on time. 512 00:26:49,880 --> 00:26:51,200 I think I'm supposed to end at 1.20, I reckon. 513 00:26:52,380 --> 00:26:54,600 All right, so let's go to Room 106 if you've got any questions.