1 00:00:00,000 --> 00:00:06,860 So, oh, I just wanted to say real quick while I'm drinking this shot that I made this Gmail 2 00:00:06,860 --> 00:00:11,620 address just for this talk. So, you know, if you're going to try and hack my Gmail, 3 00:00:11,700 --> 00:00:14,860 there's nothing good in there except things that you guys email me. And go ahead, you 4 00:00:14,860 --> 00:00:28,700 can contact me if you want. Okay, so what's up? The name of my talk is Ripping Media Off 5 00:00:28,700 --> 00:00:33,140 the Wire, and it's a step-by-step guide. If you guys have all the tools installed on 6 00:00:33,140 --> 00:00:37,760 your laptop, you can actually just follow along and try and do this right now. Otherwise, 7 00:00:37,980 --> 00:00:42,460 you know, if you miss something, then my slides will be available online. You can follow along 8 00:00:42,460 --> 00:00:50,300 then if you, like, forget or something. All right, so let's get started. First of all, 9 00:00:50,340 --> 00:00:56,760 who the hell am I? I'm Honey. These are my, like, credentials here. I'm a network administrator. 10 00:00:57,560 --> 00:00:58,680 I've been for four years. I'm a network administrator. I've been for four years. 11 00:00:58,700 --> 00:01:04,880 And I'm also a professor at John Jay College, an adjunct professor. That's in New York City, 12 00:01:05,020 --> 00:01:11,840 in case you didn't hear my accent already. I'm also a research assistant for a ballistic 13 00:01:11,840 --> 00:01:21,140 research grant. And I'm about to study forensic computing masters in the fall. And, yeah, 14 00:01:21,220 --> 00:01:25,120 I got a CIS in electronic engineering and computer networking. All right, I got some 15 00:01:25,120 --> 00:01:28,020 skills. I got some skills. 16 00:01:29,080 --> 00:01:37,740 Here you go. That's who I am. What's the scope of this talk? This talk is going to walk you 17 00:01:37,740 --> 00:01:42,920 through how to download MP3s from MySpace and from YouTube. And we're also going to talk about 18 00:01:42,920 --> 00:01:52,800 the lack of security in protected streaming. All right, so the tools that I use for this, 19 00:01:52,840 --> 00:01:58,680 they're all GNU tools. Wget, Firefox, an add-on from Microsoft, and then I'm going to talk about 20 00:01:58,700 --> 00:02:06,660 Firefox called HTTP Fox, which is awesome. RTMP Dump, and this converter that I've used. 21 00:02:06,800 --> 00:02:13,100 There's other converters, but this one's called Convert Flu, I mean, FLV to MP3s. Now, 22 00:02:14,860 --> 00:02:20,480 there's DMCAs right now on the RTMP Dump. And also, when I originally wrote the white paper for 23 00:02:20,480 --> 00:02:27,440 this, like Convert FLV to MP3, there was a website. You could download it. It's gone. The website is 24 00:02:28,700 --> 00:02:33,880 gone. So, you know, I just suspect that there's a DMC takedown on that as well. But you guys are 25 00:02:33,880 --> 00:02:46,960 hackers. I'm sure you can find the tools, so. Just a disclosure about this talk, because this 26 00:02:46,960 --> 00:02:52,560 presentation describes methods to download protected materials. And I'm doing this talk in an effort 27 00:02:52,560 --> 00:02:58,600 to raise, you know, the lack of security in protected streaming. All the music that I'm using in my 28 00:02:58,700 --> 00:03:05,700 presentation, I actually got permission from the artists themselves, so that was pretty cool. And any 29 00:03:05,700 --> 00:03:10,960 illegal use of the methods by, you know, any of you guys, like, I'm not responsible for that. 30 00:03:14,160 --> 00:03:22,840 And a legal statement. This presentation does break the terms of service for YouTube, MySpace, the 31 00:03:23,270 --> 00:03:28,680 digital millennium apps, and, but that's only if you, if you download it. So, if you download it, you 32 00:03:28,700 --> 00:03:32,940 download copyrighted materials. You know, and not everything on YouTube is copyrighted. If somebody 33 00:03:32,940 --> 00:03:38,160 has a video of their dog rolling over and over, you know, that's not, that's not protected. So, if you 34 00:03:38,160 --> 00:03:43,500 decide to download, you know, Jay-Z's, you know, protected media, well, then you're breaking the 35 00:03:43,500 --> 00:03:53,860 law. Okay. Before we begin, there's a couple of, I don't know, questions that I just want to, like, 36 00:03:53,860 --> 00:03:58,680 answer ahead of time. Some people are like, what is the point of this? I use LimeWare. What is the 37 00:03:58,680 --> 00:04:03,180 point of this? I have a Usenet account. Or what is the point of this? I use, you know, different 38 00:04:04,340 --> 00:04:10,900 converters. But there's a couple good points about why this is interesting. Like, the third-party 39 00:04:10,900 --> 00:04:16,520 plugins, they're not always reliable or kept up to date on changes. Okay. So, like, GreaseMonkey, 40 00:04:16,620 --> 00:04:22,180 I think their last update was, like, in April. All right. So, if MySpace or YouTube, if they 41 00:04:22,180 --> 00:04:28,260 change their implementation, you know, on, on their servers, then, like, 42 00:04:28,680 --> 00:04:32,100 you know, you have to wait for that plugin to be updated in order to use, you know, 43 00:04:32,640 --> 00:04:38,460 use the plugin. They're not always updated that fast. For people who, like, use online websites 44 00:04:38,460 --> 00:04:44,060 in order to convert stuff, like, how do you know that, you know, that third-party is not injecting 45 00:04:44,060 --> 00:04:51,880 stuff into your MP3s or media? You're trusting someone else. And, you know, on LimeWire, like, 46 00:04:51,920 --> 00:04:57,440 do you have an MD5 sum on, like, the MP3? No, you don't. Because you're obviously, like, pirating it. 47 00:04:58,680 --> 00:05:06,060 MP3 are ready to check, so. And this presentation is not intended to encourage piracy, even though 48 00:05:06,060 --> 00:05:15,560 I'm talking about it. But it's more about the, the summation of data that is supposed to be, you know, 49 00:05:15,560 --> 00:05:18,000 know, protected streaming, and it's not really protected, so. 50 00:05:20,300 --> 00:05:24,220 All right, so let's just get some definitions out the way. 51 00:05:24,740 --> 00:05:28,840 MySpace uses the RTMP protocol, so what is that? 52 00:05:28,980 --> 00:05:31,840 Actually, they're using RTMP-E protocol, but what is that? 53 00:05:31,920 --> 00:05:33,220 It's a real-time messaging protocol. 54 00:05:33,400 --> 00:05:34,840 It's a proprietary protocol by Adobe. 55 00:05:35,740 --> 00:05:38,660 There's three variations of RTMP. 56 00:05:39,240 --> 00:05:43,420 RTMP itself, which runs over port 1935. 57 00:05:44,440 --> 00:05:51,020 RTMP-T, which is used to traverse firewalls, and RTMP-S, which uses SSL. 58 00:05:54,420 --> 00:06:00,600 Now, the protocol that we're interested in from MySpace, RTMP-E, which is the encrypted real-time messaging protocol, 59 00:06:01,380 --> 00:06:06,480 and it's a proprietary protocol of Macromedia for streaming video and DRM. 60 00:06:06,960 --> 00:06:11,020 It supposedly allows secure transfer of data without SSL, 61 00:06:11,660 --> 00:06:13,400 and the reason why they implemented it is because it's a real-time messaging protocol. 62 00:06:13,400 --> 00:06:15,260 The reason why they implemented this is, you know, SSL is slow, 63 00:06:16,320 --> 00:06:18,900 but RTMP-E is supposed to solve that problem. 64 00:06:19,040 --> 00:06:20,400 It's supposed to be more easy to implement. 65 00:06:23,700 --> 00:06:31,340 Okay, so I went to Adobe's website, and I just took a couple of clips that they have available on their website, 66 00:06:31,580 --> 00:06:36,000 because basically, Adobe is recommending everyone to use RTMP-E, 67 00:06:36,140 --> 00:06:40,820 and they're saying, you know, that it's providing protection from stream ripping, 68 00:06:40,980 --> 00:06:43,380 which my demonstration is going to show it isn't. 69 00:06:43,400 --> 00:06:49,020 Um, so yeah, that's, I'm embarrassed for them, you know. 70 00:06:55,040 --> 00:07:03,840 This is also from Adobe's website, where they're talking about, you know, they're recommending RTMP-E more, 71 00:07:04,040 --> 00:07:05,040 and they're saying it's robust. 72 00:07:06,160 --> 00:07:06,680 Okay. 73 00:07:07,460 --> 00:07:11,700 And the client picture there, you know, we have the server, 74 00:07:12,200 --> 00:07:13,100 and it's, uh... 75 00:07:13,400 --> 00:07:15,460 You know, talking to the client, and then... 76 00:07:17,140 --> 00:07:20,880 You know, then it's, like, playing in the client's... 77 00:07:22,920 --> 00:07:23,360 Player. 78 00:07:23,720 --> 00:07:27,080 But, like, the tool that we're going to use, which is RTMP-Dump, 79 00:07:27,820 --> 00:07:29,920 RTMP-Dump basically acts like a proxy. 80 00:07:30,220 --> 00:07:35,820 It sits in between, you know, it captures all these requests from, you know, the servers, 81 00:07:36,400 --> 00:07:37,540 and it, um... 82 00:07:38,080 --> 00:07:39,840 It, like... 83 00:07:41,080 --> 00:07:41,860 It, um... 84 00:07:41,860 --> 00:07:43,120 It does the handshaking. 85 00:07:43,400 --> 00:07:45,400 Between, uh, you know, the servers and the client. 86 00:07:45,560 --> 00:07:48,880 And then it compiles the whole file, and then it passes the file down to the client. 87 00:07:49,900 --> 00:07:51,400 So, that's what I'm talking about. 88 00:07:51,560 --> 00:07:53,700 Well, well, we'll talk about that in a second. 89 00:07:53,840 --> 00:07:54,200 Let's see. 90 00:07:54,640 --> 00:07:55,940 What RTMP does. 91 00:07:57,080 --> 00:07:58,120 RTMP-Dump does. 92 00:07:59,180 --> 00:07:59,620 Um... 93 00:08:01,040 --> 00:08:03,180 This is from the man of RTMP-Dump. 94 00:08:04,020 --> 00:08:09,720 So, this is an ACP server that accepts requests that, uh, consist of RTMP-Dump parameters. 95 00:08:10,620 --> 00:08:11,500 It, uh... 96 00:08:13,400 --> 00:08:16,180 It then, you know, does the handshaking. 97 00:08:16,440 --> 00:08:18,720 And then it passes the file down to the client. 98 00:08:21,720 --> 00:08:25,200 And this is also just from Adobe's website that I'm talking about DRM. 99 00:08:26,500 --> 00:08:28,500 So, they're describing DRM there. 100 00:08:28,660 --> 00:08:31,520 That it's two elements, encryption and access control. 101 00:08:39,640 --> 00:08:40,120 Okay. 102 00:08:40,300 --> 00:08:40,560 Okay. 103 00:08:40,920 --> 00:08:43,380 Now that we've, uh, got, like, the definition... 104 00:08:43,400 --> 00:08:45,420 The definition's out the way, let's just see how to do this. 105 00:08:46,740 --> 00:08:47,140 Okay. 106 00:08:47,240 --> 00:08:48,140 So, um... 107 00:08:48,800 --> 00:08:51,140 First, how to get MP3 files from MySpace. 108 00:08:51,500 --> 00:08:54,080 The first step is you have to install, um... 109 00:08:54,680 --> 00:08:55,080 HTTP... 110 00:08:55,640 --> 00:08:55,860 Um... 111 00:08:55,860 --> 00:08:57,460 HTTP Fox, the Firefox plugin. 112 00:08:57,660 --> 00:08:58,520 You use Firefox. 113 00:08:59,280 --> 00:09:02,860 And the next thing you're gonna do is you're gonna start HTTP Fox. 114 00:09:03,120 --> 00:09:05,260 And then you're gonna browse to your MySpace page. 115 00:09:07,860 --> 00:09:09,840 So, for my example, um... 116 00:09:09,840 --> 00:09:12,420 You know, this band that gave me, like, the consent to use their stuff. 117 00:09:12,540 --> 00:09:13,280 It's a local Brooklyn. 118 00:09:13,280 --> 00:09:13,560 It's a Brooklyn band. 119 00:09:13,980 --> 00:09:15,280 They're, like, not that well-known. 120 00:09:15,520 --> 00:09:20,780 So, they're more than happy to give me, you know, consent to have more publicity for their music. 121 00:09:21,340 --> 00:09:23,600 So, you can see at the bottom, HTTP has started. 122 00:09:23,700 --> 00:09:26,280 It's capturing, uh, traffic there at the bottom. 123 00:09:26,620 --> 00:09:29,680 And you can see, uh, you know, I'm playing music there. 124 00:09:35,380 --> 00:09:35,960 All right. 125 00:09:36,000 --> 00:09:40,040 The next step is you have to traverse all this, um, captured traffic. 126 00:09:40,780 --> 00:09:43,160 So, I tried to find, um, something unique. 127 00:09:43,280 --> 00:09:45,800 About the, the URL that I captured. 128 00:09:46,160 --> 00:09:47,820 So, that you can always find it. 129 00:09:47,960 --> 00:09:51,700 So, the unique thing, uh, string that I found was just if you search for get song. 130 00:09:52,060 --> 00:09:54,380 Then it'll just return one URL. 131 00:09:54,700 --> 00:09:56,180 And the get song is case sensitive. 132 00:10:02,100 --> 00:10:06,800 Um, the next thing you have to do is in HTTP Fox at the bottom, there's a couple different options. 133 00:10:07,220 --> 00:10:09,020 So, the one option is content. 134 00:10:09,360 --> 00:10:13,260 And if you browse through the XML file, you'll see, you know, pathfiles. 135 00:10:13,280 --> 00:10:13,920 Uh, for an MP3. 136 00:10:14,240 --> 00:10:16,060 So, you copy that MP3 path. 137 00:10:16,840 --> 00:10:19,520 And please notice that, um, it's proceeding. 138 00:10:19,640 --> 00:10:20,680 It's RTMP. 139 00:10:21,340 --> 00:10:23,580 And then the URL, you know, .mp3. 140 00:10:23,780 --> 00:10:25,100 Just notice that for a second. 141 00:10:30,400 --> 00:10:30,780 Okay. 142 00:10:30,860 --> 00:10:34,820 So, the next thing you have to do is download RTMP dump if you don't have it already. 143 00:10:35,340 --> 00:10:36,560 And here's the fun part. 144 00:10:36,720 --> 00:10:38,180 So, they're, they're kind of tricky. 145 00:10:38,660 --> 00:10:42,100 It, it looks like it's RTMP, but it's not really RTMP. 146 00:10:42,160 --> 00:10:43,040 It's RTMPE. 147 00:10:43,280 --> 00:10:52,000 So, if you just change, uh, the URL to RTMPE and then run that command in RTMP dump, you're going to download the file. 148 00:10:52,200 --> 00:10:56,460 So, that's the syntax down there for, um, RTMP, uh, dump. 149 00:10:56,840 --> 00:11:02,300 It's the executable minus R because you're, uh, downloading, like, an RTMP stream. 150 00:11:02,520 --> 00:11:06,900 The only other option, I think, for RTMP dump is, um, minus host. 151 00:11:07,500 --> 00:11:10,000 Um, then the modified captured URL. 152 00:11:10,260 --> 00:11:13,260 And then the output of, you know, your flu, your flunet. 153 00:11:14,040 --> 00:11:16,080 I mean, your FLV name. 154 00:11:20,260 --> 00:11:20,660 Okay. 155 00:11:21,200 --> 00:11:24,360 So, um, here's my modified URL. 156 00:11:24,820 --> 00:11:28,360 You remember before I said notice in the URL that I copied. 157 00:11:28,440 --> 00:11:29,280 It said RTMP. 158 00:11:29,480 --> 00:11:31,660 I changed it here to RTMPE. 159 00:11:31,840 --> 00:11:33,900 I don't know if you could see it that well, but I have it highlighted in red. 160 00:11:34,640 --> 00:11:39,380 So, now when I execute this command, um, it's going to download the file. 161 00:11:39,580 --> 00:11:42,500 Anyone notice anything weird right here? 162 00:11:43,480 --> 00:11:45,380 Do you remember, like, the URL that we copied? 163 00:11:45,920 --> 00:11:48,820 Any, any hackers notice anything weird? 164 00:11:49,140 --> 00:11:50,320 I'll let you think on that for a second. 165 00:11:56,920 --> 00:12:00,020 Alright, so I run the command and it starts downloading. 166 00:12:00,300 --> 00:12:00,520 Yay! 167 00:12:05,120 --> 00:12:07,160 And then, now my downloaded has completed. 168 00:12:11,140 --> 00:12:12,440 Um, now, okay, so. 169 00:12:12,440 --> 00:12:20,520 So, this is what you could have noticed, is that the URL that I copied from httpfox, the RTMP URL, was a .mp3, right? 170 00:12:20,760 --> 00:12:23,120 So, why is my output an FLV? 171 00:12:23,580 --> 00:12:24,420 Why am I doing that? 172 00:12:24,460 --> 00:12:25,360 You hackers could have noticed that. 173 00:12:25,440 --> 00:12:27,580 Like, why don't I just download it as an mp3? 174 00:12:27,860 --> 00:12:33,960 The reason why you don't download it as an mp3 is because when you do download it as an mp3, the sound quality is really bad. 175 00:12:35,120 --> 00:12:41,420 So, if you use this converter to convert, um, if you download it as a FLV and then convert it to this, 176 00:12:41,420 --> 00:12:42,640 the sound quality is perfect. 177 00:12:44,520 --> 00:12:50,320 So, I use this converter, convert it, and now I have my file. 178 00:12:51,660 --> 00:12:54,560 So, do you want to see that in a video? 179 00:12:55,420 --> 00:12:56,720 Yeah, let's go for it. 180 00:13:03,500 --> 00:13:04,800 There's no porn, sorry. 181 00:13:18,500 --> 00:13:19,520 Keep typing. 182 00:13:23,700 --> 00:13:32,840 All right, so, I'm just Googling for their MySpace page, started, um, httpfox, started httpfox, 183 00:13:33,960 --> 00:13:36,080 now I'm going to browse to their MySpace page. 184 00:13:36,360 --> 00:13:38,140 There you can see all the traffic's coming through. 185 00:13:38,300 --> 00:13:39,200 There's a lot of traffic. 186 00:13:39,340 --> 00:13:41,400 Every single icon and thing there. 187 00:13:41,420 --> 00:13:41,880 That's on the page. 188 00:13:44,500 --> 00:13:45,920 Now, I'm going to start the song playing. 189 00:13:52,580 --> 00:13:56,500 Now, I have to find the URL and all of this traffic. 190 00:14:01,160 --> 00:14:04,160 So, I'm going to do a search to get song, but remember, it's case sensitive. 191 00:14:15,140 --> 00:14:19,820 Now, I'm clicking on the content here, so I can go through the XML file. 192 00:14:19,880 --> 00:14:22,740 Look, they're running, um, Microsoft IIS 6. 193 00:14:25,960 --> 00:14:27,220 Thank you, YouTube, for that. 194 00:14:38,900 --> 00:14:40,600 All right, I'm copying the URL. 195 00:14:50,320 --> 00:14:54,740 All right, so, someone asked me, they're like, why can't you W get the file if you have the URL? 196 00:14:55,180 --> 00:14:57,680 So, I've just, I do what you shouldn't do here. 197 00:14:57,860 --> 00:14:59,980 You can't W get RTMP streams. 198 00:15:01,900 --> 00:15:03,180 So, I'm going to show you that. 199 00:15:05,460 --> 00:15:08,440 You can see what I went through, basically, to try and figure this out. 200 00:15:09,260 --> 00:15:10,580 I tried all, many, many things. 201 00:15:10,580 --> 00:15:11,100 There's a lot of really different options. 202 00:15:13,260 --> 00:15:14,620 So, I'm W getting it. 203 00:15:22,180 --> 00:15:24,020 I forgot to put the file name in. 204 00:15:25,020 --> 00:15:25,500 . 205 00:15:25,500 --> 00:15:26,660 . 206 00:15:53,160 --> 00:15:54,400 . 207 00:15:54,400 --> 00:15:54,560 . 208 00:15:54,560 --> 00:15:54,800 . 209 00:15:54,800 --> 00:15:55,420 . 210 00:15:55,420 --> 00:15:55,740 . 211 00:15:58,060 --> 00:15:58,660 . 212 00:15:58,660 --> 00:15:59,420 . 213 00:16:01,860 --> 00:16:02,460 . 214 00:16:02,460 --> 00:16:02,940 . 215 00:16:06,540 --> 00:16:07,140 . 216 00:16:07,140 --> 00:16:07,200 . 217 00:16:07,200 --> 00:16:07,220 . 218 00:16:07,220 --> 00:16:07,240 . 219 00:16:07,240 --> 00:16:07,820 . 220 00:16:10,080 --> 00:16:10,680 . 221 00:16:21,440 --> 00:16:22,040 . 222 00:16:22,040 --> 00:16:22,340 . 223 00:16:22,340 --> 00:16:23,540 . 224 00:16:23,540 --> 00:16:23,560 . 225 00:16:23,560 --> 00:16:23,580 . 226 00:16:23,580 --> 00:16:23,600 . 227 00:16:23,600 --> 00:16:23,620 . 228 00:16:23,620 --> 00:16:23,800 . 229 00:16:23,800 --> 00:16:23,940 . 230 00:16:23,940 --> 00:16:23,960 . 231 00:16:23,960 --> 00:16:25,940 or two. We've got 232 00:16:25,940 --> 00:16:27,600 a couple other senior staff goons that are going to help 233 00:16:28,320 --> 00:16:29,120 collect a 234 00:16:29,800 --> 00:16:31,880 couple bucks and then whatever's left over 235 00:16:31,880 --> 00:16:33,920 that covers the damage goes to 236 00:16:33,920 --> 00:16:34,320 the EFF. 237 00:16:36,340 --> 00:16:37,060 I'm going to start. 238 00:17:03,100 --> 00:17:04,060 Sorry, it restarted 239 00:17:04,060 --> 00:17:05,780 so we're just going to have to watch this again for a second. 240 00:17:13,020 --> 00:17:13,860 He's not that loud. 241 00:17:30,460 --> 00:17:32,240 Oh yeah, so this band 242 00:17:32,240 --> 00:17:34,240 Great Tiger, they, originally their 243 00:17:34,240 --> 00:17:35,700 music was only available on MySpace 244 00:17:35,700 --> 00:17:38,240 and you know I tried the easiest thing to get 245 00:17:38,240 --> 00:17:40,280 their music which is just like ask them for 246 00:17:40,280 --> 00:17:42,180 it and I tried, actually 247 00:17:42,180 --> 00:17:44,100 my friend Ronan tried too. We tried to social them 248 00:17:44,100 --> 00:17:45,600 to give us all their music but 249 00:17:46,520 --> 00:17:47,980 they wouldn't give it to us so 250 00:17:47,980 --> 00:17:49,440 we had to find alternative ways. 251 00:17:50,980 --> 00:17:52,220 Actually, they actually gave 252 00:17:52,220 --> 00:17:53,900 me a CD after this but 253 00:18:03,720 --> 00:18:06,080 this works for this, I mean, yes 254 00:18:06,080 --> 00:18:06,380 you can. 255 00:18:13,080 --> 00:18:14,160 Maybe they'll fix it. 256 00:18:24,940 --> 00:18:26,200 Alright, so this is 257 00:18:26,200 --> 00:18:27,840 pretty much where I left off before that guy 258 00:18:27,840 --> 00:18:28,300 talked. 259 00:18:30,940 --> 00:18:32,360 So I'm just saying, you know, 260 00:18:32,440 --> 00:18:33,940 it's going to fail because I'm 261 00:18:33,940 --> 00:18:36,220 W getting RTMP stream. That doesn't 262 00:18:36,220 --> 00:18:36,400 work. 263 00:18:38,320 --> 00:18:40,000 So there's the failure right there. 264 00:18:40,140 --> 00:18:41,420 It's not a supported scheme. 265 00:18:43,980 --> 00:18:45,700 So then the next thing 266 00:18:45,700 --> 00:18:48,140 that I'm going to try and do is I'm going to just 267 00:18:48,140 --> 00:18:50,180 try and use RTMP dump and 268 00:18:50,180 --> 00:18:52,000 just download the MP3 without modifying 269 00:18:52,000 --> 00:18:53,740 the URL. What happens? 270 00:18:53,960 --> 00:18:54,160 Then. 271 00:19:11,180 --> 00:19:11,780 That's just 272 00:19:11,780 --> 00:19:16,020 me saying exactly what I just 273 00:19:16,020 --> 00:19:16,460 said, actually. 274 00:19:20,720 --> 00:19:21,660 Oh no, that's my 275 00:19:21,660 --> 00:19:23,560 test MP3. 276 00:19:25,520 --> 00:19:26,020 I'm actually 277 00:19:26,020 --> 00:19:27,900 going to show you too. I'm going to download it as an MP3 278 00:19:27,900 --> 00:19:30,040 and I'm going to play it and hopefully you can hear 279 00:19:30,040 --> 00:19:31,960 that the quality is not 280 00:19:31,960 --> 00:19:33,980 very good and that's why I used the converter so that 281 00:19:33,980 --> 00:19:34,860 it sounds good. 282 00:19:36,900 --> 00:19:38,000 Okay, so we're going to 283 00:19:38,000 --> 00:19:39,940 expect that this is going to fail because I haven't 284 00:19:39,940 --> 00:19:40,620 modified the URL. 285 00:19:53,960 --> 00:19:54,700 And it failed. 286 00:19:59,120 --> 00:20:04,300 All right, so now I'm going to modify the URL to include RTMP. 287 00:20:04,820 --> 00:20:07,380 And it's going to work. 288 00:20:10,780 --> 00:20:11,920 I just did. 289 00:20:15,080 --> 00:20:15,680 . 290 00:20:15,680 --> 00:20:16,240 . 291 00:20:16,240 --> 00:20:16,540 . 292 00:20:16,540 --> 00:20:16,640 . 293 00:20:16,640 --> 00:20:16,960 . 294 00:20:16,960 --> 00:20:17,060 . 295 00:20:17,060 --> 00:20:17,340 . 296 00:20:17,340 --> 00:20:17,400 . 297 00:20:17,400 --> 00:20:17,720 . 298 00:20:20,000 --> 00:20:20,600 . 299 00:20:31,540 --> 00:20:31,820 . 300 00:20:49,580 --> 00:20:49,860 . 301 00:20:49,860 --> 00:20:50,040 . 302 00:20:50,040 --> 00:20:50,060 . 303 00:20:50,060 --> 00:20:50,140 . 304 00:20:50,140 --> 00:20:50,240 . 305 00:20:50,240 --> 00:20:50,540 . 306 00:20:50,540 --> 00:20:50,580 . 307 00:21:10,220 --> 00:21:19,600 Now you can see the file size there, downloaded successfully, but it's an MP3, and like I 308 00:21:19,600 --> 00:21:22,160 said, it doesn't sound very good. 309 00:21:30,480 --> 00:21:31,400 Sounds choppy. 310 00:21:36,420 --> 00:21:37,820 You can go to my Q&A. 311 00:21:40,860 --> 00:21:45,820 So now I'm going to run the same command again, except I'm going to download it as an FLV. 312 00:21:46,060 --> 00:21:46,520 Okay. 313 00:22:01,740 --> 00:22:02,300 Let's go. 314 00:22:02,700 --> 00:22:04,420 Let's go. 315 00:22:04,480 --> 00:22:04,780 Let's go. 316 00:22:04,780 --> 00:22:07,000 All right. 317 00:22:07,260 --> 00:22:07,940 All right. 318 00:22:07,940 --> 00:22:08,000 All right. 319 00:22:09,600 --> 00:22:10,080 Okay. 320 00:22:11,980 --> 00:22:12,460 Let's go. 321 00:22:12,640 --> 00:22:13,180 All right. 322 00:22:13,400 --> 00:22:13,440 Here we go. 323 00:22:13,440 --> 00:22:13,720 Here we go. 324 00:22:13,720 --> 00:22:13,900 It will go over to my URL. 325 00:22:14,060 --> 00:22:14,220 I don't think I relieved a few times. 326 00:22:14,220 --> 00:22:14,240 I think I'm getting a little bit better. 327 00:22:14,240 --> 00:22:14,280 Well, I think that's good. 328 00:22:14,280 --> 00:22:14,800 I think that's good. 329 00:22:15,040 --> 00:22:16,220 I don't know how long this is going to take. 330 00:22:16,220 --> 00:22:18,560 It's going to take a couple of days. 331 00:22:41,220 --> 00:22:42,060 Download successful. 332 00:22:44,080 --> 00:22:47,600 And look, the file size is exactly the same, even though it's different format. 333 00:22:47,600 --> 00:22:54,440 And now I'm going to use the converter to convert it from an FLV back to an MP3. 334 00:23:25,600 --> 00:23:25,920 Successful. 335 00:23:28,020 --> 00:23:31,320 All right, now let's see if you can hear the difference in the sound quality. 336 00:23:51,200 --> 00:23:51,920 I'm not done. 337 00:23:52,040 --> 00:23:52,660 I'm not done. 338 00:23:52,720 --> 00:23:52,980 Sorry. 339 00:23:53,340 --> 00:23:54,880 You got to keep sitting here. 340 00:23:56,880 --> 00:24:02,740 But also, so now I'm looking at the file sizes of the two different files and you can see 341 00:24:02,740 --> 00:24:08,200 that when it's converted with the convert FLV to MP3, it adds to the file size. 342 00:24:08,340 --> 00:24:09,320 It repairs it. 343 00:24:17,600 --> 00:24:18,240 Mouths dancing. 344 00:24:23,940 --> 00:24:24,440 Okay. 345 00:24:29,480 --> 00:24:32,300 That was our video intermission. 346 00:24:32,500 --> 00:24:35,440 So now we'll continue with the next part, which is from YouTube. 347 00:24:38,740 --> 00:24:42,300 Okay, so how to get MP3 files from YouTube. 348 00:24:43,560 --> 00:24:45,460 This is just, like, URL manipulation. 349 00:24:45,460 --> 00:24:49,280 So the first step you're going to do is you're going to install Firefox. 350 00:24:49,480 --> 00:24:51,960 If you don't already have it, you're going to install HTTP Fox. 351 00:24:52,040 --> 00:24:54,820 If you don't already have it, you're going to start HTTP Fox, 352 00:24:54,940 --> 00:24:59,140 and you're going to browse to the YouTube page that you want to extract media from. 353 00:25:01,420 --> 00:25:06,180 So for my example, again, I'm using Great Tiger, the Brooklyn band. 354 00:25:07,380 --> 00:25:08,660 I'm using one of their videos. 355 00:25:10,320 --> 00:25:14,480 So this shot, you can see there's traffic already captured there at the bottom. 356 00:25:20,040 --> 00:25:25,380 And instead of doing a search for Get Song, you can just do a search for Get 357 00:25:25,380 --> 00:25:30,620 in order to traverse all the amount of traffic that you are capturing. 358 00:25:35,960 --> 00:25:40,480 Get only returns one URL, unless, like, you browse multiple YouTube pages. 359 00:25:40,960 --> 00:25:42,520 So you're just going to copy that URL. 360 00:25:49,180 --> 00:25:53,760 And the next step is download Wget, if you don't have Wget for some reason. 361 00:25:54,100 --> 00:25:55,640 And we're going to modify the URL. 362 00:25:57,080 --> 00:26:03,600 So there's parameters within the URL that are extra that you don't need in order to try and Wget the file. 363 00:26:03,920 --> 00:26:08,300 And actually, if you don't modify the URL and remove some of the extra parameters, 364 00:26:08,500 --> 00:26:11,080 well, they're not extra, but the parameters that you've captured, 365 00:26:11,260 --> 00:26:13,280 when you try and convert it, it won't convert properly. 366 00:26:14,140 --> 00:26:15,320 So there I have those. 367 00:26:15,460 --> 00:26:17,500 Syntax of what you need to put into Wget. 368 00:26:17,700 --> 00:26:23,120 Wget minus open, you know, your file name, .flv, and then the captured URL. 369 00:26:28,660 --> 00:26:32,160 So here's the unedited version of the URL. 370 00:26:33,040 --> 00:26:35,180 You can see there's a whole bunch of parameters there. 371 00:26:35,880 --> 00:26:38,960 The web page and a bunch of different parameters. 372 00:26:44,320 --> 00:26:45,460 There's the URL again. 373 00:26:46,060 --> 00:26:50,560 So I broke down each of the different parameters. 374 00:26:51,260 --> 00:26:54,040 So you have to, there's get video. 375 00:26:54,520 --> 00:26:56,320 Then there's a detail page. 376 00:26:56,700 --> 00:26:58,840 There's T and some string of characters. 377 00:26:59,060 --> 00:27:01,860 It's 43 characters, actually. 378 00:27:02,780 --> 00:27:04,740 And then there's the FMT. 379 00:27:04,780 --> 00:27:06,420 That has to do with, like, resolution. 380 00:27:06,920 --> 00:27:08,500 And then there's the video ID. 381 00:27:08,960 --> 00:27:11,340 Which is, like, the actual video ID. 382 00:27:12,980 --> 00:27:15,020 Then there's no flu and SFV. 383 00:27:16,580 --> 00:27:21,940 So, and when you copy the URL, all of these parameters come out of order a lot of times. 384 00:27:22,100 --> 00:27:27,300 So you actually, you know, you have to be able to identify that there's different parameters there. 385 00:27:27,360 --> 00:27:29,780 They don't always come in the order in the example URL. 386 00:27:30,080 --> 00:27:30,940 They come all out of order. 387 00:27:31,220 --> 00:27:34,920 With the exception of the get video one. 388 00:27:36,740 --> 00:27:38,740 So, let me just talk for a second here. 389 00:27:41,000 --> 00:27:46,920 So, originally when I did this white paper, like, a month ago, you only needed three parameters. 390 00:27:47,380 --> 00:27:49,660 You only needed the get video, which you're always going to need. 391 00:27:49,860 --> 00:27:52,600 You needed the T and the 43 characters. 392 00:27:53,140 --> 00:27:54,260 And then the video ID. 393 00:27:54,460 --> 00:27:55,620 You didn't need the SFV. 394 00:27:55,780 --> 00:28:01,020 But, you know, I keep, I kept trying my own presentation to make sure it still worked. 395 00:28:01,600 --> 00:28:04,380 And the guys at YouTube, they changed it Tuesday. 396 00:28:05,000 --> 00:28:05,580 All right? 397 00:28:05,580 --> 00:28:07,740 So Tuesday I was like, oh, my God, it doesn't work anymore. 398 00:28:08,260 --> 00:28:08,940 So I had to. 399 00:28:08,940 --> 00:28:09,660 I had to re-hack it. 400 00:28:09,740 --> 00:28:13,540 And I figured out that you just, you just need this other parameter, too. 401 00:28:13,700 --> 00:28:14,700 And then you can download it. 402 00:28:14,820 --> 00:28:21,340 So that's what I was talking about before where, like, you know, Grease Monkey or something like that, they changed it. 403 00:28:21,440 --> 00:28:24,860 So I don't know if, you know, the other add-ons, if they're still going to work. 404 00:28:24,940 --> 00:28:30,480 They're going to have to go update it, re, you know, put out the add-on that's going to successfully work. 405 00:28:30,880 --> 00:28:36,860 But if you break out and understand these parameters and they're just, like, including them or not including some of them, you can just hack it all on your own. 406 00:28:40,320 --> 00:28:42,920 Okay, so I have my example URL. 407 00:28:43,060 --> 00:28:45,440 And now I have my modified URL at the bottom. 408 00:28:45,580 --> 00:28:49,140 And I'm just wgetting, you know, this modified URL. 409 00:28:53,600 --> 00:29:01,040 So there, I'm putting the commands into, you know, with wget with my modified URL. 410 00:29:03,700 --> 00:29:05,080 I'm executing it. 411 00:29:05,420 --> 00:29:06,960 And my download's complete. 412 00:29:09,820 --> 00:29:14,100 And now I'm going to convert it to an mp3 if I want it to be an mp3 file. 413 00:29:17,000 --> 00:29:22,300 And let's see a video of all of that and, like, some of the things that don't work in it in my other video. 414 00:29:22,480 --> 00:29:22,640 Okay, so. 415 00:29:24,700 --> 00:29:25,100 Okay. 416 00:29:29,720 --> 00:29:30,120 Okay. 417 00:29:31,780 --> 00:29:32,180 Okay. 418 00:29:34,000 --> 00:29:34,400 Okay. 419 00:29:36,520 --> 00:29:36,920 Okay. 420 00:29:36,920 --> 00:29:37,100 Okay. 421 00:29:38,520 --> 00:29:38,920 Okay. 422 00:29:38,940 --> 00:29:39,100 Okay. 423 00:29:39,160 --> 00:29:40,040 So I'm just going to YouTube. 424 00:29:43,020 --> 00:29:49,180 And I'm going to search for Great Tigers video, because it's really short for this demonstration. 425 00:29:50,180 --> 00:29:51,860 I'm going to start http fox. 426 00:30:03,720 --> 00:30:07,940 And then I'm going to go to the video page. 427 00:30:08,400 --> 00:30:08,920 Okay. 428 00:30:08,940 --> 00:30:09,560 Okay. 429 00:30:10,080 --> 00:30:10,600 Okay. 430 00:30:11,520 --> 00:30:14,480 And that's how you do the Great Tiger handshake! 431 00:30:18,800 --> 00:30:19,320 Beautiful. 432 00:30:25,380 --> 00:30:26,720 Alright, so that was interesting. 433 00:30:27,600 --> 00:30:34,520 Now we have to traverse all the captured data to try and find out our own URL, because, 434 00:30:34,700 --> 00:30:36,280 you know, that video's priceless. 435 00:30:42,340 --> 00:30:43,740 Apache. 436 00:31:20,440 --> 00:31:24,560 So first I'm going to try the URL without editing any of the parameters, and you can 437 00:31:24,560 --> 00:31:30,760 see how it fails, saying this should fail because I'm not going to edit the URL. 438 00:31:31,120 --> 00:31:36,100 I'm just going to try and straight W get it from YouTube. 439 00:31:43,680 --> 00:31:45,580 So, you know, file size is zero. 440 00:31:45,700 --> 00:31:46,480 That didn't work. 441 00:31:55,120 --> 00:31:57,180 So now I'm going to remove some of the parameters. 442 00:31:57,540 --> 00:32:03,460 So I need T equals some string, I need get video, I need the video ID, and then now just 443 00:32:03,460 --> 00:32:04,840 recently I need that ASV. 444 00:32:05,400 --> 00:32:05,840 Okay. 445 00:32:10,700 --> 00:32:13,020 No, it is not always ASV equals three. 446 00:32:13,200 --> 00:32:14,880 Sometimes it's ASV equals two. 447 00:32:15,360 --> 00:32:16,880 It doesn't matter, though. 448 00:32:18,000 --> 00:32:21,280 You still have to include it regardless of the number. 449 00:32:23,860 --> 00:32:24,340 Yay! 450 00:32:34,280 --> 00:32:35,820 So now I'm going to convert it. 451 00:32:35,820 --> 00:32:39,960 I'm going to convert it into an MP3, so I can listen to it on my portable media device. 452 00:32:54,680 --> 00:32:55,500 Yay, successful! 453 00:33:01,540 --> 00:33:01,980 Wow! 454 00:33:04,080 --> 00:33:05,800 And that's how you do the quiz. 455 00:33:05,800 --> 00:33:06,860 That's how you do the quick tiger handshake. 456 00:33:08,260 --> 00:33:08,700 Beautiful. 457 00:33:15,740 --> 00:33:24,540 All right, so if you don't convert it to an MP3, if you open the FLV file in Winamp and 458 00:33:24,540 --> 00:33:27,300 also VLC, it plays... 459 00:33:27,300 --> 00:33:29,820 And that's how you do the quick tiger handshake. 460 00:33:30,140 --> 00:33:32,700 If you rename it to an AVI file, it also plays. 461 00:33:33,840 --> 00:33:35,760 Well, within at least those two meters here. 462 00:33:46,240 --> 00:33:47,920 That was our second intermission. 463 00:33:49,820 --> 00:33:52,480 All right, so the conclusion about this. 464 00:33:53,700 --> 00:33:57,740 DRM implementations, they're almost always going to fail without some type of special 465 00:33:57,740 --> 00:33:58,980 hardware on the client computer. 466 00:34:00,120 --> 00:34:05,780 You know, Adobe, they should fix their protocol instead of doing DMCA takedowns on the client 467 00:34:05,780 --> 00:34:08,960 tools that are capturing the streaming and stuff like that. 468 00:34:14,760 --> 00:34:21,760 And they're recommending the RTMPE protocol over the SSL, and they're saying it's robust 469 00:34:21,760 --> 00:34:27,620 and everyone should be using that, and it doesn't protect against streamer bing. 470 00:34:31,260 --> 00:34:33,960 The RTMPE protocol... 471 00:34:33,960 --> 00:34:34,660 Well, it's implementation. 472 00:34:34,940 --> 00:34:35,500 On MySpace... 473 00:34:35,500 --> 00:34:37,700 On MySpace, totally security through obscurity, all right? 474 00:34:37,740 --> 00:34:39,980 I edit the E and I can download stuff, all right? 475 00:34:40,000 --> 00:34:41,060 That's not real security. 476 00:34:43,500 --> 00:34:45,860 And it's susceptible to man-in-the-middle attacks. 477 00:34:51,800 --> 00:34:53,360 There's references and downloads. 478 00:34:59,180 --> 00:35:02,660 All right, so that's my talk. 479 00:35:04,600 --> 00:35:09,740 Do you guys want to do, like, a revisit on, like, a back-in-the-day hack? 480 00:35:09,980 --> 00:35:14,340 It's kind of random, but, all right. 481 00:35:17,380 --> 00:35:20,760 I'm actually just curious if, like, anyone knows about this. 482 00:35:21,460 --> 00:35:22,660 All right, in a second, show. 483 00:35:26,460 --> 00:35:27,060 All right. 484 00:35:27,060 --> 00:35:27,980 All right. 485 00:35:28,080 --> 00:35:28,720 All right. 486 00:35:33,880 --> 00:35:36,340 I mean, it's really kind of like a story, but... 487 00:35:44,960 --> 00:35:46,680 Oh, I can't see anything. 488 00:35:52,120 --> 00:35:52,920 One second. 489 00:35:53,080 --> 00:35:53,520 Okay. 490 00:35:56,760 --> 00:35:57,660 All right. 491 00:35:57,700 --> 00:35:58,900 All right. 492 00:36:15,560 --> 00:36:15,620 Thank you. 493 00:36:38,240 --> 00:36:39,000 Sorry, one second. 494 00:36:39,120 --> 00:36:41,600 I forgot I set up a proxy on my Firefox. 495 00:36:41,740 --> 00:36:42,840 I'm just disabling it real quick. 496 00:37:03,420 --> 00:37:08,380 Okay, so does anyone remember the original Sega console? 497 00:37:17,580 --> 00:37:18,520 Where's images? 498 00:37:19,300 --> 00:37:20,580 I can't really see. 499 00:37:21,230 --> 00:37:21,920 Is it here? 500 00:37:29,220 --> 00:37:30,980 Did I mistype it? 501 00:37:37,020 --> 00:37:37,980 No, the original Sega. 502 00:37:38,000 --> 00:37:38,300 Let me see. 503 00:37:42,580 --> 00:37:43,060 Thank you. 504 00:37:54,060 --> 00:37:58,760 All right, so I'm talking about this one. 505 00:37:59,760 --> 00:38:02,320 All right, did anyone else have this like when they were a kid? 506 00:38:03,420 --> 00:38:04,940 Yeah, wait, raise your hands for real. 507 00:38:05,180 --> 00:38:05,960 Like, show me love. 508 00:38:07,100 --> 00:38:07,820 Yes, yes. 509 00:38:08,520 --> 00:38:10,300 All right, so when I was a kid, 510 00:38:12,220 --> 00:38:15,380 I figured out that like if you didn't put a game in the console 511 00:38:15,380 --> 00:38:18,900 and like you hit a bunch of different buttons on the, you know, 512 00:38:20,660 --> 00:38:21,460 on the remote, 513 00:38:21,980 --> 00:38:26,280 it would take you into an Easter egg that was in the Sega console. 514 00:38:28,320 --> 00:38:29,700 So I love this game. 515 00:38:29,840 --> 00:38:31,140 I was like obsessed with this game. 516 00:38:31,200 --> 00:38:32,020 I played it all the time. 517 00:38:32,660 --> 00:38:34,760 And it has really stupid music in it. 518 00:38:36,600 --> 00:38:39,680 And I actually, I found the game. 519 00:38:40,360 --> 00:38:43,620 Someone, someone put it, you know, used an emulator and they put it online, 520 00:38:43,900 --> 00:38:47,480 which I was like ecstatic about because I don't still have the Sega console. 521 00:38:47,860 --> 00:38:51,740 And like I was very disappointed that, you know, I didn't keep, you know, get to play the game. 522 00:38:52,000 --> 00:38:58,020 So I found it online and I actually ripped the MP3 file out of, you know, just it being online. 523 00:38:58,480 --> 00:39:00,660 And I gave that MP3 to Great Tiger. 524 00:39:00,760 --> 00:39:02,400 And I'm like trying to get them to sample. 525 00:39:02,660 --> 00:39:05,560 The stupid music that's in, you know, this game. 526 00:39:05,680 --> 00:39:07,980 And I tried to explain to them that like, no, you can use it. 527 00:39:08,020 --> 00:39:09,360 It's from like an Easter egg. 528 00:39:09,460 --> 00:39:13,760 You know, the music from like an Easter egg game and like the original Sega console from like the 80s. 529 00:39:13,760 --> 00:39:17,800 Like no one's going to know, but they don't, they don't trust me about that. 530 00:39:18,080 --> 00:39:25,720 I'm still waiting for them to sample it, but let me see if I can find the game real quick for you because it's funny. 531 00:39:47,660 --> 00:39:48,220 Wow. 532 00:39:48,240 --> 00:39:49,500 It turns out the camera's over here. 533 00:39:52,400 --> 00:39:53,320 Well, I don't know who I'm suspended for now. 534 00:39:53,320 --> 00:39:53,840 No. 535 00:39:54,220 --> 00:39:54,780 You're listening to the great tiger in the woods and. 536 00:40:00,040 --> 00:40:00,780 No, I don't know. 537 00:40:17,280 --> 00:40:18,860 All right, so look at this. 538 00:40:18,940 --> 00:40:20,120 It's awesome. 539 00:40:25,160 --> 00:40:25,560 Yes. 540 00:40:29,140 --> 00:40:30,680 I can't see the play, but. 541 00:40:32,660 --> 00:40:34,620 The music sounds just like their tiger, right? 542 00:40:36,620 --> 00:40:39,480 So there's a time, and there's like 13 rounds to it. 543 00:40:42,560 --> 00:40:46,260 Which I can't play because I can't see, but I'm actually really good at this game. 544 00:40:51,240 --> 00:40:57,200 So when you finally beat the 13th level on the game, you get the email address of the programmer. 545 00:40:59,560 --> 00:41:02,260 So you know I emailed him, like, oh my god. 546 00:41:02,760 --> 00:41:03,380 Thank you. 547 00:41:03,480 --> 00:41:04,260 I love this game. 548 00:41:04,380 --> 00:41:05,940 I'm so happy that you have it online. 549 00:41:07,420 --> 00:41:08,520 He replied, too. 550 00:41:08,660 --> 00:41:09,400 It was awesome. 551 00:41:09,720 --> 00:41:11,400 You know, it's like a complete story. 552 00:41:11,400 --> 00:41:14,160 He's like, oh, I'm very glad that you like the game. 553 00:41:14,280 --> 00:41:15,560 Not a lot of people have beat the game. 554 00:41:15,780 --> 00:41:16,100 So. 555 00:41:16,700 --> 00:41:17,640 All right, so that's it. 556 00:41:17,720 --> 00:41:18,080 I'm done. 557 00:41:18,760 --> 00:41:19,080 Thank you. 558 00:41:21,340 --> 00:41:21,980 Thank you.