1 00:00:00,420 --> 00:00:06,380 So allow me to introduce myself. I'm Guy Martin. I come from Belgium, so sorry 2 00:00:06,380 --> 00:00:08,780 about the accent. Sometimes it's going to be a bit lousy. 3 00:00:09,580 --> 00:00:12,920 All right, so today I'll go and speak about sniffing cable modems. 4 00:00:13,840 --> 00:00:20,480 You'll see it's actually a very, very easy thing. It took me about just one day when 5 00:00:20,480 --> 00:00:25,160 I had the idea about, oh, let's do that this way, and oh, I get packets now. 6 00:00:25,160 --> 00:00:28,840 I can sniff everybody. Cool. So, sure, sorry. 7 00:00:31,000 --> 00:00:37,640 So as I said, it took me just one day to find out how to sniff the packets out of a simple 8 00:00:37,640 --> 00:00:41,440 TV card. You'll see it's very easy and really freaky, 9 00:00:41,480 --> 00:00:43,620 actually. Let's see. 10 00:00:44,120 --> 00:00:49,720 So I will speak about DOCSIS, of course. This is the agenda for today. 11 00:00:50,280 --> 00:00:54,700 What is DOCSIS? First, explain what is this protocol, which 12 00:00:54,700 --> 00:00:55,140 is the... 13 00:00:55,140 --> 00:00:59,580 This is the one used by the cable modems. Detailed bit, the general architecture, so 14 00:00:59,580 --> 00:01:06,200 this way you find out... You will understand how DOCSIS network is 15 00:01:06,200 --> 00:01:10,820 implemented around... Across the city and why you can sniff this 16 00:01:10,820 --> 00:01:14,760 or this part of the network. I'll talk about the registration process. 17 00:01:15,080 --> 00:01:24,740 It's an interesting part of this wall sniffing stuff because it gives a lot of information 18 00:01:24,740 --> 00:01:29,500 about the modem, its configuration. You'll see it's really interesting. 19 00:01:29,700 --> 00:01:32,940 About encryption on the link. There is encryption. 20 00:01:33,320 --> 00:01:35,800 Sometimes it's not mandatory. I'll talk about this later. 21 00:01:37,720 --> 00:01:41,740 Then how to sniff it, of course, what you came for, the crunchy part. 22 00:01:43,800 --> 00:01:47,600 DVBC and ATC card, that will be the hardware that I use. 23 00:01:47,820 --> 00:01:50,360 So there are two parts there. The hardware, the software. 24 00:01:51,220 --> 00:01:54,260 Software. I'll talk about Packetomatic, which is the 25 00:01:54,260 --> 00:01:59,740 the software I developed to do the sniffing. And eventually talk about what you can do 26 00:01:59,740 --> 00:02:06,900 once you sniff this. There are things related to privacy. You can do a lot of SNMP acts 27 00:02:06,900 --> 00:02:15,000 on the modems as well that allow you to have, well, you'll see. And miscellaneous stuff, 28 00:02:15,160 --> 00:02:22,140 and eventually the references. When I'll be done with the talk, I'll do a demo so you 29 00:02:22,140 --> 00:02:28,500 can actually see this going on. All right, so let's see. What is DOCSIS? DOCSIS stands 30 00:02:28,500 --> 00:02:36,920 for Data Over Cable Service Interface Specification. There are actually, right now, three versions 31 00:02:36,920 --> 00:02:42,800 of the DOCSIS protocol. DOCSIS 1, which is the very first one, doesn't have a lot of 32 00:02:42,800 --> 00:02:50,700 stuff. It basically allows you to transfer packets and that's it. Sorry, DOCSIS 1.1, 33 00:02:50,840 --> 00:02:52,120 that was the new one. 34 00:02:52,120 --> 00:02:56,420 New OS version because they've seen, oh, hmm, we can actually clone the Macs of the modem 35 00:02:56,420 --> 00:03:00,660 and there is no authentication. All right, let's fix that. So that was fixed in DOCSIS 36 00:03:00,660 --> 00:03:08,660 1.1. And then DOCSIS 2.0, that has implemented some more stuff, not much more. And eventually 37 00:03:08,660 --> 00:03:16,220 DOCSIS 3, which is not out yet. I mean, it's still in development because the hardware 38 00:03:16,220 --> 00:03:22,100 required to support that new version, which has higher encryption, higher performance, 39 00:03:22,100 --> 00:03:27,780 and higher bandwidth, is really expensive. That means that if you want to upgrade to 40 00:03:27,780 --> 00:03:32,080 this newer version, you have to change the whole infrastructure, meaning all the modems 41 00:03:32,080 --> 00:03:38,080 of everybody, of all your customers, and also the CMTS. So the CMTS part is not that 42 00:03:38,080 --> 00:03:41,180 big, but changing all the modems is not easy. 43 00:03:42,860 --> 00:03:49,120 The use of DOCSIS, well, you most commonly know that DOCSIS is used to provide internet. 44 00:03:49,260 --> 00:03:52,080 That's one thing. Second thing, it's used for your network. It's used for your devices. 45 00:03:52,080 --> 00:03:57,940 It's used as well for telephony. Most of the modems right now, they have got an ATA, 46 00:03:58,580 --> 00:04:05,480 so it's phone plugs. You just plug your phone, your normal analogic phone, and you get voice 47 00:04:05,480 --> 00:04:14,360 or IP via the modem. It's really important, this part, because the ISPs provide triple 48 00:04:14,360 --> 00:04:19,720 play subscription, so you get internet, you get phone, and you get, as well, television, 49 00:04:19,820 --> 00:04:21,660 since it's the same media. 50 00:04:24,440 --> 00:04:30,800 Also right now, I've seen somerunner.com on some TVD colers, and they build in cable 51 00:04:30,800 --> 00:04:37,860 modems inside it. This way, the ISP can provide On-Demand TV and also find out what you're 52 00:04:37,860 --> 00:04:40,300 looking at, which is really nice. 53 00:04:43,340 --> 00:04:50,220 The general architecture now. This is how it works. On the ISP side, you have a big 54 00:04:50,220 --> 00:04:52,060 box, which is called the CMTS. This is a nice little box. It's kind of like a box. 55 00:04:52,940 --> 00:04:58,480 And the CMTS will send all the packets on a single frequency. 56 00:04:59,160 --> 00:05:04,960 So it's shared media, as in the old days with the 10 megs Ethernet. 57 00:05:05,000 --> 00:05:07,580 It sends everything on the same frequency. 58 00:05:07,700 --> 00:05:14,380 So every modem is listening on that frequency and filters out what it needs, what it doesn't need. 59 00:05:23,080 --> 00:05:32,720 So compared to Ethernet, the old 10 megs coax cable, the return path is different, meaning it's running on different frequencies. 60 00:05:34,100 --> 00:05:41,000 And the modems have time slots allocated for each other, so they know when they have to send packets. 61 00:05:41,620 --> 00:05:47,860 And because of this, we can actually only sniff the downstream of it. 62 00:05:47,940 --> 00:05:52,040 Because the cards that I use, they're not able to get... 63 00:05:52,060 --> 00:05:54,540 They don't get that lower frequency that the upstream use. 64 00:05:54,740 --> 00:05:55,800 I'll detail that later. 65 00:05:58,260 --> 00:06:02,280 A CMTS, that's used for either a full city. 66 00:06:02,880 --> 00:06:08,020 So where I come from, there is one city which has just one single CMTS. 67 00:06:08,260 --> 00:06:13,400 You plug your TV cable there on your back of your PC, and you got everybody's traffic. 68 00:06:13,760 --> 00:06:15,220 The whole city, it's huge. 69 00:06:15,940 --> 00:06:21,760 Also, in Bayer City, of course, it's just a small neighborhood, but it's still a lot of people. 70 00:06:22,060 --> 00:06:23,840 It's when you count all the big buildings and stuff. 71 00:06:28,040 --> 00:06:36,480 Also, really important, the DOCSIS protocol has been engineered in a way that it could be compatible with all the existing equipments. 72 00:06:36,640 --> 00:06:43,800 For example, the frequency range is the very same as in the TV frequency range. 73 00:06:44,120 --> 00:06:46,080 I mean, talking about the downstream, of course. 74 00:06:46,340 --> 00:06:51,280 This means that if you have a TV card, well, you can tune to either DOCSIS, 75 00:06:52,060 --> 00:06:54,540 the DV, whatever, it's the very same one. 76 00:06:54,840 --> 00:06:57,480 Also, it uses MPEG packets for encapsulation. 77 00:06:58,140 --> 00:07:01,580 This is, again, on purpose that it's been done this way, 78 00:07:02,260 --> 00:07:10,160 because digital forwarders can just read the MPEG packets 79 00:07:10,160 --> 00:07:14,060 and forward it as if it was TV, so it doesn't really matter. 80 00:07:18,140 --> 00:07:18,660 Okay. 81 00:07:20,880 --> 00:07:21,760 Registration process. 82 00:07:26,420 --> 00:07:31,020 The very first thing that MUTM has to do is acquire the downstream frequency. 83 00:07:32,460 --> 00:07:37,000 So, all it does is that it simply scans the whole range, the whole frequency range. 84 00:07:37,140 --> 00:07:39,160 So, it starts from bottom, goes to top. 85 00:07:39,400 --> 00:07:43,940 Once it gets a good look on the certain frequencies, 86 00:07:44,180 --> 00:07:49,200 it looks if there are the packets that it's supposed to have, a.k.a. the sync messages. 87 00:07:49,480 --> 00:07:51,720 So, there are specific DOCSIS messages. 88 00:07:51,720 --> 00:07:57,340 There are sent every now and then, but you're supposed to receive something like 10 in a second. 89 00:07:58,120 --> 00:08:03,020 So, it's very easy for MUTM to find out in a timely fashion if this is DOCSIS frequency or not. 90 00:08:04,480 --> 00:08:10,480 Once it got the downstream frequency, it tunes on it, read the packets from it, 91 00:08:10,620 --> 00:08:15,280 and then the upstream parameters are sent to MUTM this way. 92 00:08:15,440 --> 00:08:19,700 Then it configures itself and is able to, at this point, have a link. 93 00:08:20,740 --> 00:08:21,580 A byte. 94 00:08:21,720 --> 00:08:22,580 A bi-directional link. 95 00:08:24,560 --> 00:08:26,980 So, this way, it can get an IP address. 96 00:08:27,240 --> 00:08:31,480 This is done via simply DHCP, as in every network. 97 00:08:32,320 --> 00:08:36,760 And then once it's got its IP address, it downloads the configuration file via TFTP. 98 00:08:37,300 --> 00:08:41,240 This configuration file is very interesting because it contains a lot of information. 99 00:08:41,720 --> 00:08:46,840 For example, you'll find in there what is your downstream speed. 100 00:08:47,040 --> 00:08:49,380 So, your download speed, your upload speed. 101 00:08:52,080 --> 00:09:00,000 For example, what device can actually manage the IP address, sorry, the MUTM via SNMP. 102 00:09:00,200 --> 00:09:07,980 So, it will tell you, okay, now you get this IP address, this source IP address is allowed with that SNMP community. 103 00:09:08,460 --> 00:09:11,400 And it will be able to do all sorts of stuff to the MUTM. 104 00:09:12,900 --> 00:09:15,680 There's also ACLs for IP filters. 105 00:09:16,420 --> 00:09:21,700 For example, the common way to disable the port 24. 106 00:09:21,720 --> 00:09:23,640 There's a port 25 for SNMP connections. 107 00:09:24,060 --> 00:09:26,080 That's done via this TFTP configuration. 108 00:09:26,540 --> 00:09:28,680 They simply block port 25 on the MUTM. 109 00:09:28,860 --> 00:09:31,600 This way, you cannot send or receive e-mails. 110 00:09:32,140 --> 00:09:36,380 And then, of course, if you can hack around it, you can get rid of it. 111 00:09:38,420 --> 00:09:44,840 So once it's got the TFTP configuration, it simply applies all the configuration in 112 00:09:44,840 --> 00:09:45,220 the memory. 113 00:09:45,400 --> 00:09:45,900 And that's it. 114 00:09:46,000 --> 00:09:47,440 The MUTM is fully up and running. 115 00:09:47,980 --> 00:09:50,400 One thing I forgot about that configuration is that... 116 00:09:51,340 --> 00:09:59,960 All the configuration entries, besides the upstream, the speed, is done using OIDs like 117 00:09:59,960 --> 00:10:00,500 in SNMP. 118 00:10:00,780 --> 00:10:06,060 So it says .1 and et cetera equals this value. 119 00:10:06,300 --> 00:10:09,840 So you can, later on, change those values via SNMP as well. 120 00:10:13,460 --> 00:10:14,080 Whoops. 121 00:10:14,320 --> 00:10:15,360 That's not the one. 122 00:10:18,520 --> 00:10:19,900 Let's talk about the encryption. 123 00:10:20,400 --> 00:10:21,100 That's the interesting part. 124 00:10:22,500 --> 00:10:24,640 So the very first... 125 00:10:24,640 --> 00:10:30,480 The important thing to know is that encryption is not mandatory, meaning that you may run 126 00:10:30,480 --> 00:10:31,040 on... 127 00:10:31,720 --> 00:10:36,360 At your place, you may have a connection which is not encrypted at all, meaning everybody 128 00:10:36,360 --> 00:10:38,560 can just plug, sniff, and that's it. 129 00:10:38,740 --> 00:10:40,220 It sees everything you do. 130 00:10:40,780 --> 00:10:42,660 That's really, really scary to me. 131 00:10:44,160 --> 00:10:47,060 There is also, of course, encryption mechanisms. 132 00:10:47,160 --> 00:10:48,060 So BPI. 133 00:10:48,600 --> 00:10:49,200 BPI. 134 00:10:49,200 --> 00:10:51,940 BPI stands for Baseline Privacy Interface. 135 00:10:52,060 --> 00:10:59,100 There are two versions of BPI, BPI, the normal one, and BPI+, and this one provides authentication. 136 00:10:59,680 --> 00:11:03,660 So as I said, DOCSIS 1.0 didn't provide any means of authentication. 137 00:11:03,860 --> 00:11:10,000 You could just change your MUTM, take another one that you hacked, and clone the MAC, change 138 00:11:10,000 --> 00:11:10,940 the MAC, and that's it. 139 00:11:10,940 --> 00:11:12,200 You were on the network. 140 00:11:12,480 --> 00:11:13,780 You could do whatever you like. 141 00:11:13,960 --> 00:11:16,600 But no, with BPI+, it uses certificates. 142 00:11:16,640 --> 00:11:18,540 So each device has a certificate. 143 00:11:18,540 --> 00:11:23,320 The CNTS as well, and that's the way they authenticate each other, and then eventually 144 00:11:23,320 --> 00:11:27,820 they negotiate the key this way as well. 145 00:11:29,140 --> 00:11:36,060 Another interesting stuff is that currently the encryption algorithm, it's DES, and it's 146 00:11:36,060 --> 00:11:37,200 only 56-bit key. 147 00:11:37,720 --> 00:11:39,260 That is too scary. 148 00:11:39,980 --> 00:11:46,680 So, well, right now, I'm not cracking it because my cryptanalysis skills are pretty... 149 00:11:46,680 --> 00:11:48,100 Well, they're nil. 150 00:11:49,000 --> 00:11:56,280 So I like to use this opportunity to ask here if anybody has crypto skills. 151 00:11:56,520 --> 00:11:57,360 I'm sure there is. 152 00:11:57,700 --> 00:12:03,860 If you could help me on that, find a way to crack this DES key, that would be amazing, 153 00:12:04,140 --> 00:12:06,360 meaning we could sniff the whole word. 154 00:12:07,260 --> 00:12:13,380 So that DES key, for example, it's just a shared key between the ISP and the MUTM, and 155 00:12:13,380 --> 00:12:16,000 the key lasts for 12 hours. 156 00:12:16,140 --> 00:12:18,280 So there's plenty of time to crack it. 157 00:12:18,540 --> 00:12:23,180 You can even dump it, and then eventually we covered the data. 158 00:12:24,220 --> 00:12:25,500 Talking about AES. 159 00:12:25,820 --> 00:12:33,600 AES, that's going to come later on in DOCSIS 3.0, but as I said, this AES encryption is 160 00:12:33,600 --> 00:12:38,340 really expensive, so you need a special chip in the MUTM, and that raised the price really 161 00:12:38,340 --> 00:12:38,700 high. 162 00:12:38,880 --> 00:12:44,720 That's why all the ISPs are not going to go through DOCSIS 3.0 right now. 163 00:12:45,320 --> 00:12:48,180 You may see that some ISPs do. 164 00:12:48,180 --> 00:12:51,900 But it's not really the real DOCSIS 3.0. 165 00:12:52,060 --> 00:12:57,020 It's just for the larger bandwidth that DOCSIS 3.0 provides. 166 00:12:57,300 --> 00:13:05,100 It provides a larger bandwidth in the fact that it bounds multiple downstream in a single 167 00:13:05,100 --> 00:13:09,480 channel, so it can go to speeds like 100 megs. 168 00:13:10,300 --> 00:13:13,460 So AES is not going to come until one or two years, I think. 169 00:13:13,660 --> 00:13:14,740 Well, it depends on your ISP. 170 00:13:14,860 --> 00:13:18,160 Probably some ISPs will stick to DOCSIS 1 or 2.0. 171 00:13:18,160 --> 00:13:18,720 DOCSIS 2, even. 172 00:13:25,460 --> 00:13:27,840 Okay, so how to sniff it. 173 00:13:27,960 --> 00:13:29,140 What you need is this. 174 00:13:29,560 --> 00:13:30,360 What is this? 175 00:13:30,500 --> 00:13:31,160 A TV card. 176 00:13:31,240 --> 00:13:32,240 Digital TV card. 177 00:13:32,480 --> 00:13:35,640 So it's either an ATSC card or a DVBC card. 178 00:13:36,940 --> 00:13:41,300 The DVBC card you'll find out in Europe, it has more advantages. 179 00:13:41,560 --> 00:13:45,140 For example, it can use different symbol rates. 180 00:13:45,300 --> 00:13:47,420 Well, that's Arab stuff you don't really care about. 181 00:13:47,540 --> 00:13:47,860 But anyway. 182 00:13:49,860 --> 00:13:55,240 In the U.S., you use ATSC, and in Europe, DVBC, you can sniff everybody. 183 00:13:55,760 --> 00:14:01,320 This is possible just because they did engineer that to use the very same frequencies. 184 00:14:02,960 --> 00:14:04,140 So that's it. 185 00:14:05,400 --> 00:14:08,320 Yeah, talking about the price of this card, it's $100. 186 00:14:08,740 --> 00:14:10,500 So everybody can afford it. 187 00:14:12,280 --> 00:14:17,520 There is one downside is that you, as I said, you only have the downstream because the upstream 188 00:14:17,520 --> 00:14:18,740 is a different frequency. 189 00:14:18,880 --> 00:14:22,000 It's below 50 megahertz, and those cards can't handle it. 190 00:14:22,740 --> 00:14:24,900 But the downstream is way enough. 191 00:14:25,020 --> 00:14:25,400 You'll see. 192 00:14:25,480 --> 00:14:26,640 We can do a lot of stuff already. 193 00:14:27,600 --> 00:14:30,040 I like to try different hardware, too. 194 00:14:30,280 --> 00:14:31,660 For example, the USRP. 195 00:14:31,840 --> 00:14:33,080 I'm not sure if you guys know. 196 00:14:33,840 --> 00:14:38,700 USRP stands for Universal Software Radio Peripheral. 197 00:14:39,100 --> 00:14:42,880 And it's actually coupled with GNU radio. 198 00:14:43,120 --> 00:14:46,560 And you can use whatever tuner and whatever. 199 00:14:46,940 --> 00:14:47,500 Yeah. 200 00:14:48,200 --> 00:14:51,780 So tuner and antenna has to send and receive. 201 00:14:51,900 --> 00:14:54,400 You could even code a cable modem yourself with that device. 202 00:14:54,500 --> 00:14:55,240 That would be really nice. 203 00:14:56,840 --> 00:14:59,660 On the software part, there is Packet-O-Matic. 204 00:15:01,500 --> 00:15:03,440 So it works this way. 205 00:15:03,620 --> 00:15:04,980 You got the input module. 206 00:15:05,180 --> 00:15:06,180 So it's fully modular. 207 00:15:06,300 --> 00:15:07,340 You get the input module. 208 00:15:07,500 --> 00:15:10,380 You can select, okay, I want to sniff from DOCSIS. 209 00:15:10,440 --> 00:15:11,640 I want to sniff from PCAP. 210 00:15:11,920 --> 00:15:14,260 So interface, files, whatever. 211 00:15:14,600 --> 00:15:16,980 Then all your packets are processed. 212 00:15:16,980 --> 00:15:18,980 It's processed using the rules that you specified. 213 00:15:19,220 --> 00:15:25,420 So you can say, okay, I want Ethernet, then IPv4, then everything that is TCP on port whatever. 214 00:15:26,600 --> 00:15:32,940 Or even if you use the DOCSIS input and say, okay, my layer is going to be, first layer 215 00:15:32,940 --> 00:15:33,760 is going to be DOCSIS. 216 00:15:33,840 --> 00:15:37,420 You can say, okay, I want all the DOCSIS packets with, well, I'll show you there. 217 00:15:38,020 --> 00:15:38,780 It's very this way. 218 00:15:40,000 --> 00:15:43,420 Once it's processed, at the same time, there is the helpers. 219 00:15:43,460 --> 00:15:45,960 For example, if you got a fragmented IPv4 packet. 220 00:15:45,960 --> 00:15:52,420 It's just going to reassemble it and sends the complete IPv4 packet to the upper layer. 221 00:15:52,580 --> 00:15:58,080 This way, the software layer doesn't have to care about all these specificities of the 222 00:15:58,080 --> 00:15:58,960 protocols. 223 00:16:00,260 --> 00:16:04,960 I forget to say that each protocol is also just a module. 224 00:16:05,320 --> 00:16:08,940 So for example, if let's say IPv8 is going to come later on, I hope not. 225 00:16:10,120 --> 00:16:12,220 You can just code a module and that's it. 226 00:16:12,360 --> 00:16:13,820 You got IPv8 support. 227 00:16:16,300 --> 00:16:21,200 So once you match your packets, you know what you want, it's processed by the target. 228 00:16:21,360 --> 00:16:23,120 And the target does whatever you like. 229 00:16:23,580 --> 00:16:28,320 So for example, right now, there are targets to dump HTTP traffic. 230 00:16:28,560 --> 00:16:29,860 So it's going to dump the images. 231 00:16:30,160 --> 00:16:32,920 It's going to dump the HTML file. 232 00:16:33,120 --> 00:16:34,800 It's going to dump the video file. 233 00:16:34,980 --> 00:16:41,640 So let's say you start that software, Pack-O-Matic, on a DOCSIS stream. 234 00:16:41,860 --> 00:16:43,120 You say, hmm, okay. 235 00:16:43,200 --> 00:16:44,600 Everything that is on port 80. 236 00:16:45,040 --> 00:16:45,940 Dump the video file. 237 00:16:46,100 --> 00:16:52,200 And you'll see what people are going to say, sorry, you'll see everything that people go 238 00:16:52,200 --> 00:16:53,020 and see on YouTube. 239 00:16:53,240 --> 00:16:54,420 And you can just click and see. 240 00:16:55,320 --> 00:16:55,920 That's cool. 241 00:16:57,380 --> 00:16:59,260 Also, everything occurs real time. 242 00:16:59,720 --> 00:17:03,380 Yeah, I didn't want something like, you know, Ethereum, WaterShark. 243 00:17:03,500 --> 00:17:04,660 You dump all your stuff. 244 00:17:04,960 --> 00:17:05,880 You got a PCAP. 245 00:17:06,020 --> 00:17:06,800 You read the file. 246 00:17:07,000 --> 00:17:12,680 And then if you, let's say, want to extract, if you want to extract some audio files, 247 00:17:13,020 --> 00:17:14,400 you have to right click. 248 00:17:14,480 --> 00:17:14,920 And then. 249 00:17:16,220 --> 00:17:16,660 Extract. 250 00:17:16,760 --> 00:17:17,560 And it's boring. 251 00:17:18,000 --> 00:17:21,800 So what you do is simply set this up. 252 00:17:21,900 --> 00:17:25,180 Say, okay, all these ports, you know, it's RTP traffic. 253 00:17:25,500 --> 00:17:26,220 It's voice traffic. 254 00:17:26,680 --> 00:17:28,320 Simply process them as audio. 255 00:17:28,480 --> 00:17:32,240 And it will just reassemble all the files real time. 256 00:17:32,400 --> 00:17:35,140 So you will see everything growing in your directory. 257 00:17:35,260 --> 00:17:38,440 It's really scary, too, because there are five at the same time usually. 258 00:17:38,620 --> 00:17:40,120 You can't just listen to all of them. 259 00:17:43,340 --> 00:17:43,780 Yep. 260 00:17:43,780 --> 00:17:46,840 So, also, there is a telnet and an XMLRPC interface. 261 00:17:47,640 --> 00:17:51,820 The XMLRPC interface, it's actually a web interface I'll show you there. 262 00:17:52,520 --> 00:17:54,560 You can use both at the same time, it's really cool. 263 00:18:00,900 --> 00:18:01,300 Okay. 264 00:18:01,460 --> 00:18:02,540 So what you can do. 265 00:18:03,600 --> 00:18:04,400 First privacy. 266 00:18:05,320 --> 00:18:07,220 Of course, you can sniff all the data. 267 00:18:07,380 --> 00:18:08,300 That's easy. 268 00:18:08,480 --> 00:18:09,980 But then you need to process them. 269 00:18:10,780 --> 00:18:11,640 Sniffing all the data. 270 00:18:12,380 --> 00:18:13,740 Well, you got, let's say, five. 271 00:18:13,740 --> 00:18:15,680 Five megs per second of traffic. 272 00:18:15,920 --> 00:18:16,580 This is huge. 273 00:18:16,900 --> 00:18:20,600 So you need to really sort out and say, okay, I want this part of the traffic. 274 00:18:20,700 --> 00:18:25,940 So you probably will need to use Wireshark to first analyze the traffic that you get 275 00:18:25,940 --> 00:18:30,120 and see, oh, okay, these IP addresses are used for voice. 276 00:18:30,320 --> 00:18:33,980 These IP addresses are used for other stuff. 277 00:18:34,200 --> 00:18:38,360 Then you build your rules, build your targets, and that's it. 278 00:18:38,460 --> 00:18:39,780 It will do whatever you like. 279 00:18:40,000 --> 00:18:40,480 Okay. 280 00:18:43,500 --> 00:18:46,620 So, yeah, there are additional targets, for example, the mails. 281 00:18:47,100 --> 00:18:49,360 I tried once on a test network. 282 00:18:49,900 --> 00:18:53,140 So for example, let's take this scenario. 283 00:18:53,520 --> 00:19:00,420 You have one ISP who has a POP3 server, so it gives accounts to all its customers. 284 00:19:00,620 --> 00:19:06,360 And of course, the POP3 server is not encrypted, which is never encrypted anyway. 285 00:19:07,100 --> 00:19:10,200 And everybody is going to connect to the POP3 server. 286 00:19:10,480 --> 00:19:16,680 And, well, it's very easy simply to say, okay, sort all the mails that you retrieve. 287 00:19:16,960 --> 00:19:18,780 Put them in IP. 288 00:19:19,380 --> 00:19:22,200 So sort them by directories. 289 00:19:22,200 --> 00:19:24,720 For each directory, it's going to be the IP address of the guy. 290 00:19:24,900 --> 00:19:29,320 And it's email for all its emails in a maildir format. 291 00:19:29,460 --> 00:19:30,100 And that's it. 292 00:19:30,120 --> 00:19:35,640 Simply start a NIMAP server, and you get everybody's email in your mail client. 293 00:19:38,900 --> 00:19:40,220 You can also... 294 00:19:40,220 --> 00:19:40,460 Okay. 295 00:19:40,480 --> 00:19:43,500 You can also do denial of service. 296 00:19:43,820 --> 00:19:50,320 So if you're bored, if it's, like, 4 p.m., 8 p.m., and you don't have a lot of bandwidth 297 00:19:50,320 --> 00:20:00,660 available for you, so, well, you simply sniff, see, you know, run NTOP or whatever. 298 00:20:00,960 --> 00:20:03,080 See who's taking all your bandwidth. 299 00:20:03,660 --> 00:20:06,560 And it's actually possible to re-inject. 300 00:20:07,340 --> 00:20:09,140 So it works this way. 301 00:20:09,220 --> 00:20:09,660 You've got... 302 00:20:10,480 --> 00:20:13,580 You run your PC with the TV card. 303 00:20:13,700 --> 00:20:14,360 You sniff packets. 304 00:20:14,720 --> 00:20:19,660 And you re-inject the TCP reset packets through your modem. 305 00:20:19,740 --> 00:20:20,860 And that's going to go through. 306 00:20:21,080 --> 00:20:24,180 Because the modem itself is just a stupid Ethernet bridge. 307 00:20:24,620 --> 00:20:29,200 I mean, of course, provided you remove the right ACLs on the modem. 308 00:20:29,740 --> 00:20:31,880 Anyway, so it just works. 309 00:20:32,760 --> 00:20:33,620 It's amazing. 310 00:20:36,360 --> 00:20:37,120 All right. 311 00:20:38,260 --> 00:20:38,820 SNMPX. 312 00:20:39,060 --> 00:20:39,920 So, as I said... 313 00:20:39,920 --> 00:20:40,000 Yeah. 314 00:20:40,480 --> 00:20:44,480 So once you get access to the modem via SNMP, you can do a lot of stuff. 315 00:20:45,320 --> 00:20:49,740 First of all, the most interesting stuff is to change the IP filter. 316 00:20:50,600 --> 00:20:52,040 So you can't send e-mail. 317 00:20:52,080 --> 00:20:53,640 You can't receive e-mail on port 25. 318 00:20:53,960 --> 00:20:54,800 Well, no problem. 319 00:20:55,080 --> 00:20:57,120 SNMP said, well, there you go. 320 00:20:57,200 --> 00:20:57,680 It's removed. 321 00:20:58,200 --> 00:21:04,420 It goes as well for the firewalling rules that are usually set to access the other modems 322 00:21:04,420 --> 00:21:05,000 in the network. 323 00:21:05,120 --> 00:21:10,460 So each modem gets, you know, an IP address in a private range, like 10 dot something. 324 00:21:10,460 --> 00:21:14,040 And you cannot access those range for obvious reasons. 325 00:21:14,260 --> 00:21:18,120 But, well, once you remove the filter, you can access it, huh? 326 00:21:18,480 --> 00:21:23,480 And, well, you can do the very same thing, meaning connect via the web interface, SNMP, 327 00:21:23,660 --> 00:21:26,500 change, reboot the people's modem, have fun. 328 00:21:28,100 --> 00:21:34,520 So I mean, I haven't been through the whole SNMP documentation for the modems, but they're 329 00:21:34,520 --> 00:21:35,480 just too much. 330 00:21:38,700 --> 00:21:39,740 Also, yeah. 331 00:21:39,740 --> 00:21:40,600 Misaligning stuff. 332 00:21:42,040 --> 00:21:48,540 So yeah, sniffing the doc's stream is nice, but then you probably want to use the tools 333 00:21:48,540 --> 00:21:49,680 that you have already. 334 00:21:50,100 --> 00:21:50,940 I don't know. 335 00:21:51,060 --> 00:21:58,340 Tools like, well, if you simply want a TCP dump or a Wireshark or a dsniff, well, you 336 00:21:58,340 --> 00:21:58,480 know. 337 00:21:59,020 --> 00:22:04,600 You simply create a tab device, and it's going to help output every packets that you got 338 00:22:04,600 --> 00:22:05,460 to that device. 339 00:22:05,720 --> 00:22:08,280 So it will create a virtual interface in your Linux system. 340 00:22:08,280 --> 00:22:11,820 And you can use it as a normal interface with SNMP for it. 341 00:22:14,780 --> 00:22:15,260 OK. 342 00:22:15,380 --> 00:22:20,720 So references, if you want to dig deeper into this protocol, you can find the full protocol 343 00:22:20,720 --> 00:22:22,480 specification on CableLabs.com. 344 00:22:25,260 --> 00:22:26,520 It's all open. 345 00:22:26,800 --> 00:22:30,860 They just hide a bit of stuff regarding the encryption, but still, you can find it. 346 00:22:32,820 --> 00:22:33,520 MPEG, yeah. 347 00:22:33,860 --> 00:22:36,520 As I said, the encapsulation works this way. 348 00:22:36,520 --> 00:22:41,440 So you've got MPEG packets, which are 188 bytes. 349 00:22:41,640 --> 00:22:45,800 And then in each of these packets are encapsulated doc's streams. 350 00:22:46,200 --> 00:22:52,500 And in those doc's streams, you've got Ethernet frames and then the known suite of protocol. 351 00:22:52,680 --> 00:22:55,020 So IP for TCP, whatever. 352 00:22:55,760 --> 00:23:00,060 And for the software, just go on packet-o-matic.com and download it. 353 00:23:00,540 --> 00:23:01,300 All right. 354 00:23:01,360 --> 00:23:02,560 Let's do the demo now. 355 00:23:03,780 --> 00:23:05,040 Oh, it's already running. 356 00:23:05,340 --> 00:23:05,900 OK. 357 00:23:07,500 --> 00:23:08,460 All right. 358 00:23:08,560 --> 00:23:13,100 So to start the software, just do minus E, so it starts with an empty configuration. 359 00:23:13,720 --> 00:23:15,200 Is it readable? 360 00:23:15,700 --> 00:23:15,940 Or... 361 00:23:16,480 --> 00:23:16,960 OK. 362 00:23:17,120 --> 00:23:17,960 What about this? 363 00:23:19,300 --> 00:23:19,780 OK. 364 00:23:21,140 --> 00:23:23,140 Oh, damn. 365 00:23:24,980 --> 00:23:25,460 Sorry. 366 00:23:25,600 --> 00:23:27,380 I don't think I can do anything about that. 367 00:23:29,340 --> 00:23:31,040 I tested it, though, but... 368 00:23:32,520 --> 00:23:34,160 Anyway, that should be way enough. 369 00:23:34,860 --> 00:23:35,340 OK. 370 00:23:36,020 --> 00:23:36,540 Cool. 371 00:23:36,900 --> 00:23:38,800 So let me show you Telnet interface. 372 00:23:39,080 --> 00:23:41,980 Simply Telnet to it, port 4655. 373 00:23:42,420 --> 00:23:46,760 Choose that, like, you know, like Debian, random dice, and that's it. 374 00:23:49,020 --> 00:23:53,480 First thing to do, set up the input module that you want to use. 375 00:23:53,740 --> 00:23:55,320 To do this, very easy. 376 00:23:55,460 --> 00:23:57,520 Set input type doc's. 377 00:23:58,420 --> 00:23:58,940 OK. 378 00:23:59,880 --> 00:24:01,780 And we got our input configured. 379 00:24:01,960 --> 00:24:04,020 So you can see current input doc's. 380 00:24:04,520 --> 00:24:05,320 It's a normal input. 381 00:24:05,340 --> 00:24:05,700 Normal mode. 382 00:24:06,940 --> 00:24:08,040 It's Euro doc's. 383 00:24:08,500 --> 00:24:11,780 I'm coming from Europe, so I just set that to true. 384 00:24:11,940 --> 00:24:13,520 You just kind of have to change that yourself. 385 00:24:15,440 --> 00:24:17,020 Frequency, well, that's a default one. 386 00:24:17,740 --> 00:24:19,100 But it's not what I want to do. 387 00:24:19,200 --> 00:24:21,520 I don't know right now what is on this network. 388 00:24:22,720 --> 00:24:23,920 So, well, let's scan. 389 00:24:26,180 --> 00:24:28,920 So there's another mode for this input set. 390 00:24:29,440 --> 00:24:30,240 Input mode. 391 00:24:31,300 --> 00:24:32,240 Let's see what we have. 392 00:24:33,240 --> 00:24:33,640 Scan. 393 00:24:33,640 --> 00:24:33,900 Scan. 394 00:24:34,500 --> 00:24:35,020 Good. 395 00:24:36,720 --> 00:24:37,240 OK. 396 00:24:37,660 --> 00:24:38,960 So now it's in mode scan. 397 00:24:40,820 --> 00:24:42,080 Start frequency is zero. 398 00:24:42,220 --> 00:24:46,740 Well, I know where it is, so I'll put it to something closer. 399 00:24:47,840 --> 00:24:49,380 Set input parameter. 400 00:24:50,320 --> 00:24:51,040 Come on. 401 00:24:58,140 --> 00:24:59,120 Is that it? 402 00:25:00,460 --> 00:25:00,980 Three? 403 00:25:02,040 --> 00:25:02,560 Nope. 404 00:25:04,180 --> 00:25:05,280 That should do. 405 00:25:06,320 --> 00:25:08,460 Yeah, maybe I should change that to megahertz. 406 00:25:09,100 --> 00:25:09,640 Anyway. 407 00:25:12,940 --> 00:25:13,920 So this is it. 408 00:25:16,300 --> 00:25:20,220 Well, the only thing left is to start the input. 409 00:25:21,160 --> 00:25:21,960 So that's it. 410 00:25:22,060 --> 00:25:22,960 Just start to scan. 411 00:25:23,660 --> 00:25:27,740 It goes from the frequency I specified to the maximum one. 412 00:25:28,620 --> 00:25:31,900 It's going to look into every single megahertz, see what's going there. 413 00:25:32,540 --> 00:25:33,040 OK. 414 00:25:33,580 --> 00:25:33,800 Oh. 415 00:25:33,960 --> 00:25:34,920 It got a frequency. 416 00:25:35,040 --> 00:25:42,420 It was able to tune, but obviously it was not a DOCSIS stream because it didn't receive 417 00:25:42,420 --> 00:25:43,300 any sync message. 418 00:25:43,560 --> 00:25:45,400 So it goes to skip it. 419 00:25:45,560 --> 00:25:46,960 It's probably a TV cable. 420 00:25:47,620 --> 00:25:48,120 Sorry. 421 00:25:48,280 --> 00:25:50,960 TV, you know. 422 00:25:54,880 --> 00:25:55,380 OK. 423 00:25:55,520 --> 00:25:55,940 There we go. 424 00:25:56,100 --> 00:25:57,220 So it found it. 425 00:25:57,220 --> 00:25:58,220 That's it. 426 00:26:06,540 --> 00:26:07,780 This is it. 427 00:26:07,840 --> 00:26:08,540 Frequency tuned. 428 00:26:09,060 --> 00:26:10,020 Download stream acquired. 429 00:26:10,560 --> 00:26:11,640 You got the frequency. 430 00:26:12,520 --> 00:26:13,560 442 megahertz. 431 00:26:13,760 --> 00:26:14,500 Symbol rates. 432 00:26:14,700 --> 00:26:16,020 Well, you don't care about that. 433 00:26:16,260 --> 00:26:16,640 QM. 434 00:26:16,900 --> 00:26:17,420 Yeah. 435 00:26:17,540 --> 00:26:18,020 You may. 436 00:26:18,240 --> 00:26:20,120 There are two of them that are available. 437 00:26:20,260 --> 00:26:21,720 QM 256 and 64. 438 00:26:22,100 --> 00:26:26,160 So if you don't find anything on QM 256, just try 64. 439 00:26:26,160 --> 00:26:27,720 You'll certify something. 440 00:26:28,980 --> 00:26:29,460 OK. 441 00:26:29,580 --> 00:26:30,300 So this is nice. 442 00:26:30,500 --> 00:26:31,200 We got our input. 443 00:26:31,720 --> 00:26:32,860 Is it dumping packets? 444 00:26:33,220 --> 00:26:33,620 Oh, yeah. 445 00:26:33,720 --> 00:26:34,000 It is. 446 00:26:34,120 --> 00:26:35,060 Quite a lot, actually. 447 00:26:37,760 --> 00:26:38,240 OK. 448 00:26:38,380 --> 00:26:39,700 So let's do something with that. 449 00:26:41,040 --> 00:26:41,960 Just for... 450 00:26:41,960 --> 00:26:42,340 Sorry. 451 00:26:42,480 --> 00:26:43,300 Let's close this. 452 00:26:43,400 --> 00:26:43,880 I don't need it. 453 00:26:44,560 --> 00:26:47,120 For privacy reasons, I'll just not show anything. 454 00:26:51,960 --> 00:26:53,120 Come on, guys. 455 00:26:53,360 --> 00:26:54,340 I can't do that. 456 00:26:55,040 --> 00:26:56,160 You know I can't. 457 00:27:00,420 --> 00:27:01,100 Hold on. 458 00:27:01,160 --> 00:27:01,740 I'm not done yet. 459 00:27:04,600 --> 00:27:05,240 All right. 460 00:27:05,280 --> 00:27:05,600 So... 461 00:27:06,160 --> 00:27:08,580 Well, let's just see how much bandwidth you got. 462 00:27:08,660 --> 00:27:09,660 So this is in Belgium. 463 00:27:12,160 --> 00:27:13,040 It's like... 464 00:27:14,400 --> 00:27:16,320 It's about 4 a.m. there. 465 00:27:16,440 --> 00:27:18,740 So I don't expect to have a lot of traffic. 466 00:27:18,820 --> 00:27:19,260 Let's see. 467 00:27:20,280 --> 00:27:22,120 So first of all, let's add a rule. 468 00:27:22,660 --> 00:27:23,100 Rule. 469 00:27:23,300 --> 00:27:23,720 Hmm. 470 00:27:24,020 --> 00:27:24,320 I don't know. 471 00:27:24,320 --> 00:27:25,720 I want all the Ethernet traffic. 472 00:27:26,160 --> 00:27:26,440 OK. 473 00:27:26,680 --> 00:27:27,540 So that's it. 474 00:27:27,640 --> 00:27:28,340 Got my rule. 475 00:27:29,180 --> 00:27:30,080 Show rules. 476 00:27:30,620 --> 00:27:31,460 It's disabled. 477 00:27:31,760 --> 00:27:32,640 Let's just enable it. 478 00:27:32,820 --> 00:27:34,080 Enable rule zero. 479 00:27:35,760 --> 00:27:36,300 OK. 480 00:27:36,400 --> 00:27:38,120 So it starts to process packets already. 481 00:27:38,280 --> 00:27:39,260 I see it's matching stuff. 482 00:27:40,020 --> 00:27:42,640 So after the rules, we need the target. 483 00:27:43,140 --> 00:27:43,680 OK. 484 00:27:43,780 --> 00:27:46,400 Let's try to do that virtual interface stuff. 485 00:27:48,480 --> 00:27:49,560 Add target. 486 00:27:49,780 --> 00:27:50,320 Oops. 487 00:27:50,420 --> 00:27:52,480 Target to rule zero. 488 00:27:52,680 --> 00:27:54,300 And this is all the target. 489 00:27:54,320 --> 00:27:54,580 Target available. 490 00:27:54,980 --> 00:27:56,060 So you just do tab. 491 00:27:56,180 --> 00:27:56,900 You get the completion. 492 00:27:57,120 --> 00:27:58,700 And you see what you can do. 493 00:27:59,120 --> 00:28:00,440 So I'll use target tab. 494 00:28:01,960 --> 00:28:02,900 Show targets. 495 00:28:03,120 --> 00:28:03,720 There we go. 496 00:28:04,400 --> 00:28:05,020 It stopped. 497 00:28:05,880 --> 00:28:06,620 Interface name. 498 00:28:06,780 --> 00:28:07,300 Palm zero. 499 00:28:07,560 --> 00:28:08,060 That's fine. 500 00:28:08,400 --> 00:28:09,220 Let's start it. 501 00:28:10,000 --> 00:28:10,300 Oops. 502 00:28:10,380 --> 00:28:10,780 Start. 503 00:28:11,060 --> 00:28:11,540 Target. 504 00:28:11,860 --> 00:28:12,340 Zero. 505 00:28:12,460 --> 00:28:12,800 Zero. 506 00:28:12,860 --> 00:28:13,440 There we go. 507 00:28:14,520 --> 00:28:15,000 OK. 508 00:28:15,140 --> 00:28:15,600 Let's see. 509 00:28:17,220 --> 00:28:18,020 If config. 510 00:28:18,220 --> 00:28:18,700 Palm zero. 511 00:28:18,980 --> 00:28:19,220 Hmm. 512 00:28:19,260 --> 00:28:19,560 Cool. 513 00:28:19,660 --> 00:28:20,160 It's working. 514 00:28:20,640 --> 00:28:21,420 Let's take it out. 515 00:28:21,420 --> 00:28:21,440 Tab. 516 00:28:25,020 --> 00:28:25,380 OK. 517 00:28:25,700 --> 00:28:26,560 A bit of traffic. 518 00:28:26,680 --> 00:28:27,040 Not much. 519 00:28:27,180 --> 00:28:27,840 But there is something. 520 00:28:29,760 --> 00:28:30,580 So that's it. 521 00:28:30,740 --> 00:28:32,840 I will not show any packets. 522 00:28:34,980 --> 00:28:36,780 But I'll do some more demo on my laptop. 523 00:28:36,880 --> 00:28:37,160 You'll see. 524 00:28:37,940 --> 00:28:38,660 So yeah. 525 00:28:39,900 --> 00:28:41,160 This is one of the possibilities. 526 00:28:41,480 --> 00:28:41,960 Let's say, no. 527 00:28:42,080 --> 00:28:45,720 I want to dump the whole doxy stream in a PCAP file. 528 00:28:45,900 --> 00:28:49,820 So as you all know, Wireshark, it dumps ethernet traffic. 529 00:28:50,060 --> 00:28:51,400 So at the ethernet level. 530 00:28:51,400 --> 00:28:51,500 It's a layer. 531 00:28:51,840 --> 00:28:53,200 But it can also. 532 00:28:53,280 --> 00:28:55,960 You can put different stuff in those PCAP files. 533 00:28:56,180 --> 00:28:57,220 You can put doxy packets. 534 00:28:57,660 --> 00:28:59,680 So you can go up one layer. 535 00:29:00,500 --> 00:29:04,820 So you've got doxy, ethernet, IPv4, and et cetera. 536 00:29:05,160 --> 00:29:07,120 Or you can even go down one layer. 537 00:29:07,220 --> 00:29:11,640 Meaning you can just save the row IP in PCAP. 538 00:29:11,780 --> 00:29:13,340 And it's all manageable here. 539 00:29:13,580 --> 00:29:16,800 So let me start again with the new configuration. 540 00:29:17,120 --> 00:29:17,640 It will be easier. 541 00:29:18,920 --> 00:29:19,380 Sorry. 542 00:29:19,440 --> 00:29:19,760 Stop it. 543 00:29:19,760 --> 00:29:21,080 But you can see there are a few stats. 544 00:29:21,320 --> 00:29:24,300 It tells me to get that much MPEG packets on. 545 00:29:24,380 --> 00:29:26,140 So it's not IP packets. 546 00:29:26,660 --> 00:29:29,340 And apparently, my link was quite good. 547 00:29:29,440 --> 00:29:30,300 Because I didn't miss anything. 548 00:29:31,260 --> 00:29:31,740 OK. 549 00:29:31,880 --> 00:29:34,040 But probably because there is no much bandwidth. 550 00:29:34,340 --> 00:29:35,500 I mean, no much traffic. 551 00:29:36,180 --> 00:29:36,660 All right. 552 00:29:36,680 --> 00:29:37,360 So let's start again. 553 00:29:37,540 --> 00:29:39,220 I know about the input. 554 00:29:39,420 --> 00:29:42,620 So let's set input type docsis. 555 00:29:43,120 --> 00:29:44,460 Let's do this quickly. 556 00:29:45,280 --> 00:29:47,100 And put parameter frequency. 557 00:29:48,280 --> 00:29:49,020 Come on. 558 00:29:49,020 --> 00:29:52,120 3, 4, 4, 2, 1, 3, 1, 2, 3. 559 00:29:53,140 --> 00:29:54,020 Start input. 560 00:29:55,040 --> 00:29:55,720 There we go. 561 00:29:55,880 --> 00:29:56,400 Too easy. 562 00:29:58,100 --> 00:29:58,780 All right. 563 00:29:58,900 --> 00:30:01,680 So add row. 564 00:30:02,340 --> 00:30:03,040 Oh, yeah. 565 00:30:03,120 --> 00:30:03,660 I forgot something. 566 00:30:06,840 --> 00:30:09,340 So here you can see alt layer is ethernet. 567 00:30:09,360 --> 00:30:10,920 So by default, that input is going 568 00:30:10,920 --> 00:30:12,300 to give you ethernet packets. 569 00:30:12,420 --> 00:30:16,280 Because you probably don't care about that docsis layer. 570 00:30:16,520 --> 00:30:19,000 But you can change it here by setting that parameter. 571 00:30:19,020 --> 00:30:20,260 To docsis. 572 00:30:20,460 --> 00:30:24,300 Set input parameter out layer docsis. 573 00:30:27,520 --> 00:30:28,640 Start input. 574 00:30:30,300 --> 00:30:31,060 There we go. 575 00:30:32,380 --> 00:30:32,780 Yeah. 576 00:30:32,880 --> 00:30:33,860 I forgot to mention something. 577 00:30:34,080 --> 00:30:35,980 All the rules that you specify, you 578 00:30:36,260 --> 00:30:39,540 have to specify all the full layers that you want to use. 579 00:30:39,900 --> 00:30:43,720 So in this case, if I want to dump, let's say, TCP traffic, 580 00:30:44,080 --> 00:30:47,560 I have to specify docsis. 581 00:30:47,560 --> 00:30:50,640 Because the very first layer that I'll have from the input 582 00:30:50,640 --> 00:30:51,380 is going to be docsis. 583 00:30:51,660 --> 00:30:52,960 Then ethernet. 584 00:30:54,280 --> 00:30:55,360 Then IPv4. 585 00:30:56,220 --> 00:31:01,200 I do the differentiate IPv4 and IPv6 just this way. 586 00:31:01,360 --> 00:31:02,220 And TCP. 587 00:31:05,880 --> 00:31:06,740 Show rules. 588 00:31:07,020 --> 00:31:07,380 OK. 589 00:31:07,460 --> 00:31:07,960 It's disabled. 590 00:31:08,300 --> 00:31:09,220 Enabled row 0. 591 00:31:09,700 --> 00:31:10,540 There we go. 592 00:31:10,680 --> 00:31:11,640 There is a bit of traffic. 593 00:31:12,180 --> 00:31:16,880 And add target 0 PCAP. 594 00:31:17,620 --> 00:31:18,660 Let's save all of these. 595 00:31:18,940 --> 00:31:19,760 It will be useful. 596 00:31:23,500 --> 00:31:24,320 Target is stopped. 597 00:31:25,460 --> 00:31:27,880 So here again, this is what I was talking about. 598 00:31:28,100 --> 00:31:30,440 You can set whatever layer you want to save. 599 00:31:30,620 --> 00:31:33,240 So if you want to save docsis packets, 600 00:31:33,460 --> 00:31:35,320 so it can be useful for docsis engineers who 601 00:31:35,320 --> 00:31:36,700 want to troubleshoot what was going on. 602 00:31:36,860 --> 00:31:37,400 Well, OK. 603 00:31:37,540 --> 00:31:46,060 Without the upstream, you do set target parameter 00 layer docsis. 604 00:31:48,700 --> 00:31:49,520 There we go. 605 00:31:54,260 --> 00:31:55,560 Where did I dump it? 606 00:31:56,240 --> 00:31:57,520 Oh, dump the PCAP. 607 00:31:57,640 --> 00:31:57,840 OK. 608 00:32:03,580 --> 00:32:04,200 Where is it? 609 00:32:06,860 --> 00:32:07,540 There we go. 610 00:32:07,980 --> 00:32:10,680 So you can see it's got everything. 611 00:32:10,880 --> 00:32:11,700 And it's docsis. 612 00:32:12,100 --> 00:32:13,500 It's not the ethernet layer. 613 00:32:14,080 --> 00:32:14,980 That's very useful. 614 00:32:15,420 --> 00:32:15,880 OK. 615 00:32:15,940 --> 00:32:16,180 So. 616 00:32:18,160 --> 00:32:19,840 Let me show you some more stuff. 617 00:32:20,020 --> 00:32:23,160 No, but not on this docsis network, 618 00:32:23,400 --> 00:32:25,440 simply because it's too far away. 619 00:32:25,620 --> 00:32:29,220 And it was such a burden to try to get something out of it. 620 00:32:29,420 --> 00:32:32,060 So I'll just use on my laptop 621 00:32:32,060 --> 00:32:35,440 and show you some extra stuff you can do. 622 00:32:35,560 --> 00:32:40,340 But consider this as if it was just on the docsis network. 623 00:32:40,880 --> 00:32:41,280 All right. 624 00:32:41,300 --> 00:32:46,580 So let's try to dump some images that I will go on. 625 00:32:47,580 --> 00:32:49,180 Go and see on the internet. 626 00:32:49,480 --> 00:32:51,000 So I just started. 627 00:32:51,620 --> 00:32:52,920 Minus E, empty config. 628 00:32:53,060 --> 00:32:54,740 Minus X, enable the web interface. 629 00:32:55,120 --> 00:32:55,280 Whoops. 630 00:32:55,440 --> 00:32:57,880 I forgot that it's already running here. 631 00:32:58,200 --> 00:32:58,500 OK. 632 00:33:00,900 --> 00:33:02,300 So I started here. 633 00:33:03,020 --> 00:33:04,380 Let me show you the web interface. 634 00:33:09,420 --> 00:33:10,380 Is this readable? 635 00:33:12,280 --> 00:33:13,200 That's a bit too much. 636 00:33:13,420 --> 00:33:13,700 OK. 637 00:33:14,700 --> 00:33:15,320 OK, good. 638 00:33:15,320 --> 00:33:18,920 So as usual, configure the input. 639 00:33:19,120 --> 00:33:20,840 I'll just use PCAP here. 640 00:33:21,240 --> 00:33:23,200 I need to select the mode. 641 00:33:23,300 --> 00:33:27,120 I'll say interface this way. 642 00:33:27,420 --> 00:33:30,480 I mean, you can either sniff from an interface 643 00:33:30,480 --> 00:33:33,000 or sniff from a file that you recorded already. 644 00:33:34,420 --> 00:33:36,320 VTH0, snap, then it's all fine. 645 00:33:36,420 --> 00:33:38,160 Save changes and start input. 646 00:33:38,980 --> 00:33:39,720 Come on. 647 00:33:40,120 --> 00:33:40,720 OK. 648 00:33:42,540 --> 00:33:44,080 Operation, of course. 649 00:33:44,260 --> 00:33:45,300 Come on. 650 00:33:45,900 --> 00:33:47,260 It works better as root. 651 00:33:51,160 --> 00:33:51,740 All right. 652 00:33:51,800 --> 00:33:52,200 Let's try again. 653 00:33:53,440 --> 00:33:54,080 Configure input. 654 00:34:03,380 --> 00:34:03,780 OK. 655 00:34:04,000 --> 00:34:04,600 It started now. 656 00:34:05,360 --> 00:34:08,260 So you see it's the same stuff you see in the console. 657 00:34:09,960 --> 00:34:10,560 All right. 658 00:34:10,600 --> 00:34:11,960 So let's see images. 659 00:34:12,260 --> 00:34:12,340 Hmm. 660 00:34:12,440 --> 00:34:13,300 That must be on port 80. 661 00:34:15,320 --> 00:34:15,920 Come on. 662 00:34:17,920 --> 00:34:19,720 I've got difficulties to click. 663 00:34:21,820 --> 00:34:22,460 IPv4. 664 00:34:22,740 --> 00:34:25,260 TCP.sport equal call 80. 665 00:34:26,680 --> 00:34:27,320 Yeah. 666 00:34:27,440 --> 00:34:31,000 About this source port, you just select one side of the direct, 667 00:34:31,120 --> 00:34:34,080 one side of the communication because there are contract, 668 00:34:34,260 --> 00:34:36,000 so connection tracking modules. 669 00:34:36,260 --> 00:34:39,580 They will just find out what is coming out 670 00:34:39,580 --> 00:34:41,160 from the reverse direction. 671 00:34:41,500 --> 00:34:45,300 So if you want to sniff anything that is on port 80, 672 00:34:45,300 --> 00:34:48,220 select source or destination, it does not really matter 673 00:34:48,220 --> 00:34:54,260 because once the target will start to dump the very first connection, 674 00:34:54,520 --> 00:34:57,100 it will say, hey, no, you saved the contract information, 675 00:34:57,460 --> 00:34:59,400 and I want to know about every single packet 676 00:34:59,400 --> 00:35:00,700 from the reverse direction. 677 00:35:01,060 --> 00:35:03,760 So it's all taken care of. 678 00:35:05,460 --> 00:35:05,980 OK. 679 00:35:06,100 --> 00:35:07,980 I've got my nice rule. 680 00:35:08,260 --> 00:35:09,320 Let's add a target. 681 00:35:12,700 --> 00:35:13,220 HTTP. 682 00:35:13,220 --> 00:35:13,480 HTTP. 683 00:35:15,220 --> 00:35:15,960 Default mode. 684 00:35:16,600 --> 00:35:17,620 Dump images. 685 00:35:17,960 --> 00:35:18,480 Yes. 686 00:35:20,600 --> 00:35:21,360 Slash tmp. 687 00:35:21,540 --> 00:35:21,840 That will do. 688 00:35:22,540 --> 00:35:23,060 OK. 689 00:35:23,940 --> 00:35:25,260 So input is started. 690 00:35:25,800 --> 00:35:27,640 Let's start the rule. 691 00:35:29,300 --> 00:35:30,100 I mean, sorry. 692 00:35:30,220 --> 00:35:30,920 Enable the rule. 693 00:35:31,400 --> 00:35:32,380 Start the target. 694 00:35:32,480 --> 00:35:34,720 Let's see if we can get the same. 695 00:35:36,100 --> 00:35:37,100 Just to confirm. 696 00:35:38,060 --> 00:35:38,580 Nope. 697 00:35:38,680 --> 00:35:39,200 Nope. 698 00:35:40,020 --> 00:35:40,760 Come on. 699 00:35:43,220 --> 00:35:44,960 So input is configured, found. 700 00:35:45,100 --> 00:35:45,920 Rules are OK. 701 00:35:46,680 --> 00:35:47,540 Targets are cool. 702 00:35:47,800 --> 00:35:48,120 All right. 703 00:35:48,480 --> 00:35:50,240 Well, let's go on a stupid website. 704 00:35:50,600 --> 00:35:53,080 Do you guys like LOLcats? 705 00:35:54,060 --> 00:35:54,580 Whoops. 706 00:35:56,800 --> 00:35:57,320 OK. 707 00:35:57,580 --> 00:35:58,200 That's nice. 708 00:36:00,900 --> 00:36:02,000 Nobody cares about it. 709 00:36:02,500 --> 00:36:04,040 Oh, there are a few images. 710 00:36:13,220 --> 00:36:13,320 OK. 711 00:36:13,440 --> 00:36:13,700 Works. 712 00:36:16,060 --> 00:36:17,960 So as I said, it's that easy. 713 00:36:18,140 --> 00:36:19,900 You select your inputs. 714 00:36:20,200 --> 00:36:20,660 OK. 715 00:36:20,780 --> 00:36:21,200 DOCSIS. 716 00:36:21,420 --> 00:36:23,360 Say I want everything on that port 80. 717 00:36:23,800 --> 00:36:29,660 And dump image, video, PDF, binary files, HTML files, whatever. 718 00:36:30,020 --> 00:36:31,140 You're just going to get it. 719 00:36:31,280 --> 00:36:32,780 You can look at it and have fun. 720 00:36:34,520 --> 00:36:35,160 All right. 721 00:36:35,180 --> 00:36:35,800 So that's one thing. 722 00:36:36,100 --> 00:36:36,280 No. 723 00:36:36,400 --> 00:36:38,900 Let's do something a bit more nasty because OK. 724 00:36:40,100 --> 00:36:41,220 Let's get rid of this. 725 00:36:41,500 --> 00:36:41,980 Goodbye. 726 00:36:45,640 --> 00:36:46,120 No. 727 00:36:46,360 --> 00:36:48,740 HTTP is fine, but TCPKill is funnier. 728 00:36:53,960 --> 00:36:56,560 So simply, again, select the mode interface. 729 00:36:57,200 --> 00:36:58,180 There are two modes. 730 00:36:58,440 --> 00:36:58,700 Oh, yeah. 731 00:36:58,800 --> 00:37:01,880 I forgot to mention that, yeah, I like the TCPKill a lot. 732 00:37:02,020 --> 00:37:09,220 So I kind of perfect it in a way that it works for IPv4, IPv6, and IPv4 in IPv6. 733 00:37:10,740 --> 00:37:11,220 No. 734 00:37:11,320 --> 00:37:11,500 Sorry. 735 00:37:11,980 --> 00:37:12,060 What was it? 736 00:37:12,300 --> 00:37:13,460 IPv6 in IPv4. 737 00:37:13,740 --> 00:37:17,980 So if you find somebody who's got a tool, you can still have fun with them. 738 00:37:19,480 --> 00:37:20,120 All right. 739 00:37:20,200 --> 00:37:20,640 There we go. 740 00:37:20,840 --> 00:37:21,680 So let's start it. 741 00:37:21,880 --> 00:37:25,720 I'm not going to use the web browser this time simply because it caches everything. 742 00:37:25,900 --> 00:37:27,100 So I'll connect myself. 743 00:37:27,960 --> 00:37:28,360 OK. 744 00:37:28,540 --> 00:37:28,960 It connects. 745 00:37:29,140 --> 00:37:29,440 But oh. 746 00:37:29,740 --> 00:37:30,140 Oh. 747 00:37:30,400 --> 00:37:31,160 That's not good. 748 00:37:31,440 --> 00:37:32,020 Let's try again. 749 00:37:32,460 --> 00:37:32,860 No. 750 00:37:33,220 --> 00:37:33,620 OK. 751 00:37:35,660 --> 00:37:36,360 All right. 752 00:37:36,660 --> 00:37:39,180 So well, that's about it. 753 00:37:39,420 --> 00:37:41,960 I could show you a lot more stuff because there are a lot more things. 754 00:37:41,960 --> 00:37:44,120 There's a lot more stuff to do and to try. 755 00:37:44,760 --> 00:37:47,640 But it's best if you just go through it yourself. 756 00:37:49,120 --> 00:37:52,420 As a conclusion, yeah, connect to your modem. 757 00:37:52,500 --> 00:37:53,400 Make sure it's encrypted. 758 00:37:54,420 --> 00:37:57,800 If possible, ask your ISP to switch to DOCSIS 3. 759 00:38:02,760 --> 00:38:07,900 Because DOCSIS 2, I mean, the DES encryption is most probably not going to last long. 760 00:38:12,220 --> 00:38:14,260 And yeah, well, thanks for attending. 761 00:38:14,480 --> 00:38:15,340 I hope you had fun.