1 00:00:00,000 --> 00:00:08,400 slides for this half hour but the name of the presentation is is we don't need 2 00:00:08,400 --> 00:00:14,940 no stinking badges did I get that right right and we're gonna do is just have a 3 00:00:14,940 --> 00:00:21,360 review of the Monero village because badge and what it does what to expect 4 00:00:21,360 --> 00:00:29,620 from it maybe a bit of history but how to use it just the basics right so and I 5 00:00:29,620 --> 00:00:39,380 can just say that I can just say that there are three official versions which 6 00:00:39,380 --> 00:00:45,360 were produced I have four years simply because I didn't want to remove one and 7 00:00:45,360 --> 00:00:51,120 then have this lopsided all the time so I made a single green one Christmas 8 00:00:51,120 --> 00:00:58,020 Irish Howard version that's why I was for and this is kind of the showcase 9 00:00:58,020 --> 00:00:59,340 model because I 10 00:00:59,340 --> 00:00:59,600 who is closed and you could't with the due process and so that's why but I 11 00:00:59,620 --> 00:01:01,500 been kind of demonstrating them 12 00:01:01,500 --> 00:01:03,380 and some people want to see the differences 13 00:01:04,200 --> 00:01:05,160 we have 14 00:01:05,160 --> 00:01:07,460 we have carried 15 00:01:07,460 --> 00:01:09,680 out most of the pre-sales 16 00:01:09,680 --> 00:01:11,500 distribution and there 17 00:01:11,500 --> 00:01:13,760 are some more for sale 18 00:01:13,760 --> 00:01:15,360 at some time today 19 00:01:16,480 --> 00:01:17,160 so 20 00:01:17,960 --> 00:01:19,580 what's the announcement there 21 00:01:19,580 --> 00:01:21,420 we're not 22 00:01:21,420 --> 00:01:23,420 sold out of the regular batch 23 00:01:23,420 --> 00:01:25,500 that's this orange one, don't worry 24 00:01:25,500 --> 00:01:27,740 about that, there will be more tomorrow as well 25 00:01:27,740 --> 00:01:29,320 I just have 26 00:01:29,320 --> 00:01:31,360 some reworking to do so if at 27 00:01:31,360 --> 00:01:33,440 any time you come and you want to buy 28 00:01:33,440 --> 00:01:35,180 a batch and you hear that 29 00:01:35,180 --> 00:01:37,340 there's no more, it just means 30 00:01:37,340 --> 00:01:39,380 you need to come back in three or four hours 31 00:01:39,380 --> 00:01:40,820 in two hours or tomorrow 32 00:01:40,820 --> 00:01:43,780 and don't worry, I think 33 00:01:43,780 --> 00:01:44,260 there's plenty 34 00:01:44,940 --> 00:01:46,400 the other two 35 00:01:46,400 --> 00:01:47,840 on top 36 00:01:48,800 --> 00:01:51,220 they are kind of sold out 37 00:01:51,220 --> 00:01:53,000 if you are a community member 38 00:01:53,000 --> 00:01:55,580 and you have wanted to purchase one 39 00:01:55,580 --> 00:01:57,640 but you haven't contacted me yet 40 00:01:57,640 --> 00:01:59,100 then you should do it immediately 41 00:01:59,100 --> 00:02:01,340 because there's just a handful that I've 42 00:02:01,340 --> 00:02:02,280 reserved for you 43 00:02:02,280 --> 00:02:04,820 I hope that was clear 44 00:02:04,820 --> 00:02:06,700 and as far as it goes 45 00:02:06,700 --> 00:02:08,580 I have what, 20 minutes left 46 00:02:09,880 --> 00:02:10,720 there are 47 00:02:11,520 --> 00:02:13,580 let me show a picture 48 00:02:13,580 --> 00:02:13,940 of this 49 00:02:16,900 --> 00:02:18,800 the back of the batch 50 00:02:20,060 --> 00:02:21,820 the back of the batch 51 00:02:21,820 --> 00:02:23,120 has a QR code 52 00:02:23,120 --> 00:02:24,660 on each batch 53 00:02:24,660 --> 00:02:26,720 you can point your camera at that 54 00:02:26,720 --> 00:02:27,620 with a 55 00:02:27,640 --> 00:02:29,040 QR identifier 56 00:02:29,040 --> 00:02:29,980 software 57 00:02:29,980 --> 00:02:31,360 and 58 00:02:31,360 --> 00:02:32,100 oh 59 00:02:32,100 --> 00:02:34,100 if I turn it over 60 00:02:34,100 --> 00:02:35,800 you get feedback 61 00:02:35,800 --> 00:02:39,380 and the QR code points to 62 00:02:39,380 --> 00:02:40,640 an online 63 00:02:40,640 --> 00:02:43,360 web application which was created 64 00:02:43,360 --> 00:02:44,560 by our friend Surhack 65 00:02:44,560 --> 00:02:45,880 which is very very good 66 00:02:45,880 --> 00:02:47,600 I'll show you what it looks like 67 00:02:49,260 --> 00:02:50,380 it's simply 68 00:02:51,300 --> 00:02:52,420 this here 69 00:02:52,420 --> 00:02:53,760 is there something 70 00:02:53,760 --> 00:02:54,780 I'm doing wrong 71 00:02:56,160 --> 00:02:56,920 and 72 00:02:57,780 --> 00:02:59,120 so this is it 73 00:02:59,120 --> 00:03:00,060 castello.org 74 00:03:01,880 --> 00:03:02,380 specs 75 00:03:03,040 --> 00:03:03,540 and 76 00:03:05,420 --> 00:03:06,340 I'll kind of 77 00:03:06,340 --> 00:03:07,700 do a shortcut here 78 00:03:07,700 --> 00:03:09,460 this works very well on mobile as well 79 00:03:09,460 --> 00:03:10,980 and then you can choose one of them 80 00:03:12,040 --> 00:03:14,080 the one with no colors here 81 00:03:14,080 --> 00:03:15,620 that's the regular batch 82 00:03:15,620 --> 00:03:16,720 it's quite inexpensive 83 00:03:16,720 --> 00:03:18,800 there's a blue colored one 84 00:03:18,800 --> 00:03:19,920 which is called the alien 85 00:03:19,920 --> 00:03:22,080 because we didn't have any more 86 00:03:22,080 --> 00:03:23,140 than a dumb name for that 87 00:03:23,140 --> 00:03:24,100 and there's a 88 00:03:24,100 --> 00:03:25,860 the orange colored badge 89 00:03:25,860 --> 00:03:27,040 is called the boss badge 90 00:03:27,040 --> 00:03:27,620 which is called the boss badge 91 00:03:27,620 --> 00:03:29,400 because it has kind of an authoritative 92 00:03:30,680 --> 00:03:31,640 flashing animation 93 00:03:32,560 --> 00:03:33,040 and 94 00:03:34,160 --> 00:03:35,940 I'm going to switch microphones 95 00:03:35,940 --> 00:03:36,820 can I do that? 96 00:03:37,100 --> 00:03:37,760 show it 97 00:03:37,760 --> 00:03:39,600 is it a good idea if I switch? 98 00:03:40,720 --> 00:03:41,200 okay 99 00:03:41,880 --> 00:03:42,360 alright 100 00:03:42,980 --> 00:03:43,840 we'll keep trying 101 00:03:43,840 --> 00:03:45,580 so there are those three variants 102 00:03:45,580 --> 00:03:47,020 and you can see how they look here 103 00:03:47,020 --> 00:03:49,880 and you can see how Surhack's web application 104 00:03:51,000 --> 00:03:52,200 shows them on the screen 105 00:03:52,200 --> 00:03:53,560 you can go to this URL now 106 00:03:53,560 --> 00:03:54,060 it's live 107 00:03:54,600 --> 00:03:54,840 but 108 00:03:54,840 --> 00:03:56,180 it's not complete 109 00:03:56,180 --> 00:03:56,820 so 110 00:03:57,800 --> 00:04:01,800 I'm just going to click on the regular original badge 111 00:04:01,800 --> 00:04:03,060 that's the one without colors 112 00:04:03,060 --> 00:04:04,540 it brings up here 113 00:04:04,540 --> 00:04:06,200 I think you can zoom in and out 114 00:04:06,200 --> 00:04:07,800 with some gestures 115 00:04:08,880 --> 00:04:10,800 it's good enough for that 116 00:04:10,800 --> 00:04:12,060 and here there's a slider 117 00:04:13,800 --> 00:04:14,400 so 118 00:04:15,040 --> 00:04:16,100 it's this here 119 00:04:16,100 --> 00:04:18,520 I don't even really know how this works 120 00:04:21,100 --> 00:04:21,700 okay 121 00:04:21,700 --> 00:04:22,380 and 122 00:04:24,060 --> 00:04:25,900 once you click on this 123 00:04:27,620 --> 00:04:28,400 for example 124 00:04:29,200 --> 00:04:31,360 let's move all the way to the bottom 125 00:04:33,840 --> 00:04:38,600 you can see that there are a few different components that are highlighted there 126 00:04:39,320 --> 00:04:40,920 this is kind of nonsense 127 00:04:40,920 --> 00:04:42,440 it's going to be better documentation 128 00:04:42,440 --> 00:04:44,720 but if I click on that row 129 00:04:44,720 --> 00:04:46,540 on that array of LEDs 130 00:04:47,100 --> 00:04:49,360 then it should give me some explanation here 131 00:04:49,360 --> 00:04:52,760 unfortunately it says no additional documentation for the LEDs 132 00:04:53,940 --> 00:04:55,040 it's kind of small 133 00:04:55,040 --> 00:04:55,860 I don't think 134 00:04:55,860 --> 00:04:57,580 maybe I can increase the size? 135 00:05:00,920 --> 00:05:02,080 I don't think so 136 00:05:02,080 --> 00:05:02,180 okay 137 00:05:03,860 --> 00:05:05,680 I can't increase the size 138 00:05:05,680 --> 00:05:06,860 but as you see 139 00:05:06,860 --> 00:05:09,320 it goes off the screen then 140 00:05:10,440 --> 00:05:13,340 so I'm not sure if that's going to be a good idea 141 00:05:14,160 --> 00:05:14,720 so I'm not sure if that's going to be a good idea 142 00:05:19,080 --> 00:05:20,380 yeah so okay 143 00:05:20,380 --> 00:05:22,560 I guess we'll increase the size a bit 144 00:05:22,560 --> 00:05:24,240 so if you go to the left 145 00:05:24,240 --> 00:05:26,340 there's a menu interface there 146 00:05:27,720 --> 00:05:31,080 there's a button which is called the animation button 147 00:05:31,080 --> 00:05:33,720 so if you push that just watch now 148 00:05:33,720 --> 00:05:36,900 we have the authoritative boss badge style here 149 00:05:37,520 --> 00:05:39,860 with the red and white and blue flashes 150 00:05:39,860 --> 00:05:41,720 I'll change the animation by pushing the button 151 00:05:41,720 --> 00:05:44,180 and then it moves to a different animation 152 00:05:44,180 --> 00:05:45,220 I'll change it again 153 00:05:45,220 --> 00:05:46,880 it moves to a different animation 154 00:05:46,880 --> 00:05:50,680 the boss badge is the only one that has this authoritative animation 155 00:05:50,680 --> 00:05:51,700 they're all a bit different 156 00:05:51,700 --> 00:05:53,720 it's controlled by the firmware 157 00:05:54,680 --> 00:05:57,040 and if you find that you have a badge 158 00:05:57,040 --> 00:05:57,560 and you just push the button 159 00:05:57,580 --> 00:05:58,800 and nothing happens 160 00:05:58,800 --> 00:06:01,700 it's because there's a sampling of this button 161 00:06:01,700 --> 00:06:03,240 at the end of the animation 162 00:06:03,240 --> 00:06:05,480 which takes about half a second 163 00:06:05,480 --> 00:06:06,420 almost a full second 164 00:06:06,420 --> 00:06:08,620 so if you're not just right on time 165 00:06:08,620 --> 00:06:10,580 you see how I'm pushing that and nothing happens 166 00:06:10,580 --> 00:06:13,280 the same animation is appearing 167 00:06:14,400 --> 00:06:15,240 well it's because 168 00:06:15,240 --> 00:06:16,360 I haven't pushed it long enough 169 00:06:16,360 --> 00:06:18,240 so I'm just going to push the button for a long time 170 00:06:18,240 --> 00:06:21,580 and then the animation will change to the next one 171 00:06:21,580 --> 00:06:22,560 in fact it will cycle 172 00:06:22,560 --> 00:06:24,400 if I just leave the button held down 173 00:06:24,400 --> 00:06:26,920 so that's kind of one trick that some people 174 00:06:27,580 --> 00:06:27,720 have missed 175 00:06:27,720 --> 00:06:29,820 if they think their button is not working correctly 176 00:06:29,820 --> 00:06:33,620 in some cases the button really isn't working correctly 177 00:06:33,620 --> 00:06:35,980 we've found some problems with that 178 00:06:35,980 --> 00:06:37,680 and I've replaced all of the boards 179 00:06:37,680 --> 00:06:38,800 which have problems with that 180 00:06:38,800 --> 00:06:40,480 but in case I've missed one 181 00:06:40,480 --> 00:06:43,260 then you can come up and tell me about that please 182 00:06:43,840 --> 00:06:45,960 so that's this animation button 183 00:06:46,640 --> 00:06:48,460 there is an antenna 184 00:06:48,460 --> 00:06:50,300 which you can see 185 00:06:50,300 --> 00:06:51,580 on the front 186 00:06:51,580 --> 00:06:53,320 it's embedded on the back of the board 187 00:06:53,320 --> 00:06:55,020 but it does show you 188 00:06:55,020 --> 00:06:56,160 on the front of the board 189 00:06:58,020 --> 00:06:58,960 where it 190 00:07:00,120 --> 00:07:01,880 where it should be 191 00:07:01,880 --> 00:07:02,840 in case you see 192 00:07:02,840 --> 00:07:04,420 it says NFC there 193 00:07:04,420 --> 00:07:07,500 I can't turn the animation over 194 00:07:07,500 --> 00:07:08,740 the web app over 195 00:07:08,740 --> 00:07:10,660 but I can turn this over 196 00:07:10,660 --> 00:07:12,380 and then you can see the antenna 197 00:07:12,380 --> 00:07:13,960 it's a trace antenna 198 00:07:13,960 --> 00:07:16,220 right on the PCB on the back 199 00:07:16,220 --> 00:07:17,060 works very well 200 00:07:17,060 --> 00:07:19,100 and all you need to do to test that 201 00:07:19,100 --> 00:07:21,280 I'll show you how using a real telephone 202 00:07:22,120 --> 00:07:23,620 it's kind of small for you 203 00:07:23,620 --> 00:07:24,840 I apologize for that 204 00:07:27,580 --> 00:07:28,780 it's kind of here in the front row 205 00:07:29,800 --> 00:07:31,300 so I just have a 206 00:07:31,300 --> 00:07:32,660 android telephone 207 00:07:33,780 --> 00:07:35,480 and I'm going to push 208 00:07:35,480 --> 00:07:37,480 one of the radio buttons 209 00:07:37,480 --> 00:07:39,720 to connect the EPROM 210 00:07:39,720 --> 00:07:41,180 which is over here 211 00:07:42,060 --> 00:07:43,100 with the antenna 212 00:07:48,580 --> 00:07:50,480 yeah this is a really nice application 213 00:07:50,480 --> 00:07:51,860 so I'm going to push 214 00:07:51,860 --> 00:07:52,900 one of these buttons 215 00:07:53,820 --> 00:07:55,060 in order to connect 216 00:07:55,860 --> 00:07:56,900 this EPROM 217 00:07:57,580 --> 00:07:58,220 which is called U2 218 00:07:58,220 --> 00:07:59,240 with the antenna 219 00:07:59,240 --> 00:08:00,220 let's see what happens 220 00:08:03,160 --> 00:08:04,100 first of all 221 00:08:04,100 --> 00:08:05,260 if I do nothing at all 222 00:08:07,040 --> 00:08:09,860 if I do nothing at all 223 00:08:13,520 --> 00:08:15,420 if I do nothing at all 224 00:08:15,420 --> 00:08:16,940 usually when you tap 225 00:08:16,940 --> 00:08:18,720 a NFC tag to a device 226 00:08:18,720 --> 00:08:19,360 like a telephone 227 00:08:19,360 --> 00:08:20,120 it registers 228 00:08:20,120 --> 00:08:22,620 but I have not connected the antenna 229 00:08:22,620 --> 00:08:24,680 to the EPROM 230 00:08:27,580 --> 00:08:27,760 so this is called 231 00:08:27,760 --> 00:08:30,900 if you lay your phone down on a table 232 00:08:30,900 --> 00:08:32,200 or any NFC tag 233 00:08:32,200 --> 00:08:33,920 especially a passive NFC device 234 00:08:33,920 --> 00:08:36,640 a table may have an embedded 235 00:08:36,640 --> 00:08:38,720 active NFC circuit in it 236 00:08:38,720 --> 00:08:40,120 they will steal your data 237 00:08:40,120 --> 00:08:41,700 whatever is on your NFC tag 238 00:08:41,700 --> 00:08:44,200 this is called an opportunistic data attack 239 00:08:44,200 --> 00:08:45,680 or passive data theft 240 00:08:45,680 --> 00:08:48,640 and we protect against that 241 00:08:48,640 --> 00:08:49,920 by forcing the user 242 00:08:49,920 --> 00:08:52,200 to actually push onto the button 243 00:08:52,200 --> 00:08:54,980 so now I will repeat the test 244 00:08:57,580 --> 00:08:58,420 you see at the bottom 245 00:08:58,420 --> 00:08:59,580 something appeared there 246 00:08:59,580 --> 00:09:02,460 because it is detecting 247 00:09:02,460 --> 00:09:05,580 that a tag is being placed 248 00:09:05,580 --> 00:09:06,560 on the back of the telephone 249 00:09:06,560 --> 00:09:09,320 and because it is a type 4 250 00:09:09,320 --> 00:09:10,120 NFC tag 251 00:09:10,120 --> 00:09:11,520 it really can hold anything 252 00:09:11,520 --> 00:09:13,800 I think there is about 20 profiles 253 00:09:13,800 --> 00:09:16,360 or maybe 15 official ones 254 00:09:16,360 --> 00:09:18,580 and there is an additional 5 or so 255 00:09:18,580 --> 00:09:20,780 which other application developers 256 00:09:21,300 --> 00:09:23,980 have added 257 00:09:23,980 --> 00:09:25,660 to the official 258 00:09:25,660 --> 00:09:25,980 print 259 00:09:27,840 --> 00:09:29,720 and there is a disclaimer paper 260 00:09:30,340 --> 00:09:31,760 that comes with the badge 261 00:09:31,760 --> 00:09:33,420 you can read a few things on there 262 00:09:33,420 --> 00:09:34,900 frequently asked questions 263 00:09:34,900 --> 00:09:36,840 it tells you a bit about the NFC standard 264 00:09:36,840 --> 00:09:39,460 what RFID frequency it uses 265 00:09:39,460 --> 00:09:40,060 and so on 266 00:09:40,060 --> 00:09:42,220 but the basic idea is 267 00:09:42,220 --> 00:09:43,300 that you can use the badge 268 00:09:43,300 --> 00:09:44,520 with a telephone for example 269 00:09:44,520 --> 00:09:46,580 as long as it has a built in NFC circuit 270 00:09:46,580 --> 00:09:49,120 there are a number of other advanced devices 271 00:09:50,860 --> 00:09:52,880 all over the world that use NFC 272 00:09:52,880 --> 00:09:54,220 our good friend 273 00:09:56,700 --> 00:09:57,180 M2049R 274 00:09:57,580 --> 00:09:58,360 I think you can state 275 00:10:00,820 --> 00:10:01,380 M249R 276 00:10:01,380 --> 00:10:04,240 he developed 277 00:10:05,080 --> 00:10:06,540 he implemented it 278 00:10:06,540 --> 00:10:08,240 into Monorujo 279 00:10:08,240 --> 00:10:09,940 just to support our badges 280 00:10:09,940 --> 00:10:12,420 so if you really want to experiment 281 00:10:12,420 --> 00:10:15,380 if you really have almost no funds at all 282 00:10:15,380 --> 00:10:16,880 or if you are really 283 00:10:17,360 --> 00:10:18,860 happy to live on the edge 284 00:10:18,860 --> 00:10:20,240 and feel the risk of using it 285 00:10:20,240 --> 00:10:21,840 then you can do some experiments 286 00:10:21,840 --> 00:10:22,880 with Monorujo 287 00:10:22,880 --> 00:10:24,380 and the badge 288 00:10:27,580 --> 00:10:28,800 so now you know 289 00:10:28,800 --> 00:10:30,400 what you can do with the badge 290 00:10:30,400 --> 00:10:33,280 it has a light loop 291 00:10:33,280 --> 00:10:34,260 animation 292 00:10:34,260 --> 00:10:36,940 you can effect that by pressing 293 00:10:36,940 --> 00:10:38,720 on the animation button 294 00:10:38,720 --> 00:10:39,840 to change the animation 295 00:10:40,780 --> 00:10:42,500 and on the other side 296 00:10:42,500 --> 00:10:43,740 of the badge 297 00:10:43,740 --> 00:10:45,980 it has the NFC circuit 298 00:10:45,980 --> 00:10:48,980 which you can press on either of those two buttons 299 00:10:48,980 --> 00:10:50,180 to selectively 300 00:10:50,180 --> 00:10:52,020 connect the antenna 301 00:10:52,020 --> 00:10:54,000 to one of the two earplugs 302 00:10:54,000 --> 00:10:56,400 and one earplug can hold 303 00:10:57,580 --> 00:10:58,080 the V card 304 00:10:58,080 --> 00:10:59,720 and the other earplug can hold 305 00:10:59,720 --> 00:11:02,660 your telephone number or URI 306 00:11:04,100 --> 00:11:04,980 it's up to you 307 00:11:04,980 --> 00:11:06,520 you just have to program it yourself 308 00:11:07,040 --> 00:11:09,280 if you want to know how to program that 309 00:11:09,280 --> 00:11:10,300 the way I do it 310 00:11:10,900 --> 00:11:13,160 I just use my telephone 311 00:11:13,160 --> 00:11:14,560 and I download 312 00:11:15,060 --> 00:11:16,140 an Android app 313 00:11:16,140 --> 00:11:19,220 something that puts a C in here 314 00:11:19,720 --> 00:11:21,600 I'm sure there's quite a lot of them 315 00:11:21,600 --> 00:11:23,080 the ones that I've been using 316 00:11:23,080 --> 00:11:25,560 are Ctools since they work quite well 317 00:11:25,560 --> 00:11:26,040 um 318 00:11:27,580 --> 00:11:27,840 right 319 00:11:27,840 --> 00:11:30,360 and that's the NFC circuit 320 00:11:31,940 --> 00:11:33,540 once you look through 321 00:11:33,540 --> 00:11:35,040 you're going to see a lot of things 322 00:11:35,040 --> 00:11:36,900 that are well documented 323 00:11:37,440 --> 00:11:37,720 um 324 00:11:38,920 --> 00:11:40,760 there's a power button on the side 325 00:11:40,760 --> 00:11:42,360 I think that's self explanatory 326 00:11:42,360 --> 00:11:45,220 the batteries 327 00:11:45,220 --> 00:11:47,520 that we're distributing with the badges 328 00:11:47,520 --> 00:11:49,180 are kind of 329 00:11:49,860 --> 00:11:51,160 not low quality 330 00:11:51,160 --> 00:11:52,720 but not high quality either 331 00:11:52,720 --> 00:11:55,100 it's impossible for us to test them all 332 00:11:55,100 --> 00:11:56,520 so we assume 333 00:11:57,580 --> 00:11:59,720 that although a fully fresh 334 00:11:59,720 --> 00:12:01,580 high quality battery 335 00:12:01,580 --> 00:12:03,180 lasts for about four days 336 00:12:03,180 --> 00:12:05,500 you're only going to get about two days 337 00:12:05,500 --> 00:12:07,960 maybe even one and a half days worth of life 338 00:12:07,960 --> 00:12:09,140 with these batteries 339 00:12:09,140 --> 00:12:10,300 so just be careful with that 340 00:12:10,300 --> 00:12:13,000 if you do want to use this 341 00:12:13,000 --> 00:12:14,200 battery for your 342 00:12:14,200 --> 00:12:17,480 for your entire DEF CON experience 343 00:12:18,160 --> 00:12:19,660 then you probably want to 344 00:12:19,660 --> 00:12:20,840 turn it off once in a while 345 00:12:20,840 --> 00:12:22,560 maybe just use it in the evening 346 00:12:22,560 --> 00:12:23,780 when the parties 347 00:12:24,400 --> 00:12:25,360 everyone's lit up 348 00:12:27,580 --> 00:12:27,740 but I would recommend 349 00:12:27,740 --> 00:12:29,200 that you have a second battery 350 00:12:29,200 --> 00:12:30,640 if you really want to make sure 351 00:12:30,640 --> 00:12:33,460 you have a backup source of energy 352 00:12:33,460 --> 00:12:35,720 in case the battery we supply you with 353 00:12:35,720 --> 00:12:38,980 goes out and is drained after 354 00:12:38,980 --> 00:12:40,220 say Saturday 355 00:12:40,220 --> 00:12:41,740 tomorrow afternoon 356 00:12:42,480 --> 00:12:44,680 so you should have a second battery 357 00:12:44,680 --> 00:12:46,240 possibly something new 358 00:12:46,240 --> 00:12:46,700 um 359 00:12:47,840 --> 00:12:50,400 what else can I say about this 360 00:12:50,400 --> 00:12:50,740 um 361 00:12:51,400 --> 00:12:53,480 there are two programming interfaces 362 00:12:54,340 --> 00:12:55,920 so by the way 363 00:12:57,580 --> 00:12:58,600 I don't really know what a resistor is 364 00:12:58,600 --> 00:13:00,560 so he wrote transistors on here 365 00:13:01,460 --> 00:13:03,020 there's a few mistakes like that 366 00:13:03,020 --> 00:13:04,140 don't worry I'm going to fix them 367 00:13:04,140 --> 00:13:05,360 and um 368 00:13:05,360 --> 00:13:07,940 there's a couple programming interfaces 369 00:13:07,940 --> 00:13:10,500 if you've ever used an Arduino before 370 00:13:10,500 --> 00:13:11,400 um 371 00:13:11,400 --> 00:13:13,400 you maybe have been exposed to the 372 00:13:13,400 --> 00:13:15,920 AVR 8-bit microcontroller 373 00:13:15,920 --> 00:13:16,700 um 374 00:13:17,680 --> 00:13:18,700 instruction set 375 00:13:18,700 --> 00:13:21,520 and so this is 376 00:13:22,320 --> 00:13:25,100 it's not an AT Mega 377 00:13:25,100 --> 00:13:26,360 but it's an AT Tiny 378 00:13:27,580 --> 00:13:31,100 so it uses an AVR 8-bit instruction set as well 379 00:13:31,100 --> 00:13:32,220 which means 380 00:13:32,220 --> 00:13:33,760 that if you want to program 381 00:13:33,760 --> 00:13:36,380 if you don't like these animations 382 00:13:36,380 --> 00:13:37,440 you like animations 383 00:13:37,440 --> 00:13:38,580 you want to put some other 384 00:13:38,580 --> 00:13:39,680 your own on there 385 00:13:39,680 --> 00:13:40,480 you can do that 386 00:13:40,480 --> 00:13:44,420 by programming using an Arduino style connector 387 00:13:44,420 --> 00:13:45,980 which is not populated 388 00:13:45,980 --> 00:13:47,060 it's this one here 389 00:13:47,060 --> 00:13:48,920 let me see 390 00:13:48,920 --> 00:13:49,960 not that one 391 00:13:49,960 --> 00:13:50,720 but 392 00:13:52,960 --> 00:13:53,560 Arduino 393 00:13:57,580 --> 00:13:57,960 interface 394 00:13:57,960 --> 00:13:59,940 but I don't see it in the list 395 00:13:59,940 --> 00:14:01,100 it must be up here somewhere 396 00:14:01,100 --> 00:14:01,540 here it is 397 00:14:01,540 --> 00:14:03,180 so that's 398 00:14:03,180 --> 00:14:04,060 I don't have a laser 399 00:14:04,060 --> 00:14:05,140 but I think it's clear enough 400 00:14:05,140 --> 00:14:07,420 it's those very large holes 401 00:14:07,420 --> 00:14:08,740 there's six holes 402 00:14:08,740 --> 00:14:11,620 and I actually have some header pins 403 00:14:11,620 --> 00:14:13,720 for the more adventurous of you 404 00:14:13,720 --> 00:14:15,200 if you know how to program 405 00:14:15,720 --> 00:14:16,160 um 406 00:14:16,160 --> 00:14:18,200 MCUs and you want to try doing that 407 00:14:18,200 --> 00:14:20,180 then I can give you some header pins 408 00:14:27,580 --> 00:14:29,700 I think tomorrow there is a two hour workshop 409 00:14:29,700 --> 00:14:30,420 that's 410 00:14:30,420 --> 00:14:33,120 which we'll learn 411 00:14:33,120 --> 00:14:34,540 how to program our badges 412 00:14:34,540 --> 00:14:36,920 there's not much you can do with them 413 00:14:36,920 --> 00:14:38,920 you can't connect microphones 414 00:14:39,260 --> 00:14:40,120 or sensors 415 00:14:40,120 --> 00:14:42,240 you can't do serial exchanges 416 00:14:42,240 --> 00:14:44,820 you don't have serial buses like SPI 417 00:14:44,820 --> 00:14:45,480 or I2C 418 00:14:45,480 --> 00:14:47,860 it's a very simple microcontroller 419 00:14:47,860 --> 00:14:48,540 what's on here 420 00:14:48,540 --> 00:14:51,060 so you have some GPIOs which are digital only 421 00:14:51,060 --> 00:14:51,600 which means 422 00:14:51,600 --> 00:14:56,460 they send 3.3 volt signals out 423 00:14:57,580 --> 00:14:58,100 square wave 424 00:14:58,100 --> 00:15:01,720 or read a 3.3 volt signal 425 00:15:01,720 --> 00:15:03,460 you can do some programming 426 00:15:03,460 --> 00:15:05,820 but it's very very primitive 427 00:15:05,820 --> 00:15:06,660 right 428 00:15:06,660 --> 00:15:07,820 and um 429 00:15:07,820 --> 00:15:10,940 as a last demonstration 430 00:15:11,550 --> 00:15:13,400 because I think we're pretty well 431 00:15:13,400 --> 00:15:14,540 through the features 432 00:15:14,540 --> 00:15:16,820 if you don't understand NFC 433 00:15:16,820 --> 00:15:17,740 you've never used it before 434 00:15:17,740 --> 00:15:19,340 then it's nice 435 00:15:19,340 --> 00:15:20,900 there's no risk in using this 436 00:15:20,900 --> 00:15:23,440 just do the risky things 437 00:15:23,440 --> 00:15:25,540 start with vcards 438 00:15:37,160 --> 00:15:39,640 read through what your choices are 439 00:15:40,860 --> 00:15:42,760 as some people are using this 440 00:15:42,760 --> 00:15:44,740 for SSH keys and GPG keys 441 00:15:44,740 --> 00:15:45,720 you can do that 442 00:15:45,720 --> 00:15:47,280 but it's kind of the next level up 443 00:15:47,280 --> 00:15:48,700 because if you lose that data 444 00:15:48,700 --> 00:15:49,440 for some reason 445 00:15:49,440 --> 00:15:51,560 if you generate a new GPG key 446 00:15:51,560 --> 00:15:52,800 you start using that 447 00:15:52,800 --> 00:15:53,660 you don't have a backup 448 00:15:53,660 --> 00:15:55,300 because you have it on your badge 449 00:15:55,300 --> 00:15:56,440 and then something happens 450 00:15:56,440 --> 00:15:57,500 your badge is stolen 451 00:15:57,500 --> 00:15:57,560 and then something happens 452 00:15:57,580 --> 00:16:00,040 or you wipe the EPROM 453 00:16:00,040 --> 00:16:00,660 or whatever 454 00:16:00,660 --> 00:16:02,740 then you've just lost your GPG key 455 00:16:02,740 --> 00:16:03,900 it's just not very nice 456 00:16:03,900 --> 00:16:05,780 so be careful with the badges 457 00:16:05,780 --> 00:16:06,520 they're powerful 458 00:16:08,000 --> 00:16:09,280 last thing 459 00:16:09,280 --> 00:16:11,880 I'm not going to make a new program 460 00:16:11,880 --> 00:16:14,020 but I'll show you what I use 461 00:16:14,020 --> 00:16:15,080 for programming 462 00:16:16,720 --> 00:16:18,420 basically it's called Adam 463 00:16:19,100 --> 00:16:20,880 it's called platform IO 464 00:16:20,880 --> 00:16:22,500 maybe some of you know that 465 00:16:22,500 --> 00:16:25,000 you can program them with Arduino IDE 466 00:16:25,000 --> 00:16:26,820 as well but I'm more experienced 467 00:16:27,580 --> 00:16:28,540 with platform IO 468 00:16:28,540 --> 00:16:31,220 so that's what I'm using 469 00:16:31,220 --> 00:16:33,320 and it begins here 470 00:16:33,320 --> 00:16:35,440 starts here 471 00:16:35,440 --> 00:16:36,860 I'm not sure 472 00:16:37,600 --> 00:16:38,800 I'm sorry 473 00:16:38,800 --> 00:16:40,060 take that back 474 00:16:40,060 --> 00:16:41,680 I can't demonstrate this 475 00:16:41,680 --> 00:16:44,700 because I'm using a different account 476 00:16:44,700 --> 00:16:46,300 to present it 477 00:16:46,300 --> 00:16:48,420 I'm using the present account 478 00:16:48,420 --> 00:16:51,620 so what I usually do 479 00:16:51,620 --> 00:16:52,920 this will be obvious tomorrow 480 00:16:52,920 --> 00:16:54,560 as we do the two hour workshop 481 00:16:54,560 --> 00:16:55,700 there's no time now 482 00:16:57,580 --> 00:16:58,540 we'll do some programming 483 00:16:58,540 --> 00:16:59,800 and testing demonstrations 484 00:16:59,800 --> 00:17:02,520 and you can even program your own chip 485 00:17:02,520 --> 00:17:04,260 with your own firmware if you like 486 00:17:05,140 --> 00:17:06,360 that's the very beginning 487 00:17:06,360 --> 00:17:07,440 this is the IDE 488 00:17:08,200 --> 00:17:09,840 start typing some code 489 00:17:09,840 --> 00:17:11,260 AVR code here 490 00:17:11,260 --> 00:17:13,340 hello world and so on 491 00:17:14,440 --> 00:17:17,020 and then manipulate the GPIOs 492 00:17:17,020 --> 00:17:18,440 to make them flash on and off 493 00:17:18,440 --> 00:17:20,040 we do some Charlie flexing 494 00:17:20,040 --> 00:17:22,300 so that we can use more LEDs 495 00:17:22,300 --> 00:17:24,040 than there are GPIO pins 496 00:17:24,040 --> 00:17:25,320 things like that 497 00:17:27,580 --> 00:17:29,200 so we've compiled the source code 498 00:17:29,200 --> 00:17:30,200 in the usual way 499 00:17:30,200 --> 00:17:32,900 then we flash it using AVR dude 500 00:17:32,900 --> 00:17:35,560 which is a command line program 501 00:17:35,560 --> 00:17:37,020 as you can imagine 502 00:17:37,020 --> 00:17:39,020 there are many different ways to do this 503 00:17:39,320 --> 00:17:41,540 but this is AVR dude 504 00:17:41,540 --> 00:17:43,360 and this is my favorite method 505 00:17:43,360 --> 00:17:45,680 of programming the MCU 506 00:17:45,680 --> 00:17:47,420 using firmware 507 00:17:47,420 --> 00:17:48,420 that we have compiled 508 00:17:48,420 --> 00:17:49,800 using platform IO 509 00:17:49,800 --> 00:17:53,640 so that was a mouthful 510 00:17:53,640 --> 00:17:55,600 I know it's a bit difficult 511 00:17:55,600 --> 00:17:57,040 to understand if you've never programmed 512 00:17:57,580 --> 00:17:59,800 but that's what the workshop is for tomorrow 513 00:17:59,800 --> 00:18:01,780 I've just basically showed you 514 00:18:01,780 --> 00:18:03,160 the first two steps that I do 515 00:18:03,160 --> 00:18:04,280 I use platform IO 516 00:18:04,280 --> 00:18:06,920 to write the code and compile it 517 00:18:06,920 --> 00:18:08,580 using GCC AVR 518 00:18:08,580 --> 00:18:11,220 because it's not Intel instruction set 519 00:18:11,220 --> 00:18:12,300 so we have to use a different 520 00:18:12,980 --> 00:18:13,980 compiler for that 521 00:18:13,980 --> 00:18:16,060 and then once I have the compiled firmware 522 00:18:16,060 --> 00:18:18,300 I send it to the device 523 00:18:18,300 --> 00:18:20,620 using this AVR dude software 524 00:18:20,620 --> 00:18:22,760 and there's a special cable for that as well 525 00:18:23,340 --> 00:18:24,840 and that goes full loop 526 00:18:25,520 --> 00:18:27,400 back to these two 527 00:18:27,580 --> 00:18:28,040 interfaces 528 00:18:28,040 --> 00:18:30,740 this is where you connect to the MCU 529 00:18:30,740 --> 00:18:32,400 this is the SPI interface 530 00:18:32,400 --> 00:18:34,260 and that's what I said before 531 00:18:34,260 --> 00:18:36,020 the six large holes 532 00:18:36,020 --> 00:18:37,580 and the second one 533 00:18:37,580 --> 00:18:39,160 which is identical 534 00:18:39,160 --> 00:18:41,420 it's just connect interface 535 00:18:42,500 --> 00:18:44,800 so there's just five minutes left 536 00:18:44,800 --> 00:18:47,300 but I would welcome any questions 537 00:18:47,300 --> 00:18:48,240 about the badge 538 00:18:49,270 --> 00:18:50,020 any questions? 539 00:18:55,260 --> 00:18:56,980 maybe I was very thorough 540 00:19:14,700 --> 00:19:17,660 I think you're not talking about 541 00:19:17,660 --> 00:19:18,360 profiles 542 00:19:18,360 --> 00:19:19,820 I think the question is 543 00:19:19,820 --> 00:19:21,100 how much storage 544 00:19:21,100 --> 00:19:22,460 can these badges hold? 545 00:19:22,760 --> 00:19:24,000 is it a megabyte 546 00:19:24,000 --> 00:19:24,840 is it one byte 547 00:19:24,840 --> 00:19:25,700 or something in between 548 00:19:25,700 --> 00:19:26,560 the answer is 549 00:19:26,560 --> 00:19:27,560 the regular storage 550 00:19:27,580 --> 00:19:29,720 the ones that are still available 551 00:19:29,720 --> 00:19:31,440 they're very inexpensive 552 00:19:31,440 --> 00:19:32,220 by the way 553 00:19:32,220 --> 00:19:35,040 $25 and that's why we're using 554 00:19:35,040 --> 00:19:37,620 low rated chipsets 555 00:19:37,620 --> 00:19:39,480 and EPROMs and ICs for them 556 00:19:39,480 --> 00:19:41,500 and that's why they can store only 557 00:19:41,500 --> 00:19:43,440 two kilobits of information 558 00:19:43,440 --> 00:19:44,600 which means 559 00:19:45,580 --> 00:19:46,580 256 bytes 560 00:19:46,580 --> 00:19:48,980 so some people say 561 00:19:49,580 --> 00:19:51,700 oh that's quite a lot for NFC 562 00:19:51,700 --> 00:19:52,800 that's all I need 563 00:19:52,800 --> 00:19:53,940 that's a standard amount 564 00:19:53,940 --> 00:19:55,940 but really it's not very much 565 00:19:57,580 --> 00:19:59,260 you know something you type in the browser 566 00:19:59,260 --> 00:20:01,020 that's going to be something like 567 00:20:01,020 --> 00:20:02,680 I don't know 40 bytes 568 00:20:02,680 --> 00:20:04,320 20 bytes something like that 569 00:20:04,320 --> 00:20:06,340 so it's plenty for that type of application 570 00:20:06,340 --> 00:20:09,160 but if you're doing 4096 bit RSA keys 571 00:20:09,160 --> 00:20:11,120 and so on I think it won't work for that 572 00:20:11,120 --> 00:20:12,200 on the other hand 573 00:20:12,200 --> 00:20:14,360 the Alien and the Boss badges 574 00:20:14,360 --> 00:20:17,740 have identical NFC EPROMs 575 00:20:17,740 --> 00:20:19,280 on there and they're much larger 576 00:20:19,280 --> 00:20:21,480 they are 64 kilobits 577 00:20:21,480 --> 00:20:23,340 so that means you have 578 00:20:23,340 --> 00:20:25,600 8 kilobytes of storage 579 00:20:25,600 --> 00:20:27,560 don't forget there's two EPROMs 580 00:20:27,580 --> 00:20:28,580 on each badge 581 00:20:28,580 --> 00:20:31,160 so you're not going to want to 582 00:20:31,160 --> 00:20:32,460 split your data in half 583 00:20:32,460 --> 00:20:35,440 but it's common 584 00:20:35,440 --> 00:20:38,060 to put more than one type of data 585 00:20:38,060 --> 00:20:40,040 kind of multiplex it 586 00:20:40,040 --> 00:20:41,620 on a single NFC tag 587 00:20:41,620 --> 00:20:43,000 and you don't have to do that 588 00:20:43,000 --> 00:20:43,440 in this case 589 00:20:43,440 --> 00:20:44,680 because you have two on the badge 590 00:20:45,860 --> 00:20:47,700 as far as profiles go 591 00:20:47,700 --> 00:20:48,900 you didn't ask the question 592 00:20:48,900 --> 00:20:49,920 but I find it interesting 593 00:20:49,920 --> 00:20:51,260 so I'm just going to 594 00:20:51,260 --> 00:20:53,360 if I can quickly find applications 595 00:20:57,580 --> 00:20:59,160 like R which I was talking about 596 00:20:59,860 --> 00:21:02,140 and because you can't see the screen 597 00:21:02,140 --> 00:21:03,140 I'll just read them off 598 00:21:03,140 --> 00:21:04,640 I'm going to make a new data set 599 00:21:04,640 --> 00:21:05,420 and I can choose 600 00:21:05,420 --> 00:21:07,240 and these are all standard profiles 601 00:21:07,240 --> 00:21:09,620 text which is agnostic data 602 00:21:09,620 --> 00:21:10,880 just in text form 603 00:21:10,880 --> 00:21:13,980 URL or URI is a second profile 604 00:21:15,700 --> 00:21:18,060 user defined URL URI 605 00:21:18,060 --> 00:21:19,260 not sure what that is 606 00:21:19,260 --> 00:21:20,260 a search 607 00:21:20,260 --> 00:21:22,680 I don't know what any of these are 608 00:21:22,680 --> 00:21:23,060 sorry 609 00:21:23,060 --> 00:21:24,800 a search is a profile 610 00:21:27,580 --> 00:21:29,560 an archive 611 00:21:29,560 --> 00:21:32,030 application URI 612 00:21:32,380 --> 00:21:33,360 email 613 00:21:33,360 --> 00:21:34,160 contact 614 00:21:34,160 --> 00:21:35,440 telephone number 615 00:21:35,440 --> 00:21:35,900 SMS 616 00:21:35,900 --> 00:21:37,180 a place 617 00:21:37,180 --> 00:21:39,920 a user defined place 618 00:21:39,920 --> 00:21:41,620 I'm translating from German 619 00:21:41,620 --> 00:21:43,840 a user defined place 620 00:21:43,840 --> 00:21:44,820 an address 621 00:21:44,820 --> 00:21:48,540 a seal address 622 00:21:49,820 --> 00:21:50,960 a 623 00:21:50,960 --> 00:21:54,320 a seal address 624 00:21:54,320 --> 00:21:55,660 target address 625 00:21:57,580 --> 00:21:59,040 a search 626 00:21:59,040 --> 00:22:00,520 a location search 627 00:22:00,520 --> 00:22:01,540 a street view 628 00:22:01,540 --> 00:22:03,480 an emergency information 629 00:22:03,480 --> 00:22:06,240 and Bluetooth URI 630 00:22:06,240 --> 00:22:09,200 Wi-Fi address 631 00:22:09,200 --> 00:22:10,660 and data 632 00:22:10,660 --> 00:22:11,860 agnostic data 633 00:22:11,860 --> 00:22:13,760 so there's all these things you can do 634 00:22:15,500 --> 00:22:17,220 any last question 635 00:22:17,220 --> 00:22:19,660 before we wrap up 636 00:22:19,660 --> 00:22:21,300 do you have a question 637 00:22:24,300 --> 00:22:27,160 can you connect two badges to each other 638 00:22:27,580 --> 00:22:29,280 you can if there are DEFCON badges 639 00:22:29,940 --> 00:22:30,580 but 640 00:22:31,500 --> 00:22:32,700 okay so the question is 641 00:22:32,700 --> 00:22:34,920 can you connect two badges to each other 642 00:22:34,920 --> 00:22:37,720 and I think we're talking still about the village badge 643 00:22:37,720 --> 00:22:39,480 because they are 644 00:22:39,480 --> 00:22:40,980 passive NFC circuits 645 00:22:41,420 --> 00:22:43,300 they don't have any energy 646 00:22:43,300 --> 00:22:45,800 in fact if I remove the battery 647 00:22:45,800 --> 00:22:47,020 I can still use the 648 00:22:47,020 --> 00:22:49,340 side so if you think 649 00:22:49,340 --> 00:22:50,620 along with me 650 00:22:51,480 --> 00:22:53,260 then that implies 651 00:22:53,260 --> 00:22:54,520 an answer doesn't it 652 00:22:54,520 --> 00:22:57,300 because at least one of the two devices 653 00:22:57,580 --> 00:22:59,460 like I demonstrated before the telephone 654 00:22:59,460 --> 00:23:01,400 must have must be powered 655 00:23:01,400 --> 00:23:03,380 must have some battery some voltage 656 00:23:03,380 --> 00:23:05,580 because it's going to transfer energy 657 00:23:05,580 --> 00:23:07,660 badge to the NFC circuit 658 00:23:07,660 --> 00:23:09,420 so that the circuit can work 659 00:23:09,420 --> 00:23:11,460 and that means that two badges 660 00:23:11,460 --> 00:23:13,600 placed next to each other 661 00:23:13,600 --> 00:23:14,740 will do nothing 662 00:23:14,740 --> 00:23:16,400 there's no energy anywhere for 663 00:23:16,400 --> 00:23:18,060 to supply them with energy 664 00:23:18,060 --> 00:23:19,460 so that does not work 665 00:23:19,460 --> 00:23:22,860 just the same as if you have a library card 666 00:23:22,860 --> 00:23:24,240 with an NFC tag inside 667 00:23:24,240 --> 00:23:26,400 and your student card 668 00:23:27,580 --> 00:23:28,940 you put them next to each other 669 00:23:29,520 --> 00:23:30,320 nothing happens 670 00:23:30,320 --> 00:23:32,740 it's always one active circuit 671 00:23:32,740 --> 00:23:35,340 like a telephone and one library card 672 00:23:35,340 --> 00:23:36,320 or whatever else 673 00:23:36,320 --> 00:23:38,120 passport these kind of things 674 00:23:38,120 --> 00:23:40,480 the reader always supplies energy 675 00:23:41,400 --> 00:23:42,980 wirelessly to the NFC circuit 676 00:23:44,000 --> 00:23:45,220 so I think 677 00:23:45,220 --> 00:23:46,140 we're out of time 678 00:23:47,320 --> 00:23:48,580 thanks so much for coming 679 00:23:48,580 --> 00:23:49,660 what's next Rebar?