1 00:00:32,280 --> 00:00:32,840 We'll see you next time. 2 00:01:12,700 --> 00:01:14,220 See you next time. 3 00:01:54,560 --> 00:01:59,580 See you next time. 4 00:02:00,000 --> 00:02:12,900 See you next time. 5 00:02:31,700 --> 00:02:34,140 And you would believe me, right? 6 00:02:35,880 --> 00:02:37,380 So, looks like this. 7 00:02:37,440 --> 00:02:38,220 He cries around. 8 00:02:38,820 --> 00:02:40,340 Etiker hears this as well. 9 00:02:40,600 --> 00:02:42,040 So, here's the normal answer. 10 00:02:43,020 --> 00:02:44,360 Here, the etiker appears. 11 00:02:44,660 --> 00:02:48,660 And he answers, I'm this host. 12 00:02:49,340 --> 00:02:53,220 And, well, while that is, he can lie to both parties as well. 13 00:02:53,740 --> 00:02:58,480 So, then it ends up going through his system. 14 00:02:58,840 --> 00:02:59,360 Great. 15 00:03:02,560 --> 00:03:04,440 So, this is a short list of tools. 16 00:03:04,680 --> 00:03:07,040 There are lots of tools to do this stuff. 17 00:03:09,040 --> 00:03:11,200 We did one for Linux and for Windows. 18 00:03:12,140 --> 00:03:15,680 The THC group, another German group, wrote the parasite. 19 00:03:16,840 --> 00:03:22,360 Ittercap is pretty nice because it has a graphical user interface. 20 00:03:23,700 --> 00:03:29,240 So, for all the less educated people here, that's pretty easy. 21 00:03:30,580 --> 00:03:35,080 The classic is Hunt, which is very good, but sometimes strange to handle. 22 00:03:35,560 --> 00:03:37,840 And, yeah, there are scores of others. 23 00:03:40,720 --> 00:03:43,480 Another thing, local redirection. 24 00:03:43,580 --> 00:03:45,380 What do I mean by local redirection? 25 00:03:45,720 --> 00:03:48,000 Most people just overlook this. 26 00:03:48,940 --> 00:03:53,580 By modifying your own system, you can just modify it away. 27 00:03:53,820 --> 00:03:54,220 Okay. 28 00:03:54,500 --> 00:03:59,600 Let's assume the administrator discovers etiker and thinks, okay, 29 00:04:00,000 --> 00:04:01,400 I'm going to fuck this guy. 30 00:04:02,320 --> 00:04:04,320 I'm blocking him here on router one. 31 00:04:06,120 --> 00:04:07,820 Well, okay, end of game. 32 00:04:08,040 --> 00:04:08,740 No, not really. 33 00:04:11,600 --> 00:04:16,780 Etiker could map, let's say, victim's address here, if this guy is forwarding, 34 00:04:18,060 --> 00:04:22,460 to the IP address of router one, just by setting a fixed up entry. 35 00:04:23,980 --> 00:04:29,920 If router one is somehow using MAC addresses for filtering, like, let's say, it's a switching router, 36 00:04:30,000 --> 00:04:32,100 or something, that would pass. 37 00:04:33,320 --> 00:04:40,980 Another way, and that's the recommended way, just modify, yeah, that's the MAC address thing, 38 00:04:42,020 --> 00:04:45,340 just modify your routing table and use router two. 39 00:04:46,740 --> 00:04:52,180 You could even use router two if it had no connection to host B. 40 00:04:52,860 --> 00:04:53,420 Why? 41 00:04:53,580 --> 00:04:59,660 Because router two would know how to send it to router one, and router one would probably accept it. 42 00:05:02,580 --> 00:05:03,540 So, routers. 43 00:05:04,720 --> 00:05:05,200 Okay. 44 00:05:05,320 --> 00:05:08,800 We saw we can do nice things with them, but how do you find them? 45 00:05:09,940 --> 00:05:12,420 There are passive and active ways. 46 00:05:12,940 --> 00:05:19,580 Passive ways basically listen for all the multicast and broadcast stuff, or just discovery protocols, like CDP, 47 00:05:21,040 --> 00:05:22,360 running around the network. 48 00:05:22,780 --> 00:05:24,700 You just map the routers. 49 00:05:25,680 --> 00:05:29,980 But, well, this is not very effective, because most modern routers don't do that. 50 00:05:29,980 --> 00:05:34,080 Routing protocols don't include the actual information in the broadcast packets. 51 00:05:34,900 --> 00:05:36,420 So, what can we do? 52 00:05:38,700 --> 00:05:40,140 We can do active discovery. 53 00:05:40,440 --> 00:05:42,880 We can query routing processes. 54 00:05:43,740 --> 00:05:47,980 We call this AS scanning, because it's autonomous system scanning. 55 00:05:48,900 --> 00:05:52,500 We can send out router solicitations. 56 00:05:52,580 --> 00:05:53,640 I really hate this word. 57 00:05:55,340 --> 00:05:58,380 Which means we just try around and look for a router. 58 00:05:59,180 --> 00:06:04,780 We do OS fingerprinting, or even more interesting, protocol scans. 59 00:06:05,160 --> 00:06:11,860 We just scan the IP protocols, and if it's, let's say, supports IGRP, that's a good hint it might be a router. 60 00:06:12,900 --> 00:06:14,320 Or we just do port scans. 61 00:06:14,500 --> 00:06:21,820 If it is an older model, or just a strange model, and it has, let's say, the RIP port open, well, we find it this way. 62 00:06:23,280 --> 00:06:28,280 This is an example from our ASS, our autonomous system scanner. 63 00:06:29,340 --> 00:06:32,580 The upper four lines, that's passive stuff. 64 00:06:32,840 --> 00:06:40,940 It sees IRDP, broadcasting, router information, and it sees IGRP, two different autonomous systems. 65 00:06:41,100 --> 00:06:43,340 Notice that it includes the iOS version. 66 00:06:43,540 --> 00:06:44,500 Very interesting. 67 00:06:45,920 --> 00:06:54,460 The rest of it is by active scanning, the IGRP in this case, you see how much information you get out there. 68 00:06:54,840 --> 00:06:57,280 It's internal routes or external routes. 69 00:06:58,380 --> 00:07:06,020 You see the net itself, the net mask, the next hop, various information, even what kind of link it was. 70 00:07:07,320 --> 00:07:14,880 And all the information for the routing protocol, like delay, hop count, reliability, and yeah, all that stuff. 71 00:07:16,080 --> 00:07:17,640 So, which jutsu do we have? 72 00:07:17,940 --> 00:07:21,060 As already mentioned, we wrote an autonomous system scanner. 73 00:07:22,580 --> 00:07:25,820 Ethereal is very good in decoding routing protocols. 74 00:07:25,920 --> 00:07:27,820 If you prefer to do your stuff by hand. 75 00:07:28,380 --> 00:07:29,300 Just take this tool. 76 00:07:30,000 --> 00:07:33,880 Nthop can be used to discover central points in the network. 77 00:07:34,980 --> 00:07:38,280 That would be a good hint for a router or a server. 78 00:07:38,480 --> 00:07:39,480 You will find out. 79 00:07:40,540 --> 00:07:44,520 TCP dumps option to show data link addresses is very good. 80 00:07:44,620 --> 00:07:55,680 Because if you see a packet going from A to B on the IP layer, and the destination address on the MAC layer doesn't match to the IP, well, that's the next hop router. 81 00:07:57,560 --> 00:08:01,600 Nmap is pretty good for protocol scan. 82 00:08:02,280 --> 00:08:05,700 We wrote our own tool before we discovered that Nmap supports this. 83 00:08:07,080 --> 00:08:18,540 You basically go down all the IP protocols, and that's a negative scan, so you wait for ICMP protocol unreachable messages. 84 00:08:18,720 --> 00:08:22,280 And if they don't appear, this thing is probably running this protocol. 85 00:08:22,280 --> 00:08:27,160 And if you get a router by DHCP query, well, why not using it? 86 00:08:29,480 --> 00:08:31,620 ICMP router protocol discovery. 87 00:08:31,960 --> 00:08:33,120 Okay, I mixed that up. 88 00:08:35,720 --> 00:08:44,120 IRDP is mostly when you enable this on routers, they broadcast periodic updates. 89 00:08:44,880 --> 00:08:47,400 And just tell everyone, I'm a router. 90 00:08:47,480 --> 00:08:50,540 And I know these interfaces. 91 00:08:50,600 --> 00:08:52,120 And you can talk to me. 92 00:08:53,940 --> 00:08:56,080 IRDP can be requested. 93 00:08:56,320 --> 00:08:58,840 That's this router solicitation stuff. 94 00:09:00,440 --> 00:09:02,540 And he will answer, mostly. 95 00:09:04,000 --> 00:09:19,480 The announcing router, let's say you are the announcing router, is inserted in the host routing table with less priority, means with a higher matrix than the default router. 96 00:09:19,480 --> 00:09:22,320 So make sure the default router is not available. 97 00:09:23,780 --> 00:09:26,580 And the matrix depends on the preference. 98 00:09:26,980 --> 00:09:28,880 Most systems just run with a low preference. 99 00:09:29,120 --> 00:09:31,360 If you use a high preference, you're the first guy. 100 00:09:33,300 --> 00:09:34,960 So how does it look like? 101 00:09:35,060 --> 00:09:35,860 It's pretty straightforward. 102 00:09:37,120 --> 00:09:40,580 You just make sure everyone thinks you are a router. 103 00:09:41,940 --> 00:09:43,120 You send them out. 104 00:09:43,840 --> 00:09:44,980 Make yourself known. 105 00:09:46,980 --> 00:09:48,040 To host A. 106 00:09:48,040 --> 00:09:52,540 And make sure that this guy is temporary not available. 107 00:09:52,820 --> 00:09:54,240 You want to use it later. 108 00:09:54,880 --> 00:09:58,080 Because how are you going to pass the traffic to this cloud here? 109 00:09:59,500 --> 00:10:04,960 So very interesting is the fact if you have a router that runs dial on demand or something. 110 00:10:05,160 --> 00:10:11,500 It has to raise the line or just negotiate PPP or something. 111 00:10:12,440 --> 00:10:17,520 If this host here is Windows, he would think the router is not available. 112 00:10:17,520 --> 00:10:21,560 And take the next one in his routing table, which is hopefully you. 113 00:10:24,140 --> 00:10:26,180 So again, here are the tools. 114 00:10:27,220 --> 00:10:29,760 I recommend this attack as an additional thing. 115 00:10:30,080 --> 00:10:32,640 Because you don't get the traffic right away. 116 00:10:32,980 --> 00:10:36,940 So if you do any kind of traffic interception or redirection, 117 00:10:37,080 --> 00:10:40,720 you can do this in the background just to make sure. 118 00:10:41,440 --> 00:10:45,680 If something goes wrong with your primary attack, 119 00:10:45,680 --> 00:10:48,000 you still get the traffic. 120 00:10:50,480 --> 00:10:53,860 Hosts, as I said, Windows just really likes it. 121 00:10:54,000 --> 00:10:55,520 And does it all the time. 122 00:10:55,760 --> 00:10:57,360 And he just don't boot up. 123 00:10:57,940 --> 00:11:01,120 On the other hand, Linux does not care at all. 124 00:11:03,940 --> 00:11:05,300 ICMP redirects. 125 00:11:05,480 --> 00:11:07,440 Most know these. 126 00:11:07,700 --> 00:11:13,560 They were introduced to make routing a little bit more effective. 127 00:11:13,560 --> 00:11:19,560 So when host A sends traffic to router 1 here, 128 00:11:19,760 --> 00:11:21,360 and router 1 discovers, 129 00:11:21,600 --> 00:11:24,420 shit, I forward this packet to the same segment, 130 00:11:24,440 --> 00:11:26,920 to another router in the same IP network, 131 00:11:27,240 --> 00:11:28,940 which is called router 2, 132 00:11:29,120 --> 00:11:30,100 this is stupid. 133 00:11:30,520 --> 00:11:32,540 And he actually tells this host A. 134 00:11:33,480 --> 00:11:36,700 So host A happily adjusts his routing table 135 00:11:36,700 --> 00:11:39,520 and uses router 2 for disconnection. 136 00:11:42,200 --> 00:11:43,900 So how do we use that? 137 00:11:44,660 --> 00:11:46,080 That works vice versa. 138 00:11:47,120 --> 00:11:51,020 The packet is sent from host A to host B through router 2. 139 00:11:52,400 --> 00:11:54,920 We see this traffic, and we think, 140 00:11:54,960 --> 00:11:57,080 well, we know a better way. 141 00:11:57,740 --> 00:12:00,260 So we actually tell this host A, 142 00:12:01,180 --> 00:12:04,140 please use me as your next hub. 143 00:12:05,800 --> 00:12:06,720 And it works. 144 00:12:07,880 --> 00:12:09,500 It even works extremely well 145 00:12:09,520 --> 00:12:10,160 across routers. 146 00:12:10,260 --> 00:12:13,660 If you send ICMP redirect message, 147 00:12:14,340 --> 00:12:16,000 let's say, across the internet, 148 00:12:16,820 --> 00:12:18,040 that works as well. 149 00:12:18,600 --> 00:12:19,200 Why? 150 00:12:19,880 --> 00:12:23,260 Because the final router who will deliver this packet 151 00:12:23,260 --> 00:12:24,960 to the attacked host 152 00:12:26,760 --> 00:12:31,080 is actually the one who's probably getting all the traffic. 153 00:12:31,220 --> 00:12:33,000 So the host will believe you. 154 00:12:34,240 --> 00:12:35,920 Okay, one important thing here. 155 00:12:36,060 --> 00:12:38,660 There are a lot of redirect tools out there. 156 00:12:39,520 --> 00:12:42,960 But most systems require the first 64 bits 157 00:12:42,960 --> 00:12:46,520 of the original offending packet to be included. 158 00:12:46,740 --> 00:12:47,120 Why? 159 00:12:47,280 --> 00:12:49,700 It would be cool to know which direction 160 00:12:49,700 --> 00:12:51,760 and which communication caused this problem. 161 00:12:54,180 --> 00:12:55,760 So host reactions. 162 00:12:57,440 --> 00:13:00,020 Windows just loves ICMP redirects. 163 00:13:01,210 --> 00:13:04,780 And it just adds the thing to the host 164 00:13:04,780 --> 00:13:07,140 as a host route to his routing table. 165 00:13:08,380 --> 00:13:10,920 So if you look at your routing table 166 00:13:10,920 --> 00:13:12,820 and you have about 500 host routes 167 00:13:12,820 --> 00:13:14,000 on your routing table, 168 00:13:14,180 --> 00:13:16,400 you should look out for ICMP. 169 00:13:18,280 --> 00:13:19,700 Linux host, it depends. 170 00:13:19,960 --> 00:13:22,060 You can set this here in this proc file system. 171 00:13:22,780 --> 00:13:26,340 But most distributions now accept these things. 172 00:13:26,740 --> 00:13:29,560 And it's a little bit evil 173 00:13:29,560 --> 00:13:31,620 because you don't see them in the routing table. 174 00:13:32,020 --> 00:13:34,180 You really have to go into the proc file system 175 00:13:34,180 --> 00:13:35,060 and find out. 176 00:13:35,680 --> 00:13:37,220 So which tools exist? 177 00:13:37,580 --> 00:13:37,660 Okay. 178 00:13:38,480 --> 00:13:40,520 Yeah, because we're speaking about it, 179 00:13:40,540 --> 00:13:41,100 we coded one. 180 00:13:42,400 --> 00:13:44,940 And there's, from URI, another one, 181 00:13:45,000 --> 00:13:48,000 which is basically the original ICMP redirect tool. 182 00:13:48,280 --> 00:13:49,280 Works pretty good. 183 00:13:50,560 --> 00:13:53,060 So this is how it looks like on a Windows system. 184 00:13:53,620 --> 00:13:54,980 You might not read this, 185 00:13:55,140 --> 00:13:57,320 but you see the pattern. 186 00:13:57,540 --> 00:13:59,040 It's all host routing here. 187 00:13:59,340 --> 00:14:01,320 It's all 255. 188 00:14:03,780 --> 00:14:04,980 Okay, let's go routing. 189 00:14:05,060 --> 00:14:06,720 Let's make it interesting. 190 00:14:08,480 --> 00:14:11,400 IGRP, Interior Gateway Routing Protocol. 191 00:14:11,760 --> 00:14:12,660 A Cisco idea. 192 00:14:14,060 --> 00:14:20,660 It has actually 65,535 possible autonomous systems. 193 00:14:21,600 --> 00:14:26,520 It's just to separate several routing processes 194 00:14:26,720 --> 00:14:27,620 from each other. 195 00:14:28,600 --> 00:14:30,800 It uses no authentication. 196 00:14:30,940 --> 00:14:31,660 Hello. 197 00:14:33,000 --> 00:14:35,040 And various things 198 00:14:35,060 --> 00:14:36,060 and it has data link information 199 00:14:36,060 --> 00:14:37,560 like hop count reliability. 200 00:14:39,360 --> 00:14:41,120 Another word I really like. 201 00:14:41,860 --> 00:14:44,840 And bandwidth is used to calculate the matrix. 202 00:14:47,120 --> 00:14:50,480 Well, hosts can actually listen to IGRP 203 00:14:51,060 --> 00:14:52,300 without saying anything. 204 00:14:52,440 --> 00:14:53,640 That's called a passive interface. 205 00:14:54,080 --> 00:14:57,100 So make sure your protocols scan the hosts. 206 00:14:57,300 --> 00:14:59,100 Maybe they accept your updates. 207 00:15:02,240 --> 00:15:03,320 Spoofed updates, 208 00:15:03,320 --> 00:15:05,700 mostly have a better matrix. 209 00:15:06,100 --> 00:15:06,540 Why? 210 00:15:06,700 --> 00:15:09,360 Because you can choose your link however you want 211 00:15:09,360 --> 00:15:12,500 and you can easily compete with the real world stuff. 212 00:15:13,980 --> 00:15:17,420 But keep in mind that your sender network, 213 00:15:18,300 --> 00:15:20,380 whatever you select as your sender network, 214 00:15:21,240 --> 00:15:24,740 has to be enabled as a possible source for route updates. 215 00:15:26,180 --> 00:15:27,600 So how does it look like? 216 00:15:28,960 --> 00:15:31,240 We could introduce new routes 217 00:15:31,240 --> 00:15:33,300 or modifying existing one. 218 00:15:33,580 --> 00:15:35,280 We have this guy here, host B. 219 00:15:35,960 --> 00:15:39,180 And we have this nice server over here. 220 00:15:39,920 --> 00:15:43,280 And we have the three routers here talking IGRP. 221 00:15:43,840 --> 00:15:47,120 Our ad ticker got a connection to another router 222 00:15:47,120 --> 00:15:49,400 and he's just way off. 223 00:15:50,080 --> 00:15:51,740 Okay, so what does he do? 224 00:15:53,840 --> 00:15:58,460 First, he adds the IP address of the server 225 00:15:59,240 --> 00:16:00,360 to his interface. 226 00:16:00,360 --> 00:16:02,380 As a secondary IP. 227 00:16:02,540 --> 00:16:04,140 And enables IP forwarding. 228 00:16:04,900 --> 00:16:05,900 Guess why? 229 00:16:07,540 --> 00:16:09,220 Because in the next step, 230 00:16:09,400 --> 00:16:14,040 he's telling router 1 using router 3's IP address 231 00:16:14,040 --> 00:16:18,720 that 10.1.3.2 is definitely the best way 232 00:16:18,720 --> 00:16:20,180 to reach the server. 233 00:16:20,540 --> 00:16:24,100 So he just makes himself very interesting for the router. 234 00:16:26,400 --> 00:16:30,240 Now, he tells R2 that R1, 235 00:16:30,240 --> 00:16:33,240 is definitely a better route to reach the server 236 00:16:34,040 --> 00:16:36,640 than the original R3. 237 00:16:38,420 --> 00:16:41,400 So, host B actually ends up 238 00:16:41,400 --> 00:16:43,240 logging into his fake server, 239 00:16:43,520 --> 00:16:46,560 running there, submitting his password 240 00:16:46,560 --> 00:16:50,340 and all the other information you just want to have 241 00:16:50,340 --> 00:16:52,260 or just being curious. 242 00:16:53,220 --> 00:16:54,960 We don't do bad stuff, right? 243 00:16:55,420 --> 00:16:58,420 So, and he gets all the traffic. 244 00:16:58,660 --> 00:16:59,260 Great. 245 00:16:59,260 --> 00:17:02,980 He can even run a fake server on it 246 00:17:02,980 --> 00:17:05,260 that looks like the original one. 247 00:17:05,400 --> 00:17:06,380 Think about web applications. 248 00:17:07,520 --> 00:17:10,180 So, you can get a lot of interesting information there. 249 00:17:12,420 --> 00:17:13,880 If, for some reason, 250 00:17:14,000 --> 00:17:18,060 Attica just wants to prevent the server talking to host B, 251 00:17:18,360 --> 00:17:19,840 he can do another thing. 252 00:17:19,940 --> 00:17:21,800 He can do routing loops. 253 00:17:22,140 --> 00:17:23,940 He just tells R3, 254 00:17:24,160 --> 00:17:28,000 well, the best way to reach your host B 255 00:17:28,000 --> 00:17:29,240 is definitely R1. 256 00:17:30,260 --> 00:17:33,160 And he tells R1 that the best way to host B 257 00:17:33,160 --> 00:17:34,660 is definitely R3. 258 00:17:35,360 --> 00:17:37,920 Then, he sits back and enjoys 259 00:17:37,920 --> 00:17:40,240 the packets using up its TTL. 260 00:17:43,700 --> 00:17:45,820 Okay, this is some very old stuff. 261 00:17:47,000 --> 00:17:48,480 Routing information protocol, 262 00:17:48,860 --> 00:17:50,160 version one. 263 00:17:51,360 --> 00:17:52,000 RIP. 264 00:17:53,140 --> 00:17:53,780 Good. 265 00:17:54,760 --> 00:17:56,100 It's one of the oldest, 266 00:17:56,100 --> 00:17:57,360 but it's still in use 267 00:17:58,060 --> 00:17:59,240 because it's so simple. 268 00:17:59,600 --> 00:18:01,020 It uses broadcast 269 00:18:01,760 --> 00:18:04,900 and just runs on UDP port 520. 270 00:18:05,340 --> 00:18:08,340 It has no autonomous systems and other stuff. 271 00:18:08,660 --> 00:18:11,420 It even uses a fixed network size, 272 00:18:11,640 --> 00:18:13,440 at least in most implementations. 273 00:18:13,920 --> 00:18:18,300 And it really, really is easy to attack. 274 00:18:20,300 --> 00:18:23,360 There's the routing information protocol version two. 275 00:18:23,600 --> 00:18:26,080 . . . 276 00:18:26,080 --> 00:18:28,200 It actually includes next-hop information 277 00:18:28,200 --> 00:18:32,020 and netmask into the routing updates. 278 00:18:34,080 --> 00:18:36,160 Still has no autonomous systems, 279 00:18:36,840 --> 00:18:40,300 but it often uses multicast instead of broadcast. 280 00:18:42,060 --> 00:18:44,640 And there is even a clear text authentication 281 00:18:44,640 --> 00:18:45,840 defined in RFC. 282 00:18:46,360 --> 00:18:48,800 But this is so strange 283 00:18:48,800 --> 00:18:50,580 that most people don't implement it 284 00:18:50,580 --> 00:18:51,480 or don't use it. 285 00:18:52,740 --> 00:18:55,160 Cisco actually supports MD5 286 00:18:55,160 --> 00:18:56,420 for RIP. 287 00:18:56,760 --> 00:18:57,640 What a bright idea. 288 00:18:58,100 --> 00:19:01,700 But since they use a double authentication block, 289 00:19:01,820 --> 00:19:02,880 this is not by RFC, 290 00:19:03,020 --> 00:19:05,660 and if you have anything that is not Cisco, 291 00:19:06,120 --> 00:19:08,180 you definitely don't want to run this. 292 00:19:10,360 --> 00:19:11,560 So what are the attacks? 293 00:19:11,720 --> 00:19:14,420 It's basically the same stuff you can do with RIP 294 00:19:14,420 --> 00:19:16,500 as you can do with ERP. 295 00:19:18,160 --> 00:19:19,760 Watch out for the network boundaries 296 00:19:19,760 --> 00:19:22,180 for the fixed netmask stuff, 297 00:19:23,160 --> 00:19:24,940 because if you send updates, 298 00:19:25,160 --> 00:19:26,340 that don't make sense, 299 00:19:26,460 --> 00:19:29,240 or you just use subnetting or supernetting, 300 00:19:30,020 --> 00:19:31,820 you're going to confuse the network. 301 00:19:33,140 --> 00:19:34,380 And we don't want this. 302 00:19:36,480 --> 00:19:39,320 The multicast stuff, RIPv2, 303 00:19:39,580 --> 00:19:41,300 may be forwarded across segments. 304 00:19:42,260 --> 00:19:43,960 Why I love multicasts is, 305 00:19:44,040 --> 00:19:47,200 for example, if you run a checkpoint on an AIX system, 306 00:19:47,860 --> 00:19:49,400 it will forward multicast 307 00:19:49,400 --> 00:19:50,980 whatever the checkpoint setup says. 308 00:19:51,920 --> 00:19:53,880 So that's why I really like it. 309 00:19:54,580 --> 00:19:55,140 Great. 310 00:19:55,160 --> 00:19:56,920 There is a thing called split horizon 311 00:19:56,920 --> 00:19:58,660 with Poisoned Reverse, 312 00:19:59,580 --> 00:20:03,400 which actually prevents routing loops from happening. 313 00:20:04,020 --> 00:20:04,920 Not really. 314 00:20:06,280 --> 00:20:08,600 You have to have at least one router 315 00:20:08,600 --> 00:20:11,560 that knows that there is a routing loop, 316 00:20:12,400 --> 00:20:16,220 and that is communicating back this to the other routers. 317 00:20:16,400 --> 00:20:18,780 If you have just two routers talking RIP, 318 00:20:18,860 --> 00:20:19,880 you can do routing loops. 319 00:20:20,980 --> 00:20:22,560 So which tools exist? 320 00:20:24,800 --> 00:20:27,100 Rprobe and SRIP from Humbl 321 00:20:27,100 --> 00:20:31,400 are probably the first RIP attack tools I've seen, 322 00:20:32,000 --> 00:20:33,380 which doesn't mean anything. 323 00:20:34,780 --> 00:20:36,640 You can use the Nemesis RIP, 324 00:20:37,480 --> 00:20:40,740 or anything else you can think of 325 00:20:40,740 --> 00:20:42,060 based on the libnet, 326 00:20:42,120 --> 00:20:43,240 because they support RIP. 327 00:20:44,500 --> 00:20:46,800 And you can use ASS to scan this. 328 00:20:47,300 --> 00:20:48,640 Problem at the moment is, 329 00:20:48,740 --> 00:20:51,220 the RIP senders I know do not support 330 00:20:51,220 --> 00:20:52,400 the clear text authentication, 331 00:20:52,560 --> 00:20:54,460 which is defined in a RFC, 332 00:20:54,640 --> 00:20:56,300 so you might see that. 333 00:20:59,960 --> 00:21:02,020 OSPF, Open Shortest Path First. 334 00:21:02,320 --> 00:21:05,080 It's a very interesting routing protocol. 335 00:21:05,440 --> 00:21:08,200 Unfortunately, it's very complex. 336 00:21:10,160 --> 00:21:11,580 Basically, one thing it does 337 00:21:11,580 --> 00:21:13,580 is sending out link state advertisements 338 00:21:13,580 --> 00:21:15,380 through the area. 339 00:21:15,960 --> 00:21:19,800 Area means you can define routing areas in OSPF, 340 00:21:19,880 --> 00:21:22,100 and every router, 341 00:21:22,100 --> 00:21:24,020 every router in the area knows the status 342 00:21:24,020 --> 00:21:28,260 of every routing information you might have. 343 00:21:28,760 --> 00:21:34,600 So these halo packets are used to tell each other, 344 00:21:34,720 --> 00:21:36,720 hey, I'm here, and I speak OSPF, 345 00:21:37,480 --> 00:21:39,620 but they don't include much information. 346 00:21:43,680 --> 00:21:44,840 So, yeah. 347 00:21:45,760 --> 00:21:48,100 There's another thing that makes OSPF 348 00:21:48,100 --> 00:21:49,420 more complicated to attack, 349 00:21:49,580 --> 00:21:50,900 because it's basically, 350 00:21:50,900 --> 00:21:55,940 one of the most secure routing protocols currently in use. 351 00:21:58,960 --> 00:22:02,720 Defined in an RFC are clear text and MD5 authentication. 352 00:22:04,060 --> 00:22:06,640 But one thing to remember is, 353 00:22:06,920 --> 00:22:09,220 if you don't understand OSPF, 354 00:22:09,320 --> 00:22:11,080 the administrator might not as well. 355 00:22:11,680 --> 00:22:15,420 So, there's the hard to understand factor. 356 00:22:16,660 --> 00:22:20,300 Let's say, yeah, most people run OSPF in one area, 357 00:22:20,440 --> 00:22:20,820 because they don't know what OSPF is. 358 00:22:20,820 --> 00:22:20,880 because they don't know what OSPF is. 359 00:22:20,880 --> 00:22:21,640 Because it's simple. 360 00:22:23,200 --> 00:22:26,260 So, you might have luck and just have a flawed design. 361 00:22:27,740 --> 00:22:29,000 So how do we attack this? 362 00:22:29,220 --> 00:22:31,380 There are several possible attack ways. 363 00:22:32,060 --> 00:22:34,660 I choose one that's more interesting, 364 00:22:35,460 --> 00:22:39,160 because it's a combination of layer two and layer three attacks. 365 00:22:39,700 --> 00:22:43,860 We spoke about that the attacker is able to decide forwarding, 366 00:22:43,900 --> 00:22:48,700 and is able to modify the IP traffic. 367 00:22:49,640 --> 00:22:50,200 So, 368 00:22:50,880 --> 00:22:52,360 What are we going to do? 369 00:22:53,680 --> 00:22:58,440 Since forged LSAs are often contested by the router, 370 00:22:58,620 --> 00:23:01,140 they have a mechanism called fightback. 371 00:23:02,100 --> 00:23:04,800 So if you just introduce false information, 372 00:23:05,060 --> 00:23:06,440 the routers will cry around and say, 373 00:23:06,540 --> 00:23:07,780 hey, he's a hacker. 374 00:23:08,300 --> 00:23:11,280 So best thing seems to be 375 00:23:11,280 --> 00:23:14,780 you just intercept the communication 376 00:23:14,780 --> 00:23:16,640 between router one and router two. 377 00:23:17,780 --> 00:23:22,520 When router one sends out a packet OSPF-wise, 378 00:23:23,240 --> 00:23:24,960 you just modify the information 379 00:23:24,960 --> 00:23:26,600 and pass it on to router two, 380 00:23:27,380 --> 00:23:29,840 and he will happily distribute it across the area. 381 00:23:30,400 --> 00:23:31,400 Thank you very much. 382 00:23:35,360 --> 00:23:37,500 BGP4, Border Gateway Protocol. 383 00:23:38,400 --> 00:23:41,460 It's an exterior gateway protocol, 384 00:23:41,680 --> 00:23:44,220 which means it's used in vans. 385 00:23:46,640 --> 00:23:49,400 And it's mentioned only here because it's important. 386 00:23:49,700 --> 00:23:52,620 Can anyone think of why BGP is important? 387 00:23:53,740 --> 00:23:56,400 It runs the internet. 388 00:23:57,500 --> 00:23:59,420 So that makes it interesting. 389 00:24:00,260 --> 00:24:03,880 It relies on TCP for communication between routers. 390 00:24:04,360 --> 00:24:06,680 It has a port, 179. 391 00:24:07,640 --> 00:24:09,900 You probably know how to find this. 392 00:24:12,920 --> 00:24:15,180 And more interesting is 393 00:24:15,180 --> 00:24:16,620 there is IDP, 394 00:24:16,640 --> 00:24:17,140 IBGP, 395 00:24:17,220 --> 00:24:18,500 and EBGP. 396 00:24:18,580 --> 00:24:22,700 It means there is an interior BGP 397 00:24:22,700 --> 00:24:24,780 and an exterior BGP. 398 00:24:25,300 --> 00:24:27,400 Interior BGP actually means 399 00:24:27,400 --> 00:24:29,940 how do the routers in one area 400 00:24:29,940 --> 00:24:31,480 communicate with each other? 401 00:24:33,660 --> 00:24:36,660 Yeah, but to find each other 402 00:24:36,660 --> 00:24:38,040 and to do TCP, 403 00:24:39,140 --> 00:24:40,260 they have to have a route. 404 00:24:41,300 --> 00:24:41,680 Okay. 405 00:24:42,020 --> 00:24:45,680 So mostly they use IGP, 406 00:24:45,760 --> 00:24:46,620 and IGP, 407 00:24:46,640 --> 00:24:49,000 or static routes, 408 00:24:49,240 --> 00:24:50,420 which is, okay, 409 00:24:50,520 --> 00:24:51,860 if you have a BGP4 network 410 00:24:51,860 --> 00:24:53,060 and you use static routes, 411 00:24:53,220 --> 00:24:55,460 you're just interesting administrator. 412 00:24:57,000 --> 00:25:01,520 So the best way is often to attack the IGP. 413 00:25:03,400 --> 00:25:06,200 Yeah, because you can just prevent 414 00:25:06,200 --> 00:25:08,100 the routers from speaking to each other. 415 00:25:09,000 --> 00:25:13,060 You could intercept the TCP communication in any way. 416 00:25:13,180 --> 00:25:13,200 Okay. 417 00:25:15,060 --> 00:25:18,880 Or you can use BGP communities. 418 00:25:19,460 --> 00:25:21,060 That's an interesting feature. 419 00:25:21,600 --> 00:25:23,720 It's not fully researched yet 420 00:25:23,720 --> 00:25:26,300 how to do evil stuff with that, 421 00:25:26,420 --> 00:25:30,960 but it is invented to introduce, 422 00:25:31,760 --> 00:25:32,980 let's say, properties 423 00:25:32,980 --> 00:25:35,580 to routers you don't own. 424 00:25:36,380 --> 00:25:37,440 So let's say 425 00:25:38,640 --> 00:25:41,240 UUNet uses communities. 426 00:25:41,720 --> 00:25:42,780 You can, 427 00:25:42,780 --> 00:25:47,780 can actually tell the router, okay, whatever I tell you, it's just for the internet internal 428 00:25:47,780 --> 00:25:53,740 network or whatever you send me, I don't want to have this and that information. 429 00:25:55,380 --> 00:26:04,800 Another one, bad updates. Well, it's not too hard to send bad updates in BGP, but the internet 430 00:26:04,800 --> 00:26:11,420 service providers, especially the small ones, are very good in sending updates like, dear 431 00:26:11,420 --> 00:26:17,640 internet, I actually know where the TEN network is around the world. The backbone providers 432 00:26:18,760 --> 00:26:27,360 got used to that and filtered them pretty good. It's mostly used for internal BGP networks 433 00:26:27,960 --> 00:26:33,860 because you don't want all the hosts in the internet trying to reach the TEN network over 434 00:26:33,860 --> 00:26:40,180 your system. After so much dry routing, here's a fun thing. 435 00:26:41,420 --> 00:26:50,020 Outstand by router protocol, another Cisco idea. It's used to have a virtual or a standby 436 00:26:50,020 --> 00:26:59,160 IP address and another virtual-like MAC address bound to an active router. You have a bunch 437 00:26:59,160 --> 00:27:06,240 of inactive routers. Is the call for me? No? Okay. You have a bunch of inactive routers 438 00:27:08,060 --> 00:27:11,080 sitting there and waiting that the active router dies. 439 00:27:11,080 --> 00:27:18,040 Okay. The active router is sending out hello packets all the time. And if he stops sending 440 00:27:18,040 --> 00:27:25,880 out hello packets, the other routers are going to fight for the highest priority and to actually 441 00:27:25,880 --> 00:27:33,500 get the active state. Interesting is it's first multicast. I already mentioned I love 442 00:27:33,500 --> 00:27:39,960 multicast. And the authentication is done in clear text. Maximum eight characters. Thank you. 443 00:27:42,780 --> 00:27:48,500 So, it basically looks like this. The blue thing down here is this virtual IP address 444 00:27:48,500 --> 00:27:58,140 or standby IP address. So, everyone is talking over router one. When you tell router one 445 00:27:58,140 --> 00:28:07,060 that R2 is actually a new router, just appeared in the network and has a better priority, 446 00:28:07,060 --> 00:28:14,620 this is not as it is designed, but it works. R2 actually gets the standby IP address. 447 00:28:15,480 --> 00:28:23,380 So, everyone is using R2. What's that for? Well, you could actually tell both of them 448 00:28:23,800 --> 00:28:35,620 that you have the highest priority. Can you wait with a question or is it? So, the question 449 00:28:35,620 --> 00:28:45,080 is if there is a key. No, it just uses clear text authentication, but Cisco already went 450 00:28:45,080 --> 00:28:50,720 the way to say, okay, HSRP is kind of interesting and if you really want to use it, use IPSec. 451 00:28:50,880 --> 00:29:00,140 Okay, tell this to .com. Was this a question? Okay. So, yeah, you're telling both of them 452 00:29:00,140 --> 00:29:05,440 you're the best router to do the job and, yeah, at the end you have about 20 risk processors 453 00:29:05,620 --> 00:29:11,440 just for routing. So, you get a virtual IP address and the traffic. And what's the best 454 00:29:11,440 --> 00:29:18,560 about it? It's 100% transparent to the host. The IP address didn't change. The MAC address 455 00:29:18,560 --> 00:29:24,360 didn't change. Everything is like it is before. Just there is this guy here deciding which 456 00:29:24,360 --> 00:29:25,260 traffic is passing. 457 00:29:27,560 --> 00:29:35,140 Well, so, we had a lot of routing and some fun. After so much routing, let's hop into 458 00:29:35,140 --> 00:29:43,740 tunnels. Generic routing encapsulation, GRE, is basically used to transport protocol 459 00:29:43,740 --> 00:29:53,160 A over protocol B in a backpack. It's not even limited to IP. So, normally you use IPv4 460 00:29:53,160 --> 00:30:02,640 and IPv4 to connect six bone islands. You use IPv6 and IPv4. You can transport IPX over 461 00:30:03,140 --> 00:30:11,120 IPv4 or vice versa, whatever. The best authentication you can get with GRE is a 32-bit tunnel key. 462 00:30:13,780 --> 00:30:24,800 There are sequence numbers to prevent evil people, any evil people here? No, to do anything 463 00:30:24,800 --> 00:30:31,800 with the routing protocol, but you can actually forget it, because it's not defined how they 464 00:30:31,800 --> 00:30:38,520 they work. They're far away from being as good as TCP sequence numbers and they're so 465 00:30:38,520 --> 00:30:41,480 bad implemented that it just works if you don't use them. 466 00:30:43,940 --> 00:30:52,980 Another very important thing is GRE supports source routing. Has anyone idea what you can 467 00:30:52,980 --> 00:30:58,960 do with that? So, once upon a time, this is a very common 468 00:30:58,960 --> 00:31:05,360 situation, at least in Europe. The company has an HQ on the right side with 469 00:31:05,360 --> 00:31:09,580 this cute little server and has several branch offices. 470 00:31:09,740 --> 00:31:17,140 We have one on the left side here. So, they were used to using these lines or 471 00:31:17,140 --> 00:31:21,880 something. And because they just hate central authorities, 472 00:31:22,100 --> 00:31:27,740 they just decided, okay, we go for RFC 1918 IP addresses. 473 00:31:27,900 --> 00:31:28,560 Well, they didn't want to do that. So, they just decided, okay, we go for 474 00:31:28,560 --> 00:31:28,940 RFC 1918 IP addresses. Well, they didn't want to do that. 475 00:31:28,960 --> 00:31:35,340 Most of you know these as private IP addresses. So, then they decided, okay, I'm going to 476 00:31:35,340 --> 00:31:37,840 save money. Because we have the Internet, we can pass 477 00:31:37,840 --> 00:31:42,780 over traffic to Internet. Then someone said, hello, your stuff is not 478 00:31:42,780 --> 00:31:47,700 routable. Okay, the carrier, being a good guy and knows 479 00:31:48,020 --> 00:31:54,780 how to do business, offers a VPN solution. It just says, okay, we build a GRE tunnel 480 00:31:54,780 --> 00:31:58,040 between these two. There's one. 481 00:31:58,040 --> 00:32:03,320 And we just encapsulate all the traffic into the tunnel. 482 00:32:04,640 --> 00:32:10,460 And it's passed from the branch office into the tunnel, gone out in an HQ. 483 00:32:12,240 --> 00:32:19,320 And for security, because we want you to use security, it has to be secure, we just 484 00:32:19,320 --> 00:32:24,580 say everything that's not out of the tunnel is dropped directly here on the interface. 485 00:32:25,020 --> 00:32:28,020 And whatever comes into this router and the destination is the same. 486 00:32:28,020 --> 00:32:30,940 The destination is not a local network. We just put it into the tunnel. 487 00:32:31,120 --> 00:32:39,520 So, that makes it perfectly secure. Our poor guy has its own router, and actually 488 00:32:39,520 --> 00:32:44,540 a routable IP address. Anyone noticing the IP address, no? 489 00:32:44,680 --> 00:32:50,140 Okay. So, he's facing the following situation. 490 00:32:51,380 --> 00:32:57,080 He has a network, a target network, let's say this branch office here, which uses not 491 00:32:57,080 --> 00:32:58,000 routable IP addresses. So, he has a network, a target network, let's 492 00:32:58,000 --> 00:32:58,140 say this branch office here, which uses not 493 00:32:58,140 --> 00:33:02,740 a local network. He has an IP address, and uses a filter here 494 00:33:02,740 --> 00:33:08,560 to prevent traffic from coming in. And on top of this, uses GRE. 495 00:33:09,700 --> 00:33:13,580 So, he's lost, isn't he? Not at all. 496 00:33:15,300 --> 00:33:23,220 He just sets up another system. In this case, a concept we call an ATT&CK 497 00:33:23,220 --> 00:33:27,900 router. Then he decides, okay, this system is 498 00:33:28,000 --> 00:33:34,000 my default gateway and he passes traffic to this attack router notice the 499 00:33:34,000 --> 00:33:40,540 destination of his traffic is actually the host here it's not routable anyway 500 00:33:40,540 --> 00:33:46,440 but he's sending this to the attack router the attack router encapsulates 501 00:33:46,440 --> 00:33:53,720 the packet into GRE and the outer packet is addressed to the branch office router 502 00:33:53,720 --> 00:34:02,880 which is getting the traffic seeing that the source address is the HQ guess why 503 00:34:04,280 --> 00:34:10,180 finds out it's GRE cool decapsulates it puts it back on a routing process finds 504 00:34:10,180 --> 00:34:15,280 out he can reach the host over the internal interface and just pass it to 505 00:34:15,280 --> 00:34:21,660 the host so what does the host do the host actually answers the packet 506 00:34:21,660 --> 00:34:22,660 whatever that was 507 00:34:22,660 --> 00:34:26,100 this is what the host department offers and sends it back to his default 508 00:34:26,100 --> 00:34:30,680 gateway the branch office router who will according to his routing rules 509 00:34:30,680 --> 00:34:37,620 encapsulate it into GRE and send it back to the HQ so the HQ router is used for 510 00:34:37,620 --> 00:34:44,180 internet access as well so he knows a way uplink to his provider so he 511 00:34:44,180 --> 00:34:49,140 figures out well this packet is reachable over the Internet 512 00:34:49,140 --> 00:34:55,620 so I just send it out and see our attacker just gets the answer which 513 00:34:55,620 --> 00:35:00,840 means it looks a little bit strange but you're actually talking to a system with 514 00:35:00,840 --> 00:35:06,260 a private IP address across the internet behind the GRE tunnel behind features 515 00:35:07,120 --> 00:35:17,580 and you have fun so since this is so funny we actually put some more work 516 00:35:17,580 --> 00:35:25,540 into this there is at a moment no support for the source routing which 517 00:35:25,540 --> 00:35:32,140 makes it so interesting um a thing to do probably is you can apply the same 518 00:35:32,140 --> 00:35:39,060 attack to IPX encapsulation x25 and attackers in the banking industry here 519 00:35:39,060 --> 00:35:46,860 you can encapsulate i PV for an IP v4 or even attack 520 00:35:46,860 --> 00:35:47,560 IPV4 for IPV4 IPV4 and IPV5 for IPV4 for IPV5 for IPV4 and even attack IPVV and IPV4 or even attack IPV4 for IPV4 and IPV5 for IPV4. 521 00:35:47,560 --> 00:35:49,440 IPv6, six bone islands. 522 00:35:51,060 --> 00:35:53,820 What about taking over an IPv6 host 523 00:35:53,820 --> 00:35:55,260 before it's even on the internet? 524 00:35:58,840 --> 00:36:00,240 Quick ramp up. 525 00:36:00,340 --> 00:36:01,480 What tools do we have? 526 00:36:02,300 --> 00:36:05,060 It's not that interesting, but for reference, 527 00:36:05,260 --> 00:36:07,120 you can download all this stuff here 528 00:36:07,120 --> 00:36:09,540 and the slides on this URL 529 00:36:10,420 --> 00:36:12,000 or actually look at my shirt. 530 00:36:15,860 --> 00:36:16,480 Summary. 531 00:36:17,840 --> 00:36:20,780 There are a lot of ways to alter... 532 00:36:21,820 --> 00:36:22,260 Sorry. 533 00:36:24,660 --> 00:36:25,300 This one. 534 00:36:29,140 --> 00:36:30,680 You can actually grab me 535 00:36:30,680 --> 00:36:32,280 and I can tell you how to ride that. 536 00:36:38,960 --> 00:36:39,400 Okay. 537 00:36:40,380 --> 00:36:41,520 I'll put it back on later. 538 00:36:43,860 --> 00:36:44,300 Summary. 539 00:36:44,480 --> 00:36:47,180 You saw there are many ways to alter traffic paths. 540 00:36:47,560 --> 00:36:50,460 This was not a complete... 541 00:36:50,460 --> 00:36:51,380 Don't go away. 542 00:36:51,460 --> 00:36:52,780 There's a demonstration going on later. 543 00:36:52,980 --> 00:36:53,340 Okay. 544 00:36:55,020 --> 00:36:57,440 This was by far not complete. 545 00:36:57,860 --> 00:36:59,640 There are a lot of routing protocols, 546 00:36:59,900 --> 00:37:01,220 even undocumented ones. 547 00:37:02,620 --> 00:37:04,720 It has still a lot of hack value, 548 00:37:04,820 --> 00:37:06,400 especially the BGP4 attacks. 549 00:37:07,240 --> 00:37:09,300 Most routing protocols, as we saw, 550 00:37:09,440 --> 00:37:12,000 are very interesting protected. 551 00:37:12,660 --> 00:37:13,920 Means nearly nothing. 552 00:37:14,220 --> 00:37:16,740 And unencrypted tunneling protocols. 553 00:37:17,880 --> 00:37:19,540 Are really a high risk 554 00:37:19,540 --> 00:37:21,740 and really demonstrate the fact 555 00:37:21,740 --> 00:37:24,340 that these so-called private IP addresses 556 00:37:24,340 --> 00:37:26,180 do not protect at all. 557 00:37:27,920 --> 00:37:28,880 So, yeah. 558 00:37:29,000 --> 00:37:30,080 Thank you to these people, 559 00:37:30,180 --> 00:37:31,460 especially to these red people 560 00:37:31,460 --> 00:37:32,300 who are shipping me here. 561 00:37:33,520 --> 00:37:36,500 And a special thank you to you, 562 00:37:36,580 --> 00:37:37,520 not falling asleep, 563 00:37:37,760 --> 00:37:39,640 and listening to me here 564 00:37:39,640 --> 00:37:40,880 and being at DEF CON. 565 00:37:41,040 --> 00:37:42,000 And whoever is interested, 566 00:37:42,240 --> 00:37:44,900 I'm going to show the GRE attack now live. 567 00:38:00,340 --> 00:38:02,080 So, now it's getting tricky. 568 00:38:08,760 --> 00:38:10,640 You did real good. 569 00:38:15,540 --> 00:38:17,460 Give me, give me, give me, give me. 570 00:38:17,560 --> 00:38:18,560 Give me, give me, give me, give me. 571 00:38:19,800 --> 00:38:22,660 So, I know I'm probably over my time. 572 00:38:25,660 --> 00:38:29,280 But this is really a fun part to do. 573 00:38:29,540 --> 00:38:33,040 Unfortunately, my laptop has a blank screen now for me. 574 00:38:37,700 --> 00:38:38,640 Just relax. 575 00:38:47,480 --> 00:38:49,220 Okay, what do we have here? 576 00:38:49,340 --> 00:38:51,860 On the left side, upper left side, 577 00:38:52,000 --> 00:38:54,040 we have a tenant session to Cisco router 578 00:38:55,240 --> 00:38:58,760 who is actually representing this branch office thing 579 00:38:58,760 --> 00:39:00,860 I tried to show you in the presentation. 580 00:39:02,300 --> 00:39:04,360 On the right side, top right side, 581 00:39:04,520 --> 00:39:05,660 we have a TCP dump 582 00:39:06,460 --> 00:39:07,740 looking for ICMP 583 00:39:07,740 --> 00:39:09,860 because we are doing simple pings here. 584 00:39:10,640 --> 00:39:12,000 On the lower left side, 585 00:39:12,080 --> 00:39:13,640 we have this already mentioned 586 00:39:15,160 --> 00:39:15,920 Viper thing, 587 00:39:16,100 --> 00:39:16,840 which is our 588 00:39:16,840 --> 00:39:19,000 study in ATT&CK routing technologies. 589 00:39:20,140 --> 00:39:20,620 Louder! 590 00:39:23,260 --> 00:39:23,740 Louder! 591 00:39:23,900 --> 00:39:24,540 Oh, man. 592 00:39:25,140 --> 00:39:26,900 Okay, and on the right side, 593 00:39:26,940 --> 00:39:28,680 you see the local routing table. 594 00:39:29,740 --> 00:39:30,220 So, 595 00:39:31,200 --> 00:39:32,520 what are we going to do? 596 00:39:32,680 --> 00:39:34,480 I'm trying to write 597 00:39:35,160 --> 00:39:35,980 blind here. 598 00:39:37,780 --> 00:39:38,980 Actually, it doesn't work, right? 599 00:39:40,200 --> 00:39:42,020 Can someone up here tell me 600 00:39:42,680 --> 00:39:44,520 whenever I write shit or not? 601 00:39:54,100 --> 00:39:55,560 Actually, it works pretty slow. 602 00:39:56,060 --> 00:39:58,320 Okay, so we ping this one, 603 00:39:58,480 --> 00:40:00,720 and here, 604 00:40:00,820 --> 00:40:03,140 on the right top side, 605 00:40:03,320 --> 00:40:04,580 we see the Cisco 606 00:40:04,580 --> 00:40:06,800 answers actually with administrative 607 00:40:06,800 --> 00:40:08,420 prohibited packages 608 00:40:09,040 --> 00:40:09,640 saying, 609 00:40:09,820 --> 00:40:13,380 bad guy, bad guy, don't send traffic to me, please. 610 00:40:14,840 --> 00:40:15,440 Okay. 611 00:40:16,680 --> 00:40:17,220 So... 612 00:40:22,980 --> 00:40:24,840 Now we have a new routing table. 613 00:40:25,020 --> 00:40:26,500 The new routing table says, 614 00:40:26,640 --> 00:40:28,380 please use this ATT&CK router, 615 00:40:28,560 --> 00:40:30,300 which is this poor little laptop here, 616 00:40:31,640 --> 00:40:33,140 to do the GRE 617 00:40:33,140 --> 00:40:34,080 encapsulation. 618 00:40:34,580 --> 00:40:36,660 I will show the configuration file later, 619 00:40:36,720 --> 00:40:38,300 but it basically just includes 620 00:40:38,300 --> 00:40:39,800 tunnel source and tunnel destination 621 00:40:40,700 --> 00:40:42,680 for this virtual interface here. 622 00:40:44,220 --> 00:40:45,300 So, now, 623 00:40:45,440 --> 00:40:47,300 we actually do 624 00:40:47,300 --> 00:40:47,840 the same thing. 625 00:40:50,080 --> 00:40:51,040 What do we see? 626 00:40:59,840 --> 00:41:01,200 I know it's very 627 00:41:01,200 --> 00:41:02,560 hard to read in the 628 00:41:04,320 --> 00:41:05,380 crowd here, but 629 00:41:05,380 --> 00:41:07,400 on the right side, you see actually 630 00:41:07,400 --> 00:41:08,680 this interface, 631 00:41:08,920 --> 00:41:10,860 this virtual interface, has 632 00:41:11,280 --> 00:41:12,080 the MAC address 633 00:41:13,280 --> 00:41:15,040 double A's, all double A's, 634 00:41:15,440 --> 00:41:17,200 and you actually see that the echo 635 00:41:17,200 --> 00:41:19,140 request is sent to this 636 00:41:19,140 --> 00:41:20,740 virtual interface and then 637 00:41:21,480 --> 00:41:22,300 passed on. 638 00:41:22,700 --> 00:41:24,880 We don't see the pass on here because 639 00:41:24,880 --> 00:41:26,440 someone thought that it's a good idea. 640 00:41:26,540 --> 00:41:29,100 We show something with sniffing and they gave us 641 00:41:29,100 --> 00:41:30,260 a switch. Thank you. 642 00:41:32,080 --> 00:41:32,600 Okay. 643 00:41:32,820 --> 00:41:34,660 Just to illustrate 644 00:41:35,580 --> 00:41:37,080 that you can do 645 00:41:37,920 --> 00:41:38,980 some more stuff 646 00:41:38,980 --> 00:41:39,540 with that. 647 00:41:40,900 --> 00:41:42,000 I'm trying to 648 00:41:42,640 --> 00:41:43,920 write something here. 649 00:41:47,680 --> 00:41:48,960 Does this make sense? 650 00:41:50,640 --> 00:41:51,380 Does it? 651 00:41:51,540 --> 00:41:52,100 Okay. 652 00:41:53,080 --> 00:41:53,640 So, 653 00:41:54,760 --> 00:41:57,320 we actually don't want it to do NSLookups. 654 00:42:01,060 --> 00:42:01,940 Where's the shit? 655 00:42:03,920 --> 00:42:04,480 So, 656 00:42:05,260 --> 00:42:06,620 on the left side, we see the 657 00:42:06,620 --> 00:42:09,120 tunneling packets, which is just 658 00:42:09,120 --> 00:42:09,960 a verbose output. 659 00:42:10,800 --> 00:42:13,140 On the right side, we see 660 00:42:13,140 --> 00:42:14,320 it's actually scanning 661 00:42:15,440 --> 00:42:17,200 through this virtual IP router 662 00:42:17,920 --> 00:42:19,320 and go figure 663 00:42:19,320 --> 00:42:21,320 we bound this IP address on 664 00:42:21,320 --> 00:42:23,140 a loopback of the Cisco, which is 665 00:42:23,140 --> 00:42:24,340 by now pretty clear. 666 00:42:24,840 --> 00:42:26,640 So, that was it. Thank you.