1 00:00:00,000 --> 00:00:06,420 Well, I'll start again. So, my name is Alfredo Ortega. He is Oren Isakson. 2 00:00:06,940 --> 00:00:10,060 We're going to talk about exploiting digital cameras. 3 00:00:14,320 --> 00:00:15,180 There you go. 4 00:00:19,940 --> 00:00:25,180 So, we're going to talk about how to script digital cameras, basically. 5 00:00:25,180 --> 00:00:31,340 How we reverse this script. This will not be an exploitation at low level. 6 00:00:31,460 --> 00:00:38,300 This will be a high level exploitation. We actually are writing interpreted language 7 00:00:38,940 --> 00:00:43,160 present in almost all PowerShot digital cameras. 8 00:00:45,020 --> 00:00:50,960 We're going to talk about what we can do with this and what are the security consequences of it. 9 00:00:51,660 --> 00:00:53,160 Okay, let's start with the basics. 10 00:00:54,240 --> 00:01:00,080 Modern digital cameras, I'm sure you are aware, are, in fact, powerful computers. 11 00:01:00,740 --> 00:01:10,760 They almost all have an ARM processor and a lot of memory and they are really fast computers. 12 00:01:13,340 --> 00:01:15,120 We have a... 13 00:01:15,120 --> 00:01:22,800 The digital cameras that we are studying doesn't have a complete memory management unit. 14 00:01:23,160 --> 00:01:24,660 They have a memory protection unit. 15 00:01:24,880 --> 00:01:31,060 So, it really can run a secure operative system, but it runs an operative system nevertheless. 16 00:01:32,280 --> 00:01:35,340 Canon digital cameras use DryOS. 17 00:01:35,540 --> 00:01:40,940 It is an operative system built by Canon. 18 00:01:42,500 --> 00:01:44,920 And, well, that is about it. 19 00:01:45,280 --> 00:01:48,500 We have complete computers. 20 00:01:50,440 --> 00:01:52,940 Of course, we are not the first that... 21 00:01:53,160 --> 00:01:55,980 research into exploiting digital cameras. 22 00:01:56,100 --> 00:01:59,220 In fact, there is a huge project called CHDK 23 00:02:00,160 --> 00:02:01,860 that is... 24 00:02:01,860 --> 00:02:04,000 It has a few years already. 25 00:02:04,340 --> 00:02:08,920 And they are very, very incredible guys. 26 00:02:09,080 --> 00:02:14,460 They build custom firmware for Canon digital cameras. 27 00:02:14,600 --> 00:02:15,660 They enhance functionality. 28 00:02:17,320 --> 00:02:21,200 But this really can be used to attack a camera. 29 00:02:21,400 --> 00:02:23,140 Because we can see here... 30 00:02:23,160 --> 00:02:24,880 This is the main problem with this approach. 31 00:02:25,940 --> 00:02:27,720 For this modification to work, 32 00:02:27,920 --> 00:02:33,200 you must download a firmware modification inside the memory card. 33 00:02:33,440 --> 00:02:39,000 But the memory card must be locked before the firmware can be executed. 34 00:02:39,420 --> 00:02:45,240 So, this is not really a good way to exploit, to take over a digital camera. 35 00:02:45,400 --> 00:02:52,160 Because you have to physically access the memory card and switch the login. 36 00:02:53,160 --> 00:02:57,280 And also, there are other requirements like a special file system. 37 00:02:57,940 --> 00:02:59,500 It needs FAT16. 38 00:03:00,020 --> 00:03:00,960 Only working FAT16. 39 00:03:01,280 --> 00:03:03,020 So, this is a great modification. 40 00:03:03,200 --> 00:03:05,660 But really, it can be used to attack a camera. 41 00:03:05,760 --> 00:03:08,040 That is why this project is, in fact, very secure. 42 00:03:09,280 --> 00:03:11,900 We want to see if there is another way. 43 00:03:17,800 --> 00:03:21,780 So, we first tried to run our code, 44 00:03:21,780 --> 00:03:24,300 exploiting the image parsers inside the camera. 45 00:03:25,140 --> 00:03:30,680 This way, if we could find a bug in the image parsers, 46 00:03:30,680 --> 00:03:32,660 and write an exploit for it, 47 00:03:33,200 --> 00:03:35,320 we could take control of the camera 48 00:03:35,320 --> 00:03:38,880 as the user is trying to see an invalid message, 49 00:03:39,060 --> 00:03:43,020 an image in the camera's playback mode. 50 00:03:45,480 --> 00:03:50,300 The ARM processor jumps to the... 51 00:03:50,300 --> 00:03:51,760 an exception handler, 52 00:03:51,940 --> 00:03:56,380 when it tries to read or write an invalid memory address. 53 00:03:56,820 --> 00:04:02,440 So, what we did is write an exception handler 54 00:04:03,020 --> 00:04:05,220 to try to find the bugs, 55 00:04:05,360 --> 00:04:09,860 find bugs when passing the parsers. 56 00:04:11,560 --> 00:04:13,580 We did find some bugs. 57 00:04:13,780 --> 00:04:16,400 But before writing an exploit for them, 58 00:04:17,040 --> 00:04:18,460 or trying to write an exploit, 59 00:04:18,460 --> 00:04:21,200 we found another way that is better. 60 00:04:21,540 --> 00:04:26,000 The best thing about writing an exploit for the image parsers 61 00:04:26,000 --> 00:04:28,240 are that this is binary. 62 00:04:28,700 --> 00:04:34,020 And function offsets change from camera model to model. 63 00:04:34,300 --> 00:04:37,680 So, it would probably be very difficult 64 00:04:38,460 --> 00:04:41,960 to write an exploit that works in a lot of models. 65 00:04:44,420 --> 00:04:46,220 We found this other method, 66 00:04:46,340 --> 00:04:47,980 that is the interpreter, 67 00:04:48,460 --> 00:04:49,420 and the script, 68 00:04:49,600 --> 00:04:56,620 when we analyzed the film of one camera. 69 00:04:57,740 --> 00:04:59,720 We used AIDA Pro, 70 00:05:01,580 --> 00:05:06,660 and we can see a lot of interesting strings. 71 00:05:07,360 --> 00:05:12,680 These strings show that there is a plain text parser 72 00:05:12,680 --> 00:05:13,500 inside the camera. 73 00:05:14,120 --> 00:05:18,440 This parser is composed of two parsers, 74 00:05:18,440 --> 00:05:20,060 one is the JAG, 75 00:05:20,140 --> 00:05:22,780 that is yet another compiler compiler, 76 00:05:23,140 --> 00:05:24,580 and the other is FLEX, 77 00:05:24,720 --> 00:05:26,220 that is a lexical scanner. 78 00:05:31,560 --> 00:05:34,040 Well, we later found that, 79 00:05:35,280 --> 00:05:36,880 well, I was saying, 80 00:05:37,000 --> 00:05:39,920 we find this parser, 81 00:05:39,980 --> 00:05:42,120 and this parser are commonly found 82 00:05:42,120 --> 00:05:44,540 in interpreters and compilers. 83 00:05:44,720 --> 00:05:46,440 We assumed it was an interpreter 84 00:05:46,440 --> 00:05:48,420 as it makes more sense inside the camera. 85 00:05:49,300 --> 00:05:52,580 We later found we were not the first one 86 00:05:52,580 --> 00:05:55,140 to find this interpreter, 87 00:05:55,400 --> 00:05:57,480 but there is no public information 88 00:05:57,480 --> 00:06:00,420 on how to write a script for the cameras, 89 00:06:00,580 --> 00:06:04,680 or any information on the syntax 90 00:06:04,680 --> 00:06:07,380 or semantics of this language. 91 00:06:07,820 --> 00:06:10,920 And it is very difficult to just guess 92 00:06:10,920 --> 00:06:14,720 how to write a script for this language, 93 00:06:14,900 --> 00:06:17,760 because any error causes 94 00:06:17,760 --> 00:06:19,880 the camera to simply shut down, 95 00:06:20,040 --> 00:06:21,880 and there are no error messages 96 00:06:21,880 --> 00:06:24,200 that say why the script is invalid. 97 00:06:28,300 --> 00:06:31,680 So we found a world language 98 00:06:31,680 --> 00:06:33,860 activated inside every camera. 99 00:06:36,550 --> 00:06:38,840 So we have to reverse a complete language. 100 00:06:38,960 --> 00:06:40,360 That is a little difficult. 101 00:06:40,800 --> 00:06:42,460 What do we have? 102 00:06:42,640 --> 00:06:44,920 We have how to execute the language. 103 00:06:45,220 --> 00:06:47,160 We have what are the requirements 104 00:06:47,160 --> 00:06:52,480 that a memory card has to execute a script. 105 00:06:54,700 --> 00:06:56,460 They have a little file 106 00:06:56,460 --> 00:06:57,840 when the script is placed, 107 00:06:58,020 --> 00:07:01,380 and some tags inside the boot sector. 108 00:07:01,600 --> 00:07:02,180 But most importantly, 109 00:07:02,980 --> 00:07:05,260 it doesn't require anything more than that. 110 00:07:05,540 --> 00:07:09,420 It doesn't require the memory card to be locked. 111 00:07:09,660 --> 00:07:11,460 It doesn't require a special file system. 112 00:07:12,420 --> 00:07:17,140 So if you have a malware running in your computer, 113 00:07:17,140 --> 00:07:18,540 and you insert a memory card, 114 00:07:18,720 --> 00:07:22,180 this malware card injects code in your camera, 115 00:07:22,920 --> 00:07:26,020 because you only have to remove the memory card, 116 00:07:26,140 --> 00:07:28,240 insert in your camera without doing anything else, 117 00:07:28,320 --> 00:07:29,340 and it will execute. 118 00:07:29,960 --> 00:07:32,660 So I say, well, that is very useful. 119 00:07:33,480 --> 00:07:35,000 But we need a reverse interpreter. 120 00:07:35,320 --> 00:07:36,880 It's not an introduction on an algorithm, 121 00:07:37,000 --> 00:07:38,340 but a complete language. 122 00:07:40,160 --> 00:07:43,060 So let's start from the beginning. 123 00:07:43,240 --> 00:07:46,340 What are the structure of these interpreters? 124 00:07:47,160 --> 00:07:49,160 Well, it's a very standard interpreter. 125 00:07:49,780 --> 00:07:53,800 We have a grammatical parser here, 126 00:07:54,100 --> 00:07:55,960 a lexical parser. 127 00:07:56,020 --> 00:07:57,440 It's Lex and Jack. 128 00:07:58,220 --> 00:08:02,740 By the way, Lex was built with an idea of Donald Knuth, 129 00:08:02,900 --> 00:08:06,140 and, I'm sorry, Lex was built by Eric Schmidt, 130 00:08:06,320 --> 00:08:07,060 CEO of Google, 131 00:08:07,200 --> 00:08:10,060 and Jack was built by Donald Knuth. 132 00:08:10,280 --> 00:08:12,220 It's their software, open-source software, 133 00:08:12,320 --> 00:08:16,480 that have more than 30 years old. 134 00:08:17,140 --> 00:08:19,400 But they are like the standards of real interpreters. 135 00:08:19,960 --> 00:08:21,700 Basically, you have the script here, 136 00:08:23,520 --> 00:08:26,840 and the tokenizer, the Lex parser, 137 00:08:26,920 --> 00:08:29,200 will start reading character by character 138 00:08:29,880 --> 00:08:30,920 and produce tokens. 139 00:08:31,360 --> 00:08:36,980 These tokens can be while, print, variables, names. 140 00:08:37,360 --> 00:08:39,300 They are basically tokens for any language. 141 00:08:39,540 --> 00:08:42,220 They are a field to the grammatical parser, 142 00:08:42,260 --> 00:08:45,000 and the grammatical parser can either produce code, 143 00:08:45,160 --> 00:08:46,120 so you have a compiler, 144 00:08:46,120 --> 00:08:49,220 or interpret or execute functions, 145 00:08:49,440 --> 00:08:50,100 or execute a program, 146 00:08:50,240 --> 00:08:50,980 and you have an interpreter. 147 00:08:51,420 --> 00:08:51,900 That's all. 148 00:08:52,900 --> 00:08:54,140 In this case, of course, 149 00:08:54,160 --> 00:08:55,560 the camera inside has an interpreter, 150 00:08:55,780 --> 00:08:56,480 not a compiler. 151 00:08:56,760 --> 00:08:57,960 It would be very crazy. 152 00:08:58,060 --> 00:08:59,300 You have a compiler on your camera, 153 00:08:59,340 --> 00:09:00,160 but you have an interpreter. 154 00:09:00,600 --> 00:09:03,860 So this is the function that does the parsing. 155 00:09:05,160 --> 00:09:07,260 This is a very complex function. 156 00:09:07,720 --> 00:09:10,940 We have the string here is syntax error. 157 00:09:12,340 --> 00:09:13,580 The thing that we found, 158 00:09:13,600 --> 00:09:15,860 we see that this is an interpreter, 159 00:09:16,120 --> 00:09:16,240 in fact. 160 00:09:18,060 --> 00:09:21,520 Here we have a code of the lexical analyzer, 161 00:09:22,360 --> 00:09:25,040 and this little basic block here. 162 00:09:27,200 --> 00:09:29,980 We're going to start with trying to do 163 00:09:29,980 --> 00:09:32,060 what tokens made our language. 164 00:09:32,740 --> 00:09:35,240 We don't know even what language is, 165 00:09:35,340 --> 00:09:36,620 or any of the rules. 166 00:09:37,300 --> 00:09:38,380 This is a tokenizer. 167 00:09:39,440 --> 00:09:41,400 It's very complex, as you can see. 168 00:09:42,260 --> 00:09:44,460 In fact, it's a huge case. 169 00:09:46,120 --> 00:09:46,600 It's a case statement, 170 00:09:46,860 --> 00:09:48,460 the one for each token. 171 00:09:48,900 --> 00:09:51,340 And the tokenizer, in fact, 172 00:09:51,460 --> 00:09:54,940 is a table-based regular expression. 173 00:09:55,300 --> 00:09:57,820 Basically, it's a regular expression parser. 174 00:09:58,900 --> 00:10:01,400 That's why we really can't find 175 00:10:01,400 --> 00:10:03,400 the individual tokens in memory. 176 00:10:03,580 --> 00:10:06,260 The tokens are coded inside a huge table 177 00:10:06,260 --> 00:10:12,520 that this table is feed to a state machine, 178 00:10:12,700 --> 00:10:14,060 and the state machine recognizes tokens. 179 00:10:14,220 --> 00:10:16,020 So we couldn't find any tokens. 180 00:10:16,020 --> 00:10:17,140 You're looking at the film, 181 00:10:17,160 --> 00:10:17,960 or you're looking at the memory. 182 00:10:18,120 --> 00:10:21,860 We have to reverse the regular expression parser. 183 00:10:24,280 --> 00:10:26,580 Here is a portion of the parser. 184 00:10:26,620 --> 00:10:27,720 The parser is open source, 185 00:10:28,000 --> 00:10:31,040 so we know that we have the source code, 186 00:10:31,200 --> 00:10:32,460 but we don't have the tables. 187 00:10:33,520 --> 00:10:36,220 One idea that we have is to emulate this. 188 00:10:36,340 --> 00:10:39,200 In a computer, you just pick up the table from memory 189 00:10:39,200 --> 00:10:40,440 and emulate. 190 00:10:42,920 --> 00:10:44,460 There is not a single table. 191 00:10:44,460 --> 00:10:47,200 There is a lot of tables in a lex parser. 192 00:10:48,480 --> 00:10:51,640 In this diagram, we look in the memory here. 193 00:10:52,720 --> 00:10:54,180 This is a table, in fact. 194 00:10:54,420 --> 00:10:58,280 We implemented the table back to C code 195 00:10:58,800 --> 00:11:01,980 and just recompiled a standard lex parser 196 00:11:02,760 --> 00:11:04,020 and then brute-forced it. 197 00:11:05,220 --> 00:11:06,020 There it is. 198 00:11:07,640 --> 00:11:09,200 We're going to do a demonstration. 199 00:11:09,400 --> 00:11:10,340 We're going to run a demonstration 200 00:11:10,340 --> 00:11:12,980 of this brute-forcing process here. 201 00:11:14,460 --> 00:11:18,900 This, of course, is running in my laptop 202 00:11:18,900 --> 00:11:21,220 because only we stole the stock, sorry. 203 00:11:21,340 --> 00:11:22,740 We pick up the tables. 204 00:11:23,580 --> 00:11:24,340 Here it is. 205 00:11:24,380 --> 00:11:26,120 Yeah, we are brute-forcing every character. 206 00:11:26,980 --> 00:11:28,820 When you say success here, 207 00:11:28,940 --> 00:11:31,480 it's that a token was successfully parsed 208 00:11:31,480 --> 00:11:34,180 or accepted for the tokenizer. 209 00:11:34,480 --> 00:11:37,260 So every number is a valid token 210 00:11:37,260 --> 00:11:38,920 because numbers are tokens, too. 211 00:11:40,940 --> 00:11:43,660 Now we're going to start parsing the operators. 212 00:11:44,880 --> 00:11:47,840 This is our valid operator for this language. 213 00:11:49,120 --> 00:11:51,140 Letters are also valid tokens 214 00:11:51,140 --> 00:11:52,520 because we can do variables. 215 00:11:52,700 --> 00:11:56,520 And we have here, we have a token that is a function. 216 00:11:56,900 --> 00:11:58,460 Function is a valid token, too. 217 00:11:58,600 --> 00:12:00,080 So we have a function. 218 00:12:00,220 --> 00:12:02,260 We have if, which is a valid case. 219 00:12:02,520 --> 00:12:05,520 If with uppercase, lowercase. 220 00:12:06,340 --> 00:12:08,240 We have here sub. 221 00:12:08,380 --> 00:12:09,420 Sub is another token. 222 00:12:09,700 --> 00:12:12,360 We are accepting every token of this language. 223 00:12:12,480 --> 00:12:14,440 So we run this for a while. 224 00:12:14,460 --> 00:12:16,060 And we have this. 225 00:12:16,740 --> 00:12:19,220 We have a lot of tokens 226 00:12:20,180 --> 00:12:21,660 belong to this language. 227 00:12:21,860 --> 00:12:24,260 So maybe it's familiar to you. 228 00:12:24,380 --> 00:12:25,820 These are basic tokens. 229 00:12:26,040 --> 00:12:27,900 So this language is basic. 230 00:12:28,680 --> 00:12:30,800 Now we know that every camera 231 00:12:30,800 --> 00:12:32,820 have a basic interpreter inside. 232 00:12:33,100 --> 00:12:37,420 But we don't have the grammatical structure. 233 00:12:37,680 --> 00:12:40,860 It can be millions of variations of basics. 234 00:12:41,060 --> 00:12:42,720 So for that, 235 00:12:42,720 --> 00:12:45,780 we should build an emulator. 236 00:12:47,220 --> 00:12:51,640 Well, as Alfredo was saying, 237 00:12:53,080 --> 00:12:55,080 having the tokens was not enough. 238 00:12:56,400 --> 00:13:00,620 Even if we tried some basic scripts, 239 00:13:00,960 --> 00:13:03,140 very simple basic scripts, 240 00:13:03,580 --> 00:13:04,960 they appeared invalid. 241 00:13:05,540 --> 00:13:09,820 So we had to emulate the original firmware 242 00:13:10,720 --> 00:13:12,020 on an emulator. 243 00:13:12,720 --> 00:13:16,460 We use QEMU that has the capability 244 00:13:16,460 --> 00:13:18,940 to emulate an ARM processor, 245 00:13:19,240 --> 00:13:22,300 but can't emulate the whole camera. 246 00:13:22,560 --> 00:13:24,420 So we couldn't use it 247 00:13:24,420 --> 00:13:26,120 to boot the original firmware 248 00:13:26,720 --> 00:13:31,100 and try to parse a script with it. 249 00:13:31,580 --> 00:13:33,620 Instead what we did is 250 00:13:34,980 --> 00:13:37,060 capture the state of the machine, 251 00:13:37,240 --> 00:13:38,160 of the camera, 252 00:13:38,280 --> 00:13:40,380 as it was parsing a script 253 00:13:40,380 --> 00:13:42,980 that captures all the registers 254 00:13:42,980 --> 00:13:44,160 and all the memory, 255 00:13:44,260 --> 00:13:47,440 and dump it to the memory card. 256 00:13:48,040 --> 00:13:50,020 And then take that information 257 00:13:50,020 --> 00:13:53,360 and resume the execution inside our emulator. 258 00:13:55,200 --> 00:13:56,100 To do this, 259 00:13:59,880 --> 00:14:03,200 we couldn't just set a breakpoint 260 00:14:03,200 --> 00:14:05,660 inside an interpreter 261 00:14:06,240 --> 00:14:08,100 and take control, 262 00:14:08,100 --> 00:14:10,420 because we are not sure 263 00:14:10,420 --> 00:14:12,060 that that's even possible. 264 00:14:12,400 --> 00:14:15,700 We had to use the deception handlers. 265 00:14:16,060 --> 00:14:21,160 What we did is force the script interpreter 266 00:14:22,200 --> 00:14:23,920 to raise an exception 267 00:14:23,920 --> 00:14:26,840 as it was beginning to parse a script. 268 00:14:27,860 --> 00:14:30,020 We can see from the source code 269 00:14:30,020 --> 00:14:31,180 of the flex scanner 270 00:14:32,460 --> 00:14:35,380 that it tries to access an array, 271 00:14:36,360 --> 00:14:37,320 an array, 272 00:14:37,320 --> 00:14:40,700 with a value that is inside the static variable. 273 00:14:41,040 --> 00:14:42,620 And we change that value, 274 00:14:42,780 --> 00:14:45,680 and then as the processor tries 275 00:14:45,680 --> 00:14:48,280 to access that value, 276 00:14:48,520 --> 00:14:50,280 it crashed, 277 00:14:50,500 --> 00:14:51,960 and then we could 278 00:14:53,540 --> 00:14:54,860 dump all the state. 279 00:14:57,000 --> 00:14:59,840 To know which memory regions 280 00:14:59,840 --> 00:15:01,080 we need to dump, 281 00:15:01,260 --> 00:15:04,200 we just used the memory protection unit. 282 00:15:04,620 --> 00:15:06,140 Inside this unit, 283 00:15:06,140 --> 00:15:07,380 there are lot of, 284 00:15:07,540 --> 00:15:09,020 there are registers 285 00:15:09,020 --> 00:15:12,180 that define the valid memory regions. 286 00:15:12,900 --> 00:15:14,660 And we only need two regions, 287 00:15:14,880 --> 00:15:16,340 the my memory and the ROM. 288 00:15:20,160 --> 00:15:22,520 To control the execution of the emulator, 289 00:15:22,780 --> 00:15:26,220 we used the integrated GDB server. 290 00:15:27,380 --> 00:15:28,420 And also, 291 00:15:28,540 --> 00:15:30,600 the integration of GDB with Python. 292 00:15:31,060 --> 00:15:32,220 This way, 293 00:15:32,360 --> 00:15:34,200 we could write a Python script 294 00:15:34,200 --> 00:15:37,540 and control the execution from it. 295 00:15:37,900 --> 00:15:38,840 This Python script 296 00:15:38,840 --> 00:15:40,260 can set breakpoints, 297 00:15:40,460 --> 00:15:42,140 modify the registers, 298 00:15:42,860 --> 00:15:45,840 and control all aspects of the emulator. 299 00:15:49,320 --> 00:15:50,160 Well, 300 00:15:52,000 --> 00:15:55,080 we need to make some changes 301 00:15:55,080 --> 00:15:57,640 to the original firmware 302 00:15:58,000 --> 00:16:01,140 because we couldn't allow it 303 00:16:01,140 --> 00:16:03,240 to call the operating system 304 00:16:03,240 --> 00:16:05,880 because it wouldn't work. 305 00:16:06,260 --> 00:16:08,520 It would try to access 306 00:16:08,520 --> 00:16:09,740 some hardware registers 307 00:16:09,740 --> 00:16:11,660 that weren't emulated. 308 00:16:12,520 --> 00:16:15,140 So we changed it, 309 00:16:15,200 --> 00:16:16,700 the read function, 310 00:16:17,100 --> 00:16:19,620 so we could 311 00:16:21,200 --> 00:16:23,200 fit the emulator or script. 312 00:16:23,980 --> 00:16:25,560 And we did in a way 313 00:16:25,960 --> 00:16:29,480 that it read one character at a time. 314 00:16:29,920 --> 00:16:30,640 And this way, 315 00:16:30,780 --> 00:16:33,220 when the interpreter found 316 00:16:33,240 --> 00:16:33,780 an error, 317 00:16:34,040 --> 00:16:35,300 as it was parsing the script, 318 00:16:36,380 --> 00:16:39,400 we could find exactly 319 00:16:39,400 --> 00:16:40,600 at which point 320 00:16:41,860 --> 00:16:43,640 the error was found. 321 00:16:45,540 --> 00:16:46,100 Well, 322 00:16:46,200 --> 00:16:47,380 this is the general way 323 00:16:47,380 --> 00:16:49,080 that we found out 324 00:16:49,080 --> 00:16:50,340 about the syntax. 325 00:16:50,800 --> 00:16:52,120 We tried a script 326 00:16:52,120 --> 00:16:53,820 and found out 327 00:16:53,820 --> 00:16:55,600 the location of the error, 328 00:16:55,760 --> 00:16:57,100 and then we changed it 329 00:16:57,100 --> 00:16:58,540 until no error was found. 330 00:16:58,860 --> 00:17:01,240 These are three scripts. 331 00:17:01,700 --> 00:17:02,720 The last one is 332 00:17:04,980 --> 00:17:06,140 syntactically valid, 333 00:17:06,480 --> 00:17:08,000 but it doesn't do anything. 334 00:17:08,540 --> 00:17:10,360 This second slide shows 335 00:17:10,360 --> 00:17:12,220 that if you try to 336 00:17:13,700 --> 00:17:15,700 call a script a function 337 00:17:16,560 --> 00:17:19,300 outside the body 338 00:17:19,300 --> 00:17:20,280 of another function, 339 00:17:20,480 --> 00:17:21,720 that's an error. 340 00:17:22,280 --> 00:17:25,040 You can only call function 341 00:17:25,040 --> 00:17:26,860 from the body of other function. 342 00:17:27,220 --> 00:17:29,700 So this way, 343 00:17:29,820 --> 00:17:31,440 we realized that 344 00:17:31,440 --> 00:17:33,820 there must be one function 345 00:17:35,520 --> 00:17:36,820 that's the entry point. 346 00:17:37,400 --> 00:17:38,860 I'm going to show you 347 00:17:39,190 --> 00:17:39,920 now the emulator 348 00:17:40,170 --> 00:17:41,040 as it's running. 349 00:17:49,680 --> 00:17:52,080 The emulator is already running. 350 00:17:52,380 --> 00:17:54,640 I'm just going to run 351 00:17:55,270 --> 00:17:56,060 the Python script. 352 00:17:57,500 --> 00:17:58,800 You can see here 353 00:17:59,230 --> 00:17:59,900 in blue, 354 00:17:59,900 --> 00:18:01,440 the script that is 355 00:18:01,440 --> 00:18:02,160 about to be fit. 356 00:18:05,160 --> 00:18:06,880 The emulator reads 357 00:18:06,880 --> 00:18:08,000 all the scripts 358 00:18:08,000 --> 00:18:09,160 one character at a time, 359 00:18:09,180 --> 00:18:11,240 and finds out exactly 360 00:18:11,240 --> 00:18:12,680 where the error is found. 361 00:18:12,900 --> 00:18:13,480 In this case, 362 00:18:13,520 --> 00:18:14,920 var isn't defined. 363 00:18:21,160 --> 00:18:22,900 In this second demo, 364 00:18:23,640 --> 00:18:24,700 I'm going to show 365 00:18:25,520 --> 00:18:26,820 a valid script 366 00:18:26,820 --> 00:18:28,940 that has sent the entry point. 367 00:18:29,900 --> 00:18:31,960 So we arrive to a breakpoint 368 00:18:31,960 --> 00:18:35,000 that doesn't lead to code execution. 369 00:18:36,320 --> 00:18:37,120 This way, 370 00:18:37,260 --> 00:18:38,120 we later found 371 00:18:38,640 --> 00:18:39,600 about the entry point. 372 00:18:40,040 --> 00:18:41,660 This is the third demo 373 00:18:43,160 --> 00:18:45,660 that with the initialize function, 374 00:18:45,960 --> 00:18:46,860 that's the entry point. 375 00:18:48,880 --> 00:18:50,500 This script is totally valid, 376 00:18:50,760 --> 00:18:52,940 and we arrive to a breakpoint 377 00:18:52,940 --> 00:18:56,020 that shows that code 378 00:18:56,020 --> 00:18:57,040 is about to be executed. 379 00:19:00,700 --> 00:19:03,200 This is a complete valid script 380 00:19:03,200 --> 00:19:05,400 that brings hello world 381 00:19:05,400 --> 00:19:06,660 to the camera screen. 382 00:19:07,040 --> 00:19:08,660 You can see that there are 383 00:19:08,660 --> 00:19:10,960 a lot of predefined functions 384 00:19:10,960 --> 00:19:12,060 inside the camera. 385 00:19:13,240 --> 00:19:15,080 Alfredo is going to talk about it. 386 00:19:18,300 --> 00:19:19,740 At this time, 387 00:19:19,780 --> 00:19:21,300 we have the grammatical structure 388 00:19:21,300 --> 00:19:21,940 of the language, 389 00:19:22,080 --> 00:19:22,680 we have the tokens, 390 00:19:22,980 --> 00:19:26,000 but the language also has 391 00:19:26,000 --> 00:19:27,820 a lot of functions that we can call. 392 00:19:28,840 --> 00:19:29,800 In fact, 393 00:19:29,800 --> 00:19:30,620 this is wrong. 394 00:19:30,780 --> 00:19:32,700 There are 5,000 functions, 395 00:19:33,080 --> 00:19:33,640 sorry, 396 00:19:33,760 --> 00:19:33,940 500, 397 00:19:35,400 --> 00:19:38,040 inside a common Canon camera, 398 00:19:38,240 --> 00:19:39,080 governing everything 399 00:19:39,080 --> 00:19:41,420 from the sensors, 400 00:19:42,980 --> 00:19:44,260 little motors, 401 00:19:45,980 --> 00:19:46,620 accelerometers, 402 00:19:47,020 --> 00:19:47,700 CCD, 403 00:19:47,900 --> 00:19:48,960 absolutely everything 404 00:19:48,960 --> 00:19:49,860 you can access 405 00:19:49,860 --> 00:19:50,600 from this language. 406 00:19:51,360 --> 00:19:52,260 In fact, 407 00:19:52,260 --> 00:19:53,080 you can access 408 00:19:53,080 --> 00:19:54,260 the main memory 409 00:19:54,260 --> 00:19:54,800 of the camera 410 00:19:54,800 --> 00:19:56,960 using poke and pick instructions, 411 00:19:57,120 --> 00:19:57,840 because it's basic, 412 00:19:57,920 --> 00:19:58,180 like, 413 00:19:58,180 --> 00:19:59,680 Commodore 64 Basic. 414 00:20:01,340 --> 00:20:02,860 We started to build 415 00:20:02,860 --> 00:20:04,480 a document 416 00:20:04,480 --> 00:20:06,940 and a user guide 417 00:20:06,940 --> 00:20:07,700 of this language. 418 00:20:07,940 --> 00:20:09,680 Here we are going to put it online 419 00:20:11,020 --> 00:20:12,140 after this. 420 00:20:13,320 --> 00:20:14,460 We are documenting 421 00:20:14,460 --> 00:20:15,500 all the functions. 422 00:20:16,040 --> 00:20:17,360 We don't have all, 423 00:20:17,420 --> 00:20:17,780 of course, 424 00:20:17,780 --> 00:20:18,760 because there are 500, 425 00:20:19,040 --> 00:20:20,500 but we have some of them. 426 00:20:22,580 --> 00:20:24,000 There are very interesting things 427 00:20:24,000 --> 00:20:25,040 about this language. 428 00:20:25,760 --> 00:20:26,860 For example, 429 00:20:26,860 --> 00:20:28,160 there are functions 430 00:20:28,160 --> 00:20:28,720 you read 431 00:20:28,720 --> 00:20:29,240 about the 432 00:20:29,240 --> 00:20:30,240 camera process 433 00:20:30,650 --> 00:20:30,960 memory, 434 00:20:31,300 --> 00:20:31,720 here. 435 00:20:32,080 --> 00:20:33,200 You can see 436 00:20:35,400 --> 00:20:36,740 this is the 437 00:20:36,740 --> 00:20:37,100 equivalent 438 00:20:37,610 --> 00:20:38,320 of the top 439 00:20:38,730 --> 00:20:39,320 Unix command 440 00:20:39,320 --> 00:20:40,220 inside a camera. 441 00:20:40,380 --> 00:20:40,500 So, 442 00:20:40,620 --> 00:20:41,740 how many process 443 00:20:41,740 --> 00:20:42,260 you think 444 00:20:42,260 --> 00:20:43,220 a camera can have? 445 00:20:43,420 --> 00:20:43,980 Well, 446 00:20:44,060 --> 00:20:44,440 you can have 447 00:20:44,440 --> 00:20:45,160 hundreds of, 448 00:20:45,180 --> 00:20:45,760 sorry, 449 00:20:46,300 --> 00:20:47,360 about 70, 450 00:20:47,600 --> 00:20:48,500 70 process, 451 00:20:48,660 --> 00:20:49,580 processes 452 00:20:49,580 --> 00:20:51,380 inside a Canon camera. 453 00:20:51,640 --> 00:20:52,580 All these processes 454 00:20:52,580 --> 00:20:52,980 governing 455 00:20:52,980 --> 00:20:54,280 from the 456 00:20:54,280 --> 00:20:55,400 buttons 457 00:20:55,400 --> 00:20:56,220 to the display 458 00:20:56,220 --> 00:20:57,160 from the, 459 00:20:57,300 --> 00:20:58,180 for keeping 460 00:20:58,180 --> 00:20:59,060 the CCD warm. 461 00:20:59,300 --> 00:20:59,600 They are, 462 00:21:00,190 --> 00:21:01,160 it's a very complete 463 00:21:01,160 --> 00:21:01,920 operating system 464 00:21:01,920 --> 00:21:02,940 inside this camera. 465 00:21:03,720 --> 00:21:04,340 I'm going to publish 466 00:21:04,340 --> 00:21:04,920 this document 467 00:21:04,920 --> 00:21:05,600 in short 468 00:21:06,310 --> 00:21:07,100 so everybody 469 00:21:07,100 --> 00:21:07,720 can start 470 00:21:08,170 --> 00:21:08,780 building scripts. 471 00:21:10,860 --> 00:21:11,400 So, 472 00:21:11,540 --> 00:21:11,720 okay, 473 00:21:11,760 --> 00:21:11,860 well, 474 00:21:11,920 --> 00:21:12,620 we can do it 475 00:21:12,620 --> 00:21:13,540 with this language. 476 00:21:13,840 --> 00:21:14,060 Well, 477 00:21:14,200 --> 00:21:15,520 because it's difficult 478 00:21:15,520 --> 00:21:16,380 to do something 479 00:21:16,380 --> 00:21:16,900 with a camera, 480 00:21:16,980 --> 00:21:18,480 but you can do 481 00:21:19,620 --> 00:21:20,700 some stuff 482 00:21:21,580 --> 00:21:22,420 like we're going 483 00:21:22,420 --> 00:21:22,940 to show now. 484 00:21:23,660 --> 00:21:24,660 For example, 485 00:21:24,720 --> 00:21:25,300 you can 486 00:21:25,300 --> 00:21:27,720 the old school 487 00:21:27,720 --> 00:21:28,500 that we show 488 00:21:28,500 --> 00:21:29,020 at the beginning. 489 00:21:42,200 --> 00:21:42,620 Okay, 490 00:21:42,840 --> 00:21:43,240 here is 491 00:21:43,240 --> 00:21:44,000 I'm going to show 492 00:21:46,720 --> 00:21:47,780 this is the little school 493 00:21:47,780 --> 00:21:48,260 that we show 494 00:21:48,260 --> 00:21:48,700 at the beginning. 495 00:21:48,940 --> 00:21:49,980 This is not new, 496 00:21:50,940 --> 00:21:51,940 but this is. 497 00:21:52,200 --> 00:21:52,800 We're going to 498 00:21:53,220 --> 00:21:54,020 show this script 499 00:21:54,020 --> 00:21:54,820 in a lot of cameras 500 00:21:55,300 --> 00:21:55,880 it will work 501 00:21:55,880 --> 00:21:56,580 because it's basic. 502 00:21:56,820 --> 00:21:57,840 It's not accessing 503 00:21:57,840 --> 00:21:58,680 any low level 504 00:22:00,140 --> 00:22:00,560 system. 505 00:22:13,920 --> 00:22:14,340 Okay, 506 00:22:14,420 --> 00:22:14,740 you have, 507 00:22:14,820 --> 00:22:15,540 this is a cheaper 508 00:22:15,540 --> 00:22:16,020 camera. 509 00:22:16,240 --> 00:22:17,660 This is a 470 510 00:22:17,660 --> 00:22:18,260 Canon. 511 00:22:18,500 --> 00:22:19,380 The first one 512 00:22:19,380 --> 00:22:20,080 was a G10, 513 00:22:20,340 --> 00:22:21,120 one of the high end 514 00:22:21,120 --> 00:22:21,560 cameras, 515 00:22:21,560 --> 00:22:22,200 but the script 516 00:22:22,200 --> 00:22:23,060 worked perfectly. 517 00:22:23,660 --> 00:22:24,240 Do you want 518 00:22:24,240 --> 00:22:24,780 to test in your 519 00:22:24,780 --> 00:22:25,100 camera, 520 00:22:25,280 --> 00:22:25,580 Oren? 521 00:22:26,280 --> 00:22:26,680 Well, 522 00:22:26,760 --> 00:22:27,500 it will work 523 00:22:27,500 --> 00:22:28,820 in every power 524 00:22:28,820 --> 00:22:29,480 shot camera. 525 00:22:32,220 --> 00:22:32,800 Let's see. 526 00:22:37,080 --> 00:22:37,720 Let's see if it 527 00:22:37,720 --> 00:22:38,100 will work. 528 00:22:38,240 --> 00:22:38,820 Show it. 529 00:22:38,920 --> 00:22:39,100 Okay, 530 00:22:39,220 --> 00:22:39,420 well, 531 00:22:39,480 --> 00:22:39,620 it worked 532 00:22:39,620 --> 00:22:40,000 perfectly. 533 00:22:40,100 --> 00:22:40,500 We don't have 534 00:22:40,500 --> 00:22:41,660 any special code 535 00:22:41,660 --> 00:22:42,300 to choose 536 00:22:42,300 --> 00:22:43,020 between cameras. 537 00:22:43,100 --> 00:22:43,620 It's the same 538 00:22:43,620 --> 00:22:44,440 code that works 539 00:22:44,440 --> 00:22:45,120 in every camera. 540 00:22:49,880 --> 00:22:50,280 Okay, 541 00:22:50,440 --> 00:22:51,080 so what 542 00:22:51,080 --> 00:22:51,320 else 543 00:22:51,320 --> 00:22:51,540 you can do? 544 00:22:51,540 --> 00:22:51,800 you can do 545 00:22:51,800 --> 00:22:52,140 with this 546 00:22:52,140 --> 00:22:52,420 script? 547 00:22:52,560 --> 00:22:52,660 Well, 548 00:22:52,680 --> 00:22:52,900 of course, 549 00:22:53,000 --> 00:22:53,240 we can 550 00:22:56,420 --> 00:22:56,760 make 551 00:22:58,060 --> 00:22:58,400 pictures 552 00:22:58,400 --> 00:22:58,640 appear. 553 00:22:58,880 --> 00:22:59,220 We can 554 00:22:59,220 --> 00:23:00,100 put fake 555 00:23:00,100 --> 00:23:00,480 pictures 556 00:23:00,480 --> 00:23:00,680 in the 557 00:23:00,680 --> 00:23:00,940 camera, 558 00:23:01,040 --> 00:23:01,520 for example. 559 00:23:10,020 --> 00:23:10,360 Well, 560 00:23:18,820 --> 00:23:20,260 just a minute, 561 00:23:20,340 --> 00:23:20,600 please. 562 00:23:25,200 --> 00:23:25,900 We're going 563 00:23:25,900 --> 00:23:26,740 to show a 564 00:23:26,740 --> 00:23:27,140 demonstration 565 00:23:27,140 --> 00:23:27,680 about 566 00:23:28,880 --> 00:23:29,700 where you 567 00:23:29,700 --> 00:23:30,140 can put 568 00:23:30,140 --> 00:23:30,800 any kind 569 00:23:30,800 --> 00:23:31,400 of image 570 00:23:31,400 --> 00:23:32,040 inside the 571 00:23:32,040 --> 00:23:32,340 camera, 572 00:23:32,520 --> 00:23:33,240 for example. 573 00:23:35,580 --> 00:23:36,300 We're going 574 00:23:36,300 --> 00:23:36,640 to erase 575 00:23:36,640 --> 00:23:38,220 every picture 576 00:23:38,220 --> 00:23:38,460 inside 577 00:23:38,460 --> 00:23:38,900 this 578 00:23:38,900 --> 00:23:39,920 memory 579 00:23:39,920 --> 00:23:40,340 card. 580 00:23:41,140 --> 00:23:41,620 Okay, 581 00:23:42,160 --> 00:23:42,540 it's ready. 582 00:23:44,840 --> 00:23:45,320 So, 583 00:23:45,440 --> 00:23:45,660 we're going 584 00:23:45,660 --> 00:23:45,920 to show 585 00:23:50,040 --> 00:23:51,000 that there 586 00:23:51,000 --> 00:23:51,260 is no 587 00:23:51,260 --> 00:23:51,820 picture in 588 00:23:51,820 --> 00:23:51,980 there. 589 00:23:52,240 --> 00:23:52,900 It's like 590 00:23:52,900 --> 00:23:53,320 a magic 591 00:23:53,320 --> 00:23:53,600 trick. 592 00:23:54,140 --> 00:23:54,780 There's no 593 00:23:54,780 --> 00:23:55,080 picture 594 00:23:55,080 --> 00:23:55,280 there, 595 00:23:55,460 --> 00:23:56,160 so we're 596 00:23:56,160 --> 00:23:56,260 going 597 00:23:56,260 --> 00:23:57,340 to launch 598 00:23:57,340 --> 00:23:57,780 the exploit. 599 00:23:58,780 --> 00:23:59,260 Okay, 600 00:23:59,960 --> 00:24:00,440 launch 601 00:24:00,440 --> 00:24:00,600 it. 602 00:24:01,840 --> 00:24:02,320 There 603 00:24:02,320 --> 00:24:02,500 is 604 00:24:03,200 --> 00:24:03,680 exploit 605 00:24:03,680 --> 00:24:04,040 deployed. 606 00:24:04,640 --> 00:24:05,300 And then 607 00:24:05,300 --> 00:24:05,640 we will 608 00:24:05,640 --> 00:24:05,960 turn 609 00:24:05,960 --> 00:24:06,360 on the 610 00:24:06,360 --> 00:24:06,640 camera 611 00:24:06,640 --> 00:24:06,920 again. 612 00:24:07,120 --> 00:24:07,860 We know 613 00:24:07,860 --> 00:24:08,260 there is a 614 00:24:08,260 --> 00:24:08,600 picture 615 00:24:08,600 --> 00:24:08,940 of 616 00:24:08,940 --> 00:24:09,720 General 617 00:24:09,720 --> 00:24:10,140 PerĂ³n 618 00:24:10,140 --> 00:24:10,500 there. 619 00:24:10,720 --> 00:24:11,520 Of course, 620 00:24:11,580 --> 00:24:11,880 this picture 621 00:24:11,880 --> 00:24:12,480 didn't exist 622 00:24:12,480 --> 00:24:12,860 before. 623 00:24:13,620 --> 00:24:14,480 We put 624 00:24:14,480 --> 00:24:14,860 it there, 625 00:24:14,940 --> 00:24:15,060 or 626 00:24:15,060 --> 00:24:16,500 just made 627 00:24:16,500 --> 00:24:17,260 a picture 628 00:24:17,260 --> 00:24:17,480 appear. 629 00:24:17,960 --> 00:24:18,520 So, 630 00:24:18,580 --> 00:24:19,000 this is 631 00:24:19,860 --> 00:24:20,700 not so 632 00:24:20,700 --> 00:24:21,200 dangerous 633 00:24:22,000 --> 00:24:22,860 until you 634 00:24:22,860 --> 00:24:23,080 start 635 00:24:23,080 --> 00:24:24,020 putting 636 00:24:24,020 --> 00:24:24,640 pictures 637 00:24:24,640 --> 00:24:25,040 of 638 00:24:25,040 --> 00:24:25,580 illegal 639 00:24:35,960 --> 00:24:36,480 people. 640 00:24:36,480 --> 00:24:36,540 It's 641 00:24:36,540 --> 00:24:36,740 about, 642 00:24:36,860 --> 00:24:37,040 maybe 643 00:24:37,040 --> 00:24:37,460 you have 644 00:24:37,460 --> 00:24:37,700 her. 645 00:24:40,360 --> 00:24:41,380 This 646 00:24:41,380 --> 00:24:42,180 exploit 647 00:24:42,180 --> 00:24:43,200 is very 648 00:24:43,200 --> 00:24:43,420 new. 649 00:24:43,700 --> 00:24:44,260 It's 650 00:24:45,600 --> 00:24:46,620 the 651 00:24:46,620 --> 00:24:47,000 linking 652 00:24:47,000 --> 00:24:47,580 exploit 653 00:24:47,580 --> 00:24:48,280 that was 654 00:24:48,280 --> 00:24:49,940 made 655 00:24:49,940 --> 00:24:50,260 public 656 00:24:50,260 --> 00:24:50,960 just a 657 00:24:50,960 --> 00:24:51,140 week 658 00:24:51,140 --> 00:24:52,060 ago. 659 00:24:52,380 --> 00:24:53,340 I 660 00:24:53,340 --> 00:24:53,540 have 661 00:24:53,540 --> 00:24:53,700 a 662 00:24:53,700 --> 00:24:54,520 SD 663 00:24:54,520 --> 00:24:55,520 without 664 00:24:55,520 --> 00:24:56,780 the 665 00:24:56,780 --> 00:24:58,260 files 666 00:24:58,260 --> 00:24:59,180 that 667 00:25:00,940 --> 00:25:01,960 exploit 668 00:25:01,960 --> 00:25:02,800 this 669 00:25:05,960 --> 00:25:06,780 for the 670 00:25:06,780 --> 00:25:07,020 camera 671 00:25:07,020 --> 00:25:08,060 that will 672 00:25:08,060 --> 00:25:08,440 launch 673 00:25:08,440 --> 00:25:08,840 this 674 00:25:08,840 --> 00:25:09,160 exploit. 675 00:25:17,500 --> 00:25:18,140 Okay, 676 00:25:18,280 --> 00:25:18,500 let's 677 00:25:18,500 --> 00:25:18,700 try. 678 00:25:19,160 --> 00:25:19,940 We don't 679 00:25:19,940 --> 00:25:20,320 have space 680 00:25:20,320 --> 00:25:21,780 for the 681 00:25:21,780 --> 00:25:22,400 USBs 682 00:25:22,400 --> 00:25:22,620 here. 683 00:25:23,440 --> 00:25:24,080 First, 684 00:25:24,260 --> 00:25:24,500 we're 685 00:25:24,500 --> 00:25:24,660 going to 686 00:25:24,660 --> 00:25:24,880 show 687 00:25:24,880 --> 00:25:25,200 the 688 00:25:25,200 --> 00:25:26,000 memory 689 00:25:26,000 --> 00:25:26,320 card. 690 00:25:26,620 --> 00:25:27,100 Nothing 691 00:25:27,100 --> 00:25:27,400 happened 692 00:25:27,400 --> 00:25:27,580 here. 693 00:25:28,340 --> 00:25:29,120 But this 694 00:25:29,120 --> 00:25:29,520 is the 695 00:25:29,520 --> 00:25:29,800 script. 696 00:25:30,060 --> 00:25:30,480 You can 697 00:25:30,480 --> 00:25:30,820 see it 698 00:25:30,820 --> 00:25:31,040 here. 699 00:25:31,220 --> 00:25:31,760 This is 700 00:25:31,760 --> 00:25:31,780 the 701 00:25:31,780 --> 00:25:32,140 script that 702 00:25:32,140 --> 00:25:32,480 launched 703 00:25:32,480 --> 00:25:32,760 the 704 00:25:32,760 --> 00:25:33,120 link 705 00:25:33,120 --> 00:25:33,460 exploit. 706 00:25:33,760 --> 00:25:34,240 It 707 00:25:34,240 --> 00:25:34,420 just 708 00:25:34,420 --> 00:25:35,020 creates 709 00:25:35,020 --> 00:25:35,320 a lot 710 00:25:35,320 --> 00:25:35,480 of 711 00:25:35,480 --> 00:25:36,380 links 712 00:25:36,380 --> 00:25:36,980 inside 713 00:25:36,980 --> 00:25:37,300 the 714 00:25:37,300 --> 00:25:38,140 memory 715 00:25:38,140 --> 00:25:38,400 card. 716 00:25:40,720 --> 00:25:41,260 We're 717 00:25:41,260 --> 00:25:41,820 going to 718 00:25:42,760 --> 00:25:43,300 run 719 00:25:45,040 --> 00:25:45,580 this 720 00:25:45,580 --> 00:25:46,000 exploit 721 00:25:46,000 --> 00:25:46,720 in any 722 00:25:46,720 --> 00:25:47,040 camera. 723 00:25:47,140 --> 00:25:47,460 In fact, 724 00:25:47,500 --> 00:25:47,680 it can 725 00:25:47,680 --> 00:25:47,800 be 726 00:25:47,800 --> 00:25:48,020 any 727 00:25:48,020 --> 00:25:48,260 one. 728 00:25:48,440 --> 00:25:48,660 We're 729 00:25:48,660 --> 00:25:48,820 going to 730 00:25:48,820 --> 00:25:49,020 launch 731 00:25:49,020 --> 00:25:49,200 this 732 00:25:49,200 --> 00:25:49,460 one. 733 00:25:49,480 --> 00:25:49,700 This 734 00:25:49,700 --> 00:25:50,020 one is 735 00:25:50,020 --> 00:25:50,100 the 736 00:25:50,100 --> 00:25:50,320 cheapest. 737 00:25:52,220 --> 00:25:52,580 Let's 738 00:25:52,580 --> 00:25:52,820 see if 739 00:25:52,820 --> 00:25:52,940 this 740 00:25:52,940 --> 00:25:53,240 works, 741 00:25:53,380 --> 00:25:53,860 because if 742 00:25:53,860 --> 00:25:54,060 it 743 00:25:54,060 --> 00:25:54,320 doesn't 744 00:25:54,320 --> 00:25:54,520 work, 745 00:25:54,640 --> 00:25:54,780 have 746 00:25:54,780 --> 00:25:54,940 a 747 00:25:54,940 --> 00:25:55,180 video, 748 00:25:55,320 --> 00:25:55,460 so 749 00:25:55,460 --> 00:25:56,200 you 750 00:25:56,200 --> 00:25:56,660 can 751 00:25:56,660 --> 00:25:56,940 believe 752 00:25:56,940 --> 00:25:57,180 us. 753 00:26:12,400 --> 00:26:13,120 You 754 00:26:17,040 --> 00:26:17,760 say 755 00:26:17,760 --> 00:26:18,100 exploit 756 00:26:18,100 --> 00:26:18,480 ready, 757 00:26:18,580 --> 00:26:19,440 and 758 00:26:19,440 --> 00:26:20,360 then 759 00:26:20,360 --> 00:26:20,640 you 760 00:26:20,640 --> 00:26:21,280 just 761 00:26:21,280 --> 00:26:21,960 remote 762 00:26:21,960 --> 00:26:22,280 the 763 00:26:22,280 --> 00:26:23,240 memory 764 00:26:23,240 --> 00:26:23,720 card. 765 00:26:24,240 --> 00:26:24,960 You 766 00:26:24,960 --> 00:26:25,260 see it 767 00:26:25,260 --> 00:26:25,320 is 768 00:26:25,320 --> 00:26:25,440 working. 769 00:26:25,460 --> 00:26:25,540 working, 770 00:26:25,700 --> 00:26:26,860 because we 771 00:26:26,860 --> 00:26:27,580 never tested 772 00:26:27,580 --> 00:26:27,820 this, 773 00:26:27,860 --> 00:26:28,180 really. 774 00:26:31,380 --> 00:26:32,100 And, 775 00:26:33,500 --> 00:26:34,220 whoops. 776 00:26:35,180 --> 00:26:35,900 Oh, 777 00:26:36,060 --> 00:26:36,600 well. 778 00:26:36,740 --> 00:26:37,260 Code 779 00:26:37,260 --> 00:26:37,560 execution. 780 00:26:38,540 --> 00:26:39,260 Well, 781 00:26:39,380 --> 00:26:39,900 this is 782 00:26:39,900 --> 00:26:40,040 the 783 00:26:40,040 --> 00:26:40,560 foremost 784 00:26:40,560 --> 00:26:40,880 link 785 00:26:40,880 --> 00:26:41,240 exploit 786 00:26:41,240 --> 00:26:41,460 that 787 00:26:41,460 --> 00:26:41,620 you 788 00:26:41,620 --> 00:26:42,120 execute 789 00:26:43,540 --> 00:26:44,260 when 790 00:26:44,260 --> 00:26:45,640 you 791 00:26:45,640 --> 00:26:46,100 see 792 00:26:46,100 --> 00:26:46,500 a 793 00:26:46,500 --> 00:26:47,640 memory 794 00:26:47,640 --> 00:26:48,080 card, 795 00:26:48,260 --> 00:26:49,400 it 796 00:26:49,400 --> 00:26:49,780 used 797 00:26:49,780 --> 00:26:50,800 for a, 798 00:26:50,980 --> 00:26:51,360 I'm 799 00:26:51,360 --> 00:26:51,540 sorry. 800 00:26:51,760 --> 00:26:52,140 Yeah, 801 00:26:52,220 --> 00:26:52,660 sorry. 802 00:26:52,760 --> 00:26:53,140 This 803 00:26:53,140 --> 00:26:53,980 wasn't 804 00:26:53,980 --> 00:26:54,560 supposed to 805 00:26:54,560 --> 00:26:54,660 be 806 00:26:54,660 --> 00:26:55,300 this way, 807 00:26:55,420 --> 00:26:56,240 because we 808 00:26:56,240 --> 00:26:56,900 forgot to 809 00:26:57,920 --> 00:26:58,660 reset 810 00:26:58,660 --> 00:26:59,060 the 811 00:26:59,060 --> 00:26:59,420 explorer 812 00:26:59,420 --> 00:27:00,100 process. 813 00:27:00,640 --> 00:27:01,380 The 814 00:27:01,380 --> 00:27:01,720 problem 815 00:27:01,720 --> 00:27:01,960 with 816 00:27:01,960 --> 00:27:02,680 this 817 00:27:02,680 --> 00:27:03,320 is 818 00:27:03,320 --> 00:27:03,460 that 819 00:27:04,280 --> 00:27:05,020 once 820 00:27:05,020 --> 00:27:05,340 we 821 00:27:05,340 --> 00:27:05,580 showed 822 00:27:05,580 --> 00:27:05,960 the 823 00:27:05,960 --> 00:27:06,460 empty 824 00:27:06,460 --> 00:27:07,900 memory 825 00:27:07,900 --> 00:27:08,220 card, 826 00:27:08,960 --> 00:27:09,700 the 827 00:27:36,300 --> 00:27:37,700 file 828 00:27:46,220 --> 00:27:47,620 will 829 00:27:47,620 --> 00:27:49,760 be 830 00:27:49,760 --> 00:27:49,940 execute 831 00:27:49,940 --> 00:27:50,240 code 832 00:27:50,240 --> 00:27:50,820 like this 833 00:27:50,820 --> 00:27:51,020 one, 834 00:27:51,140 --> 00:27:51,560 like 835 00:27:51,560 --> 00:27:51,760 this 836 00:27:51,760 --> 00:27:52,100 showing 837 00:27:52,100 --> 00:27:52,280 here. 838 00:27:53,080 --> 00:27:53,560 Of 839 00:27:53,560 --> 00:27:53,680 course, 840 00:27:53,760 --> 00:27:53,920 you can 841 00:27:53,920 --> 00:27:54,160 execute 842 00:27:54,160 --> 00:27:54,640 any kind 843 00:27:54,640 --> 00:27:54,800 of 844 00:27:54,800 --> 00:27:55,020 code. 845 00:27:56,540 --> 00:27:56,740 And, 846 00:27:57,680 --> 00:27:58,160 well, 847 00:27:58,820 --> 00:27:59,300 that's 848 00:27:59,300 --> 00:27:59,680 quantum 849 00:27:59,680 --> 00:27:59,920 measures. 850 00:28:01,480 --> 00:28:01,960 It's 851 00:28:01,960 --> 00:28:02,080 about 852 00:28:02,080 --> 00:28:02,620 quantum 853 00:28:02,620 --> 00:28:02,960 measures. 854 00:28:04,560 --> 00:28:05,040 We 855 00:28:05,040 --> 00:28:05,220 had, 856 00:28:19,260 --> 00:28:19,740 you 857 00:28:19,740 --> 00:28:19,760 know, 858 00:28:19,760 --> 00:28:20,200 So, 859 00:28:20,320 --> 00:28:20,520 if 860 00:28:20,520 --> 00:28:21,240 there are 861 00:28:21,240 --> 00:28:21,820 not 862 00:28:21,820 --> 00:28:23,100 of 863 00:28:23,100 --> 00:28:23,680 this 864 00:28:24,520 --> 00:28:25,280 files 865 00:28:25,280 --> 00:28:25,580 in 866 00:28:25,580 --> 00:28:25,780 your 867 00:28:25,780 --> 00:28:26,100 memory 868 00:28:26,100 --> 00:28:26,400 card, 869 00:28:26,500 --> 00:28:26,880 you 870 00:28:26,880 --> 00:28:27,640 are safe 871 00:28:27,640 --> 00:28:27,860 from 872 00:28:27,860 --> 00:28:28,080 this. 873 00:28:29,680 --> 00:28:30,440 Canon 874 00:28:30,440 --> 00:28:31,760 cameras 875 00:28:31,760 --> 00:28:32,420 use 876 00:28:32,420 --> 00:28:33,080 picture 877 00:28:33,080 --> 00:28:33,380 transfer 878 00:28:33,380 --> 00:28:33,840 protocol. 879 00:28:49,900 --> 00:28:50,900 So, 880 00:28:53,480 --> 00:28:54,480 you 881 00:28:55,860 --> 00:28:56,860 can 882 00:28:56,860 --> 00:28:57,560 get 883 00:28:57,560 --> 00:28:58,080 infected 884 00:28:58,080 --> 00:28:58,700 through 885 00:28:58,700 --> 00:28:58,960 the 886 00:28:58,960 --> 00:28:59,440 USB 887 00:28:59,440 --> 00:28:59,840 cable. 888 00:29:00,160 --> 00:29:01,120 But 889 00:29:01,120 --> 00:29:01,240 the 890 00:29:01,240 --> 00:29:01,380 one 891 00:29:01,380 --> 00:29:01,740 thing 892 00:29:02,740 --> 00:29:03,280 is 893 00:29:03,280 --> 00:29:03,540 that 894 00:29:03,540 --> 00:29:04,660 no 895 00:29:04,660 --> 00:29:05,140 antivirus 896 00:29:05,140 --> 00:29:05,540 can 897 00:29:05,540 --> 00:29:06,400 scan 898 00:29:06,400 --> 00:29:07,040 the 899 00:29:07,040 --> 00:29:07,180 whole 900 00:29:07,180 --> 00:29:08,320 memory 901 00:29:08,320 --> 00:29:08,680 card 902 00:29:08,680 --> 00:29:09,880 when 903 00:29:09,880 --> 00:29:10,280 it's 904 00:29:10,280 --> 00:29:10,640 connected 905 00:29:10,640 --> 00:29:11,640 by 906 00:29:11,640 --> 00:29:11,900 the 907 00:29:11,900 --> 00:29:12,660 USB 908 00:29:12,660 --> 00:29:13,020 cable 909 00:29:19,740 --> 00:29:19,780 . 910 00:29:19,780 --> 00:29:19,900 That's 911 00:29:19,900 --> 00:29:20,000 all. 912 00:29:20,220 --> 00:29:20,620 We have 913 00:29:20,620 --> 00:29:20,780 a 914 00:29:20,780 --> 00:29:21,280 language 915 00:29:21,280 --> 00:29:22,000 that we 916 00:29:22,000 --> 00:29:22,800 found inside 917 00:29:22,800 --> 00:29:23,200 every 918 00:29:23,200 --> 00:29:23,520 power 919 00:29:23,520 --> 00:29:23,700 shot 920 00:29:23,700 --> 00:29:24,040 camera. 921 00:29:24,960 --> 00:29:25,400 We 922 00:29:25,400 --> 00:29:25,800 documented 923 00:29:25,800 --> 00:29:26,160 it. 924 00:29:26,240 --> 00:29:26,420 We're 925 00:29:26,420 --> 00:29:26,620 going to 926 00:29:26,620 --> 00:29:27,020 put it 927 00:29:27,020 --> 00:29:27,240 online. 928 00:29:27,440 --> 00:29:27,580 So, 929 00:29:27,680 --> 00:29:28,060 if you 930 00:29:28,060 --> 00:29:28,540 have a 931 00:29:28,540 --> 00:29:29,100 digital 932 00:29:29,100 --> 00:29:29,480 camera, 933 00:29:29,580 --> 00:29:29,880 now you 934 00:29:29,880 --> 00:29:30,380 have a 935 00:29:30,380 --> 00:29:30,860 general 936 00:29:30,860 --> 00:29:31,160 purpose 937 00:29:31,160 --> 00:29:32,000 computer that 938 00:29:32,000 --> 00:29:32,260 you can 939 00:29:32,260 --> 00:29:32,660 use to 940 00:29:32,660 --> 00:29:32,940 program 941 00:29:32,940 --> 00:29:33,200 in 942 00:29:33,200 --> 00:29:33,500 basic, 943 00:29:33,600 --> 00:29:33,880 we're 944 00:29:33,880 --> 00:29:34,080 running 945 00:29:34,080 --> 00:29:34,520 every 946 00:29:34,520 --> 00:29:34,760 power 947 00:29:34,760 --> 00:29:34,920 shot 948 00:29:35,740 --> 00:29:36,200 camera 949 00:29:37,740 --> 00:29:38,400 that we 950 00:29:38,400 --> 00:29:38,740 test. 951 00:29:40,000 --> 00:29:40,460 So, 952 00:29:40,580 --> 00:29:41,020 that's 953 00:29:41,020 --> 00:29:41,120 it. 954 00:29:41,620 --> 00:29:42,200 Thank you 955 00:29:42,200 --> 00:29:42,500 very much.