1 00:00:11,100 --> 00:00:17,760 I worked there for four years and lots of times I've used IP spoofing because 2 00:00:17,760 --> 00:00:24,140 customers put us on a network that is not allowed to go anywhere so we have to 3 00:00:24,140 --> 00:00:32,380 spoof our IP addresses to get connections. First I have some free stuff if anyone is interested. 4 00:00:58,340 --> 00:00:59,200 There you are. 5 00:01:17,360 --> 00:01:23,040 These slides, I mailed them to DT. I hope he will put them 6 00:01:24,140 --> 00:01:31,280 up on some web page somewhere. I will not. But DT, I will mail him that he has to. 7 00:01:41,080 --> 00:01:44,300 I'm trying to see on my computer at the same time. 8 00:01:57,440 --> 00:02:01,720 What we will talk to you about today. I will say some first. 9 00:02:03,560 --> 00:02:07,960 Then we'll have some definition of spoofing. It's very short. One slide. 10 00:02:09,300 --> 00:02:13,760 And Linux configuration how to set up Linux. It's three lines. 11 00:02:14,920 --> 00:02:23,020 And its sniffing. It will be some things about passive network mapping. 12 00:02:23,020 --> 00:02:32,340 because it's a cool way to find out which host is up and what service is running that you can't 13 00:02:32,340 --> 00:02:45,320 access from your normal IP address. Then we'll talk about how to set up IP spoofing with a source 14 00:02:45,320 --> 00:02:54,320 routing, so we will have some slides about source routing first. And then it's vanilla IP spoofing, 15 00:02:55,200 --> 00:03:07,180 how easily it is set up, and then an ending. And there will be time to get to the Cult of 16 00:03:07,180 --> 00:03:11,260 Death cow show, but it will be a hard time to get in there. 17 00:03:18,540 --> 00:03:39,700 We'll discuss spoofing. There are so many people that think that IP spoofing is something very hard to do, and it's very difficult to set up, but I will show you how easily it is done with full connections. 18 00:03:42,800 --> 00:03:44,220 And I will not 19 00:03:45,440 --> 00:03:54,200 take up examples of session hijacking. It's you making your own connections, full own connections, with spoofing. 20 00:03:58,260 --> 00:04:14,980 Yeah, I'll give you one minute. No. It says that IP spoofing is used to go through filtering routers. 21 00:04:14,980 --> 00:04:15,300 It's used to go through filtering routers. 22 00:04:15,320 --> 00:04:45,300 Or firewalls. Yes. So it's a rule-based router, firewall, that says, like, A is not allowed to go to B, but C is. Okay, I changed my iPad S to C. It's okay. And it's really okay. It sounds easy, and it is easy. That's the point I'm going to give here. Because, yeah, I'm going to give it a try. 23 00:04:45,320 --> 00:04:46,400 I will come to the point later. 24 00:04:47,370 --> 00:04:49,560 If you have any questions, 25 00:04:51,220 --> 00:04:54,040 we'll have some questions at the end. 26 00:04:54,260 --> 00:05:00,940 But it's so simple, so if you ask a question, maybe people will start looking at you. 27 00:05:05,400 --> 00:05:07,120 It's a way to get rid of questions. 28 00:05:11,220 --> 00:05:14,220 So, how do you configure your Linux box? 29 00:05:14,720 --> 00:05:15,300 So, how do you configure your Linux box? 30 00:05:15,320 --> 00:05:29,780 Well, we use Slackware. We like it because it's simple, and you have to do everything on it to, you have to download all the libraries by yourself and so on, but when you've got it running, it's perfect. 31 00:05:30,700 --> 00:05:44,540 In the kernel, you have to enable IP forwarding. If it's not done already, all hackers uses it. It's one way to, if you are redirects or something, it's the easiest way. 32 00:05:44,540 --> 00:05:49,280 In the kernel, you have to enable IP forwarding. If it's not done already, all hackers uses it. It's one way to, if you are redirects or something, it's the easiest way. 33 00:05:50,960 --> 00:05:53,340 And the next one is, 34 00:05:55,240 --> 00:05:58,160 the default, the default of IP 35 00:05:58,900 --> 00:06:01,620 drop source routed frames is enamel. 36 00:06:01,860 --> 00:06:05,100 So it drops all routed frames, the Linux box. 37 00:06:05,720 --> 00:06:08,280 You have to disable that option. 38 00:06:08,480 --> 00:06:08,980 You have to disable that option. 39 00:06:08,980 --> 00:06:12,480 So your computer is able to source routed frames. 40 00:06:14,540 --> 00:06:18,240 and IPA-lessing, it's like you have lots of IP addresses 41 00:06:18,240 --> 00:06:25,160 on your network card, ETH0, for example. 42 00:06:28,560 --> 00:06:29,060 That's it. 43 00:06:32,340 --> 00:06:35,020 Now we're sitting on an untrusted network. 44 00:06:36,760 --> 00:06:42,860 We are C.3, and with CFO, 45 00:06:44,540 --> 00:06:47,100 it's a very good passive network mapper. 46 00:06:48,200 --> 00:06:50,800 It's by Subterranean Security Group. 47 00:06:51,000 --> 00:06:51,940 Are they here today? 48 00:06:53,260 --> 00:06:54,060 No, they're drunk. 49 00:06:57,360 --> 00:07:00,060 You can see traffic with Ciphon. 50 00:07:00,160 --> 00:07:01,820 It's just a passive network mapper. 51 00:07:01,920 --> 00:07:05,360 You have to start it, and it will show up 52 00:07:05,360 --> 00:07:09,300 that E.2 have port 80 open, 53 00:07:09,420 --> 00:07:13,140 because someone is surfing to that box. 54 00:07:13,600 --> 00:07:14,520 In this example, we have port 80 open. 55 00:07:14,520 --> 00:07:16,600 This example is B.2, okay? 56 00:07:17,520 --> 00:07:20,700 Now we know it's port 80 is open on that one. 57 00:07:21,380 --> 00:07:24,280 When we try to connect it from C.3, 58 00:07:25,300 --> 00:07:26,620 we don't get any answers. 59 00:07:28,200 --> 00:07:28,520 Why? 60 00:07:29,920 --> 00:07:33,260 Yeah, probably C.2, the router C.2 61 00:07:33,540 --> 00:07:35,100 is filtering that traffic out. 62 00:07:36,340 --> 00:07:40,440 It just allows computers on B network 63 00:07:40,700 --> 00:07:43,320 to reach this port on that computer. 64 00:07:44,720 --> 00:07:49,200 That's why we use passive network mapping. 65 00:07:49,540 --> 00:07:54,180 It's a very good key to IP spoofing. 66 00:07:55,880 --> 00:07:58,500 I have to just write dsniff also, 67 00:07:58,680 --> 00:08:02,500 because I love that tool, and it also shows 68 00:08:03,040 --> 00:08:08,060 if B.2 makes login to E.2, it shows up, 69 00:08:08,200 --> 00:08:10,400 and when I try to login, I don't get any connection. 70 00:08:13,020 --> 00:08:14,160 But it always, 71 00:08:14,520 --> 00:08:17,440 it's down to tcpdump, of course. 72 00:08:17,940 --> 00:08:18,780 Anyone use it here? 73 00:08:19,440 --> 00:08:24,220 And it's for looking for what IP addresses 74 00:08:24,220 --> 00:08:27,240 that sends the package, and the MAC addresses 75 00:08:27,420 --> 00:08:28,320 of the packages. 76 00:08:28,620 --> 00:08:30,500 It will become important later. 77 00:08:35,480 --> 00:08:41,040 So, an arrow from B.2 to B.2, nice. 78 00:08:42,760 --> 00:08:43,100 Good. 79 00:08:47,360 --> 00:08:51,480 So, five minutes and half the speech is over. 80 00:08:53,440 --> 00:08:55,060 Because this is so easy, 81 00:08:56,880 --> 00:09:01,380 as I said, some people think it's very hard to do, 82 00:09:01,800 --> 00:09:04,320 but after the show, you know how to do it. 83 00:09:05,980 --> 00:09:07,160 Why source route? 84 00:09:09,260 --> 00:09:12,140 What is source routing used for, anyway? 85 00:09:12,320 --> 00:09:13,920 Why is it enable default? 86 00:09:13,920 --> 00:09:15,100 fault on the routers. 87 00:09:16,560 --> 00:09:20,480 Yeah, you maybe have two different ways to a network. 88 00:09:20,740 --> 00:09:24,080 You are A.3, I want to talk to B.3. 89 00:09:25,620 --> 00:09:29,680 You can go through a router A.1 on a slow, cheap line, 90 00:09:29,880 --> 00:09:33,180 or A.2 on a fast, expensive line. 91 00:09:33,600 --> 00:09:36,000 You may choose with source routing. 92 00:09:36,300 --> 00:09:38,940 I choose A.2 or something. 93 00:09:39,100 --> 00:09:40,480 I will show how it is done. 94 00:09:40,480 --> 00:09:47,460 Now, and maybe you're connected to network 95 00:09:47,460 --> 00:09:48,460 with the same network number. 96 00:09:49,800 --> 00:09:55,160 It can be done, but the router A.1 don't know 97 00:09:55,760 --> 00:09:58,460 which network who will choose, 98 00:09:58,700 --> 00:10:02,060 but I may choose in my network packages. 99 00:10:07,620 --> 00:10:09,740 But not many uses. 100 00:10:10,480 --> 00:10:11,700 Source routed frames today. 101 00:10:13,200 --> 00:10:16,900 Hackers do, and it's, I'll show you now. 102 00:10:18,570 --> 00:10:24,120 If you are A.2 here, and the rule in the router A.1 says 103 00:10:25,360 --> 00:10:28,460 A is not allowed to go to network B. 104 00:10:30,810 --> 00:10:36,080 You just pick B.3 here, one IP address on the inside, 105 00:10:37,390 --> 00:10:39,420 and you send, you craft a package. 106 00:10:41,300 --> 00:10:44,080 And it go through, it's simple like that. 107 00:10:44,360 --> 00:10:48,020 But, the problem is, if it just craft the package 108 00:10:48,020 --> 00:10:52,980 and send it, it will go back to B.3. 109 00:10:54,380 --> 00:10:56,820 You don't want that, you want a full connection. 110 00:10:57,180 --> 00:10:59,620 You don't want to do blind spoofing here or something. 111 00:10:59,740 --> 00:11:01,460 It's, or guessing something. 112 00:11:01,800 --> 00:11:03,600 It's, I want the packages back. 113 00:11:04,280 --> 00:11:04,800 So. 114 00:11:07,920 --> 00:11:08,440 Yeah. 115 00:11:10,480 --> 00:11:11,780 So, here's the example. 116 00:11:16,090 --> 00:11:18,320 There's a router called C.1. 117 00:11:19,950 --> 00:11:24,920 And it's a rule that says E are not allowed to go to B. 118 00:11:27,370 --> 00:11:30,280 So, I'm B.2 on this network. 119 00:11:30,850 --> 00:11:34,040 I just pick another address, A.2. 120 00:11:39,000 --> 00:11:40,280 And it's done. 121 00:11:40,300 --> 00:11:40,460 So, I'm B.2 on this network. 122 00:11:40,460 --> 00:11:40,720 This way. 123 00:11:42,930 --> 00:11:46,400 Yeah, you already have an illegal IP address, E.2. 124 00:11:46,660 --> 00:11:49,440 You just make another IP address in the network card 125 00:11:49,440 --> 00:11:51,920 with this command, and you have A.2. 126 00:11:56,370 --> 00:12:01,320 This is, this network is a typical network 127 00:12:01,320 --> 00:12:03,620 on companies that's using filtering routers 128 00:12:04,230 --> 00:12:08,040 to protect like a production network or something. 129 00:12:08,540 --> 00:12:09,580 And it's... 130 00:12:10,460 --> 00:12:12,540 This is way how to get through it. 131 00:12:15,600 --> 00:12:18,340 You add a route, of course, that says, like, 132 00:12:18,700 --> 00:12:21,280 net A is on my network card, thank you. 133 00:12:23,760 --> 00:12:28,300 And then you use almighty hobbits, netcat, 134 00:12:31,340 --> 00:12:34,140 and have some switches on it, just network numbers, 135 00:12:35,180 --> 00:12:39,640 verbose, and I have the source of A.2, 136 00:12:39,840 --> 00:12:44,580 my spoofed IP address, and I choose the gateway 137 00:12:44,580 --> 00:12:48,340 to my legal IP address, so it's on the real network, 138 00:12:49,340 --> 00:12:53,900 and the destination, it's at the end here, 139 00:12:55,820 --> 00:13:00,460 there, the destination is A.2, port 23. 140 00:13:01,360 --> 00:13:02,660 So I connect 141 00:13:02,660 --> 00:13:06,500 from my spoofed type address, to my real IP address, 142 00:13:07,260 --> 00:13:08,720 to myself, on port 23. 143 00:13:09,020 --> 00:13:12,000 If we get an open here, it's working, okay, 144 00:13:12,060 --> 00:13:14,780 your computer is fine, it's handled source focused 145 00:13:14,780 --> 00:13:19,080 frames in a correct way, and a good start. 146 00:13:21,660 --> 00:13:27,740 What you do next is that you have, of course, 147 00:13:27,800 --> 00:13:31,260 at always, A.2 as a spoofed address, source address, 148 00:13:32,660 --> 00:13:38,940 go to your real interface as a jump, network jump, 149 00:13:39,760 --> 00:13:41,940 and then to the routers, 150 00:13:42,020 --> 00:13:45,440 the first downstream routers IP address, 151 00:13:45,700 --> 00:13:48,600 E.1 port 23, if it's open of course, 152 00:13:49,120 --> 00:13:50,820 and if you get this open there, 153 00:13:52,020 --> 00:13:53,900 it is vulnerable to source routing, 154 00:13:55,120 --> 00:13:56,780 and it mostly are. 155 00:13:57,120 --> 00:14:00,480 And when you then fingers the router E.1, 156 00:14:00,480 --> 00:14:03,480 it will show up in the, who's logged in, 157 00:14:03,620 --> 00:14:07,260 you're not, you don't have to log into the router, 158 00:14:07,380 --> 00:14:09,760 you just have to connect to it and finger it, 159 00:14:09,860 --> 00:14:13,460 and it says like, A.2 has a connection to it. 160 00:14:13,980 --> 00:14:17,100 Good, this router is fooled right now. 161 00:14:17,380 --> 00:14:18,920 So we go on, 162 00:14:21,800 --> 00:14:26,200 and from spoofed A.2 to my real network interface, 163 00:14:26,940 --> 00:14:29,620 to the first fooled downstream router, 164 00:14:30,480 --> 00:14:31,920 to the next downstream router. 165 00:14:32,120 --> 00:14:36,620 Same thing, if it's open, it believes what I'm sending, 166 00:14:39,920 --> 00:14:43,500 so this line will do it. 167 00:14:44,220 --> 00:14:45,320 That easy. 168 00:14:49,140 --> 00:14:51,800 You have a full connection, you can talk to POP, 169 00:14:51,880 --> 00:14:54,840 everything, FTP, something. 170 00:14:59,620 --> 00:15:03,020 This is said in the readme file of Netcat, 171 00:15:03,180 --> 00:15:06,560 that it can be used, but it's not described 172 00:15:06,560 --> 00:15:08,340 how easily it is done. 173 00:15:09,280 --> 00:15:12,880 So people don't really, I don't really understand 174 00:15:12,880 --> 00:15:17,040 how it's important to disable source routing in routers. 175 00:15:21,060 --> 00:15:24,480 And one more thing, it's important to understand, 176 00:15:24,820 --> 00:15:27,540 that all these hosts, or routers, 177 00:15:28,520 --> 00:15:32,100 had to accept source routed frames, of course. 178 00:15:35,640 --> 00:15:36,640 What, excuse me? 179 00:15:36,820 --> 00:15:38,200 That is the first thing you turn off. 180 00:15:38,260 --> 00:15:40,400 Yes, that is the first thing you turn off. 181 00:15:40,600 --> 00:15:43,000 But you may, people don't. 182 00:15:43,540 --> 00:15:45,360 What do you do if it's not turned off? 183 00:15:46,540 --> 00:15:47,420 You disable. 184 00:15:47,820 --> 00:15:50,100 If it's turned off, what do you do if it's turned off? 185 00:15:51,260 --> 00:15:52,400 I will come to that. 186 00:15:52,800 --> 00:15:53,240 Okay. 187 00:15:54,820 --> 00:15:56,180 Well, it's very hard. 188 00:15:56,320 --> 00:15:58,940 It depends on the rules, how the rules are set up. 189 00:15:59,120 --> 00:16:03,520 The question is, what do you do if it's turned off? 190 00:16:03,720 --> 00:16:04,900 It's very hard. 191 00:16:05,080 --> 00:16:05,880 It's hard. 192 00:16:06,480 --> 00:16:09,460 And it depends on the rules, that if it's like, 193 00:16:09,560 --> 00:16:12,920 only this network allow, or your network just deny, 194 00:16:13,020 --> 00:16:14,220 or something, it depends. 195 00:16:16,160 --> 00:16:19,860 But this is working fine in Europe, 196 00:16:20,000 --> 00:16:22,060 and I think it will work fine here. 197 00:16:30,960 --> 00:16:34,940 Here's one more thing I will show today. 198 00:16:35,400 --> 00:16:39,780 And we have lots of time to go to culture.com then. 199 00:16:39,900 --> 00:16:41,600 I will be there, sharing. 200 00:16:43,380 --> 00:16:46,660 And here's a router called U.2. 201 00:16:46,960 --> 00:16:50,540 The small letters, what's called, lowercase letters, 202 00:16:51,520 --> 00:16:54,300 they represent the MAC address, 203 00:16:54,300 --> 00:16:56,620 of the hosts. 204 00:16:58,260 --> 00:17:00,520 So I'm having MAC address B, 205 00:17:00,700 --> 00:17:04,280 and my IP address, legal IP address, it's U.3. 206 00:17:04,780 --> 00:17:06,700 I'm sitting on an untrusted network. 207 00:17:07,140 --> 00:17:08,480 Nobody trust me there. 208 00:17:08,920 --> 00:17:11,780 The customers put me there when I'm going 209 00:17:11,780 --> 00:17:12,900 for penetration tests. 210 00:17:13,160 --> 00:17:14,520 They don't want me to find anything. 211 00:17:15,900 --> 00:17:18,640 And the rule in the router says, 212 00:17:19,300 --> 00:17:23,220 like, if you come from A, a trusted network, 213 00:17:23,220 --> 00:17:27,640 but UBER untrusted, you're allowed to go to B. 214 00:17:29,020 --> 00:17:30,940 And everyone else is denied. 215 00:17:31,540 --> 00:17:34,960 It is this rule we find too many times 216 00:17:35,700 --> 00:17:37,840 on filtering routers and firewalls. 217 00:17:39,820 --> 00:17:44,540 Because, I will show you how it could be bypassed, easily. 218 00:17:50,340 --> 00:17:52,500 Because, if you just spoof, 219 00:17:53,220 --> 00:17:55,620 the IP address, you craft a network package, 220 00:17:55,780 --> 00:17:59,340 and send it to the destination, 221 00:18:00,160 --> 00:18:02,860 it will get through, because I'm A.2, 222 00:18:02,980 --> 00:18:04,300 it says in the network package. 223 00:18:04,640 --> 00:18:07,340 It will pass the firewall filtering router. 224 00:18:10,540 --> 00:18:13,320 But, when the answer comes back, 225 00:18:15,080 --> 00:18:19,300 the first router, B.1, will say, like, 226 00:18:19,320 --> 00:18:22,040 A, this package is for network A. 227 00:18:22,160 --> 00:18:23,200 A, this package is for network A. 228 00:18:23,200 --> 00:18:24,700 It will find the router, U.1. 229 00:18:25,260 --> 00:18:30,000 It put the MAC address of A on that packet, 230 00:18:30,700 --> 00:18:33,580 to, and the destination, IP address, A.2. 231 00:18:34,880 --> 00:18:35,540 Got it? 232 00:18:36,080 --> 00:18:39,620 It will, if you, you can easily just send packages, 233 00:18:39,800 --> 00:18:44,800 and sniff the responses, but it will go to the router. 234 00:18:47,320 --> 00:18:50,360 But, this is, I will, this is not fun. 235 00:18:50,580 --> 00:18:52,760 You want full connection, you want to run Nmap, 236 00:18:52,760 --> 00:18:54,720 NETCAT, Nessus, and everything, 237 00:18:55,460 --> 00:18:57,900 and you don't want to just sniff the responses. 238 00:19:01,200 --> 00:19:04,640 So, and then, the network package will be transferred 239 00:19:04,640 --> 00:19:05,620 to the right host. 240 00:19:08,080 --> 00:19:09,200 So, what? 241 00:19:16,320 --> 00:19:17,520 I don't. 242 00:19:18,700 --> 00:19:20,100 I really don't. 243 00:19:21,240 --> 00:19:21,840 Yeah. 244 00:19:21,920 --> 00:19:22,160 Yeah. 245 00:19:22,160 --> 00:19:24,380 Or, pick an IP address that knots up. 246 00:19:26,260 --> 00:19:27,780 It depends on the rules. 247 00:19:27,940 --> 00:19:30,340 If you can, first shoot it down, 248 00:19:30,440 --> 00:19:32,260 or pick an IP address that's not there. 249 00:19:32,520 --> 00:19:35,560 It's working most of the times, really. 250 00:19:37,000 --> 00:19:38,260 Otherwise, you know. 251 00:19:40,300 --> 00:19:41,220 I don't do it. 252 00:19:41,280 --> 00:19:41,980 I just pick a number. 253 00:19:43,020 --> 00:19:45,800 And, here's how full connection, 254 00:19:46,440 --> 00:19:48,140 vanilla IP spoofing, it's done. 255 00:19:49,360 --> 00:19:52,060 And, don't be alarmed, because it's too easy. 256 00:19:52,160 --> 00:19:54,020 You are in Uber Hacks, I know, 257 00:19:54,140 --> 00:19:57,740 but people don't understand how easily it is done. 258 00:19:58,400 --> 00:19:59,680 Here's the same network. 259 00:20:02,000 --> 00:20:06,920 And, what I do, it's take my interface down, 260 00:20:09,200 --> 00:20:11,760 and put the new MAC address on it. 261 00:20:12,820 --> 00:20:16,960 I pick the same MAC address as the upstream router. 262 00:20:17,840 --> 00:20:18,680 You see it? 263 00:20:22,720 --> 00:20:27,420 And, then, you set my spoofed IP address as ETH0. 264 00:20:30,940 --> 00:20:33,680 Of course, A is on my network card. 265 00:20:34,820 --> 00:20:36,540 Network A is on my network card. 266 00:20:37,340 --> 00:20:43,880 Then, I take my real IP address as the next IP address 267 00:20:44,720 --> 00:20:47,440 on my network card, U.3, it's my legal one. 268 00:20:48,940 --> 00:20:50,320 I add a route. 269 00:20:51,340 --> 00:20:53,900 My legal network is on my network card. 270 00:20:56,740 --> 00:21:00,740 And, of course, I don't need, but in this example, 271 00:21:00,820 --> 00:21:02,820 I need a default gateway, U.2. 272 00:21:04,420 --> 00:21:06,140 And, what more do you think? 273 00:21:07,680 --> 00:21:11,700 Well, you have full connections now to B.2. 274 00:21:11,880 --> 00:21:15,400 You can run Nmap, you can run Nessus, 275 00:21:15,600 --> 00:21:19,260 you can run everything you want from your Linux box. 276 00:21:20,320 --> 00:21:21,300 And you have full connections, 277 00:21:21,540 --> 00:21:24,220 and you can talk to the services as you're used to. 278 00:21:26,060 --> 00:21:31,520 So, if you're allowing people into your network, 279 00:21:32,480 --> 00:21:33,880 your untrusted network, 280 00:21:34,080 --> 00:21:36,420 I think you will have to change that now. 281 00:21:37,220 --> 00:21:38,720 You know it, you're here. 282 00:21:40,520 --> 00:21:42,960 Well, that's the easy way to do it. 283 00:21:50,920 --> 00:21:54,120 As I said, I hope Dork Tanya will put these slides up, 284 00:21:54,940 --> 00:21:58,400 because you have these, oh sorry, these cool effects now. 285 00:22:07,640 --> 00:22:10,580 If the last man is, have finished, you can, 286 00:22:11,220 --> 00:22:11,700 okay, sorry. 287 00:22:13,460 --> 00:22:14,140 Didn't work. 288 00:22:18,600 --> 00:22:19,640 People are taking, 289 00:22:19,640 --> 00:22:21,060 we have so much time, you know, 290 00:22:21,100 --> 00:22:22,480 I'm really finished with this talk. 291 00:22:22,580 --> 00:22:26,540 I have some quirks to it, some other fun stuff. 292 00:22:32,380 --> 00:22:34,580 Okay, three, two, yes? 293 00:22:39,420 --> 00:22:39,940 Switched. 294 00:22:39,940 --> 00:22:41,660 No problem. 295 00:22:42,560 --> 00:22:44,900 Yeah, yeah, it's a hard thing to do. 296 00:22:45,020 --> 00:22:46,960 There's lots of problems to it, 297 00:22:47,040 --> 00:22:48,920 because then two, 298 00:22:49,640 --> 00:22:51,480 two network cards on the same, 299 00:22:51,970 --> 00:22:54,480 on the same network have the same MAC address, 300 00:22:54,700 --> 00:22:57,300 and the package don't know when it passes the switch, 301 00:22:57,460 --> 00:22:58,620 what way it will take. 302 00:22:58,860 --> 00:23:00,420 Yes, it's a real big problem, 303 00:23:01,050 --> 00:23:06,060 but you can just give a shit about the default gateway 304 00:23:06,060 --> 00:23:08,100 and take every package back. 305 00:23:08,700 --> 00:23:11,600 You know, you can just like, 306 00:23:11,800 --> 00:23:14,460 okay, I'm A, forget the default gateway here. 307 00:23:15,380 --> 00:23:17,380 You know, so you have full connections. 308 00:23:22,420 --> 00:23:25,640 So, this is a very, very, very easy way 309 00:23:25,640 --> 00:23:27,720 to establish full connections over, 310 00:23:27,860 --> 00:23:29,500 if you're sitting on an untrusted network 311 00:23:29,500 --> 00:23:32,140 and some people are allowing other people 312 00:23:32,140 --> 00:23:33,300 through that network. 313 00:23:35,380 --> 00:23:39,160 The same attack can be done on your local network. 314 00:23:39,420 --> 00:23:43,800 Some people on your network can just take 315 00:23:43,800 --> 00:23:46,060 the default gateways of your network, 316 00:23:46,960 --> 00:23:49,020 the network's MAC address, 317 00:23:49,740 --> 00:23:52,660 he pick a random IP address on his network card 318 00:23:53,540 --> 00:23:56,980 and set it up as he's done the last slide. 319 00:23:57,460 --> 00:24:01,420 He can attack here, A.3, 320 00:24:02,000 --> 00:24:03,960 and if someone sniffs the network, 321 00:24:04,120 --> 00:24:05,820 it will come from X.1, 322 00:24:06,680 --> 00:24:09,540 and it looks like, exactly looks the same way. 323 00:24:09,680 --> 00:24:12,180 It comes from the default gateway from the internet. 324 00:24:12,500 --> 00:24:17,520 So many security officers will like checking, 325 00:24:17,620 --> 00:24:19,540 why X is in our network? 326 00:24:19,540 --> 00:24:21,740 network, someone is hacking here. 327 00:24:24,260 --> 00:24:26,140 And who should they attack? 328 00:24:26,360 --> 00:24:31,220 I ran this on the capture flag yesterday 329 00:24:31,220 --> 00:24:33,240 and there were lots of machines there 330 00:24:33,240 --> 00:24:38,500 that make automatic attacks to the hosts attacking them. 331 00:24:38,980 --> 00:24:42,560 So their machines were attacking X.1 there. 332 00:24:43,740 --> 00:24:47,460 And that one was on the internet, excuse me. 333 00:24:49,820 --> 00:24:53,520 So it will send a package, it will come back, 334 00:24:54,300 --> 00:24:59,460 and it will come back to me because my network interface, 335 00:24:59,760 --> 00:25:03,060 my TCP IP stack will pick it up because it's 336 00:25:03,060 --> 00:25:07,140 addressed to A.X.1, but the default gateway 337 00:25:07,140 --> 00:25:10,240 will also pick it up and send it to the right host 338 00:25:10,240 --> 00:25:11,960 on the normal hubbed network, 339 00:25:12,200 --> 00:25:14,620 but there are no security in switches, believe me. 340 00:25:16,460 --> 00:25:19,300 So the solution is, of course, 341 00:25:19,300 --> 00:25:22,640 disable source routing as a part of IP options. 342 00:25:22,880 --> 00:25:23,920 I don't know how it's done. 343 00:25:24,100 --> 00:25:25,320 You have to figure it out yourself. 344 00:25:25,780 --> 00:25:29,420 It's default on firewalls, but it's disabled, 345 00:25:30,270 --> 00:25:33,160 and Linux boxes, but not default on routers. 346 00:25:34,760 --> 00:25:36,820 You have to implement spoofing protection. 347 00:25:37,680 --> 00:25:42,540 It's like saying, this is my inside network interface. 348 00:25:42,920 --> 00:25:45,360 These are, the IP address is there. 349 00:25:45,560 --> 00:25:48,180 If someone sends an IP address 350 00:25:48,180 --> 00:25:53,200 from the outside, I should warn, drop everything. 351 00:25:55,380 --> 00:25:58,220 Don't use filter rules over an untrusted network. 352 00:25:58,600 --> 00:26:00,500 You have understand that now, I hope? 353 00:26:01,260 --> 00:26:05,660 And you have to use some kind of VP6 something, 354 00:26:06,040 --> 00:26:10,680 encryption, VPN something, okay? 355 00:26:11,600 --> 00:26:12,720 Promise me that, okay? 356 00:26:14,400 --> 00:26:14,780 Questions? 357 00:26:16,580 --> 00:26:16,960 What? 358 00:26:24,900 --> 00:26:27,840 He says, like, it is disabled on Cisco. 359 00:26:28,000 --> 00:26:29,260 Yes, I heard of it. 360 00:26:29,960 --> 00:26:33,100 Yeah, the 12, the 12 iOS as well. 361 00:26:34,240 --> 00:26:35,200 Some more questions? 362 00:26:39,320 --> 00:26:40,020 Thank you.