1 00:00:00,000 --> 00:00:00,360 Good evening. 2 00:00:02,340 --> 00:00:04,140 Sorry about that. That was fairly typical. 3 00:00:04,440 --> 00:00:08,040 I seem to have become the Bermuda Triangle of hardware in the last three days. 4 00:00:09,260 --> 00:00:13,800 This is my third laptop I've installed this presentation on. 5 00:00:14,180 --> 00:00:16,240 So I'm hoping everything's going to work. 6 00:00:16,360 --> 00:00:18,540 I've spent the last two days doing nothing else. 7 00:00:18,560 --> 00:00:20,220 I needed to make like one slide change. 8 00:00:20,800 --> 00:00:23,600 And here I am, nearly 24 hours later. 9 00:00:24,660 --> 00:00:25,720 But we'll see. 10 00:00:27,740 --> 00:00:30,200 So, first of all, introduction. Who am I? 11 00:00:30,320 --> 00:00:31,600 My name's Major Malfunction. 12 00:00:31,860 --> 00:00:33,580 I'm a goon here at DEF CON. 13 00:00:34,580 --> 00:00:41,340 I'm also the London representative or point of contact for DC-4420. 14 00:00:42,380 --> 00:00:45,800 And I'm a security professional by day. 15 00:00:46,800 --> 00:00:50,260 In fact, I live in a very carefully constructed fantasy world 16 00:00:50,260 --> 00:00:53,900 where I have like an underground bunker and I do secret stuff. 17 00:00:54,260 --> 00:00:55,620 And I go by the name. 18 00:00:55,720 --> 00:00:58,440 By the name of Adam Lorry, that's my cover name when I need to go undercover. 19 00:01:04,420 --> 00:01:06,640 So why did I look at MagStripe? 20 00:01:07,220 --> 00:01:11,660 Some of you may have caught my talk last time on infrared. 21 00:01:12,280 --> 00:01:13,580 And you'll know I'm... 22 00:01:17,400 --> 00:01:18,360 Thank you. 23 00:01:19,840 --> 00:01:22,340 So you'll know I'm kind of into old school technologies, 24 00:01:22,460 --> 00:01:25,060 looking at things that have been around for a long time. 25 00:01:25,720 --> 00:01:29,260 And people start to just sort of forget about, move on to the next thing. 26 00:01:29,360 --> 00:01:32,560 But there's a big deployed base of MagStripe. 27 00:01:34,000 --> 00:01:37,260 And when I started looking at it, you know, I mean, I'd done the infrared. 28 00:01:37,400 --> 00:01:40,580 I'd spent all those nights in hotels in the wrong time zone 29 00:01:40,580 --> 00:01:41,920 with nothing to do, wide awake. 30 00:01:43,060 --> 00:01:45,980 And exhausted the possibilities with the IR. 31 00:01:47,400 --> 00:01:49,880 So I kind of thought, well, what else can I look at? 32 00:01:50,080 --> 00:01:51,740 And, ooh, room key. 33 00:01:51,940 --> 00:01:52,180 Hmm. 34 00:01:53,380 --> 00:01:53,820 LAUGHTER 35 00:01:54,860 --> 00:01:56,800 So I started looking at that stuff. 36 00:01:57,880 --> 00:02:02,240 And, yeah, I just found it's the same old story again. 37 00:02:02,340 --> 00:02:03,500 Security by obscurity. 38 00:02:04,800 --> 00:02:06,040 Thoroughly, thoroughly insecure. 39 00:02:06,720 --> 00:02:11,240 And yet people still rely on it for reasonably high security applications. 40 00:02:12,860 --> 00:02:16,260 I look at it, again, like the infrared, because it's there. 41 00:02:16,360 --> 00:02:17,420 I have nothing to do. 42 00:02:17,920 --> 00:02:19,760 Because I have no life. 43 00:02:19,880 --> 00:02:23,520 I'm a sad geek that just likes to play with things and break them. 44 00:02:25,020 --> 00:02:25,420 Oh. 45 00:02:25,800 --> 00:02:26,140 Oh. 46 00:02:29,980 --> 00:02:31,760 Actually, before we get started... 47 00:02:32,480 --> 00:02:32,880 LAUGHTER 48 00:02:33,780 --> 00:02:35,300 Speaking of having no life, 49 00:02:37,100 --> 00:02:40,340 I did a conference recently, and they had these really cool T-shirts. 50 00:02:41,460 --> 00:02:44,240 And I thought it was a really good way... 51 00:02:44,240 --> 00:02:45,360 It's such an old-school thing. 52 00:02:45,540 --> 00:02:48,540 This was like, this is a turning point in my life when this game came out. 53 00:02:48,600 --> 00:02:51,900 In fact, this was when you could say I started to have no life. 54 00:02:52,560 --> 00:02:52,960 Because... 55 00:02:54,380 --> 00:02:56,020 I would come home from work 56 00:02:56,020 --> 00:02:57,400 and I would go straight to the pub 57 00:02:57,400 --> 00:02:59,680 and all my money went into this machine 58 00:02:59,680 --> 00:03:01,940 and I would spend all night playing it 59 00:03:01,940 --> 00:03:03,580 and it was the first 60 00:03:03,580 --> 00:03:04,280 really proper 61 00:03:05,840 --> 00:03:07,640 game, you'll probably all know it 62 00:03:08,180 --> 00:03:09,500 it's called Space Invaders 63 00:03:10,060 --> 00:03:11,680 and I just thought it was a really 64 00:03:11,680 --> 00:03:13,580 good test, this t-shirt, of how 65 00:03:13,580 --> 00:03:15,280 old school the audience is 66 00:03:15,280 --> 00:03:17,600 so I'm going to ask you 67 00:03:17,600 --> 00:03:19,520 a question about this t-shirt 68 00:03:19,520 --> 00:03:21,160 and just try and gauge 69 00:03:21,160 --> 00:03:23,000 just how old school you guys are 70 00:03:24,080 --> 00:03:24,640 so 71 00:03:24,640 --> 00:03:26,560 from an old school perspective 72 00:03:26,560 --> 00:03:28,860 and there's a t-shirt by the way 73 00:03:28,860 --> 00:03:30,580 for whoever gets this right 74 00:03:34,580 --> 00:03:35,140 4420 75 00:03:35,140 --> 00:03:35,720 shirt 76 00:03:37,980 --> 00:03:39,300 what was wrong 77 00:03:39,300 --> 00:03:39,960 with this picture? 78 00:03:44,060 --> 00:03:44,620 okay 79 00:03:45,440 --> 00:03:46,900 yeah, the answer was 80 00:03:46,900 --> 00:03:49,340 four houses from this 81 00:03:49,340 --> 00:03:50,980 gentleman here, so wrong 82 00:03:50,980 --> 00:03:51,140 name 83 00:03:51,160 --> 00:03:51,600 number of houses 84 00:03:52,040 --> 00:03:54,280 it's not a technical detail like that 85 00:03:54,280 --> 00:03:56,420 it's something more fundamental 86 00:03:57,420 --> 00:03:59,160 so it's not a detailed thing 87 00:03:59,160 --> 00:03:59,740 it's like 88 00:04:02,940 --> 00:04:04,720 some interesting answers, okay 89 00:04:04,720 --> 00:04:05,340 colours 90 00:04:05,840 --> 00:04:08,220 actually some of the, yeah it was all mono on the originals 91 00:04:08,220 --> 00:04:09,820 but actually some of the machines had 92 00:04:09,820 --> 00:04:12,060 sort of plastic coloured strips on them 93 00:04:15,320 --> 00:04:17,400 we're talking seriously old school here 94 00:04:17,400 --> 00:04:18,720 you know, this is monogram 95 00:04:19,520 --> 00:04:20,800 monochrome, monochrome, sorry 96 00:04:23,380 --> 00:04:26,100 I'm going to say, hands up and I'll call you out 97 00:04:27,440 --> 00:04:27,840 go 98 00:04:28,260 --> 00:04:29,260 there's too many enemies 99 00:04:29,260 --> 00:04:30,340 too many enemies 100 00:04:31,520 --> 00:04:33,580 yeah, like I said, it's not a detail thing 101 00:04:33,580 --> 00:04:35,320 there's extra letters on things 102 00:04:36,080 --> 00:04:37,400 there's lots of detail coming out 103 00:04:37,400 --> 00:04:38,340 extra letters, no, no 104 00:04:38,840 --> 00:04:39,420 yes sir 105 00:04:39,420 --> 00:04:42,360 shouldn't the AV be on the other side of your van? 106 00:04:43,360 --> 00:04:44,260 inside the network 107 00:04:47,820 --> 00:04:48,780 yeah, well 108 00:04:48,780 --> 00:04:50,780 I didn't design the shirt and it's not my shirt 109 00:04:50,780 --> 00:04:52,060 it's not my product that it's pushing, so 110 00:04:54,220 --> 00:04:54,860 yes sir 111 00:04:54,860 --> 00:04:56,720 it has the vendor's name on it 112 00:04:56,720 --> 00:04:59,180 yeah, that's one thing wrong with it 113 00:04:59,180 --> 00:05:00,440 it's got a vendor's name on it 114 00:05:01,480 --> 00:05:02,060 yes sir 115 00:05:02,060 --> 00:05:03,000 it has huge holes 116 00:05:03,000 --> 00:05:04,940 it has huge holes, well actually 117 00:05:05,360 --> 00:05:06,540 you're getting close 118 00:05:07,360 --> 00:05:09,420 okay, I'm going to give you a clue 119 00:05:10,260 --> 00:05:12,420 the holes have something to do with it 120 00:05:12,420 --> 00:05:13,260 the holes in the building 121 00:05:13,800 --> 00:05:14,940 have something to do with it 122 00:05:21,120 --> 00:05:23,680 should the shots be taken out from the bottom? 123 00:05:24,360 --> 00:05:25,600 the man's got it 124 00:05:26,220 --> 00:05:28,740 okay, so, well, there's a thing missing 125 00:05:29,840 --> 00:05:31,340 there's an enemy missing 126 00:05:31,340 --> 00:05:32,800 there's a spacecraft, okay 127 00:05:33,600 --> 00:05:36,360 yeah, the flying saucer flies across the top 128 00:05:37,320 --> 00:05:40,360 and the way you score the flying saucer 129 00:05:40,360 --> 00:05:43,900 is it either got like 50 points, 75 points, 150 points 130 00:05:43,900 --> 00:05:45,640 or top score is 300 points 131 00:05:46,180 --> 00:05:49,540 now you see this guy's got like one bullet in the air at the moment 132 00:05:50,240 --> 00:05:50,760 you've got a flying saucer 133 00:05:50,780 --> 00:05:52,280 you can only have one bullet in the air 134 00:05:52,280 --> 00:05:54,720 if you fire, you have to wait for that bullet 135 00:05:54,720 --> 00:05:56,080 to get somewhere 136 00:05:56,080 --> 00:05:57,760 before you can fire the next one 137 00:05:59,060 --> 00:06:01,100 so, the way you got the high score 138 00:06:01,100 --> 00:06:02,160 on the ship 139 00:06:02,160 --> 00:06:04,820 was they had a random number sequence 140 00:06:05,640 --> 00:06:07,140 and the random number sequence 141 00:06:07,140 --> 00:06:08,780 was based on how many shots 142 00:06:08,780 --> 00:06:09,560 you had fired 143 00:06:10,120 --> 00:06:12,120 so you would shoot a certain number of shots 144 00:06:12,120 --> 00:06:13,660 and it would get up to 300 points 145 00:06:14,720 --> 00:06:16,520 and then they would shoot another sequence 146 00:06:16,520 --> 00:06:18,240 so it was like 15 and then 7 147 00:06:18,240 --> 00:06:19,580 I forget what the exact number is 148 00:06:19,580 --> 00:06:20,760 so you do 25 149 00:06:20,780 --> 00:06:23,980 24 shots and then 15 and then 15 and then 24 150 00:06:23,980 --> 00:06:26,400 and each time you hit that point 151 00:06:26,400 --> 00:06:27,680 it would be at 300 points 152 00:06:27,680 --> 00:06:31,060 each time you fired it would cycle to 50, 75, whatever 153 00:06:31,960 --> 00:06:35,740 so the way you guaranteed to get a 300 points spacecraft 154 00:06:36,260 --> 00:06:38,580 was you hid underneath your buildings 155 00:06:38,580 --> 00:06:41,980 and you blasted away until your count went up 156 00:06:41,980 --> 00:06:44,420 so you could go bang, bang, bang, bang, bang, bang, bang, bang, bang 157 00:06:44,420 --> 00:06:46,160 but you blow your buildings to bits 158 00:06:46,160 --> 00:06:47,760 so what's missing from this picture 159 00:06:47,760 --> 00:06:50,500 is the damage underneath the building, yeah? 160 00:06:51,440 --> 00:06:54,260 and then you'd get your count up to 50 161 00:06:54,260 --> 00:06:56,220 and you fire and you get a 300 points spacecraft 162 00:06:56,220 --> 00:06:57,700 so that's what's missing 163 00:07:01,380 --> 00:07:02,720 so you all suck 164 00:07:06,520 --> 00:07:07,840 can't believe no one got that 165 00:07:09,600 --> 00:07:11,480 okay, so it's a 20 year old game 166 00:07:11,480 --> 00:07:12,320 and you know 167 00:07:13,260 --> 00:07:14,580 play it on MAME, it's cool 168 00:07:17,640 --> 00:07:18,960 you, nah, well again 169 00:07:18,960 --> 00:07:20,660 you can't, you start to run out of 170 00:07:20,780 --> 00:07:22,920 bad guys, the bad guys end up too high up 171 00:07:23,520 --> 00:07:25,440 so you shoot the underside of the building 172 00:07:25,440 --> 00:07:26,600 because that's the only thing left 173 00:07:26,600 --> 00:07:28,100 you weren't looking for details 174 00:07:28,700 --> 00:07:29,580 yeah, both ways 175 00:07:31,540 --> 00:07:32,700 now you all suck 176 00:07:35,300 --> 00:07:38,480 yeah, I guess you were the closest 177 00:07:39,900 --> 00:07:40,880 black or purple? 178 00:07:41,840 --> 00:07:43,320 black, he's definitely purple 179 00:07:45,240 --> 00:07:48,280 okay, so what we're going to look at today 180 00:07:48,280 --> 00:07:49,940 is swipe cards 181 00:07:49,940 --> 00:07:51,300 so here's some examples 182 00:07:51,940 --> 00:07:53,240 the usual thing 183 00:07:53,240 --> 00:07:55,040 got some top up cards 184 00:07:55,040 --> 00:07:57,360 these are very popular in the UK 185 00:07:57,360 --> 00:08:00,840 because you can walk into any supermarket 186 00:08:00,840 --> 00:08:02,760 and just take them off the shelf 187 00:08:04,540 --> 00:08:06,140 hotel key card obviously 188 00:08:06,140 --> 00:08:07,500 and a cash card 189 00:08:12,380 --> 00:08:14,700 so again at this other conference 190 00:08:14,700 --> 00:08:18,120 we had to get around the building 191 00:08:18,120 --> 00:08:19,800 you had to have your key card with you 192 00:08:19,800 --> 00:08:20,380 the whole time 193 00:08:20,380 --> 00:08:21,920 so going up and down in the elevator 194 00:08:21,920 --> 00:08:24,120 it was a reasonably crowded conference 195 00:08:24,120 --> 00:08:25,600 you know there were a few hundred people there 196 00:08:26,220 --> 00:08:27,560 and every time I got in the elevator 197 00:08:27,560 --> 00:08:30,260 I was using my key card 198 00:08:30,260 --> 00:08:31,300 same as everyone else 199 00:08:31,300 --> 00:08:33,020 only mine looked different from theirs 200 00:08:33,960 --> 00:08:35,560 it was one of these keys 201 00:08:36,800 --> 00:08:39,080 and what I was doing was trying to see 202 00:08:39,080 --> 00:08:40,320 if anyone actually noticed 203 00:08:40,320 --> 00:08:41,920 that I was using the wrong key 204 00:08:43,000 --> 00:08:44,820 so I put up this slide 205 00:08:44,820 --> 00:08:45,840 and I asked the room 206 00:08:45,840 --> 00:08:49,180 okay, I've travelled up and down in this elevator 207 00:08:49,180 --> 00:08:50,060 with you guys 208 00:08:50,760 --> 00:08:52,880 dozens of times in the last two to three days 209 00:08:52,880 --> 00:08:54,380 how many people actually spotted 210 00:08:54,960 --> 00:08:57,100 what was the key card I was using 211 00:08:58,140 --> 00:08:59,160 no one in the... 212 00:08:59,160 --> 00:09:00,180 well, one guy in the room 213 00:09:00,180 --> 00:09:01,620 actually spotted it 214 00:09:02,440 --> 00:09:06,400 and the sort of lesson from that was 215 00:09:06,400 --> 00:09:08,200 and it was this one by the way 216 00:09:09,480 --> 00:09:10,880 so that was my room key 217 00:09:10,880 --> 00:09:13,460 so Tesco's mobile phone top up card 218 00:09:14,100 --> 00:09:16,040 which I had cloned my room key onto 219 00:09:17,040 --> 00:09:19,160 but the object of the exercise was that 220 00:09:19,180 --> 00:09:22,920 to be able to use the key so naturally 221 00:09:22,920 --> 00:09:24,680 that nobody notices you're doing it 222 00:09:25,180 --> 00:09:26,980 so when you're a secret agent like me 223 00:09:26,980 --> 00:09:27,940 you know James Bond 224 00:09:28,580 --> 00:09:30,380 you have to be able to do that stuff 225 00:09:30,380 --> 00:09:31,500 so you practice that 226 00:09:31,500 --> 00:09:33,920 to be good at social engineering 227 00:09:33,920 --> 00:09:35,320 or to be good at doing something 228 00:09:35,800 --> 00:09:37,960 you have to practice it, practice it, practice it 229 00:09:37,960 --> 00:09:39,240 until it just comes so naturally 230 00:09:39,660 --> 00:09:41,280 that you don't even think about it 231 00:09:42,460 --> 00:09:44,140 and in fact I got into a situation 232 00:09:44,140 --> 00:09:45,560 I was going up in the elevator 233 00:09:45,560 --> 00:09:48,880 and the elevator was whizzing up to the 17th floor 234 00:09:48,880 --> 00:09:49,840 and about the 9th floor 235 00:09:49,840 --> 00:09:51,440 the elevator suddenly stopped 236 00:09:52,100 --> 00:09:54,200 turns around and starts going back down again 237 00:09:55,100 --> 00:09:56,300 now when you're James Bond 238 00:09:56,300 --> 00:09:58,000 that's usually not a good sign 239 00:10:00,260 --> 00:10:02,060 and I was thinking holy crap 240 00:10:02,060 --> 00:10:02,680 what's going to happen 241 00:10:02,680 --> 00:10:03,600 I'm going to be down in the basement 242 00:10:03,600 --> 00:10:05,020 and the ninjas will be coming in 243 00:10:05,020 --> 00:10:09,400 so anyway the door opens 244 00:10:09,400 --> 00:10:11,640 and sure enough a member of staff walks in 245 00:10:12,340 --> 00:10:14,220 and so I made some lame joke 246 00:10:14,220 --> 00:10:15,700 about her having an override 247 00:10:15,700 --> 00:10:16,360 and she's like 248 00:10:16,880 --> 00:10:18,620 oh, are you having trouble with your key? 249 00:10:20,240 --> 00:10:21,560 and I'm like oh crap 250 00:10:22,940 --> 00:10:24,780 so I thought well what can I do 251 00:10:24,780 --> 00:10:27,000 I've only got my bright yellow key with me 252 00:10:27,000 --> 00:10:28,260 and she works in this hotel 253 00:10:29,400 --> 00:10:31,060 so I just went 254 00:10:31,060 --> 00:10:32,420 well I don't think so 255 00:10:32,420 --> 00:10:33,900 put my normal key in 256 00:10:33,900 --> 00:10:34,920 put the yellow key in 257 00:10:35,660 --> 00:10:38,140 the lift mechanism made the nice beep noise 258 00:10:38,760 --> 00:10:40,360 selected the floor and off we went 259 00:10:41,060 --> 00:10:42,020 didn't bat an eyelid 260 00:10:43,120 --> 00:10:45,360 so you know if you can fool the staff 261 00:10:45,360 --> 00:10:47,760 who are looking out specifically for a problem with the key 262 00:10:47,760 --> 00:10:48,860 you pull out the bright shiny key 263 00:10:48,880 --> 00:10:49,460 the tiny yellow key 264 00:10:49,460 --> 00:10:50,640 and you wham it in the thing 265 00:10:51,400 --> 00:10:53,540 and she doesn't pay any attention 266 00:10:53,540 --> 00:10:54,520 then yeah 267 00:10:54,520 --> 00:10:55,680 it's all about attitude 268 00:10:55,680 --> 00:10:56,680 and the way you do it 269 00:10:56,680 --> 00:10:58,100 if you don't feel suspicious 270 00:10:58,100 --> 00:10:59,060 and don't look suspicious 271 00:10:59,060 --> 00:11:00,240 you'll get away with it 272 00:11:00,240 --> 00:11:04,920 so similarly 273 00:11:10,160 --> 00:11:11,460 now in this case 274 00:11:11,460 --> 00:11:13,200 I knew damn well no one could spot it 275 00:11:13,200 --> 00:11:15,000 because I'd done the whole thing 276 00:11:15,000 --> 00:11:16,960 you know I left the building by the back exit 277 00:11:16,960 --> 00:11:18,000 went under the ground 278 00:11:18,000 --> 00:11:18,780 got in the car 279 00:11:18,780 --> 00:11:19,860 changed car twice 280 00:11:19,860 --> 00:11:20,860 went in the underground 281 00:11:22,740 --> 00:11:24,260 but of course it was that one 282 00:11:28,900 --> 00:11:31,620 okay so the kit that I use to do this stuff 283 00:11:32,980 --> 00:11:34,740 there's the sort of off the shelf stuff 284 00:11:34,740 --> 00:11:37,420 there's a very nice piece of kit called a max stripe 285 00:11:38,280 --> 00:11:39,280 I've got one here 286 00:11:42,160 --> 00:11:43,360 mine is slightly modified 287 00:11:43,360 --> 00:11:44,760 but we'll talk about that in a minute 288 00:11:46,180 --> 00:11:47,980 it's a parallel port device 289 00:11:47,980 --> 00:11:49,980 it can read and write all three tracks 290 00:11:49,980 --> 00:11:52,740 it will give you access to the raw data 291 00:11:52,740 --> 00:11:55,620 so it's not trying to actually interpret the data as it goes along 292 00:11:56,260 --> 00:11:59,600 so you can read cards that have been deliberately scrambled 293 00:11:59,600 --> 00:12:00,740 or have got bad parity 294 00:12:00,740 --> 00:12:02,320 or wrong checksums or whatever 295 00:12:04,900 --> 00:12:06,720 unfortunately it only runs under Windows 296 00:12:06,720 --> 00:12:11,560 so I put on my rubber gloves and installed some on here 297 00:12:13,380 --> 00:12:14,460 doesn't work with VMware 298 00:12:14,460 --> 00:12:18,580 yeah well full body condom actually 299 00:12:18,580 --> 00:12:26,320 the other thing you can do is build your own 300 00:12:26,320 --> 00:12:29,200 and again we'll talk about that in more detail in a bit 301 00:12:30,340 --> 00:12:31,860 there's a very good site 302 00:12:32,420 --> 00:12:36,940 the link's there where you can download a detailed article about how to do this 303 00:12:37,460 --> 00:12:39,360 the nice thing about this device is 304 00:12:39,360 --> 00:12:41,440 again it just reads raw data 305 00:12:42,100 --> 00:12:44,100 the downside is it's 306 00:12:44,100 --> 00:12:44,980 read only 307 00:12:46,540 --> 00:12:49,560 again we'll talk about that more later 308 00:12:53,500 --> 00:12:56,780 so this is the software that comes with the max stripe 309 00:12:58,060 --> 00:13:01,940 these screenshots are just stolen from their website 310 00:13:01,940 --> 00:13:03,900 so I don't take any credit for them 311 00:13:05,320 --> 00:13:10,460 so basically you have a program running that's just scanning for data 312 00:13:10,860 --> 00:13:11,880 and you swipe the card 313 00:13:12,840 --> 00:13:13,840 and it will then 314 00:13:14,100 --> 00:13:15,280 give you the raw 315 00:13:18,000 --> 00:13:18,400 ASCII 316 00:13:18,400 --> 00:13:19,800 you can switch into binary mode 317 00:13:19,800 --> 00:13:21,540 do signal analysis and so on 318 00:13:22,880 --> 00:13:25,120 so if I want to look at the binary that I've read 319 00:13:29,560 --> 00:13:32,100 it has some stuff for trying to interpret the data 320 00:13:32,100 --> 00:13:35,260 so you can say ok I want to look at it as if it was a 6-bit number 321 00:13:35,260 --> 00:13:37,180 or a 7-bit number or a 5-bit number 322 00:13:38,160 --> 00:13:40,740 and it will give you rolling CRCs and so on 323 00:13:40,740 --> 00:13:42,400 check the parity for you 324 00:13:46,060 --> 00:13:47,940 and it has the ability to write 325 00:13:47,940 --> 00:13:49,700 so I can write all three tracks 326 00:13:49,700 --> 00:13:52,480 so this is basically what I normally use to clone things 327 00:13:52,480 --> 00:13:54,200 just read it and write it back 328 00:13:55,080 --> 00:13:55,920 very easy 329 00:13:57,820 --> 00:13:58,760 and it's cheap 330 00:13:59,960 --> 00:14:02,600 so the kind of tracks that we're looking at 331 00:14:02,600 --> 00:14:04,680 there are three main standards 332 00:14:04,680 --> 00:14:07,180 I mean obviously a lot of people do proprietary stuff as well 333 00:14:07,180 --> 00:14:09,200 but the three main standards you'll encounter 334 00:14:09,200 --> 00:14:11,860 track 1 is IATA data 335 00:14:11,860 --> 00:14:14,140 track 2 ABA 336 00:14:14,140 --> 00:14:15,240 and track 3 Thrift 337 00:14:16,080 --> 00:14:18,620 we're going to look at track 1 in detail today 338 00:14:21,080 --> 00:14:23,340 and if you're going to play with this stuff 339 00:14:23,340 --> 00:14:25,600 and you want to actually get your hands dirty 340 00:14:25,600 --> 00:14:27,020 and start looking at the data 341 00:14:27,940 --> 00:14:30,480 there's some good documentation on the Magtech site 342 00:14:30,480 --> 00:14:34,500 this will give you the bit tables to convert 343 00:14:35,740 --> 00:14:37,740 from binary to ASCII 344 00:14:41,860 --> 00:14:45,020 ok so the first thing I looked at was my boarding pass 345 00:14:46,480 --> 00:14:47,040 so 346 00:14:49,220 --> 00:14:50,800 it's basically track 1 347 00:14:50,800 --> 00:14:52,540 it's 210 bits per inch 348 00:14:52,540 --> 00:14:54,220 7-bit character set 349 00:14:55,120 --> 00:14:56,560 79 alphanumeric characters 350 00:14:59,740 --> 00:15:01,780 and the data that's on there 351 00:15:01,780 --> 00:15:02,840 is you get a 352 00:15:03,540 --> 00:15:05,120 a start sentinel 353 00:15:05,120 --> 00:15:09,000 followed by a character that says what format the rest of the track's in 354 00:15:09,820 --> 00:15:11,840 and some details like which airport you're in 355 00:15:11,860 --> 00:15:12,380 what you're coming from 356 00:15:12,380 --> 00:15:13,360 which flight you're on 357 00:15:13,360 --> 00:15:15,560 what day of the year you're going on and so on 358 00:15:17,480 --> 00:15:22,480 so this is the data that was actually stored on my boarding pass 359 00:15:23,840 --> 00:15:27,060 so we're going from Vancouver to London Heathrow 360 00:15:27,060 --> 00:15:28,680 that's my seat 19K 361 00:15:28,680 --> 00:15:30,460 so in the cheap seats 362 00:15:32,800 --> 00:15:33,900 and my name 363 00:15:36,980 --> 00:15:37,640 try my 364 00:15:39,200 --> 00:15:41,560 yeah I should have a play with the 365 00:15:41,860 --> 00:15:43,720 the loyalty card maybe next time 366 00:15:45,920 --> 00:15:47,560 ok so I thought 367 00:15:48,380 --> 00:15:51,240 well on the new systems in the old days 368 00:15:51,240 --> 00:15:54,100 you used to just hand your boarding pass 369 00:15:54,100 --> 00:15:55,780 to the nice stewardess 370 00:15:55,780 --> 00:15:57,620 and she would say welcome on board 371 00:15:57,620 --> 00:15:59,580 type your seat number in 372 00:15:59,580 --> 00:16:00,860 and send you on your way 373 00:16:01,740 --> 00:16:04,360 but now you hand them your boarding pass 374 00:16:04,360 --> 00:16:05,520 and they stick it in a machine 375 00:16:06,280 --> 00:16:08,020 and the machine reads the mag stripe 376 00:16:09,020 --> 00:16:10,260 so I thought well 377 00:16:10,260 --> 00:16:12,140 why don't I just modify it 378 00:16:15,760 --> 00:16:18,220 what could be simpler than upgrading myself 379 00:16:22,440 --> 00:16:24,560 but then I thought well that's not going to work 380 00:16:25,100 --> 00:16:27,220 because the back end system will disagree 381 00:16:27,220 --> 00:16:28,820 with what's on my mag stripe 382 00:16:29,620 --> 00:16:30,780 so I thought ok well 383 00:16:30,780 --> 00:16:33,220 how about having the back end system 384 00:16:33,220 --> 00:16:34,320 modify it for me 385 00:16:36,160 --> 00:16:37,500 so this is before 386 00:16:40,260 --> 00:16:41,120 and this is after 387 00:16:42,500 --> 00:16:44,420 so if you could read that 388 00:16:55,320 --> 00:16:57,680 for those at the back that can't read it 389 00:16:57,680 --> 00:16:58,080 it says 390 00:16:58,660 --> 00:17:00,060 or 1 equals 1 391 00:17:00,920 --> 00:17:02,920 update flight set seat 392 00:17:02,920 --> 00:17:06,620 equals 1A where passenger equals lorry Adam Mr 393 00:17:13,680 --> 00:17:15,780 so now I figure instead of them saying 394 00:17:15,780 --> 00:17:17,060 oh yeah welcome to the right 395 00:17:17,060 --> 00:17:18,120 they'll say oh Mr Lorry 396 00:17:18,120 --> 00:17:19,080 you seem to have been upgraded 397 00:17:19,080 --> 00:17:21,040 let me carry that bag for you 398 00:17:22,320 --> 00:17:24,760 would you like happy finish with your free champagne 399 00:17:28,580 --> 00:17:29,940 that's my fantasy come on 400 00:17:33,440 --> 00:17:34,820 ok so the other system 401 00:17:34,820 --> 00:17:37,120 I had a good look at was the hotels 402 00:17:37,840 --> 00:17:39,440 not this one I hasten to add it 403 00:17:39,440 --> 00:17:40,760 I don't know if there's any brown shirts in the room 404 00:17:40,760 --> 00:17:45,540 and there's a couple of different kinds of locks 405 00:17:45,540 --> 00:17:46,700 that are out there 406 00:17:47,520 --> 00:17:49,920 you've got what they call passive locks 407 00:17:50,440 --> 00:17:51,940 this is kind of upside down 408 00:17:52,740 --> 00:17:55,020 passive locks all the logics in the lock 409 00:17:55,020 --> 00:17:58,540 so actually it's actively doing all the checking for you 410 00:17:58,540 --> 00:18:00,660 and you've got the active locks 411 00:18:00,660 --> 00:18:03,300 where all the logic is on a remote back end 412 00:18:03,300 --> 00:18:06,480 so it's kind of passively reading data for you 413 00:18:06,480 --> 00:18:07,340 which is kind of odd 414 00:18:07,340 --> 00:18:08,360 um 415 00:18:08,360 --> 00:18:10,520 but basically those are the two kinds 416 00:18:10,520 --> 00:18:13,540 80% of all the locks in the hotels in the world 417 00:18:13,540 --> 00:18:16,040 are of the passive kind apparently 418 00:18:20,180 --> 00:18:22,220 so the way a passive lock works is 419 00:18:22,220 --> 00:18:24,960 when you stick your key in the lock 420 00:18:24,960 --> 00:18:26,400 it does a quick check 421 00:18:26,400 --> 00:18:27,340 it looks at the key 422 00:18:27,340 --> 00:18:29,480 says is this the right kind of key 423 00:18:32,580 --> 00:18:33,560 if it is 424 00:18:33,560 --> 00:18:34,600 it then does another check 425 00:18:34,600 --> 00:18:35,540 is it a special key 426 00:18:36,480 --> 00:18:37,900 and if it's a special key 427 00:18:37,900 --> 00:18:39,980 it will then perform a special action 428 00:18:39,980 --> 00:18:42,660 and the action depends on what type of key it is 429 00:18:42,660 --> 00:18:45,580 so it might be housekeeping getting in 430 00:18:45,580 --> 00:18:47,740 it might be a one time pass 431 00:18:47,740 --> 00:18:48,900 they can actually issue keys 432 00:18:48,900 --> 00:18:51,160 that will let you into the room once and once only 433 00:18:52,400 --> 00:18:52,940 um 434 00:18:52,940 --> 00:18:54,640 it might be a cancellation key 435 00:18:54,640 --> 00:18:56,920 to stop the key being usable 436 00:18:57,520 --> 00:18:58,900 stop the room being usable 437 00:18:58,900 --> 00:19:00,140 and um 438 00:19:00,140 --> 00:19:02,140 the most interesting one is 439 00:19:02,140 --> 00:19:03,840 a crime scene lock out key 440 00:19:04,500 --> 00:19:06,160 so basically this is the 441 00:19:06,160 --> 00:19:07,420 DOS this lock key 442 00:19:08,520 --> 00:19:10,200 you stick that in the lock 443 00:19:10,200 --> 00:19:11,520 and it doesn't work anymore 444 00:19:11,520 --> 00:19:12,600 it says bye bye 445 00:19:14,260 --> 00:19:15,420 I'm not playing anymore 446 00:19:15,420 --> 00:19:16,780 drill me 447 00:19:24,880 --> 00:19:25,760 so um 448 00:19:25,760 --> 00:19:28,040 yeah I've been careful not to make any of those 449 00:19:33,000 --> 00:19:35,580 I'll show you how to be careful not to make those in a minute 450 00:19:41,360 --> 00:19:43,340 okay so the next check is 451 00:19:43,340 --> 00:19:44,720 um is it the correct room 452 00:19:45,420 --> 00:19:46,180 if it is 453 00:19:46,180 --> 00:19:47,700 is it a rescinded key 454 00:19:48,320 --> 00:19:49,220 if it is 455 00:19:49,220 --> 00:19:50,180 then reject it 456 00:19:51,440 --> 00:19:53,220 if it's not a rescinded key 457 00:19:53,220 --> 00:19:54,400 is it an expired key 458 00:19:55,520 --> 00:19:56,040 um 459 00:19:56,580 --> 00:19:57,100 no 460 00:19:57,100 --> 00:19:58,220 is it a new key 461 00:19:59,840 --> 00:20:01,220 if it's a new key 462 00:20:01,220 --> 00:20:02,660 it will rescind the previous key 463 00:20:02,660 --> 00:20:03,920 and if it's 464 00:20:03,920 --> 00:20:04,540 um 465 00:20:04,540 --> 00:20:05,560 not a new key 466 00:20:05,560 --> 00:20:07,080 in other words it's the current key 467 00:20:07,080 --> 00:20:08,540 it'll open the door 468 00:20:08,540 --> 00:20:09,200 um 469 00:20:09,200 --> 00:20:11,900 in both cases you get to open the door 470 00:20:13,140 --> 00:20:13,660 so 471 00:20:14,240 --> 00:20:16,180 basically what's happening is your key 472 00:20:16,180 --> 00:20:19,680 is acting as the device that reprograms the lock 473 00:20:19,680 --> 00:20:21,700 to say the last guest has now left 474 00:20:21,700 --> 00:20:22,780 and I am the new guest 475 00:20:22,780 --> 00:20:23,380 okay 476 00:20:23,380 --> 00:20:25,920 so once you've been through these tests 477 00:20:26,560 --> 00:20:27,560 this last step 478 00:20:28,620 --> 00:20:30,840 actually is deciding whether or not 479 00:20:30,840 --> 00:20:32,900 this is the same guy returning to his room 480 00:20:32,900 --> 00:20:35,220 or this is a new guest taking over the room 481 00:20:35,220 --> 00:20:36,200 so they can 482 00:20:36,200 --> 00:20:37,120 they use the guest 483 00:20:37,120 --> 00:20:39,780 to go and reprogram the lock of the door 484 00:20:40,380 --> 00:20:42,100 after the last guy moved out 485 00:20:45,220 --> 00:20:46,080 so um 486 00:20:46,080 --> 00:20:48,740 here's a key set that we looked at 487 00:20:49,860 --> 00:20:52,040 and basically what you've got is 488 00:20:53,380 --> 00:20:55,480 I've put question marks on some of the fields 489 00:20:55,480 --> 00:20:56,860 because I'm not 100% sure 490 00:20:56,860 --> 00:20:57,880 that's what it is 491 00:20:57,880 --> 00:20:58,780 that's my best guess 492 00:20:59,380 --> 00:20:59,860 so 493 00:20:59,860 --> 00:21:01,680 you've got your start sentinel 494 00:21:01,680 --> 00:21:02,620 you've got a number 495 00:21:02,620 --> 00:21:04,400 which I'm guessing is the property number 496 00:21:04,400 --> 00:21:04,900 um 497 00:21:05,220 --> 00:21:06,180 you've got the room number 498 00:21:06,180 --> 00:21:07,680 which definitely matched my room 499 00:21:08,380 --> 00:21:09,400 you've got the key number 500 00:21:10,160 --> 00:21:10,880 which um 501 00:21:11,700 --> 00:21:13,120 definitely matched my key number 502 00:21:13,120 --> 00:21:15,220 because I would go back to reception and say 503 00:21:15,220 --> 00:21:16,780 you know I've lost my key 504 00:21:16,780 --> 00:21:17,120 um 505 00:21:17,120 --> 00:21:17,980 can you give me another one 506 00:21:20,520 --> 00:21:22,220 and you could see that 507 00:21:22,220 --> 00:21:24,060 if you went and got a duplicate key 508 00:21:24,060 --> 00:21:25,420 the only field that changed 509 00:21:25,420 --> 00:21:26,820 was the key number 510 00:21:27,860 --> 00:21:30,940 and the redundancy check digit on the end 511 00:21:32,660 --> 00:21:34,740 so armed with that information I produced 512 00:21:34,740 --> 00:21:36,300 a completely new key 513 00:21:37,040 --> 00:21:39,740 and again I just changed one character 514 00:21:40,640 --> 00:21:43,660 calculated the correct redundancy character 515 00:21:44,620 --> 00:21:45,320 programmed the key 516 00:21:45,320 --> 00:21:46,040 bingo 517 00:21:46,040 --> 00:21:46,800 door opened 518 00:21:47,940 --> 00:21:49,000 no big deal 519 00:21:49,000 --> 00:21:49,500 because 520 00:21:49,500 --> 00:21:51,980 you know all I've done is really cloned the key 521 00:21:51,980 --> 00:21:52,460 I could have 522 00:21:52,460 --> 00:21:54,460 I had to have that information anyway 523 00:21:57,780 --> 00:22:00,420 so I wondered what's the difference between 524 00:22:00,420 --> 00:22:01,960 a new key 525 00:22:02,560 --> 00:22:03,440 for a new guest 526 00:22:03,440 --> 00:22:05,100 and my existing key 527 00:22:05,660 --> 00:22:07,480 so I go down to reception and say 528 00:22:07,480 --> 00:22:08,980 look you know I've lost my key 529 00:22:08,980 --> 00:22:10,860 only this time I don't want a duplicate 530 00:22:10,860 --> 00:22:12,560 because I think you know 531 00:22:12,560 --> 00:22:14,060 that the agents that are after me 532 00:22:14,060 --> 00:22:15,400 have probably stolen it 533 00:22:17,160 --> 00:22:19,580 it's really important that the high tech secret gear 534 00:22:19,580 --> 00:22:20,760 in my room doesn't get stolen 535 00:22:20,760 --> 00:22:23,180 so I need a key that cancels my old key 536 00:22:23,180 --> 00:22:25,340 so whoever found it is not going to get in 537 00:22:26,720 --> 00:22:28,260 and so they give me a new key 538 00:22:28,260 --> 00:22:29,520 and in this case 539 00:22:29,960 --> 00:22:31,000 the only difference 540 00:22:31,960 --> 00:22:33,420 it's gone back to key number one 541 00:22:33,440 --> 00:22:35,340 the only difference is this 542 00:22:35,340 --> 00:22:37,180 which I'm assuming is a magic number 543 00:22:37,180 --> 00:22:39,400 that says this is a new key 544 00:22:40,220 --> 00:22:41,940 all the other details are the same 545 00:22:41,940 --> 00:22:42,680 expiry date 546 00:22:42,680 --> 00:22:43,600 room number 547 00:22:43,600 --> 00:22:45,440 key number and so on 548 00:22:46,600 --> 00:22:48,860 now this particular manufacturer 549 00:22:48,860 --> 00:22:50,400 claim on their website 550 00:22:50,400 --> 00:22:52,440 that these locks are impregnable 551 00:22:52,440 --> 00:22:55,060 because they have a gazillion bit 552 00:22:55,060 --> 00:22:57,400 number that's impossible to guess 553 00:22:59,040 --> 00:23:00,600 so actually you know 554 00:23:00,600 --> 00:23:01,380 how many digits 555 00:23:01,380 --> 00:23:02,620 how many bits are different 556 00:23:02,620 --> 00:23:04,160 between a 4 and a 32 557 00:23:04,160 --> 00:23:08,280 I think it's less than a gazillion 558 00:23:12,880 --> 00:23:14,780 and no I'm not going to tell you 559 00:23:14,780 --> 00:23:15,560 the magic formula 560 00:23:15,560 --> 00:23:17,180 for generating a magic number 561 00:23:18,120 --> 00:23:21,920 but the way the rescinding process works is 562 00:23:23,040 --> 00:23:24,480 basically the new magic number 563 00:23:24,480 --> 00:23:25,840 goes into the lock 564 00:23:26,400 --> 00:23:27,800 so when it sees a key 565 00:23:27,800 --> 00:23:30,160 if it's the same magic number as last time 566 00:23:30,160 --> 00:23:31,200 then it will let you in 567 00:23:31,200 --> 00:23:32,380 assuming all the other checks 568 00:23:32,620 --> 00:23:33,200 succeed 569 00:23:33,200 --> 00:23:35,000 if it's a new magic number 570 00:23:35,000 --> 00:23:36,220 then that just becomes 571 00:23:36,220 --> 00:23:36,940 the current key 572 00:23:36,940 --> 00:23:38,720 so it's a very very simple system 573 00:23:39,200 --> 00:23:40,820 and the lock will store 574 00:23:40,820 --> 00:23:42,340 the last hundred seen keys 575 00:23:44,740 --> 00:23:46,420 so basically this is just 576 00:23:46,420 --> 00:23:48,460 a pseudo random sequence of numbers 577 00:23:48,460 --> 00:23:50,040 and it has to be different 578 00:23:50,040 --> 00:23:51,220 from the last hundred numbers 579 00:23:51,220 --> 00:23:51,920 that were issued 580 00:23:51,920 --> 00:23:53,400 and that seems to be it 581 00:23:55,960 --> 00:23:57,680 so if you happen to be 582 00:23:57,680 --> 00:23:58,420 in one of those hotels 583 00:23:59,680 --> 00:24:01,020 let me know how you get on 584 00:24:01,020 --> 00:24:02,320 what was the lock number? 585 00:24:04,520 --> 00:24:05,500 I'm not going to say 586 00:24:05,500 --> 00:24:06,920 what the lock manufacturer is here 587 00:24:06,920 --> 00:24:08,080 I've contacted them 588 00:24:08,080 --> 00:24:09,000 and so far 589 00:24:09,520 --> 00:24:11,480 they can't get their head out of the sand 590 00:24:11,480 --> 00:24:17,080 okay on the other hand 591 00:24:17,520 --> 00:24:18,640 you've got active locks 592 00:24:18,640 --> 00:24:20,480 active locks make the decision remotely 593 00:24:20,480 --> 00:24:21,760 so you swipe the key 594 00:24:21,760 --> 00:24:22,820 and there's a back end system 595 00:24:22,820 --> 00:24:23,980 that decides whether or not 596 00:24:23,980 --> 00:24:25,120 you should be staying in there 597 00:24:25,620 --> 00:24:27,460 they seem to be one wire interfaces 598 00:24:29,340 --> 00:24:30,180 checking is done 599 00:24:30,180 --> 00:24:31,700 as I say against a live database 600 00:24:31,700 --> 00:24:34,180 they also can use the key swipe 601 00:24:34,700 --> 00:24:36,780 on those systems to send messages 602 00:24:36,780 --> 00:24:38,960 so similarly with the infrared controls 603 00:24:38,960 --> 00:24:39,980 in the room 604 00:24:41,120 --> 00:24:42,240 they can actually 605 00:24:42,240 --> 00:24:44,060 the maid could say 606 00:24:44,060 --> 00:24:44,860 right the room's clean 607 00:24:44,860 --> 00:24:46,760 or the guy filling the minibar 608 00:24:46,760 --> 00:24:47,440 could say I've put 609 00:24:48,340 --> 00:24:50,660 well amazingly no more booze 610 00:24:50,660 --> 00:24:51,840 in Mr Lorry's room again 611 00:24:54,980 --> 00:24:56,740 you can send messages 612 00:24:56,740 --> 00:24:58,860 by swiping a special card 613 00:25:00,100 --> 00:25:01,680 I haven't looked at the data 614 00:25:01,700 --> 00:25:03,200 and the details of what you can send 615 00:25:03,200 --> 00:25:04,980 but I'm sure there's some interesting stuff 616 00:25:04,980 --> 00:25:06,040 that one could do there 617 00:25:06,700 --> 00:25:08,200 unfortunately it also seems to connect 618 00:25:08,200 --> 00:25:09,360 to their security system 619 00:25:11,200 --> 00:25:12,980 so as we found out 620 00:25:16,840 --> 00:25:18,740 so we were you know playing away 621 00:25:18,740 --> 00:25:19,560 go to the door 622 00:25:20,080 --> 00:25:20,580 swipe 623 00:25:20,580 --> 00:25:21,860 go back in the room 624 00:25:21,860 --> 00:25:22,660 now that didn't work 625 00:25:22,660 --> 00:25:23,600 try something else 626 00:25:23,600 --> 00:25:24,880 go back out 627 00:25:24,880 --> 00:25:25,220 swipe 628 00:25:25,220 --> 00:25:26,280 yeah that didn't work 629 00:25:26,280 --> 00:25:27,240 try something else 630 00:25:27,240 --> 00:25:28,380 go back out 631 00:25:28,380 --> 00:25:31,040 oh hello Mr Security Guard 632 00:25:32,960 --> 00:25:34,340 fancy meeting you here 633 00:25:34,980 --> 00:25:36,840 seem to be having trouble with my key 634 00:25:36,840 --> 00:25:38,060 I better go down to reception 635 00:25:38,940 --> 00:25:39,860 change it 636 00:25:43,340 --> 00:25:46,020 so yeah they do watch the active systems 637 00:25:46,020 --> 00:25:49,200 so at least that's good 638 00:25:49,200 --> 00:25:50,720 you know someone's paying attention 639 00:25:50,720 --> 00:25:51,780 raises an alarm 640 00:25:51,780 --> 00:25:53,840 and someone comes and investigates 641 00:25:55,080 --> 00:25:56,400 they're less common 642 00:25:56,400 --> 00:25:57,940 I guess in newer hotels 643 00:25:57,940 --> 00:25:59,200 they'll become more common 644 00:25:59,200 --> 00:26:00,400 they'll be fitted 645 00:26:00,400 --> 00:26:01,560 but retrofitting is 646 00:26:01,560 --> 00:26:02,340 is much harder 647 00:26:02,340 --> 00:26:03,180 because it's not just 648 00:26:03,180 --> 00:26:04,140 a standalone box 649 00:26:04,140 --> 00:26:05,400 with a bunch of batteries in it 650 00:26:05,400 --> 00:26:05,720 so 651 00:26:07,180 --> 00:26:07,660 Question 652 00:26:07,660 --> 00:26:09,220 How does the system fail 653 00:26:09,220 --> 00:26:10,760 if you can't talk to the database 654 00:26:10,760 --> 00:26:12,380 and it fails to open 655 00:26:12,380 --> 00:26:13,200 like it does today? 656 00:26:13,780 --> 00:26:15,040 How does the system fail 657 00:26:15,040 --> 00:26:16,360 if you can't talk to the database 658 00:26:17,460 --> 00:26:18,780 I would guess 659 00:26:18,780 --> 00:26:19,340 that it 660 00:26:19,340 --> 00:26:20,900 it's not going to fail 661 00:26:20,900 --> 00:26:21,360 to open 662 00:26:21,360 --> 00:26:22,500 it's going to fail to 663 00:26:22,500 --> 00:26:23,040 you know 664 00:26:23,040 --> 00:26:23,560 this lock 665 00:26:23,560 --> 00:26:24,700 is not going to do anything 666 00:26:24,700 --> 00:26:25,840 because I can't talk 667 00:26:25,840 --> 00:26:26,300 to the database 668 00:26:26,300 --> 00:26:27,260 it's possible 669 00:26:27,260 --> 00:26:28,720 they have the passive circuitry 670 00:26:28,720 --> 00:26:29,420 built in as well 671 00:26:29,420 --> 00:26:30,700 so the lock 672 00:26:30,700 --> 00:26:31,540 is capable of 673 00:26:31,540 --> 00:26:33,100 of making the decision for itself 674 00:26:33,100 --> 00:26:34,360 If there's a fire 675 00:26:36,120 --> 00:26:37,880 I don't need to get into a room 676 00:26:41,120 --> 00:26:42,840 I need my spy gear back 677 00:26:42,840 --> 00:26:43,380 that's true 678 00:26:43,380 --> 00:26:44,840 I mean I need to get into the room 679 00:26:44,840 --> 00:26:46,340 you guys don't need to get into the room 680 00:26:46,340 --> 00:26:52,320 Fire department room checks 681 00:26:53,260 --> 00:26:54,520 when they're going and 682 00:26:55,500 --> 00:26:56,660 yeah I mean I assume 683 00:26:56,660 --> 00:26:57,380 they have a system 684 00:26:57,380 --> 00:26:58,800 the master key will work 685 00:26:58,800 --> 00:26:59,560 again I would 686 00:27:00,640 --> 00:27:01,260 I'm sorry 687 00:27:01,260 --> 00:27:02,000 they have an axe 688 00:27:02,000 --> 00:27:02,200 yeah 689 00:27:02,200 --> 00:27:03,840 and big big rubber boots 690 00:27:04,880 --> 00:27:06,080 I would guess 691 00:27:06,080 --> 00:27:06,680 I mean if I 692 00:27:06,680 --> 00:27:07,620 if I was designing 693 00:27:07,620 --> 00:27:08,560 such a system 694 00:27:08,560 --> 00:27:09,020 I would 695 00:27:09,020 --> 00:27:10,140 make the locks work 696 00:27:10,140 --> 00:27:11,020 as a passive device 697 00:27:11,020 --> 00:27:11,500 as well 698 00:27:11,500 --> 00:27:12,660 and just use the back end 699 00:27:12,660 --> 00:27:13,660 as a double check 700 00:27:13,660 --> 00:27:15,040 Are they wired 701 00:27:15,040 --> 00:27:15,640 or wireless? 702 00:27:16,400 --> 00:27:17,280 Are they wired 703 00:27:17,280 --> 00:27:17,700 or wireless? 704 00:27:17,760 --> 00:27:18,620 The ones I've seen 705 00:27:18,620 --> 00:27:19,200 so far 706 00:27:19,200 --> 00:27:20,200 appear to be wired 707 00:27:21,460 --> 00:27:21,940 basically 708 00:27:21,940 --> 00:27:23,600 in this particular hotel 709 00:27:23,600 --> 00:27:24,660 some floors 710 00:27:24,660 --> 00:27:25,380 were passive 711 00:27:25,380 --> 00:27:26,240 and some were active 712 00:27:26,240 --> 00:27:27,020 and the difference 713 00:27:27,020 --> 00:27:27,580 physically 714 00:27:27,580 --> 00:27:29,440 was there was an extra LED 715 00:27:29,440 --> 00:27:29,540 in the room 716 00:27:29,560 --> 00:27:30,840 on the active ones 717 00:27:30,840 --> 00:27:31,840 and it would pulse 718 00:27:31,840 --> 00:27:32,500 every now and then 719 00:27:32,500 --> 00:27:33,400 to show it had a 720 00:27:33,400 --> 00:27:34,840 connection to the back end 721 00:27:35,660 --> 00:27:36,900 we didn't go as far 722 00:27:36,900 --> 00:27:38,320 as actually breaking the wire 723 00:27:38,320 --> 00:27:39,280 to see what happened 724 00:27:39,280 --> 00:27:39,620 but 725 00:27:40,280 --> 00:27:41,560 I suppose one could 726 00:27:41,560 --> 00:27:42,240 accidentally 727 00:27:44,300 --> 00:27:45,400 stick a knife 728 00:27:45,400 --> 00:27:46,040 through the wall 729 00:27:46,040 --> 00:27:46,480 or something 730 00:27:52,900 --> 00:27:54,580 Were they bound to the door 731 00:27:54,580 --> 00:27:55,200 or the door jamb? 732 00:27:55,240 --> 00:27:56,100 They were bound to the 733 00:27:56,100 --> 00:27:57,820 they were on the outside 734 00:27:57,820 --> 00:27:58,760 of the door frame 735 00:27:58,760 --> 00:27:59,820 so they were in 736 00:27:59,820 --> 00:28:00,520 the wall 737 00:28:00,520 --> 00:28:01,160 where they've got 738 00:28:01,160 --> 00:28:02,040 somewhere to route 739 00:28:02,040 --> 00:28:02,940 the stuff back 740 00:28:02,940 --> 00:28:03,580 OK 741 00:28:05,680 --> 00:28:06,620 so those are 742 00:28:06,620 --> 00:28:07,420 kind of standard 743 00:28:07,420 --> 00:28:08,600 mag stripes 744 00:28:08,600 --> 00:28:09,580 I also became 745 00:28:09,580 --> 00:28:10,360 quite interested 746 00:28:10,360 --> 00:28:11,600 in non-standard 747 00:28:11,600 --> 00:28:12,020 stripes 748 00:28:12,900 --> 00:28:14,300 and the technologies 749 00:28:14,300 --> 00:28:15,500 to be able 750 00:28:15,500 --> 00:28:16,200 to read those 751 00:28:16,200 --> 00:28:17,520 so you'll see 752 00:28:17,520 --> 00:28:17,900 on these 753 00:28:17,900 --> 00:28:18,540 you've got things 754 00:28:18,540 --> 00:28:19,760 like a stripe 755 00:28:19,760 --> 00:28:20,280 in the middle 756 00:28:20,280 --> 00:28:20,740 of the card 757 00:28:20,740 --> 00:28:21,460 instead of where 758 00:28:21,460 --> 00:28:22,380 it should normally be 759 00:28:23,400 --> 00:28:24,680 so this is front 760 00:28:24,680 --> 00:28:25,080 and back 761 00:28:25,080 --> 00:28:25,660 by the way 762 00:28:25,660 --> 00:28:26,060 so 763 00:28:26,060 --> 00:28:26,320 OK 764 00:28:29,240 --> 00:28:29,680 and 765 00:28:29,680 --> 00:28:31,000 you can use 766 00:28:31,880 --> 00:28:32,320 again 767 00:28:32,320 --> 00:28:32,880 if you saw 768 00:28:32,880 --> 00:28:33,620 my previous stuff 769 00:28:33,620 --> 00:28:34,320 I'm a great fan 770 00:28:34,320 --> 00:28:34,820 of sort of 771 00:28:34,820 --> 00:28:35,420 visualisation 772 00:28:35,420 --> 00:28:35,880 of things 773 00:28:35,880 --> 00:28:36,620 I like to be able 774 00:28:36,620 --> 00:28:37,400 to understand 775 00:28:37,400 --> 00:28:38,180 what's going on 776 00:28:38,180 --> 00:28:39,500 by visualising it 777 00:28:39,500 --> 00:28:40,580 and getting a 778 00:28:40,580 --> 00:28:41,380 feel for 779 00:28:41,380 --> 00:28:41,940 you know 780 00:28:41,940 --> 00:28:43,100 what I'm dealing with 781 00:28:44,360 --> 00:28:44,800 and 782 00:28:44,800 --> 00:28:45,380 again 783 00:28:45,380 --> 00:28:46,000 this is a 784 00:28:46,520 --> 00:28:47,180 mark of 785 00:28:47,180 --> 00:28:47,980 just how old school 786 00:28:47,980 --> 00:28:48,440 I am 787 00:28:49,080 --> 00:28:49,520 when 788 00:28:49,520 --> 00:28:50,300 the old days 789 00:28:50,300 --> 00:28:50,900 of dealing with 790 00:28:50,900 --> 00:28:51,780 half inch mag tape 791 00:28:52,520 --> 00:28:53,780 we needed this stuff 792 00:28:53,780 --> 00:28:54,380 so we 793 00:28:54,380 --> 00:28:55,500 we had this fluid 794 00:28:56,320 --> 00:28:56,520 in Tennessee 795 00:28:58,060 --> 00:28:59,220 and it's basically 796 00:28:59,220 --> 00:29:00,680 for visualising 797 00:29:00,680 --> 00:29:01,580 magnetic fields 798 00:29:02,180 --> 00:29:03,080 I had some 799 00:29:03,080 --> 00:29:03,560 lying around 800 00:29:03,560 --> 00:29:04,020 my office 801 00:29:04,020 --> 00:29:04,880 and 802 00:29:04,880 --> 00:29:06,080 they use it 803 00:29:06,080 --> 00:29:06,840 for lining up 804 00:29:06,840 --> 00:29:08,080 heads on 805 00:29:08,080 --> 00:29:08,660 on magnetic 806 00:29:09,240 --> 00:29:09,980 recording equipment 807 00:29:11,040 --> 00:29:11,960 and getting 808 00:29:11,960 --> 00:29:12,540 the lead in 809 00:29:12,540 --> 00:29:13,200 and so on 810 00:29:13,820 --> 00:29:14,520 it's actually 811 00:29:14,520 --> 00:29:15,140 made of carbon 812 00:29:15,140 --> 00:29:15,780 tetra chloride 813 00:29:16,160 --> 00:29:16,440 which 814 00:29:17,140 --> 00:29:18,220 is now banned 815 00:29:18,220 --> 00:29:19,340 as a carcinogen 816 00:29:19,340 --> 00:29:19,880 so 817 00:29:20,640 --> 00:29:21,520 don't use it 818 00:29:21,520 --> 00:29:22,160 it'll kill you 819 00:29:22,160 --> 00:29:22,960 it's fine for me 820 00:29:22,960 --> 00:29:23,400 I'm 821 00:29:24,240 --> 00:29:24,800 James Bond 822 00:29:24,800 --> 00:29:25,760 licensed to kill 823 00:29:26,320 --> 00:29:26,760 so 824 00:29:27,460 --> 00:29:27,980 but 825 00:29:28,860 --> 00:29:29,380 actually 826 00:29:30,040 --> 00:29:30,900 I've been looking 827 00:29:30,900 --> 00:29:31,640 for a replacement 828 00:29:31,640 --> 00:29:32,700 and I did find some 829 00:29:32,700 --> 00:29:33,440 I haven't used 830 00:29:33,440 --> 00:29:33,900 this stuff 831 00:29:33,900 --> 00:29:34,220 but 832 00:29:34,220 --> 00:29:35,900 it is on the market 833 00:29:35,900 --> 00:29:36,240 again 834 00:29:36,240 --> 00:29:37,240 these guys 835 00:29:37,240 --> 00:29:37,840 QCard 836 00:29:37,840 --> 00:29:38,500 have some stuff 837 00:29:38,500 --> 00:29:39,140 called QView 838 00:29:39,140 --> 00:29:40,740 which allegedly 839 00:29:40,740 --> 00:29:41,700 does the same thing 840 00:29:41,700 --> 00:29:42,480 I haven't tried it 841 00:29:42,480 --> 00:29:43,140 if anyone has 842 00:29:43,140 --> 00:29:44,220 anyone here tried it 843 00:29:44,980 --> 00:29:45,960 anyone here know 844 00:29:45,960 --> 00:29:46,520 what the hell 845 00:29:46,520 --> 00:29:47,240 I'm talking about 846 00:29:48,300 --> 00:29:48,820 no 847 00:29:48,820 --> 00:29:49,220 okay 848 00:29:49,220 --> 00:29:50,860 3M make a disc 849 00:29:50,860 --> 00:29:51,780 called 850 00:29:51,780 --> 00:29:52,400 MagnaView 851 00:29:52,400 --> 00:29:53,040 awesome 852 00:29:59,720 --> 00:30:00,180 okay 853 00:30:01,300 --> 00:30:01,760 nice 854 00:30:02,420 --> 00:30:02,880 right 855 00:30:02,880 --> 00:30:03,120 so 856 00:30:03,120 --> 00:30:03,320 yeah 857 00:30:03,320 --> 00:30:03,580 apparently 858 00:30:03,580 --> 00:30:04,520 3M do one 859 00:30:04,520 --> 00:30:05,220 where the fluid 860 00:30:05,220 --> 00:30:05,640 is actually 861 00:30:05,640 --> 00:30:06,560 between two bits 862 00:30:06,560 --> 00:30:07,300 of polyethylene 863 00:30:07,300 --> 00:30:07,740 so you 864 00:30:07,740 --> 00:30:08,120 presumably 865 00:30:08,120 --> 00:30:08,800 you just lay it 866 00:30:08,800 --> 00:30:09,600 on top of the thing 867 00:30:09,600 --> 00:30:10,900 and you can visualise 868 00:30:10,900 --> 00:30:11,740 without ever getting 869 00:30:11,740 --> 00:30:12,340 all sticky 870 00:30:12,340 --> 00:30:13,100 and disgusting 871 00:30:14,720 --> 00:30:15,180 so 872 00:30:15,180 --> 00:30:16,260 this is how 873 00:30:16,260 --> 00:30:16,700 you apply 874 00:30:17,840 --> 00:30:18,300 MagnaSee 875 00:30:18,300 --> 00:30:19,160 you just drip 876 00:30:19,160 --> 00:30:19,540 some on 877 00:30:21,920 --> 00:30:23,060 and those of you 878 00:30:23,060 --> 00:30:23,500 that saw my 879 00:30:23,500 --> 00:30:24,160 previous talk 880 00:30:24,160 --> 00:30:24,560 will probably 881 00:30:24,560 --> 00:30:24,860 expect 882 00:30:26,320 --> 00:30:26,520 the kind of stain 883 00:30:26,520 --> 00:30:27,100 you would expect 884 00:30:27,100 --> 00:30:27,920 to see in my room 885 00:30:27,920 --> 00:30:31,660 but actually 886 00:30:31,660 --> 00:30:32,100 it's 887 00:30:33,960 --> 00:30:34,860 it's very useful 888 00:30:35,480 --> 00:30:36,740 so as it dries out 889 00:30:36,740 --> 00:30:37,800 you get to see 890 00:30:37,800 --> 00:30:38,800 the stripe itself 891 00:30:40,300 --> 00:30:41,020 so this is 892 00:30:41,020 --> 00:30:41,900 the iron filings 893 00:30:41,900 --> 00:30:42,380 lining up 894 00:30:42,380 --> 00:30:43,560 on the mag fields 895 00:30:44,420 --> 00:30:45,220 it's still not 896 00:30:45,220 --> 00:30:45,760 that visible 897 00:30:45,760 --> 00:30:46,380 so I do 898 00:30:46,380 --> 00:30:47,200 the old fingerprint 899 00:30:47,200 --> 00:30:47,780 thing 900 00:30:48,760 --> 00:30:49,700 stick some tape 901 00:30:49,700 --> 00:30:50,300 across it 902 00:30:52,600 --> 00:30:53,320 peel it off 903 00:30:53,320 --> 00:30:54,020 and then stick it 904 00:30:54,020 --> 00:30:54,740 on a piece of paper 905 00:30:54,740 --> 00:30:55,280 and now you can 906 00:30:55,280 --> 00:30:55,760 really see 907 00:30:55,760 --> 00:30:56,640 what's going on 908 00:30:57,320 --> 00:30:58,220 so it looks 909 00:30:58,220 --> 00:30:59,080 just like a barcode 910 00:31:01,720 --> 00:31:02,620 does it destroy 911 00:31:05,200 --> 00:31:05,800 the card? 912 00:31:06,000 --> 00:31:06,560 no it's completely 913 00:31:06,560 --> 00:31:07,020 harmless 914 00:31:07,560 --> 00:31:08,700 you just wipe it off 915 00:31:08,700 --> 00:31:09,260 when you're done 916 00:31:09,960 --> 00:31:10,840 it doesn't 917 00:31:10,840 --> 00:31:11,640 even seem 918 00:31:11,640 --> 00:31:12,400 to make too much 919 00:31:12,400 --> 00:31:12,820 of a mess 920 00:31:12,820 --> 00:31:13,320 of the signature 921 00:31:13,320 --> 00:31:14,040 strip either 922 00:31:14,040 --> 00:31:15,180 if you get some 923 00:31:15,180 --> 00:31:16,540 on the signature 924 00:31:16,540 --> 00:31:16,980 strip 925 00:31:16,980 --> 00:31:17,620 and 926 00:31:19,120 --> 00:31:19,560 some 927 00:31:20,740 --> 00:31:21,420 of the ink 928 00:31:21,420 --> 00:31:21,860 comes off 929 00:31:21,860 --> 00:31:22,540 or something like that 930 00:31:22,540 --> 00:31:27,700 so you can see 931 00:31:27,700 --> 00:31:28,760 it's immediately obvious 932 00:31:28,760 --> 00:31:29,360 when you're looking 933 00:31:29,360 --> 00:31:29,840 at a card 934 00:31:29,840 --> 00:31:30,820 that has two stripes 935 00:31:30,820 --> 00:31:31,600 rather than one 936 00:31:31,600 --> 00:31:33,100 so instead of just 937 00:31:33,100 --> 00:31:34,340 randomly doing stuff 938 00:31:34,340 --> 00:31:34,880 on a reader 939 00:31:34,880 --> 00:31:35,580 and wondering 940 00:31:35,580 --> 00:31:36,340 why you're getting 941 00:31:36,340 --> 00:31:36,820 no result 942 00:31:36,820 --> 00:31:38,060 you can actually 943 00:31:38,060 --> 00:31:38,580 look at it 944 00:31:38,580 --> 00:31:39,400 and see what the hell 945 00:31:39,400 --> 00:31:39,860 is going on 946 00:31:39,860 --> 00:31:40,260 on the card 947 00:31:40,260 --> 00:31:40,920 so clearly 948 00:31:40,920 --> 00:31:41,260 I mean 949 00:31:41,260 --> 00:31:42,600 my photography 950 00:31:42,600 --> 00:31:43,400 is crap still 951 00:31:43,400 --> 00:31:44,120 hasn't improved 952 00:31:44,120 --> 00:31:45,020 since last time 953 00:31:46,780 --> 00:31:48,040 but you can see 954 00:31:48,040 --> 00:31:48,740 this track 955 00:31:48,740 --> 00:31:49,900 is much higher density 956 00:31:49,900 --> 00:31:50,660 than this track 957 00:31:50,660 --> 00:31:51,640 so we're already 958 00:31:51,640 --> 00:31:52,600 getting useful information 959 00:31:52,600 --> 00:31:53,120 back 960 00:31:53,120 --> 00:31:53,840 a difference 961 00:31:53,840 --> 00:31:54,480 in between 962 00:31:54,480 --> 00:31:55,220 the two tracks 963 00:31:58,560 --> 00:31:59,140 so 964 00:32:00,080 --> 00:32:01,480 the other thing 965 00:32:01,480 --> 00:32:02,360 that you can see 966 00:32:02,360 --> 00:32:03,140 is just how big 967 00:32:03,140 --> 00:32:04,160 the mag stripe 968 00:32:04,160 --> 00:32:04,520 is 969 00:32:04,520 --> 00:32:04,940 I mean 970 00:32:04,940 --> 00:32:05,900 these two stripes 971 00:32:05,900 --> 00:32:06,720 look the same 972 00:32:06,720 --> 00:32:07,740 but the actual 973 00:32:07,740 --> 00:32:08,100 track 974 00:32:08,920 --> 00:32:10,120 is laid down 975 00:32:10,120 --> 00:32:10,880 it's completely 976 00:32:10,880 --> 00:32:11,280 different 977 00:32:12,120 --> 00:32:13,140 so you get 978 00:32:13,140 --> 00:32:13,760 again 979 00:32:13,760 --> 00:32:14,200 you get 980 00:32:14,200 --> 00:32:14,720 an understanding 981 00:32:14,720 --> 00:32:15,320 of why 982 00:32:15,320 --> 00:32:15,980 you're simple 983 00:32:15,980 --> 00:32:16,440 cloning 984 00:32:20,020 --> 00:32:22,240 a British Rail 985 00:32:22,240 --> 00:32:22,660 ticket 986 00:32:22,660 --> 00:32:36,560 and that's 987 00:32:36,560 --> 00:32:36,980 presumably 988 00:32:38,220 --> 00:32:38,720 deliberately 989 00:32:38,720 --> 00:32:39,340 done that 990 00:32:39,340 --> 00:32:39,520 way 991 00:32:39,520 --> 00:32:39,960 to stop 992 00:32:39,960 --> 00:32:40,140 me 993 00:32:40,140 --> 00:32:40,680 from cloning 994 00:32:40,680 --> 00:32:41,460 the cards 995 00:32:41,460 --> 00:32:46,160 and actually 996 00:32:46,160 --> 00:32:46,780 it turns out 997 00:32:46,780 --> 00:32:47,120 that although 998 00:32:47,120 --> 00:32:47,540 the track 999 00:32:47,540 --> 00:32:47,960 was wider 1000 00:32:47,960 --> 00:32:48,020 than the 1001 00:32:48,020 --> 00:32:48,140 slider 1002 00:32:48,140 --> 00:32:49,080 the bits per inch 1003 00:32:49,080 --> 00:32:49,660 were exactly 1004 00:32:49,660 --> 00:32:50,140 the same 1005 00:32:50,140 --> 00:32:50,640 and again 1006 00:32:50,640 --> 00:32:51,940 you can see that 1007 00:32:51,940 --> 00:32:52,640 purely from the 1008 00:32:52,640 --> 00:32:53,000 visualization 1009 00:32:53,000 --> 00:32:53,840 you can look 1010 00:32:53,840 --> 00:32:55,020 at the vertical bars 1011 00:32:55,020 --> 00:32:55,780 and you can count 1012 00:32:55,780 --> 00:32:56,480 it and measure it 1013 00:32:59,360 --> 00:32:59,800 and 1014 00:33:00,620 --> 00:33:01,500 the track 1015 00:33:01,500 --> 00:33:01,980 that I really 1016 00:33:01,980 --> 00:33:02,400 wasn't getting 1017 00:33:02,400 --> 00:33:03,200 any data off 1018 00:33:03,200 --> 00:33:03,740 turns out 1019 00:33:03,740 --> 00:33:04,180 not to have 1020 00:33:04,180 --> 00:33:04,660 any on it 1021 00:33:04,660 --> 00:33:05,040 so 1022 00:33:06,480 --> 00:33:07,560 I could have wasted 1023 00:33:07,560 --> 00:33:08,180 even more 1024 00:33:08,180 --> 00:33:09,020 than the three hours 1025 00:33:09,020 --> 00:33:09,900 in that hotel room 1026 00:33:09,900 --> 00:33:10,340 that night 1027 00:33:14,320 --> 00:33:14,760 okay 1028 00:33:14,760 --> 00:33:15,160 so 1029 00:33:15,680 --> 00:33:16,120 tools 1030 00:33:16,120 --> 00:33:16,600 for actually 1031 00:33:16,980 --> 00:33:17,580 decoding the data 1032 00:33:17,580 --> 00:33:18,140 once you 1033 00:33:18,140 --> 00:33:19,440 read the mag stripe 1034 00:33:19,440 --> 00:33:19,840 down 1035 00:33:19,840 --> 00:33:20,820 to the PC 1036 00:33:21,780 --> 00:33:22,760 some of the homemade 1037 00:33:22,760 --> 00:33:23,340 devices 1038 00:33:24,080 --> 00:33:24,600 basically 1039 00:33:24,600 --> 00:33:24,900 you 1040 00:33:24,900 --> 00:33:26,140 because you're 1041 00:33:26,140 --> 00:33:26,740 piping it through 1042 00:33:26,740 --> 00:33:27,360 your sound card 1043 00:33:27,360 --> 00:33:27,880 you end up 1044 00:33:27,880 --> 00:33:28,520 with a wave file 1045 00:33:28,520 --> 00:33:29,880 so there's 1046 00:33:29,880 --> 00:33:30,900 some software 1047 00:33:30,900 --> 00:33:31,260 out there 1048 00:33:31,260 --> 00:33:32,200 that will take 1049 00:33:32,200 --> 00:33:34,020 the mag stripe 1050 00:33:34,020 --> 00:33:35,140 and turn it into 1051 00:33:35,820 --> 00:33:36,340 binary 1052 00:33:37,120 --> 00:33:38,100 and what you get 1053 00:33:38,100 --> 00:33:38,900 is a string 1054 00:33:38,900 --> 00:33:39,580 of ones 1055 00:33:39,580 --> 00:33:40,060 and zeros 1056 00:33:40,960 --> 00:33:41,480 and 1057 00:33:41,480 --> 00:33:42,440 I've written 1058 00:33:42,440 --> 00:33:43,100 a little program 1059 00:33:43,100 --> 00:33:43,920 called Binchop 1060 00:33:46,120 --> 00:33:46,480 chop this up 1061 00:33:46,480 --> 00:33:47,380 in seven bits 1062 00:33:47,380 --> 00:33:48,040 and tell me 1063 00:33:48,040 --> 00:33:49,000 if the parity works 1064 00:33:49,000 --> 00:33:49,680 or chop it up 1065 00:33:49,680 --> 00:33:50,280 in six bits 1066 00:33:50,280 --> 00:33:50,680 tell me 1067 00:33:50,680 --> 00:33:51,500 if the parity works 1068 00:33:53,000 --> 00:33:54,200 and you can grab 1069 00:33:54,200 --> 00:33:54,660 that from 1070 00:33:54,660 --> 00:33:55,420 the website 1071 00:33:55,900 --> 00:33:56,600 I'm not going 1072 00:33:56,600 --> 00:33:57,320 to bother 1073 00:33:57,320 --> 00:33:57,880 to demonstrate 1074 00:33:57,880 --> 00:33:58,400 it here 1075 00:33:58,400 --> 00:33:58,820 because we're 1076 00:33:58,820 --> 00:33:59,280 going to do 1077 00:33:59,280 --> 00:33:59,760 so much more 1078 00:33:59,760 --> 00:34:00,260 interesting 1079 00:34:00,260 --> 00:34:00,800 stuff 1080 00:34:00,800 --> 00:34:01,400 in a second 1081 00:34:03,980 --> 00:34:04,740 I also 1082 00:34:04,740 --> 00:34:05,420 to really 1083 00:34:05,420 --> 00:34:06,120 properly understand 1084 00:34:06,120 --> 00:34:06,980 what was going 1085 00:34:06,980 --> 00:34:07,360 on 1086 00:34:07,360 --> 00:34:08,440 I decided 1087 00:34:08,440 --> 00:34:09,060 to rewrite 1088 00:34:09,800 --> 00:34:10,600 that code 1089 00:34:10,600 --> 00:34:11,480 in Python 1090 00:34:11,480 --> 00:34:12,600 I've become 1091 00:34:12,600 --> 00:34:13,160 a huge fan 1092 00:34:13,160 --> 00:34:13,600 of Python 1093 00:34:13,600 --> 00:34:13,960 because 1094 00:34:13,960 --> 00:34:15,340 I haven't programmed 1095 00:34:15,340 --> 00:34:15,820 for years 1096 00:34:15,820 --> 00:34:16,380 and it's just 1097 00:34:16,380 --> 00:34:16,920 such a really 1098 00:34:16,920 --> 00:34:17,520 nice language 1099 00:34:17,520 --> 00:34:18,780 to relearn 1100 00:34:18,780 --> 00:34:19,160 to program 1101 00:34:19,160 --> 00:34:19,720 in so 1102 00:34:19,720 --> 00:34:20,520 anyone else 1103 00:34:20,520 --> 00:34:20,760 here 1104 00:34:21,380 --> 00:34:22,340 Python fans 1105 00:34:23,380 --> 00:34:23,860 yeah 1106 00:34:24,640 --> 00:34:25,480 Python rules 1107 00:34:27,460 --> 00:34:28,180 or sucks 1108 00:34:28,180 --> 00:34:28,820 depending on 1109 00:34:28,820 --> 00:34:29,140 your point 1110 00:34:29,140 --> 00:34:29,360 of view 1111 00:34:30,800 --> 00:34:31,740 I like it 1112 00:34:31,740 --> 00:34:32,920 so basically 1113 00:34:32,920 --> 00:34:33,600 I rewrote 1114 00:34:33,600 --> 00:34:34,000 it and by 1115 00:34:34,000 --> 00:34:34,540 rewriting 1116 00:34:34,540 --> 00:34:35,120 it I really 1117 00:34:35,120 --> 00:34:36,440 properly understood 1118 00:34:36,440 --> 00:34:37,820 how the system 1119 00:34:37,820 --> 00:34:38,160 works 1120 00:34:38,160 --> 00:34:39,160 and 1121 00:34:39,160 --> 00:34:40,540 I also 1122 00:34:40,540 --> 00:34:40,840 then 1123 00:34:41,440 --> 00:34:42,240 wrote 1124 00:34:42,240 --> 00:34:43,040 the code 1125 00:34:43,040 --> 00:34:43,480 the other way 1126 00:34:43,480 --> 00:34:43,740 around 1127 00:34:43,740 --> 00:34:44,260 so I can 1128 00:34:44,260 --> 00:34:44,660 generate 1129 00:34:44,660 --> 00:34:45,460 the binary 1130 00:34:45,460 --> 00:34:45,820 files 1131 00:34:45,820 --> 00:34:46,440 from the 1132 00:34:46,440 --> 00:34:48,540 oh sorry 1133 00:34:48,540 --> 00:34:49,000 the Aiken 1134 00:34:49,000 --> 00:34:49,520 biphase 1135 00:34:49,520 --> 00:34:50,600 from the 1136 00:34:50,600 --> 00:34:51,080 binary 1137 00:34:54,160 --> 00:34:54,880 now 1138 00:34:54,880 --> 00:34:55,740 in all 1139 00:34:55,740 --> 00:34:56,340 the films 1140 00:34:56,340 --> 00:34:57,860 you know 1141 00:34:57,860 --> 00:34:58,420 James Bond 1142 00:34:58,420 --> 00:34:59,180 goes into 1143 00:34:59,180 --> 00:34:59,660 a lab 1144 00:34:59,660 --> 00:35:00,400 and there's 1145 00:35:00,400 --> 00:35:00,920 like Q 1146 00:35:00,920 --> 00:35:01,720 with his 1147 00:35:01,720 --> 00:35:02,400 guys in 1148 00:35:02,400 --> 00:35:02,980 white coats 1149 00:35:02,980 --> 00:35:03,480 and shiny 1150 00:35:03,480 --> 00:35:03,920 equipment 1151 00:35:03,920 --> 00:35:04,520 and stuff 1152 00:35:04,520 --> 00:35:05,880 oh yeah 1153 00:35:05,880 --> 00:35:06,440 in reality 1154 00:35:06,440 --> 00:35:07,040 that doesn't 1155 00:35:07,040 --> 00:35:07,320 happen 1156 00:35:07,320 --> 00:35:08,100 this is what 1157 00:35:08,100 --> 00:35:08,440 your lab 1158 00:35:08,440 --> 00:35:08,980 looks like 1159 00:35:08,980 --> 00:35:10,000 it's the 1160 00:35:10,000 --> 00:35:10,560 wife's dining 1161 00:35:10,560 --> 00:35:11,180 room table 1162 00:35:11,180 --> 00:35:12,900 and all your 1163 00:35:12,900 --> 00:35:13,180 crap 1164 00:35:13,180 --> 00:35:13,740 spread out 1165 00:35:13,740 --> 00:35:14,140 on it 1166 00:35:16,480 --> 00:35:17,820 and this is 1167 00:35:17,820 --> 00:35:18,320 where we get 1168 00:35:18,320 --> 00:35:18,800 our equipment 1169 00:35:18,800 --> 00:35:19,160 from 1170 00:35:20,820 --> 00:35:21,700 some old 1171 00:35:21,700 --> 00:35:22,180 builders 1172 00:35:22,180 --> 00:35:23,260 rubbish pile 1173 00:35:23,980 --> 00:35:24,960 so basically 1174 00:35:24,960 --> 00:35:25,680 I decided 1175 00:35:25,680 --> 00:35:26,280 to build 1176 00:35:26,280 --> 00:35:27,020 my own reader 1177 00:35:27,020 --> 00:35:28,340 found this old 1178 00:35:28,340 --> 00:35:28,900 cassette deck 1179 00:35:28,900 --> 00:35:29,680 on a pile 1180 00:35:29,680 --> 00:35:30,080 of crap 1181 00:35:31,780 --> 00:35:32,900 and really 1182 00:35:32,900 --> 00:35:33,420 all you need 1183 00:35:33,420 --> 00:35:33,980 out of it 1184 00:35:33,980 --> 00:35:34,460 is the 1185 00:35:34,460 --> 00:35:35,140 mag stripe 1186 00:35:35,140 --> 00:35:35,660 head 1187 00:35:36,880 --> 00:35:37,720 so just 1188 00:35:37,720 --> 00:35:38,160 you know 1189 00:35:38,160 --> 00:35:38,820 tear them out 1190 00:35:38,820 --> 00:35:39,660 you don't need 1191 00:35:39,660 --> 00:35:40,240 the rest of it 1192 00:35:41,340 --> 00:35:42,360 and what I've 1193 00:35:42,360 --> 00:35:43,260 got somewhere 1194 00:35:43,260 --> 00:35:43,620 here 1195 00:35:43,620 --> 00:35:44,740 there it is 1196 00:35:44,740 --> 00:35:45,900 so little 1197 00:35:45,900 --> 00:35:46,300 homemade 1198 00:35:46,300 --> 00:35:46,880 reader 1199 00:35:47,560 --> 00:35:48,540 going into 1200 00:35:48,540 --> 00:35:50,020 the sound 1201 00:35:50,020 --> 00:35:50,220 card 1202 00:35:50,220 --> 00:35:50,600 input 1203 00:35:50,600 --> 00:35:51,220 on the 1204 00:35:51,220 --> 00:35:51,580 PC 1205 00:35:56,280 --> 00:35:56,360 so you get 1206 00:35:56,360 --> 00:35:56,920 something that 1207 00:35:56,920 --> 00:35:57,520 sort of looks 1208 00:35:57,520 --> 00:35:57,940 like that 1209 00:35:58,860 --> 00:35:59,980 a standard 1210 00:35:59,980 --> 00:36:00,500 wave file 1211 00:36:02,300 --> 00:36:03,220 and when you 1212 00:36:03,220 --> 00:36:03,600 look at the 1213 00:36:03,600 --> 00:36:04,060 actual data 1214 00:36:04,060 --> 00:36:04,520 what they're 1215 00:36:04,520 --> 00:36:05,240 doing at the 1216 00:36:05,240 --> 00:36:05,720 low level 1217 00:36:05,720 --> 00:36:06,840 is a thing 1218 00:36:06,840 --> 00:36:07,600 called F2F 1219 00:36:07,600 --> 00:36:08,380 which is a form 1220 00:36:08,380 --> 00:36:09,800 of frequency 1221 00:36:09,800 --> 00:36:10,880 shift keying 1222 00:36:10,880 --> 00:36:11,700 so rather 1223 00:36:11,700 --> 00:36:12,220 than actually 1224 00:36:12,220 --> 00:36:12,660 changing 1225 00:36:12,660 --> 00:36:14,960 a real 1226 00:36:14,960 --> 00:36:15,360 frequency 1227 00:36:15,360 --> 00:36:15,960 they're changing 1228 00:36:15,960 --> 00:36:16,620 the frequency 1229 00:36:16,620 --> 00:36:17,500 of an event 1230 00:36:17,500 --> 00:36:18,120 happening 1231 00:36:18,120 --> 00:36:20,240 so F2F 1232 00:36:20,240 --> 00:36:20,760 is frequency 1233 00:36:20,760 --> 00:36:21,520 twice frequency 1234 00:36:21,520 --> 00:36:22,360 which basically 1235 00:36:27,200 --> 00:36:28,800 means that 1236 00:36:28,800 --> 00:36:29,020 you're 1237 00:36:29,020 --> 00:36:29,220 changing 1238 00:36:29,220 --> 00:36:30,500 the frequency 1239 00:36:30,860 --> 00:36:31,040 and the 1240 00:36:31,040 --> 00:36:32,660 of the 1241 00:36:32,660 --> 00:36:32,740 event 1242 00:36:32,740 --> 00:36:35,280 and what that 1243 00:36:35,940 --> 00:36:36,460 means is 1244 00:36:36,460 --> 00:36:36,580 that 1245 00:36:36,580 --> 00:36:37,480 if you 1246 00:36:37,480 --> 00:36:37,620 change 1247 00:36:43,600 --> 00:36:44,760 the frequency 1248 00:36:44,760 --> 00:36:45,460 you're 1249 00:36:45,460 --> 00:36:46,140 going to 1250 00:36:46,140 --> 00:36:46,220 change 1251 00:36:46,220 --> 00:36:46,580 frequency 1252 00:36:46,580 --> 00:36:46,660 of the 1253 00:36:47,280 --> 00:36:48,600 and that 1254 00:36:49,020 --> 00:36:49,540 will 1255 00:36:50,140 --> 00:36:50,540 the 1256 00:36:50,540 --> 00:36:50,640 frequency 1257 00:36:50,640 --> 00:36:51,260 of the 1258 00:36:51,260 --> 00:36:51,740 event 1259 00:36:55,240 --> 00:36:56,080 so it's 1260 00:36:56,080 --> 00:36:56,260 going to 1261 00:36:56,280 --> 00:37:00,820 will re-clock as it goes along, so it's good in noisy environments or inaccurate 1262 00:37:00,820 --> 00:37:06,120 environments like a swipe where you may be speeding up and slowing down. So this 1263 00:37:06,120 --> 00:37:09,480 is the way it works. The mag stripe travels over the read head, you get north 1264 00:37:09,480 --> 00:37:14,660 flux transitions or south flux transitions, so you get a little pulse 1265 00:37:14,660 --> 00:37:22,560 every time that happens and that turns into that shape waveform. So if we look 1266 00:37:22,560 --> 00:37:28,020 at an actual mag stripe read, here we've got the pulses as we read the mag stripe, 1267 00:37:29,480 --> 00:37:35,240 which translates to a single pulse is a zero, two pulses is a one, single pulse 1268 00:37:35,240 --> 00:37:40,340 zero, so this is the same period, time period here. So very very simple to decode. 1269 00:37:44,380 --> 00:37:51,560 So generating them should be pretty simple. So first I generated a basic 1270 00:37:51,560 --> 00:37:52,260 sawtooth 1271 00:37:52,260 --> 00:38:00,500 so a single pulse for zero, two pulses for one. Actually when I came to play it back I 1272 00:38:00,500 --> 00:38:05,020 could not get a sensible result at all. So I figured in the end it was my sound 1273 00:38:05,020 --> 00:38:10,040 card wasn't high enough quality so I upgraded to a USB, a slightly better sound 1274 00:38:10,040 --> 00:38:13,520 card. So if you play with this stuff and you find you're just not getting 1275 00:38:13,520 --> 00:38:19,960 meaningful results, try going through a higher spec sound card. So I finally, once 1276 00:38:19,960 --> 00:38:21,440 I did that, I started to get a result. 1277 00:38:21,440 --> 00:38:27,020 But what happened is I encoded zero, zero, zero, one, zero, one and what I got out was 1278 00:38:27,020 --> 00:38:33,140 six zeros, one, one, zero, zero, one, one, which was kind of weird. Actually it turned 1279 00:38:33,140 --> 00:38:39,500 out that what was happening is on my optimized wave file it was seeing both sides of the 1280 00:38:39,500 --> 00:38:47,400 transition as a pulse. So I just modified the code to say, okay, well I don't care if 1281 00:38:47,400 --> 00:38:51,420 it's plus or minus down the center line and bingo it started working. So that's what I 1282 00:38:51,420 --> 00:38:51,900 was talking about. 1283 00:38:53,760 --> 00:39:04,040 Now a quick bit of video. I forgot to plug in the output. Have we got sound up here? 1284 00:39:17,880 --> 00:39:21,080 No, no, your input. I need an input. 1285 00:39:27,880 --> 00:39:40,300 Yeah, got it, got it, good. Now after all my hardware problems I'm hoping this is going 1286 00:39:40,300 --> 00:39:40,600 to work. 1287 00:39:46,320 --> 00:39:48,360 Please insert your stolen card now. 1288 00:39:56,380 --> 00:39:57,160 Pin number. 1289 00:39:59,160 --> 00:40:01,120 Will you hurry up? This is taking too long. 1290 00:40:01,400 --> 00:40:08,020 Go baby, go baby, go baby. All right. Pin number nine zero six. 1291 00:40:08,020 --> 00:40:09,420 Who'd you learn this stuff from anyway? 1292 00:40:09,680 --> 00:40:17,140 From my mom, my real mom I mean. This draw three zero zero bucks. Come on baby, 1293 00:40:17,260 --> 00:40:19,420 come on, come on, come on. Yes. 1294 00:40:19,960 --> 00:40:20,880 Hey, it worked. 1295 00:40:20,880 --> 00:40:25,080 All right. Easy money. Come on. 1296 00:40:26,840 --> 00:40:35,580 So how many of us saw that and thought, hmm. I wonder if that's possible. Well I did. 1297 00:40:39,700 --> 00:40:40,140 So. 1298 00:40:51,080 --> 00:40:55,060 When I talk to people about this, everyone seems to jump to the same conclusion and probably 1299 00:40:55,060 --> 00:40:59,120 half the room is going, oh yeah, I wonder about those things you put in your car and 1300 00:40:59,120 --> 00:41:07,980 you plug it into your MP3 player or whatever. If that can fool a reader into getting a 1301 00:41:07,980 --> 00:41:13,480 signal, why can't I do the same with a mag stripe? After all, inside it's just a mag 1302 00:41:13,480 --> 00:41:20,860 head, yeah? So I took a mag stripe card and I had a friend with a machine that was going 1303 00:41:20,860 --> 00:41:27,100 to a machine shop who machined out the mag stripe for me. Cut a couple of channels. 1304 00:41:28,880 --> 00:41:41,220 Got an old phone ringer and some copper wire. A bit of old saw blade. And hey presto, 1305 00:41:41,220 --> 00:41:46,300 we've got a card with a great big magnetic head in it where the mag stripe should be. 1306 00:41:51,180 --> 00:41:56,180 Now, I'm actually not able to demonstrate the final product. This is going to be an 1307 00:41:56,180 --> 00:42:04,060 ongoing thing. But what I did to actually see if this could possibly work was wired 1308 00:42:04,060 --> 00:42:09,120 directly into my reader. So I've got a standard reader here which will read a normal mag stripe 1309 00:42:09,120 --> 00:42:16,280 and I've wired a sound input into the head. So I'm going to see if I can fool the reader 1310 00:42:16,300 --> 00:42:20,500 into thinking it's seen a card by sending it away far. 1311 00:42:31,260 --> 00:42:35,980 So this is probably going to seem like a stupid question, but has anyone got a credit card 1312 00:42:35,980 --> 00:42:43,460 in the room? Anyone brave enough? I mean, I'll do it with my own, but it's kind of better 1313 00:42:43,460 --> 00:42:44,800 if it's a real one. 1314 00:42:49,100 --> 00:42:57,840 It can be expired. Come on. You've got one. Thank you. 1315 00:43:02,100 --> 00:43:06,840 Okay, so I'm really hoping this is going to work. I've had so many problems the last couple 1316 00:43:06,840 --> 00:43:07,200 of days. 1317 00:43:10,600 --> 00:43:11,060 Okay. 1318 00:43:13,840 --> 00:43:16,360 So first thing we do is grab a little sound bite. 1319 00:43:19,860 --> 00:43:20,920 How cool is that? 1320 00:43:27,380 --> 00:43:27,820 Okay. 1321 00:43:36,960 --> 00:43:44,740 Okay, so I'm going to decode Aiken binary temp test.wav. 1322 00:43:46,600 --> 00:43:49,720 Ah, crap. That doesn't look good. Try again. 1323 00:44:07,780 --> 00:44:10,020 I could get another job as a musician. 1324 00:44:12,940 --> 00:44:13,460 Okay. 1325 00:44:16,620 --> 00:44:18,500 That one looks reasonably good. 1326 00:44:31,180 --> 00:44:33,060 Okay, that looks quite helpful. 1327 00:44:40,880 --> 00:44:41,480 Yes. 1328 00:44:41,480 --> 00:44:47,640 So basically, I've taken his binary, and your name is Picard? 1329 00:44:48,840 --> 00:44:49,860 El Capitan? 1330 00:45:04,440 --> 00:45:08,300 So just to show I'm not faking it, this is a normal reader. 1331 00:45:09,680 --> 00:45:10,760 It's the mag stripe. 1332 00:45:10,760 --> 00:45:13,080 The mag stripe. So I've just read it on the mag stripe. 1333 00:45:18,320 --> 00:45:20,760 So now we're going to see if we can fool the mag stripe 1334 00:45:20,760 --> 00:45:24,180 into seeing a different version of that. 1335 00:45:36,140 --> 00:45:38,360 So what I do is take his data. 1336 00:45:43,140 --> 00:45:43,940 And say... 1337 00:45:57,300 --> 00:46:00,560 You need to give it a bunch of leading or leading zeros 1338 00:46:00,560 --> 00:46:01,920 to get the clock to sync. 1339 00:46:02,220 --> 00:46:04,800 Okay, so let's spit out a bunch of binary. 1340 00:46:05,200 --> 00:46:05,900 Change screen. 1341 00:46:07,940 --> 00:46:08,740 Oh, I'm sorry. 1342 00:46:11,980 --> 00:46:15,060 Actually, I screwed up anyway, because I hadn't sent the different data. 1343 00:46:16,000 --> 00:46:19,800 So what I'm going to do is change his name. 1344 00:46:33,700 --> 00:46:35,080 So here we have some binary. 1345 00:46:37,540 --> 00:46:40,360 And I now say, spit out a WAV file. 1346 00:46:51,360 --> 00:46:53,540 And sample rate of 25. 1347 00:46:55,040 --> 00:46:59,160 So I've now got a file on my temp directory. 1348 00:47:02,560 --> 00:47:04,480 Go back to Mr. Reader. 1349 00:47:04,520 --> 00:47:05,060 And say... 1350 00:47:16,740 --> 00:47:17,540 . 1351 00:47:18,900 --> 00:47:19,700 . 1352 00:47:31,600 --> 00:47:34,100 So when I swipe this card, 1353 00:47:34,100 --> 00:47:35,120 and they ID me, 1354 00:47:35,840 --> 00:47:37,140 it's going to have my name, 1355 00:47:37,160 --> 00:47:38,780 but your credit card details. 1356 00:47:40,640 --> 00:47:42,560 My wife thanks you for the shopping trip. 1357 00:47:42,660 --> 00:47:43,380 We'll soon be... 1358 00:47:54,960 --> 00:47:57,560 You don't know how happy I am that that worked. 1359 00:47:58,280 --> 00:48:00,660 Okay, I've got to wind up. I'm being kicked off the stage. 1360 00:48:00,780 --> 00:48:03,840 Before I go, I just wanted to give props to... 1361 00:48:04,700 --> 00:48:05,600 Joe Grand 1362 00:48:06,560 --> 00:48:08,420 for his wonderful badge. 1363 00:48:09,160 --> 00:48:11,360 And there is a challenge, of course, 1364 00:48:11,380 --> 00:48:12,900 that you need to modify these things. 1365 00:48:14,860 --> 00:48:16,080 So I've added... 1366 00:48:20,700 --> 00:48:22,400 I've added a daughter board to mine. 1367 00:48:25,040 --> 00:48:27,640 And again, from the visualisation point of view, 1368 00:48:28,240 --> 00:48:29,540 when you're testing this, 1369 00:48:29,720 --> 00:48:32,340 an IR emitter is not visible to the human eye, 1370 00:48:32,340 --> 00:48:34,140 but it is to a camera 1371 00:48:34,140 --> 00:48:36,700 so I can now run 1372 00:48:37,460 --> 00:48:38,460 TV be gone 1373 00:48:39,920 --> 00:48:41,540 or as I call it 1374 00:48:41,540 --> 00:48:42,500 TV be goon 1375 00:48:44,340 --> 00:48:44,900 so 1376 00:48:44,900 --> 00:48:47,360 come and see me if you want yours modded 1377 00:48:48,440 --> 00:48:49,000 applause 1378 00:48:50,260 --> 00:48:50,820 applause 1379 00:48:53,260 --> 00:48:53,820 applause 1380 00:48:53,820 --> 00:48:54,380 thank you 1381 00:48:55,340 --> 00:48:55,900 applause 1382 00:48:56,620 --> 00:48:57,180 applause 1383 00:48:57,800 --> 00:48:58,360 applause