1 00:00:00,000 --> 00:00:10,280 Hello boys and girls. Welcome to the wireless village and welcome to the talk that Dominic and I are about to give. 2 00:00:12,380 --> 00:00:19,480 I'm Russ. I'm Dominic. Yes. And it's been 13 hours since my last shell. 3 00:00:20,560 --> 00:00:23,840 Sorry, I was playing with the microphone switch and I was really hoping it was going to work. 4 00:00:23,940 --> 00:00:28,560 And it very smoothly worked and then I spoiled it by going, yes, after getting my name out. 5 00:00:30,080 --> 00:00:38,960 I'm Dominic. This is Russ. We're going to talk about It's Not Wi-Fi, which is largely about wireless reverse engineering 6 00:00:38,960 --> 00:00:43,760 and what you do with signals you might find that are kind of non-standard and things like that. 7 00:00:44,540 --> 00:00:47,580 And there are some pictures of us on the slides. 8 00:00:49,000 --> 00:00:53,740 And provocative poses because, I mean, we still can do this through erotic interpretive dance. 9 00:00:53,900 --> 00:00:56,960 We can. I really can't. I can't. 10 00:00:56,960 --> 00:00:57,960 Do you want to move on? 11 00:00:58,080 --> 00:00:59,900 No, I was just going to say I can't bend that way. 12 00:01:00,000 --> 00:01:01,100 At this point in the weekend. 13 00:01:02,760 --> 00:01:11,060 So this talk idea came out a few weeks ago when Russ emailed me to say, happy It's Not Wi-Fi day, 14 00:01:12,080 --> 00:01:18,520 which is celebrating the second anniversary of a very, very, very long email thread the two of us had 15 00:01:18,520 --> 00:01:27,720 with someone who we'd met via a mailing list who was really, really keen to show us captures of these weird signals they were seeing. 16 00:01:27,880 --> 00:01:29,980 And these weird signals were kind of like... 17 00:01:30,000 --> 00:01:31,300 Fairly common. 18 00:01:31,380 --> 00:01:33,980 They were relatively strong no matter where he went. 19 00:01:34,860 --> 00:01:38,160 It's stuff that we have all seen and recognized over and over. 20 00:01:38,380 --> 00:01:45,600 And part of the frustration was the stubbornness of the individual who was seeking not just advice from us, 21 00:01:45,720 --> 00:01:53,960 but from a lot of other people to include some of the other wizards in the space like Dragorn and Mike Osman. 22 00:01:54,480 --> 00:01:56,420 And it just went on and on. 23 00:01:56,580 --> 00:01:59,200 So in other words, he was like shopping for an answer. 24 00:02:00,000 --> 00:02:02,020 That placated his particular narrative. 25 00:02:02,360 --> 00:02:02,800 Right. 26 00:02:02,920 --> 00:02:08,300 He was looking for someone to confirm his assumption that he'd discovered something nefarious from the government. 27 00:02:09,140 --> 00:02:19,660 And what happened on this given day is at some point he just sends this giant capture file through and audio decodings of it. 28 00:02:19,780 --> 00:02:20,820 Like, audio's not going to work. 29 00:02:20,840 --> 00:02:21,400 It's Wi-Fi. 30 00:02:21,560 --> 00:02:22,460 Okay, okay. 31 00:02:23,140 --> 00:02:24,240 But it's not Wi-Fi. 32 00:02:24,400 --> 00:02:25,780 Can you help me with the analysis? 33 00:02:25,900 --> 00:02:27,680 Let's get past the It's Wi-Fi thing. 34 00:02:27,820 --> 00:02:28,880 But it's not Wi-Fi. 35 00:02:29,000 --> 00:02:29,140 Yeah. 36 00:02:30,000 --> 00:02:32,360 What do you mean, let's get past the It's Wi-Fi thing? 37 00:02:32,640 --> 00:02:34,400 And he's like, well, because it's not Wi-Fi. 38 00:02:34,580 --> 00:02:35,280 It's not Wi-Fi. 39 00:02:35,400 --> 00:02:36,560 Well, why can't it be Wi-Fi? 40 00:02:36,640 --> 00:02:38,180 I don't think we can get past this, mate. 41 00:02:38,360 --> 00:02:39,180 And like, yeah, anyway. 42 00:02:39,500 --> 00:02:43,400 So Russ emails me to celebrate this every year. 43 00:02:43,460 --> 00:02:50,080 But he did once send me a 51-page PDF of his analysis of the signal, some screenshots of which appear in this talk. 44 00:02:50,280 --> 00:02:56,000 And also that was a risky click of a PDF to open because if Travis Goodspeed has taught us anything, 45 00:02:56,120 --> 00:02:58,460 that PDFs can be very dangerous. 46 00:03:00,000 --> 00:03:02,240 Type of document to send around to just random people. 47 00:03:02,660 --> 00:03:05,200 Yeah, I mean, this is a great phishing attack, actually. 48 00:03:05,460 --> 00:03:09,580 Like, get me so invested in proving to you that you're wrong on the Internet. 49 00:03:10,680 --> 00:03:14,380 And then, yeah, and then send me a PDF and I'll click on that. 50 00:03:14,640 --> 00:03:22,960 So at the end of the day, we both felt that there was this common narrative about people seeking assistance on signals 51 00:03:22,960 --> 00:03:24,960 and things that they were trying to decode. 52 00:03:25,040 --> 00:03:27,800 I saw this thing and what do I do with it? 53 00:03:28,340 --> 00:03:29,820 So this is essentially. 54 00:03:30,000 --> 00:03:35,820 This is actually going to be our advice to everyone else in the room when you do come across something that you don't necessarily recognize 55 00:03:35,820 --> 00:03:42,580 and how to approach it and what I'm probably going to suggest that you do with it other than beating yourself into the wall headfirst. 56 00:03:42,860 --> 00:03:48,320 Yeah, and this also kind of sets down some ideas of what you can do before you ask for help. 57 00:03:48,400 --> 00:03:52,220 And that's not to say we or other people aren't super willing to help you. 58 00:03:52,340 --> 00:03:58,500 But if you send me screenshots of a weird signal, I can't decode it from the screenshot. 59 00:03:58,700 --> 00:03:59,360 Well, actually, that's not true. 60 00:03:59,360 --> 00:03:59,940 We're about to. 61 00:04:00,000 --> 00:04:00,800 We're about to do that. 62 00:04:01,040 --> 00:04:03,260 But I can't really decode it from the screenshot. 63 00:04:03,540 --> 00:04:08,480 Like, there are a lot of things you can do to help yourself before you ask for help. 64 00:04:08,580 --> 00:04:10,000 And there are a lot of extra information. 65 00:04:10,420 --> 00:04:16,800 Like, when I provide support for open source software, my first question to a lot of users is, what are you trying to achieve? 66 00:04:17,260 --> 00:04:19,840 Because usually what they're trying to solve is problem X. 67 00:04:20,040 --> 00:04:22,000 And they come and ask me about problem X. 68 00:04:22,180 --> 00:04:24,260 And I solve problem X for them. 69 00:04:24,300 --> 00:04:27,440 And they say, well, but that solution to problem X doesn't solve problem Y. 70 00:04:27,620 --> 00:04:28,660 And I was like, well, no. 71 00:04:28,940 --> 00:04:29,980 And they say, but originally. 72 00:04:30,000 --> 00:04:31,160 Originally, I was trying to solve problem Y. 73 00:04:31,380 --> 00:04:34,000 And I'm like, why didn't you ask me about problem Y in the first place? 74 00:04:34,220 --> 00:04:37,460 Because here's the, like, two-minute, one-line solution to that. 75 00:04:37,620 --> 00:04:41,760 But we spent three days going around to solve problem X because you thought it would solve problem Y. 76 00:04:41,860 --> 00:04:43,000 It's called the XY problem. 77 00:04:43,200 --> 00:04:44,100 There's a website about it. 78 00:04:44,180 --> 00:04:50,980 And it's just frustrating because it's a waste of everybody's time, including the person looking for help. 79 00:04:51,180 --> 00:04:51,560 Exactly. 80 00:04:52,640 --> 00:04:58,580 So when it comes to all things wireless, radio, and so on and so forth, it starts with your antenna. 81 00:04:58,840 --> 00:04:59,920 And it starts with your. 82 00:05:00,000 --> 00:05:03,480 And it starts with how you're going to start observing the signals. 83 00:05:04,340 --> 00:05:11,900 Many folks try, in my experience, approach wireless communications because Wi-Fi is wireless. 84 00:05:12,180 --> 00:05:18,780 Well, there's actually a whole bunch of abstraction layers between when you receive that packet on the wire 85 00:05:18,780 --> 00:05:22,840 or via the kernel space from what's actually happening in the radio interface. 86 00:05:23,020 --> 00:05:29,900 So when people start using their RTLs or any one of the other permutations and capabilities that are out there, 87 00:05:30,000 --> 00:05:36,940 to start receiving signals, there's some very basic things that they have to get sorted out in the first place. 88 00:05:37,140 --> 00:05:45,000 And this is an old picture from a talk that Dragorn and Zero and myself had given many years ago. 89 00:05:45,160 --> 00:05:48,940 And it was with the RTL-SDRs, like the little things that you could buy on Amazon. 90 00:05:49,540 --> 00:05:57,220 When you popped open the magnetic bottom of them, there was a high probability that the actual antenna feed line 91 00:05:57,220 --> 00:05:59,880 was not actually connected to the antenna itself. 92 00:06:00,000 --> 00:06:04,500 So when people would plug it in, like, I don't see anything except for noise and clocks or whatever. 93 00:06:04,660 --> 00:06:07,180 And it was because the physical interface was disconnected. 94 00:06:07,900 --> 00:06:09,740 There's other things to consider as well. 95 00:06:10,060 --> 00:06:16,180 Some things that would become readily apparent to you if you got a ham radio operator's license. 96 00:06:16,260 --> 00:06:19,420 So I strongly suggest that you consider that if you haven't before. 97 00:06:19,560 --> 00:06:24,140 But things along the lines of harmonics to attenuation to a mismatched antenna system. 98 00:06:25,020 --> 00:06:27,460 And more importantly, grounding noise and static. 99 00:06:27,540 --> 00:06:28,880 And every single time. 100 00:06:28,880 --> 00:06:34,580 I've watched the Reddit threads of RTL-SDR, like, what's this signal? 101 00:06:34,880 --> 00:06:37,860 And I see a lot of other forums where it's like, what's this signal? 102 00:06:38,180 --> 00:06:44,300 And a lot of the times it comes back to these last few points where there's either a bad grounding issue 103 00:06:44,300 --> 00:06:47,060 or there's some noise from a clock source that's on there. 104 00:06:47,240 --> 00:06:49,580 It could be a random harmonic that comes up there. 105 00:06:49,760 --> 00:06:55,880 Or just general static and static-based discharges that just causes a spike in your interface. 106 00:06:56,180 --> 00:06:58,060 So what I promote. 107 00:06:58,880 --> 00:07:01,720 To people is to read these various resources. 108 00:07:01,960 --> 00:07:02,860 There's two of them there. 109 00:07:03,960 --> 00:07:13,280 You can search these terms and find these free publications that talk about how to properly build a radio receiving station. 110 00:07:13,600 --> 00:07:15,500 And this is a ham radio 101 sort of thing. 111 00:07:15,560 --> 00:07:21,120 Like if you've ever built a ham shack, you need to make sure that your grounds are good and you have lightning suppression because lightning wants to be your friend. 112 00:07:21,380 --> 00:07:22,520 Don't be lightning's friend. 113 00:07:22,620 --> 00:07:23,480 We'll get to that in a moment. 114 00:07:23,640 --> 00:07:28,700 But the Navy put out a RFI handbook that is absolutely fantastic. 115 00:07:28,880 --> 00:07:33,040 Because it also comes with some really poignant and direct examples. 116 00:07:33,340 --> 00:07:35,220 Such as common noise sources. 117 00:07:35,540 --> 00:07:36,720 Just one sec. 118 00:07:36,900 --> 00:07:42,000 We'll upload the slides somewhere afterwards for everyone who failed to get a picture of those URLs. 119 00:07:42,440 --> 00:07:45,320 I'll make a tweet on the Twitter account for the wireless village. 120 00:07:45,620 --> 00:07:47,740 We'll put it up somewhere so that you can get hold of this information. 121 00:07:48,640 --> 00:07:54,860 So one of the more common ones is the actual computer that you're using to observe the signals from. 122 00:07:55,040 --> 00:07:58,860 So who has a power supply on the computer that kind of looks like this? 123 00:07:58,880 --> 00:08:02,260 Where you have a metal case and then the power plug itself is a plastic plug. 124 00:08:02,420 --> 00:08:03,580 That's a noise source. 125 00:08:03,860 --> 00:08:06,300 That plug should actually be metal. 126 00:08:06,680 --> 00:08:09,400 In order to make sure that all your grounds are tied together. 127 00:08:09,760 --> 00:08:11,320 This is called BFG. 128 00:08:11,460 --> 00:08:12,920 Not like in the game Quake. 129 00:08:13,580 --> 00:08:15,380 It's a barrier feed and ground. 130 00:08:16,840 --> 00:08:20,460 And the other component for people who build ham shacks and such. 131 00:08:21,000 --> 00:08:25,640 They don't typically pay attention to the problems associated with mismatched metals. 132 00:08:25,760 --> 00:08:26,980 So you have a ground rod outside. 133 00:08:27,960 --> 00:08:29,160 Copper or steel. 134 00:08:30,020 --> 00:08:31,300 I've seen zinc as well. 135 00:08:31,360 --> 00:08:32,820 And people mismatch the metal types. 136 00:08:33,040 --> 00:08:37,740 And what you end up having over a period of time is, well, weather gets to it. 137 00:08:37,760 --> 00:08:38,360 Starts to rust. 138 00:08:38,500 --> 00:08:39,220 Starts to fall apart. 139 00:08:39,420 --> 00:08:43,840 And this is a great picture of a grounding rod at a cell phone tower site. 140 00:08:44,320 --> 00:08:49,380 That was throwing all kinds of wonky harmonics and noise just from that. 141 00:08:49,520 --> 00:08:52,060 Everything else about the radio equipment was fine and functional. 142 00:08:52,240 --> 00:08:54,400 It was the ground to the earth ground. 143 00:08:54,680 --> 00:08:56,960 That a little bit of water and weather got into it. 144 00:08:56,960 --> 00:08:58,020 And separated the cap. 145 00:08:58,200 --> 00:09:02,820 And it turned out that they had mismatched metals that created some rust and that particular fracture. 146 00:09:03,020 --> 00:09:06,100 So you've got to pay attention to some really interesting details. 147 00:09:06,360 --> 00:09:11,340 And it typically always comes back to your physical capture source. 148 00:09:11,520 --> 00:09:12,240 Your physical layer. 149 00:09:13,880 --> 00:09:16,660 As I mentioned, lightning wants to be your friend. 150 00:09:16,740 --> 00:09:18,840 Do not be lightning's friend. 151 00:09:19,120 --> 00:09:26,280 Proper ground suppression for lightning strikes for any long-term equipment that you're going to put in is absolutely critical for the safety of yourself. 152 00:09:26,960 --> 00:09:28,540 As well as everyone around you. 153 00:09:28,900 --> 00:09:37,160 To your left is the Ethernet cable for a Wi-Fi antenna for a system that I managed that got struck by lightning. 154 00:09:37,440 --> 00:09:44,460 The radio system survived and the suppression system took the brunt of the strike. 155 00:09:44,900 --> 00:09:49,080 But it turned that Ethernet cable into this small little brittle twig. 156 00:09:49,140 --> 00:09:52,360 And when I went back to replace everything, it snapped. 157 00:09:52,740 --> 00:09:54,020 It was kind of freaky. 158 00:09:54,020 --> 00:10:06,240 To the right is a picture shared to me from a couple of days ago from a friend of ours whose house got struck by lightning and had catastrophic severe damage to their house. 159 00:10:06,500 --> 00:10:15,720 They haven't lived in their house for a couple of months because they're still having to replace and repair all the wiring damage associated with a lightning strike to the house. 160 00:10:16,380 --> 00:10:18,300 So lightning may find you. 161 00:10:18,340 --> 00:10:19,140 It may not find you. 162 00:10:19,720 --> 00:10:22,140 If it does find you, be ready for it. 163 00:10:22,180 --> 00:10:24,000 Is ultimately what I'm trying to get at. 164 00:10:24,020 --> 00:10:27,160 So when a lightning strike comes down, you have these feelers that come up. 165 00:10:27,300 --> 00:10:36,600 A strike that can happen a mile away from you can create so much energy inside the wiring infrastructure in your house as well as your radio systems that it can cause damage. 166 00:10:37,000 --> 00:10:38,740 And still be life-threatening. 167 00:10:38,900 --> 00:10:46,540 So you still need to be very, very careful with your grounding systems and infrastructure when it comes to Thor and his angry farts. 168 00:10:48,760 --> 00:10:49,460 All right. 169 00:10:49,880 --> 00:10:50,400 Let's... 170 00:10:50,400 --> 00:10:51,860 Do you want to swap microphones? 171 00:10:54,020 --> 00:10:54,640 I spat on it. 172 00:10:54,680 --> 00:10:54,880 It's okay. 173 00:10:55,080 --> 00:10:55,940 That was... 174 00:10:59,580 --> 00:11:00,380 All right. 175 00:11:00,420 --> 00:11:02,020 So we're going to look at some signals. 176 00:11:02,340 --> 00:11:04,120 You've set up your SDR. 177 00:11:04,280 --> 00:11:05,000 You've set up your receiver. 178 00:11:06,560 --> 00:11:09,580 You've been kind of pulling down data. 179 00:11:09,780 --> 00:11:12,040 You've been looking at spectrum plots, waterfalls, whatever. 180 00:11:12,280 --> 00:11:14,280 So the first question is, is it Wi-Fi? 181 00:11:15,340 --> 00:11:17,400 Are you absolutely sure it's not Wi-Fi? 182 00:11:17,540 --> 00:11:18,900 Are you sure it's not Bluetooth? 183 00:11:19,220 --> 00:11:20,280 Are you really sure? 184 00:11:20,280 --> 00:11:23,560 How about something else that's really, really common in homes? 185 00:11:23,580 --> 00:11:24,360 Smart meters? 186 00:11:24,740 --> 00:11:25,700 Weather stations? 187 00:11:25,860 --> 00:11:26,280 Some of the... 188 00:11:26,280 --> 00:11:33,300 Are you absolutely sure it's none of those things that someone else has already reverse engineered so that you don't have to do it? 189 00:11:34,340 --> 00:11:36,980 Go back through this list a second time and make sure. 190 00:11:37,360 --> 00:11:38,800 Specifically, like, point number seven. 191 00:11:38,900 --> 00:11:41,280 Are you sure you're the first person trying to reverse engineer this? 192 00:11:42,400 --> 00:11:43,800 And this happens to us all. 193 00:11:43,880 --> 00:11:50,260 Mike Ostman and I reverse engineered the control protocol for some tiny little, like, 10-inch devices. 194 00:11:50,260 --> 00:11:52,560 10, $15 quadcopters a couple years ago. 195 00:11:52,760 --> 00:12:03,540 And as we were doing that, we looked up the, like, a code from the packet, like a whitening sequence. 196 00:12:03,900 --> 00:12:07,160 And we Googled it to see if it was common for a given radio system. 197 00:12:07,400 --> 00:12:14,180 And we found a project where some people had already reverse engineered that very system. 198 00:12:14,420 --> 00:12:17,140 So we managed to find someone else who had already done this thing. 199 00:12:17,240 --> 00:12:18,820 We'd Googled the name of the system. 200 00:12:18,820 --> 00:12:21,420 We'd looked up, like, various other details about it. 201 00:12:21,520 --> 00:12:28,500 But as soon as we put in, like, a 10 bytes of hex string, it was a unique enough search term that we just found their code. 202 00:12:28,700 --> 00:12:30,500 And they were kind of halfway through the project. 203 00:12:30,620 --> 00:12:31,640 And we were halfway through the project. 204 00:12:31,740 --> 00:12:32,780 And we were able to combine our efforts. 205 00:12:32,980 --> 00:12:36,240 And we managed to publish a spec for them to go and implement it. 206 00:12:37,500 --> 00:12:44,340 But it's really likely that somewhere, someone on GitHub has, like, some half-assed code to do the thing that you're trying to do. 207 00:12:45,360 --> 00:12:49,220 But let's assume that you have found something unusual. 208 00:12:49,380 --> 00:12:51,580 You've bought a new device specifically for this. 209 00:12:52,520 --> 00:12:53,620 Someone's built a transmitter. 210 00:12:53,900 --> 00:12:55,580 Someone is taking part in a wireless CTF. 211 00:12:58,120 --> 00:12:58,920 There we go. 212 00:12:59,700 --> 00:13:01,000 So you're looking at what's... 213 00:13:01,000 --> 00:13:02,800 Did I jump two slides? 214 00:13:02,940 --> 00:13:04,740 No, I thought I had as well. 215 00:13:06,840 --> 00:13:10,800 Let's start to look at how we identify things, what we're looking at in the plot. 216 00:13:11,040 --> 00:13:13,280 What frequency are we on right now? 217 00:13:13,280 --> 00:13:14,240 Someone shout it out. 218 00:13:16,060 --> 00:13:16,940 Who was that? 219 00:13:17,560 --> 00:13:18,160 All right. 220 00:13:18,680 --> 00:13:19,640 Don't lose an eye. 221 00:13:20,700 --> 00:13:23,100 Did you just throw a piece of plastic at them? 222 00:13:23,360 --> 00:13:24,280 Yeah, that's just gone. 223 00:13:24,500 --> 00:13:24,920 Oh, okay. 224 00:13:25,000 --> 00:13:26,180 Yep, it's plastic. 225 00:13:27,600 --> 00:13:32,120 Yeah, it's a black badge to a con that you've got to find. 226 00:13:33,760 --> 00:13:36,040 So this is 2.4 gigahertz. 227 00:13:36,320 --> 00:13:39,420 And, like, this is one of the screenshots from that document. 228 00:13:39,620 --> 00:13:42,540 And so, obviously, I've been told repeatedly this is not Wi-Fi. 229 00:13:42,820 --> 00:13:43,260 Okay. 230 00:13:43,280 --> 00:13:48,400 But if you look at that little yellow dip in the middle of the bright red horizontal lines, 231 00:13:49,460 --> 00:13:51,360 that's really common in Wi-Fi. 232 00:13:51,460 --> 00:13:56,480 What happens when you look at a waterfall plot of Wi-Fi is it's 20 megahertz wide. 233 00:13:56,720 --> 00:13:58,640 It is high powered. 234 00:13:58,780 --> 00:14:00,760 And in the middle, there is a little dip in power. 235 00:14:01,540 --> 00:14:07,260 This is really common for OFDM Wi-Fi, which is pretty much anything you're going to be seeing these days. 236 00:14:08,940 --> 00:14:09,980 And that's really common. 237 00:14:10,160 --> 00:14:12,360 But also, you can use that little dip in the middle 238 00:14:12,360 --> 00:14:13,700 to work out where the center of it is. 239 00:14:13,840 --> 00:14:17,380 And the center of it is at about 2412 megahertz, 240 00:14:17,760 --> 00:14:19,540 which is the middle of a Wi-Fi channel. 241 00:14:20,300 --> 00:14:21,500 It's 2.4 gigahertz. 242 00:14:21,600 --> 00:14:22,160 It's noisy. 243 00:14:22,260 --> 00:14:23,060 It's high powered. 244 00:14:23,320 --> 00:14:23,900 It's a... 245 00:14:24,540 --> 00:14:24,900 Anyway... 246 00:14:24,900 --> 00:14:25,680 It's bursty. 247 00:14:25,780 --> 00:14:27,700 It is definitely Wi-Fi. 248 00:14:28,520 --> 00:14:29,720 But that's not Wi-Fi. 249 00:14:29,760 --> 00:14:30,700 Dominic, that's not Wi-Fi. 250 00:14:30,700 --> 00:14:31,140 Oh, I'm sorry, yeah. 251 00:14:31,540 --> 00:14:32,300 That's not Wi-Fi. 252 00:14:32,420 --> 00:14:35,700 So our next one, also from the same document. 253 00:14:36,660 --> 00:14:37,760 What you'll note is... 254 00:14:37,760 --> 00:14:39,760 Oh, note on this one. 255 00:14:40,420 --> 00:14:42,040 Your gain stages are set too high. 256 00:14:42,040 --> 00:14:42,780 It is. 257 00:14:43,240 --> 00:14:45,680 You're getting less information out of that waterfall 258 00:14:45,680 --> 00:14:52,420 because you cannot differentiate between noisy and quiet signals. 259 00:14:52,780 --> 00:14:56,460 Everyone searches for more and more and more dynamic range. 260 00:14:56,740 --> 00:14:58,440 And then they get their gain settings incorrect 261 00:14:58,440 --> 00:15:02,260 and completely destroy their ability to differentiate between loud and quiet signals. 262 00:15:02,680 --> 00:15:04,620 So play around with your gain settings. 263 00:15:04,760 --> 00:15:06,880 Make it look a little bit more like this one. 264 00:15:07,000 --> 00:15:09,320 In this one, this guy actually got his gain settings quite right. 265 00:15:10,740 --> 00:15:11,640 Maybe a little low. 266 00:15:12,040 --> 00:15:12,500 But they're fine. 267 00:15:12,600 --> 00:15:15,300 And you can see those big, wide, wide things across. 268 00:15:16,360 --> 00:15:17,880 Hopefully you might be able to see my cursor. 269 00:15:18,140 --> 00:15:19,620 There are some very wide... 270 00:15:20,600 --> 00:15:22,420 And a permission request in that screenshot. 271 00:15:22,580 --> 00:15:23,760 That's the first time I noticed that. 272 00:15:23,880 --> 00:15:24,520 Oh, yeah, yeah. 273 00:15:24,560 --> 00:15:25,620 That's not my laptop. 274 00:15:25,760 --> 00:15:26,040 That is... 275 00:15:26,040 --> 00:15:28,960 Johnny Long's no-tech hacking thing is like triggering in my head right now. 276 00:15:29,100 --> 00:15:33,120 So for these very wide, wide band things, they're also Wi-Fi. 277 00:15:33,600 --> 00:15:34,460 It's not Wi-Fi. 278 00:15:34,900 --> 00:15:39,840 But if you see these little ones, these little shorter, like narrow ones, 279 00:15:40,100 --> 00:15:41,260 very quick packets. 280 00:15:41,260 --> 00:15:42,340 All over the place. 281 00:15:42,420 --> 00:15:43,020 That's Bluetooth. 282 00:15:43,240 --> 00:15:44,320 I told you it's not Wi-Fi. 283 00:15:45,100 --> 00:15:45,940 That is Bluetooth. 284 00:15:46,120 --> 00:15:47,680 And I can tell you categorically that's Bluetooth. 285 00:15:48,120 --> 00:15:49,880 I mean, it looks like Bluetooth. 286 00:15:50,120 --> 00:15:51,320 It hops around like Bluetooth. 287 00:15:51,580 --> 00:15:55,380 I've spent so long looking at Bluetooth signals in these things. 288 00:15:55,680 --> 00:15:57,220 That's a Bluetooth signal. 289 00:15:57,420 --> 00:15:58,900 Don't bother trying to reverse it. 290 00:15:59,000 --> 00:15:59,520 I mean, feel free. 291 00:15:59,780 --> 00:16:03,820 They have a group meeting on Wednesdays for people who have dealt with Bluetooth so long. 292 00:16:04,160 --> 00:16:08,880 But it's not something unusual that you need to go and reverse engineer. 293 00:16:08,880 --> 00:16:14,780 You need to go to Bluetooth.org, download the spec, and read the spec of how it's put together. 294 00:16:14,900 --> 00:16:16,120 And if you want to reverse engineer it. 295 00:16:16,180 --> 00:16:18,600 Don't try and reverse engineer a thing like that. 296 00:16:19,220 --> 00:16:22,000 And I know because that's where my master's thesis came from. 297 00:16:23,400 --> 00:16:24,060 This one. 298 00:16:26,060 --> 00:16:27,000 That's not Wi-Fi. 299 00:16:27,400 --> 00:16:29,600 There's a small parade of mobility scooters. 300 00:16:29,620 --> 00:16:31,300 And I'm pretty sure they're here for me. 301 00:16:31,640 --> 00:16:32,340 Oh, jeez. 302 00:16:32,800 --> 00:16:33,240 Anyway. 303 00:16:34,840 --> 00:16:35,280 Champ. 304 00:16:37,440 --> 00:16:38,320 Oakley doakley. 305 00:16:38,320 --> 00:16:39,180 Thank you kindly. 306 00:16:39,340 --> 00:16:46,240 So this screenshot is the person who put this in to claim. 307 00:16:46,660 --> 00:16:48,340 I think this is how Bitcoin works. 308 00:16:55,700 --> 00:17:03,520 How stuck on the stage are you? 309 00:17:03,980 --> 00:17:04,480 Okay. 310 00:17:05,640 --> 00:17:06,140 Okay. 311 00:17:07,140 --> 00:17:08,300 I'm just going to keep going. 312 00:17:09,380 --> 00:17:11,000 Welcome to DEF CON, folks. 313 00:17:11,100 --> 00:17:12,280 Everyone stay frosty. 314 00:17:13,220 --> 00:17:14,860 Do you know the worst thing? 315 00:17:15,680 --> 00:17:18,240 The worst thing is like this is really solid now. 316 00:17:18,280 --> 00:17:19,040 This is shaken up. 317 00:17:19,240 --> 00:17:20,700 So this is getting thrown out. 318 00:17:20,700 --> 00:17:20,900 No, no. 319 00:17:20,900 --> 00:17:22,660 The one on the floor is getting winged. 320 00:17:22,740 --> 00:17:25,440 So this one is getting thrown out to whoever gets the next question, right? 321 00:17:27,640 --> 00:17:28,040 Okay. 322 00:17:28,320 --> 00:17:29,380 So this was. 323 00:17:29,520 --> 00:17:30,880 Shake your beer, not a baby. 324 00:17:32,500 --> 00:17:32,900 Wow. 325 00:17:35,520 --> 00:17:36,220 This is. 326 00:17:37,000 --> 00:17:38,300 I have no idea what this is. 327 00:17:39,260 --> 00:17:40,100 So this is. 328 00:17:40,240 --> 00:17:43,120 This was sent to us as part of that same 51-page report. 329 00:17:43,400 --> 00:17:47,640 And they said this is a microwave oven. 330 00:17:48,680 --> 00:17:51,920 And they're probably not wrong that it is a microwave oven. 331 00:17:52,080 --> 00:17:57,440 But I can tell you from this screenshot someone has grabbed the frequency slider and just been wiggling it around. 332 00:17:57,900 --> 00:18:01,540 Because this is not a radio system. 333 00:18:01,780 --> 00:18:03,400 They don't do this. 334 00:18:03,480 --> 00:18:03,860 It's not efficient. 335 00:18:03,860 --> 00:18:05,400 Took the tuner and went back and forth, back and forth. 336 00:18:05,700 --> 00:18:05,780 Yeah. 337 00:18:05,780 --> 00:18:08,720 Or they've been wiggling their antenna around, moving it around. 338 00:18:09,480 --> 00:18:10,240 Something's moving. 339 00:18:10,560 --> 00:18:10,720 Yeah. 340 00:18:10,780 --> 00:18:11,940 Something is moving around. 341 00:18:12,120 --> 00:18:20,880 Like it is really obvious from all of these screenshots that this person is like either unsure of what they're looking at or actively lying to us. 342 00:18:21,020 --> 00:18:21,540 Now. 343 00:18:21,800 --> 00:18:22,460 It's not Wi-Fi. 344 00:18:22,920 --> 00:18:25,420 The problem is this individual chose both paths. 345 00:18:25,760 --> 00:18:26,900 They chose to. 346 00:18:27,800 --> 00:18:35,760 They chose to be unsure about what they're looking at but be so overconfident about what they were looking at that they actively lied to us. 347 00:18:35,780 --> 00:18:37,540 Lied to us when they're asking for help. 348 00:18:37,640 --> 00:18:41,740 So if you see something like this, think about what might be causing it. 349 00:18:41,800 --> 00:18:43,400 Have you just been playing with the game stages? 350 00:18:43,580 --> 00:18:44,840 Have you just been playing with the tuner? 351 00:18:44,880 --> 00:18:46,140 Let it settle for a bit. 352 00:18:46,620 --> 00:18:49,000 Is this radio system something that's periodic? 353 00:18:49,300 --> 00:18:53,920 Is this radio system something that's caused because you just put a bag of popcorn in the microwave? 354 00:18:54,300 --> 00:18:54,960 Is this? 355 00:18:56,160 --> 00:18:58,120 Have you all heard of this guy named Nikola Tesla? 356 00:18:58,560 --> 00:19:00,620 He made all these kind of crazy things. 357 00:19:00,700 --> 00:19:02,560 And one of them was like a ghost voice box. 358 00:19:03,160 --> 00:19:05,080 Sort of a passive. 359 00:19:05,080 --> 00:19:06,300 A passive radio system. 360 00:19:06,840 --> 00:19:15,180 When you put your hand near it, it would make different sounds and all that stuff and it would pick up other atmospheric radio conditions as well. 361 00:19:15,480 --> 00:19:22,520 Well, if you mess with your game settings incorrectly and you put your hand right up near the antenna, you can also just as easily see something like that. 362 00:19:22,600 --> 00:19:35,060 So if your laptop's in your lap and your dongle is off to your lap, what you may end up seeing just from like shifting yourself a little bit is some variance in the sound. 363 00:19:35,080 --> 00:19:39,020 You can see some amplitude in some of the signals that come by or even some frequency offsets that kick around. 364 00:19:39,240 --> 00:19:41,820 Because you are a body of water, last I knew. 365 00:19:42,240 --> 00:19:42,960 Oh yeah. 366 00:19:43,100 --> 00:19:44,580 Especially at 2.4 GHz. 367 00:19:44,960 --> 00:19:56,120 I mean, so our friend Dragon sets up Wi-Fi networks for various cons and he talks about how the Wi-Fi works perfectly until the people arrive. 368 00:19:56,920 --> 00:20:00,360 And he refers to them as big Wi-Fi absorbing sacks of meat. 369 00:20:00,860 --> 00:20:04,680 And like, you are going to throw off 2.4 GHz. 370 00:20:04,820 --> 00:20:05,060 I mean, there's a lot of noise. 371 00:20:05,080 --> 00:20:14,740 There's a reason it's not a chunk of the frequency spectrum that the FCC and various other organizations around the world want to charge people extortionate amounts for licenses in. 372 00:20:14,960 --> 00:20:16,240 Because it's terrible. 373 00:20:17,180 --> 00:20:18,800 That's why we get to use it for Wi-Fi. 374 00:20:18,860 --> 00:20:22,120 But the unlicensed bands are awesome because we get to do amazing things with them. 375 00:20:22,480 --> 00:20:23,180 Yeah, absolutely. 376 00:20:23,460 --> 00:20:24,000 How are we doing for time? 377 00:20:24,840 --> 00:20:25,860 We're a quarter of the way in. 378 00:20:26,080 --> 00:20:26,300 Oh. 379 00:20:26,480 --> 00:20:28,340 Well, we're not a quarter of the way into the slides. 380 00:20:28,600 --> 00:20:29,540 No, but we're around the wrong. 381 00:20:29,800 --> 00:20:30,180 Okay. 382 00:20:32,280 --> 00:20:35,060 So if you definitely, definitely want to use Wi-Fi. 383 00:20:35,060 --> 00:20:36,260 If you want to reverse engineer signals. 384 00:20:36,460 --> 00:20:45,720 Like, if we've got to the point where I've convinced you that you know what Wi-Fi looks like and you know what Bluetooth looks like and you know what a microwave oven looks like and FM broadcast radio and all these things. 385 00:20:45,860 --> 00:20:49,900 Then we're at the point where we need to start looking at the tools we can use. 386 00:20:50,220 --> 00:20:53,360 So $20, you can pick up an RTL-SDR dongle. 387 00:20:54,540 --> 00:20:57,400 Almost anyone here will show you how to use it. 388 00:20:58,860 --> 00:21:03,520 If you want a bit more high performance SDR, you've got Hacker F1, BladeRF, USRP. 389 00:21:04,520 --> 00:21:05,040 If you want a bit more high performance SDR, you've got Hacker F1, BladeRF, USRP. 390 00:21:05,040 --> 00:21:11,080 If you want a radio dongle that's not an SDR so you don't have to think about that messy analog section, Yardstick One, RFCAT. 391 00:21:11,280 --> 00:21:12,440 There are various radio dongles. 392 00:21:12,460 --> 00:21:14,860 There's a crazy fly radio dongle for 2.4 gigahertz. 393 00:21:15,180 --> 00:21:18,420 Sometimes Hacker Con badges can be modified to do it as well. 394 00:21:18,640 --> 00:21:18,680 Yeah. 395 00:21:18,680 --> 00:21:19,940 Oh, there's Ubertooth. 396 00:21:20,100 --> 00:21:22,220 I should remember that one because I work on it. 397 00:21:22,320 --> 00:21:23,640 I think you deleted that. 398 00:21:23,860 --> 00:21:24,740 Yeah, I probably did. 399 00:21:25,460 --> 00:21:28,360 And then on the right-hand side of this slide, we've got some tools. 400 00:21:29,160 --> 00:21:33,800 Various different tools for looking at signals either in real time or offline. 401 00:21:34,960 --> 00:21:36,420 For identifying signals. 402 00:21:36,740 --> 00:21:38,000 There are the two URLs. 403 00:21:38,240 --> 00:21:42,340 FCC.io is a little hacky script thing I wrote once. 404 00:21:43,140 --> 00:21:45,420 If you want to see horrible JavaScript, look at how it's written. 405 00:21:45,980 --> 00:21:49,720 But it allows you to take the FCC ID you find on the back of a device. 406 00:21:49,980 --> 00:21:55,400 FCC.io forward slash that FCC ID will show you the FCC filings for that device. 407 00:21:55,820 --> 00:21:58,400 So immediately you will know what frequency it's on. 408 00:21:59,200 --> 00:22:03,780 Probably if you read the test report what its bandwidth is or what its modulation is. 409 00:22:03,800 --> 00:22:05,520 Or any of that sort of stuff. 410 00:22:06,340 --> 00:22:12,240 And SigID Wiki is a group of people who put together signals on a Wiki and identify them. 411 00:22:12,400 --> 00:22:15,100 And they say, I found this at 4.3 gigahertz. 412 00:22:15,540 --> 00:22:16,440 It's this wide. 413 00:22:16,640 --> 00:22:17,340 Here's a screenshot. 414 00:22:17,580 --> 00:22:18,220 Here's a capture. 415 00:22:18,680 --> 00:22:19,120 Whatever. 416 00:22:19,300 --> 00:22:20,000 There's an audio sample. 417 00:22:20,300 --> 00:22:20,440 Yeah. 418 00:22:20,480 --> 00:22:22,400 They have a waterfall screenshot of it. 419 00:22:22,520 --> 00:22:26,140 And they go as far as identifying where it is and where they've observed it from. 420 00:22:27,780 --> 00:22:29,360 It's a very powerful resource. 421 00:22:29,580 --> 00:22:33,780 So if you're just like looking for something, you could go there first to see if anyone has it. 422 00:22:33,780 --> 00:22:36,920 If no one else has seen the exact same thing, which is going to save you a ton of effort. 423 00:22:37,240 --> 00:22:42,480 And this also goes back to that, are you sure someone hasn't tried to reverse engineer it before you? 424 00:22:43,080 --> 00:22:47,180 And maybe if you find it on there, you'll find someone else who's got a little bit further than you. 425 00:22:47,280 --> 00:22:48,240 Or they've got some ideas. 426 00:22:48,380 --> 00:22:49,740 Or they've got a better capture than you have. 427 00:22:50,020 --> 00:22:52,100 Or they had a cleaner capture. 428 00:22:52,340 --> 00:22:53,880 Or they have had ideas. 429 00:22:54,020 --> 00:22:56,600 Or they can say, well, I saw it in the U.S. 430 00:22:56,600 --> 00:22:58,520 But no one's ever seen it outside of the U.S. 431 00:22:58,620 --> 00:22:58,980 Okay. 432 00:22:59,040 --> 00:23:02,120 Well, maybe it's something that's licensed within the United States or so on and so forth. 433 00:23:02,120 --> 00:23:08,840 So like an example of some of the software decoders that are out there. 434 00:23:09,040 --> 00:23:11,200 Everyone has seen the program RTL 433. 435 00:23:12,340 --> 00:23:15,140 You have this number better in your head than I do. 436 00:23:15,240 --> 00:23:18,400 But how many different devices has it got in it approximately? 437 00:23:18,740 --> 00:23:21,780 So RTL 433, I actually looked this up about 15 minutes ago. 438 00:23:21,880 --> 00:23:28,960 If you look at their GitHub page, RTL 433 has decoders built into it for 107 different devices. 439 00:23:29,780 --> 00:23:30,880 Tire pressure sensors. 440 00:23:32,120 --> 00:23:33,340 Calculus entry systems for cars. 441 00:23:33,600 --> 00:23:34,520 Weather stations. 442 00:23:34,700 --> 00:23:37,080 X10 home automation and other home automation. 443 00:23:37,740 --> 00:23:38,460 Temperature sensors. 444 00:23:38,980 --> 00:23:44,840 So you have a wireless thermostat in your house that connects back to your boiler. 445 00:23:44,980 --> 00:23:48,820 That thing's probably using 433 megahertz if it's older. 446 00:23:49,000 --> 00:23:50,460 And Wi-Fi if it's modern. 447 00:23:50,660 --> 00:23:53,740 And so depending on who you get it from. 448 00:23:53,860 --> 00:23:56,440 So there's a fair chance this thing already understands it. 449 00:23:56,800 --> 00:23:57,600 Smart meters. 450 00:23:57,660 --> 00:23:58,500 These sorts of things. 451 00:23:58,700 --> 00:24:01,840 It has code in there for a whole bunch of these things. 452 00:24:01,840 --> 00:24:04,540 And there's a fair chance if someone implements a radio system. 453 00:24:04,740 --> 00:24:10,320 If I'm building a temperature sensor that I want to be wireless, I'm not going to invent my own radio protocol. 454 00:24:10,480 --> 00:24:12,540 I'm going to buy an off-the-shelf RF solution. 455 00:24:12,840 --> 00:24:18,700 And therefore it's probably going to be an almost identical packet format to something that RTL 433 already supports. 456 00:24:19,180 --> 00:24:23,940 So you may not, no one may have reverse engineered the thing you're trying to reverse engineer before. 457 00:24:25,680 --> 00:24:30,040 But they may have reverse engineered something with an almost identical packet format. 458 00:24:30,060 --> 00:24:30,680 Or identical. 459 00:24:30,680 --> 00:24:34,080 Or similar style of communication. 460 00:24:34,360 --> 00:24:35,040 Same modulation. 461 00:24:35,460 --> 00:24:36,820 Same checksum. 462 00:24:36,900 --> 00:24:37,600 All that sort of thing. 463 00:24:37,800 --> 00:24:39,280 And you don't have to worry about that stuff. 464 00:24:39,460 --> 00:24:43,400 You've just got to find something that RTL 433 supports. 465 00:24:43,880 --> 00:24:45,440 And then just modify it. 466 00:24:46,440 --> 00:24:50,000 And then the other stuff on the other side is RTL FM. 467 00:24:51,080 --> 00:24:53,860 Which is an FM broadcast decoder for it. 468 00:24:54,040 --> 00:24:56,960 There's like analyzers to get those waterfall plots. 469 00:24:57,420 --> 00:24:58,740 There's software out there. 470 00:24:59,020 --> 00:25:00,500 I mean RTLSTR.com. 471 00:25:00,500 --> 00:25:03,360 Has a list of software that supports the RTLSTR dongle. 472 00:25:03,600 --> 00:25:04,860 And it is huge. 473 00:25:05,060 --> 00:25:06,160 And there's stuff to do with satellites. 474 00:25:06,540 --> 00:25:08,060 Weather satellites as I put on the screen. 475 00:25:09,640 --> 00:25:13,800 There's stuff to do with, there's tools for aircraft location. 476 00:25:13,840 --> 00:25:14,240 ADSB. 477 00:25:14,500 --> 00:25:14,900 ADSB. 478 00:25:15,360 --> 00:25:16,400 All that stuff. 479 00:25:17,180 --> 00:25:21,060 So if you step up from, so you can do that for 20 bucks. 480 00:25:21,160 --> 00:25:23,620 20 bucks and all that, everything we talked about was free software. 481 00:25:23,900 --> 00:25:24,840 You can just go download it. 482 00:25:25,040 --> 00:25:26,540 And it's a good test to just start with. 483 00:25:26,620 --> 00:25:30,040 To see if that thing hasn't been reversed already for yourself. 484 00:25:30,040 --> 00:25:30,340 Right. 485 00:25:30,340 --> 00:25:32,860 It's a no effort sort of first step. 486 00:25:33,080 --> 00:25:35,020 Yeah, actually I don't know that we mentioned this at the start. 487 00:25:35,080 --> 00:25:39,040 I work for one of the, I work for Grayscale Gadgets who manufacture the HackerF. 488 00:25:40,320 --> 00:25:44,760 But I would generally prefer if you're unsure about which SDR to buy. 489 00:25:44,920 --> 00:25:49,120 You should buy the $20 RTL SDR and work out what you need. 490 00:25:49,180 --> 00:25:52,200 Because until you know whether you need a wide frequency range. 491 00:25:52,300 --> 00:25:53,660 Whether you need high dynamic range. 492 00:25:53,820 --> 00:25:54,440 Whether you need. 493 00:25:54,520 --> 00:25:55,060 High sampling. 494 00:25:55,240 --> 00:25:56,420 High sampling rate. 495 00:25:57,680 --> 00:25:59,660 Transmit and receive or just receive. 496 00:25:59,660 --> 00:26:02,740 Until you can work out what it is you want from an SDR. 497 00:26:03,620 --> 00:26:05,440 I don't want you to come and buy. 498 00:26:05,520 --> 00:26:07,540 I don't necessarily always want you to come and buy our product. 499 00:26:07,640 --> 00:26:09,000 I mean I'd love you all to buy our product. 500 00:26:09,480 --> 00:26:12,700 But I don't necessarily want you to buy our product if it's wrong for you. 501 00:26:12,760 --> 00:26:15,960 Because it actually doesn't gain you anything in terms of achieving what you want to achieve. 502 00:26:16,960 --> 00:26:20,580 So I changed the slide to be general SDR rather than say HackerF. 503 00:26:20,700 --> 00:26:21,060 Fair enough. 504 00:26:21,920 --> 00:26:23,780 But you can use GNU Radio. 505 00:26:24,040 --> 00:26:27,460 And loads and loads of people have written really cool tools for GNU Radio. 506 00:26:27,660 --> 00:26:29,120 And they wrote them with like. 507 00:26:29,120 --> 00:26:32,800 Really powerful expensive SDRs years ago. 508 00:26:33,200 --> 00:26:37,360 And now you get to pick up a like $300 SDR. 509 00:26:37,600 --> 00:26:41,180 And you get to implement like a pager system. 510 00:26:41,280 --> 00:26:42,400 An entire pager network. 511 00:26:42,720 --> 00:26:45,640 Or like GSM systems on a blade RF. 512 00:26:45,880 --> 00:26:46,580 Things like this. 513 00:26:46,620 --> 00:26:47,240 You can implement it. 514 00:26:47,380 --> 00:26:49,320 And again it's software you can go and download. 515 00:26:50,320 --> 00:26:54,580 Pie Bombs for GNU Radio has a huge number of packages in it. 516 00:26:54,720 --> 00:26:57,460 That mostly just work out of the box. 517 00:26:57,460 --> 00:26:59,500 With a fair amount of reading. 518 00:26:59,660 --> 00:27:00,440 A lot of documentation. 519 00:27:00,860 --> 00:27:01,580 A lot of reading. 520 00:27:01,780 --> 00:27:02,240 A lot of reading. 521 00:27:02,700 --> 00:27:04,740 The other thing is like Osmicom FFT. 522 00:27:05,700 --> 00:27:07,220 It's even better with phosphor mode. 523 00:27:07,660 --> 00:27:10,680 It's even better if you then record the captures from there. 524 00:27:10,780 --> 00:27:12,020 And open them up in Spectrum. 525 00:27:12,580 --> 00:27:13,220 Hey Mike. 526 00:27:13,420 --> 00:27:13,740 Hi Mike. 527 00:27:13,980 --> 00:27:14,540 Don't worry. 528 00:27:14,620 --> 00:27:15,500 You get mentioned again. 529 00:27:15,600 --> 00:27:15,980 In a minute. 530 00:27:16,120 --> 00:27:16,640 Oh yeah. 531 00:27:17,000 --> 00:27:17,720 Don't go anywhere. 532 00:27:18,300 --> 00:27:19,600 Do you want to do Universal Radio Hacker? 533 00:27:19,760 --> 00:27:22,620 So Universal Radio Hacker is a tool that I've used a couple of times. 534 00:27:23,200 --> 00:27:25,820 In order to start working on like. 535 00:27:25,900 --> 00:27:27,440 I've got a sample of stuff. 536 00:27:27,440 --> 00:27:28,620 And I want to start looking at it. 537 00:27:28,780 --> 00:27:30,700 You know there's a lot of documentation out there that says. 538 00:27:30,800 --> 00:27:33,600 Hey store it as a wave file. 539 00:27:34,300 --> 00:27:36,560 And you know open it up in Audacity. 540 00:27:36,720 --> 00:27:37,740 And then pull out a ruler. 541 00:27:38,020 --> 00:27:40,540 And put scotch tape on your display. 542 00:27:41,400 --> 00:27:41,840 Anyways. 543 00:27:43,020 --> 00:27:47,000 Universal Radio Hacker has really broken down the process. 544 00:27:47,080 --> 00:27:49,280 For me into the main three steps. 545 00:27:49,680 --> 00:27:50,620 In one tool. 546 00:27:50,740 --> 00:27:51,440 Which is fantastic. 547 00:27:51,920 --> 00:27:53,220 And your three steps are. 548 00:27:53,660 --> 00:27:57,160 You've got to be able to get that signal in. 549 00:27:57,160 --> 00:28:00,340 And start figuring out what the different types of waveforms you're dealing with. 550 00:28:00,780 --> 00:28:02,500 Are you dealing with Manchester encoding? 551 00:28:02,840 --> 00:28:03,500 And if you are. 552 00:28:04,040 --> 00:28:05,040 It's going to be fun. 553 00:28:05,760 --> 00:28:07,920 But then once you start getting that byte stream. 554 00:28:08,500 --> 00:28:09,560 Or bit stream out. 555 00:28:10,000 --> 00:28:12,820 Being able to turn that bit stream into meaningful data. 556 00:28:13,000 --> 00:28:14,640 You can still do it inside that same tool. 557 00:28:15,060 --> 00:28:16,980 And if you are working with a system. 558 00:28:17,100 --> 00:28:19,740 In which you're lawfully able to communicate with. 559 00:28:20,100 --> 00:28:23,240 You're able to then generate data back. 560 00:28:23,340 --> 00:28:24,460 In order to test to make sure. 561 00:28:24,760 --> 00:28:26,400 That what it is you're working on. 562 00:28:26,400 --> 00:28:28,000 Is actually really and truly working. 563 00:28:28,320 --> 00:28:29,320 It has taken. 564 00:28:29,580 --> 00:28:33,540 I remember getting into this stuff many, many years ago. 565 00:28:34,680 --> 00:28:36,620 And one of the tools that I used. 566 00:28:36,880 --> 00:28:37,780 Was Bodline. 567 00:28:38,480 --> 00:28:42,500 And this tool was suggested by many, many folks. 568 00:28:43,080 --> 00:28:46,480 And Bodline is an interesting first time experience. 569 00:28:46,800 --> 00:28:49,120 It's like being a three year old. 570 00:28:49,180 --> 00:28:51,300 And getting on a mountain bike for the first time. 571 00:28:51,400 --> 00:28:52,260 And your parents saying go. 572 00:28:53,200 --> 00:28:54,520 And shoving you downhill. 573 00:28:54,760 --> 00:28:56,040 I have a very dark childhood. 574 00:28:56,040 --> 00:28:56,800 Anyways. 575 00:28:59,180 --> 00:29:01,160 The first time I used it. 576 00:29:01,540 --> 00:29:04,400 I figured out how to start navigating the tool. 577 00:29:04,640 --> 00:29:05,780 And pulling the data in. 578 00:29:05,860 --> 00:29:06,480 And I'll show you in a minute. 579 00:29:06,580 --> 00:29:07,360 As a refresher. 580 00:29:07,600 --> 00:29:09,820 But I was talking to Mike Ostman. 581 00:29:11,480 --> 00:29:13,340 Before Grayscott Gadgets with the HackRF. 582 00:29:13,440 --> 00:29:14,520 Started getting really, really crazy. 583 00:29:14,660 --> 00:29:15,480 It was back with the Jawbreaker. 584 00:29:16,160 --> 00:29:18,800 And I was looking at my alarm system. 585 00:29:19,020 --> 00:29:19,960 Like what am I looking at? 586 00:29:20,140 --> 00:29:22,980 And started going through the exact same experience. 587 00:29:23,060 --> 00:29:24,140 That we're sharing with you. 588 00:29:24,140 --> 00:29:26,280 As to how we got to figure out what we're doing. 589 00:29:26,440 --> 00:29:26,940 So Bodline. 590 00:29:27,140 --> 00:29:27,800 It's useful. 591 00:29:27,900 --> 00:29:28,600 I still use it. 592 00:29:30,720 --> 00:29:33,080 The thing about it is it has quirks. 593 00:29:34,640 --> 00:29:35,820 I've never updated. 594 00:29:36,340 --> 00:29:39,080 I'm told it has a greater than 50 meg capacity. 595 00:29:39,260 --> 00:29:40,100 Anyone correct me? 596 00:29:40,420 --> 00:29:41,260 Say yes now. 597 00:29:41,420 --> 00:29:41,840 Is it true? 598 00:29:45,160 --> 00:29:45,560 Okay. 599 00:29:45,740 --> 00:29:46,860 Beta version does work better. 600 00:29:47,060 --> 00:29:48,700 So I don't have the beta version. 601 00:29:48,880 --> 00:29:51,500 So what I do is I still take the capture file. 602 00:29:51,500 --> 00:29:54,560 And use DD to break it up into 50 megabyte segments. 603 00:29:54,700 --> 00:29:56,700 Because it won't process anything beyond that. 604 00:29:56,980 --> 00:29:58,560 And at least the version that I have. 605 00:29:59,880 --> 00:30:03,100 And the example that I have for you is already quite small. 606 00:30:03,320 --> 00:30:06,560 So the other things that you have to do with it. 607 00:30:06,680 --> 00:30:09,160 Is make sure that you select quadrature. 608 00:30:10,080 --> 00:30:11,060 It's two channels. 609 00:30:11,120 --> 00:30:14,140 Because you've got your I and Q components to it. 610 00:30:14,300 --> 00:30:18,340 And it's an 8-bit unsigned data stream. 611 00:30:18,960 --> 00:30:20,360 And then when you open it up. 612 00:30:20,380 --> 00:30:21,180 You get this. 613 00:30:21,180 --> 00:30:21,480 And then when you open it up. 614 00:30:21,500 --> 00:30:22,260 You get this as a screen shot. 615 00:30:22,520 --> 00:30:23,900 For your 50 meg sample. 616 00:30:24,200 --> 00:30:26,260 And clicking on it is a little funny. 617 00:30:26,400 --> 00:30:27,200 You'll get used to that. 618 00:30:29,180 --> 00:30:32,000 But this is a fantastic screen shot. 619 00:30:32,160 --> 00:30:32,800 Of a nuke signal. 620 00:30:33,100 --> 00:30:35,060 From a car key chain. 621 00:30:35,300 --> 00:30:36,100 And as you zoom in. 622 00:30:36,500 --> 00:30:38,400 The old way of doing it. 623 00:30:38,500 --> 00:30:39,700 Was to take that. 624 00:30:39,880 --> 00:30:41,240 And put your laptop on the side. 625 00:30:41,400 --> 00:30:42,140 Or take a screen shot. 626 00:30:42,380 --> 00:30:43,580 And rotate the image. 627 00:30:43,800 --> 00:30:46,220 And pull out some graph paper. 628 00:30:47,840 --> 00:30:50,340 Or some other really, really painful thing. 629 00:30:51,500 --> 00:30:51,760 That you really recommend. 630 00:30:53,480 --> 00:30:54,740 Using other tools. 631 00:30:54,960 --> 00:30:56,820 But it's still a very useful one. 632 00:30:56,920 --> 00:30:57,920 To be able to use. 633 00:30:58,380 --> 00:31:00,880 In order to try to determine. 634 00:31:01,040 --> 00:31:03,460 Where certain nuances are with the signal. 635 00:31:03,540 --> 00:31:05,260 If the other ones are kind of being a little bit. 636 00:31:05,280 --> 00:31:05,900 Difficult with you. 637 00:31:05,980 --> 00:31:07,160 And some of those nuances can be. 638 00:31:07,700 --> 00:31:10,200 The clear start and end of a transmission. 639 00:31:10,300 --> 00:31:11,180 For certain things. 640 00:31:12,060 --> 00:31:13,180 And so on and so forth. 641 00:31:14,700 --> 00:31:15,140 So. 642 00:31:15,900 --> 00:31:16,340 Yeah. 643 00:31:16,440 --> 00:31:17,860 So for a while. 644 00:31:21,620 --> 00:31:23,660 I'm actually going to need my hands in a second. 645 00:31:23,820 --> 00:31:24,280 So I'm going to have. 646 00:31:24,340 --> 00:31:24,540 Wow. 647 00:31:24,620 --> 00:31:25,120 That was smooth. 648 00:31:25,740 --> 00:31:26,060 Okay. 649 00:31:27,400 --> 00:31:27,920 This is. 650 00:31:28,640 --> 00:31:30,520 I don't know if anyone saw me speak yesterday. 651 00:31:30,680 --> 00:31:31,440 But at some point. 652 00:31:31,500 --> 00:31:33,560 Someone else had to use me as a mic stand. 653 00:31:34,000 --> 00:31:34,480 I'm good. 654 00:31:34,620 --> 00:31:34,940 Thank you. 655 00:31:34,940 --> 00:31:35,580 Hold it for now. 656 00:31:37,220 --> 00:31:38,320 I'll see you later in the men's room. 657 00:31:39,460 --> 00:31:40,580 So in Spectrum. 658 00:31:40,580 --> 00:31:41,900 Spectrum was a tool written. 659 00:31:42,160 --> 00:31:42,840 Kind of. 660 00:31:43,180 --> 00:31:45,540 To address some of the shortcomings in Boardline. 661 00:31:45,800 --> 00:31:47,460 It is free and open source. 662 00:31:48,180 --> 00:31:49,680 It was written by Mike Walters. 663 00:31:50,320 --> 00:31:51,420 I mean you can see it. 664 00:31:51,500 --> 00:31:52,700 Come on Mike stand up. 665 00:31:53,820 --> 00:31:54,260 Yeah. 666 00:31:55,920 --> 00:31:57,000 Thank you sir. 667 00:31:58,760 --> 00:32:00,420 And so for years. 668 00:32:00,680 --> 00:32:01,260 And years. 669 00:32:01,420 --> 00:32:04,340 Everyone in the wireless village has done that sort of thing to me. 670 00:32:04,620 --> 00:32:06,420 And everyone else who's ever written any software. 671 00:32:06,620 --> 00:32:08,280 And it's just really nice to be able to do it to Mike. 672 00:32:08,460 --> 00:32:09,440 Because he's actually. 673 00:32:10,580 --> 00:32:11,620 A lovely lovely guy. 674 00:32:11,800 --> 00:32:13,560 But he's also a little bit shy about this. 675 00:32:13,920 --> 00:32:15,700 So you should go to him later. 676 00:32:15,880 --> 00:32:17,580 And ask him all about Spectrum. 677 00:32:17,720 --> 00:32:18,340 Give him a hug. 678 00:32:18,520 --> 00:32:20,420 He's happy to talk about. 679 00:32:21,260 --> 00:32:23,280 I'm saying this because I genuinely believe it's true. 680 00:32:23,520 --> 00:32:24,940 But he's happy to talk about it. 681 00:32:25,220 --> 00:32:26,320 And things like that. 682 00:32:26,380 --> 00:32:28,540 Also if you have issues with it. 683 00:32:28,620 --> 00:32:29,260 Raise them on GitHub. 684 00:32:30,160 --> 00:32:30,720 Oh wait. 685 00:32:31,100 --> 00:32:32,240 I'm going to do a live demo of this. 686 00:32:32,920 --> 00:32:33,180 Yep. 687 00:32:33,200 --> 00:32:33,740 Live demo. 688 00:32:40,580 --> 00:32:40,740 Okay. 689 00:32:40,740 --> 00:32:42,420 So this is the talk that you might care about most. 690 00:32:43,120 --> 00:32:44,940 Once you're done with all our ranting about. 691 00:32:45,060 --> 00:32:46,440 Someone else has already done this before you. 692 00:32:46,560 --> 00:32:48,480 So you can hold that for me. 693 00:32:48,780 --> 00:32:49,180 Okay. 694 00:32:49,300 --> 00:32:53,480 This is a capture file I took from Gnu Radio Con last year. 695 00:32:53,540 --> 00:32:54,840 Where there was a wireless CTF. 696 00:32:55,380 --> 00:32:57,320 It's a capture of a pager. 697 00:32:58,280 --> 00:33:00,080 You'll have to lean closer to the screen in a minute. 698 00:33:00,240 --> 00:33:02,280 So I've loaded it up in Spectrum. 699 00:33:04,240 --> 00:33:05,040 Unlike Boardline. 700 00:33:05,640 --> 00:33:06,200 Which was. 701 00:33:07,140 --> 00:33:07,880 Ross was saying. 702 00:33:07,940 --> 00:33:09,500 You have to kind of turn your laptop on the side. 703 00:33:10,580 --> 00:33:12,720 This thing puts frequency on the vertical axis. 704 00:33:12,840 --> 00:33:14,200 And time on the horizontal axis. 705 00:33:14,960 --> 00:33:15,820 Which is. 706 00:33:15,940 --> 00:33:17,020 Turns out. 707 00:33:17,160 --> 00:33:17,760 Handy. 708 00:33:18,840 --> 00:33:19,440 Somewhere. 709 00:33:19,680 --> 00:33:20,920 I'm struggling. 710 00:33:22,640 --> 00:33:23,880 Actually unnerving me. 711 00:33:25,580 --> 00:33:26,180 Okay. 712 00:33:26,340 --> 00:33:26,580 All right. 713 00:33:27,120 --> 00:33:28,220 Here is some data. 714 00:33:28,520 --> 00:33:29,700 This looks really promising. 715 00:33:31,000 --> 00:33:32,140 Brightly colored data. 716 00:33:32,380 --> 00:33:35,040 In a sea of background noise. 717 00:33:35,040 --> 00:33:38,120 I can play with my power settings on the side. 718 00:33:38,380 --> 00:33:39,620 So that it kind of. 719 00:33:40,080 --> 00:33:41,200 Pops out nicely. 720 00:33:41,420 --> 00:33:43,360 And we get rid of some of the blur around the edges. 721 00:33:43,500 --> 00:33:45,360 Because radio transmitters aren't. 722 00:33:45,860 --> 00:33:47,400 Like cheap radio transmitters. 723 00:33:47,540 --> 00:33:48,520 And this thing is. 724 00:33:48,680 --> 00:33:50,760 The cheapest of the cheap radio transmitters. 725 00:33:50,940 --> 00:33:52,380 I mean you can buy this thing on Amazon. 726 00:33:52,560 --> 00:33:53,940 But it is not FCC certified. 727 00:33:56,120 --> 00:33:56,760 It is. 728 00:33:56,820 --> 00:33:57,840 And I took it apart. 729 00:33:58,040 --> 00:33:59,060 And it's not great. 730 00:34:00,640 --> 00:34:02,740 But so you want to kind of get rid of. 731 00:34:02,800 --> 00:34:03,840 I don't know why I'm pointing at my screens. 732 00:34:05,040 --> 00:34:05,980 You want to sort of. 733 00:34:05,980 --> 00:34:07,700 Diminish some of these lobes a bit. 734 00:34:07,720 --> 00:34:09,460 By turning up the max power. 735 00:34:09,860 --> 00:34:11,260 And this should be fine. 736 00:34:11,460 --> 00:34:12,500 And then what we should be able to do. 737 00:34:12,560 --> 00:34:13,500 Is add a derived plot. 738 00:34:14,060 --> 00:34:15,280 It's an amplitude plot. 739 00:34:16,040 --> 00:34:17,720 Pull it down to the center frequency. 740 00:34:19,780 --> 00:34:21,080 Tune this in a little bit. 741 00:34:21,340 --> 00:34:21,780 And come. 742 00:34:21,880 --> 00:34:23,400 Scroll all the way down to the bottom here. 743 00:34:23,460 --> 00:34:24,580 Because it appears beneath it. 744 00:34:25,260 --> 00:34:25,940 Now that's. 745 00:34:29,820 --> 00:34:30,540 There it goes. 746 00:34:31,760 --> 00:34:32,560 There it goes. 747 00:34:35,500 --> 00:34:36,880 That does not look that much better. 748 00:34:38,060 --> 00:34:40,220 Why did this work when we tested it five minutes ago. 749 00:34:40,340 --> 00:34:40,580 And not now. 750 00:34:40,580 --> 00:34:42,160 Because it didn't sacrifice anything. 751 00:34:44,200 --> 00:34:44,560 Okay. 752 00:34:45,900 --> 00:34:46,520 Amplitude plot. 753 00:34:47,860 --> 00:34:48,860 Now that is what I added. 754 00:34:49,180 --> 00:34:49,540 Hey. 755 00:34:50,600 --> 00:34:50,960 Mike. 756 00:34:51,140 --> 00:34:52,860 I'm using your tool wrong. 757 00:34:53,020 --> 00:34:54,620 And I feel bad about this. 758 00:34:54,680 --> 00:34:55,500 Because you and I. 759 00:34:55,600 --> 00:34:57,780 You sat me down and taught me how to do this a minute ago. 760 00:34:58,280 --> 00:34:58,640 Anyway. 761 00:34:58,640 --> 00:35:01,380 So I've got this derived plot at the bottom. 762 00:35:01,500 --> 00:35:03,020 And this is the amplitude of the signal. 763 00:35:03,180 --> 00:35:06,040 And it just looks significantly worse than it did ten minutes ago. 764 00:35:06,640 --> 00:35:07,100 But. 765 00:35:07,720 --> 00:35:08,560 Will still work. 766 00:35:08,820 --> 00:35:09,700 Let's add cursors. 767 00:35:12,700 --> 00:35:13,160 And. 768 00:35:13,580 --> 00:35:14,140 You know. 769 00:35:14,220 --> 00:35:15,540 That looks like it's a thing. 770 00:35:15,740 --> 00:35:17,860 So let's add some more cursors. 771 00:35:18,300 --> 00:35:19,800 And it's not quite lining up. 772 00:35:20,260 --> 00:35:21,060 So it's. 773 00:35:21,060 --> 00:35:22,320 I've probably got my cursor width wrong. 774 00:35:22,720 --> 00:35:24,820 So let's assume it's a bit more narrow. 775 00:35:24,820 --> 00:35:25,720 That looks good. 776 00:35:27,060 --> 00:35:28,380 If I could use a mouse. 777 00:35:28,680 --> 00:35:29,680 That would look good. 778 00:35:30,060 --> 00:35:30,720 There you go. 779 00:35:31,260 --> 00:35:34,620 So what I've done is I've lined up a lot of these vertical lines. 780 00:35:34,900 --> 00:35:35,440 In here. 781 00:35:35,520 --> 00:35:36,980 With the symbols at the bottom. 782 00:35:37,340 --> 00:35:40,200 And then I can just keep increasing my number of cursors. 783 00:35:40,300 --> 00:35:43,060 And seeing if it lines up with the transitions every time. 784 00:35:43,320 --> 00:35:46,560 That means I've probably found where we change between ones and zeros. 785 00:35:46,640 --> 00:35:47,360 Where we switch bits. 786 00:35:47,680 --> 00:35:48,380 In the signal. 787 00:35:48,480 --> 00:35:49,140 And I can just keep going. 788 00:35:49,640 --> 00:35:50,700 I wish I hadn't done that. 789 00:35:53,800 --> 00:35:54,380 There you go. 790 00:35:54,820 --> 00:35:55,100 There we go. 791 00:35:55,260 --> 00:35:56,360 I can just keep going. 792 00:35:56,520 --> 00:35:58,060 And it kind of keeps going. 793 00:35:58,160 --> 00:36:00,200 Once you get a bit further into it. 794 00:36:00,260 --> 00:36:01,880 You can kind of adjust it. 795 00:36:01,940 --> 00:36:04,120 So it's a bit more correct across the whole thing. 796 00:36:04,220 --> 00:36:05,200 And that looks pretty good. 797 00:36:05,700 --> 00:36:08,240 So what I can now do is I can right click on this again. 798 00:36:08,460 --> 00:36:10,740 And I can add a threshold plot. 799 00:36:10,900 --> 00:36:11,980 And all that does is it says. 800 00:36:12,420 --> 00:36:13,720 We'll set a minimum value. 801 00:36:14,080 --> 00:36:14,760 We'll set a value. 802 00:36:14,860 --> 00:36:16,780 And we'll threshold it to binary. 803 00:36:16,960 --> 00:36:17,420 One or zero. 804 00:36:19,280 --> 00:36:20,000 And yeah. 805 00:36:24,820 --> 00:36:25,360 There we go. 806 00:36:27,600 --> 00:36:29,500 I am not good at computers. 807 00:36:33,120 --> 00:36:33,740 There we go. 808 00:36:33,880 --> 00:36:34,100 Okay. 809 00:36:34,160 --> 00:36:36,140 So what we've ended up with here is. 810 00:36:36,800 --> 00:36:39,460 If I go over this way. 811 00:36:39,660 --> 00:36:41,480 We've got an amplitude plot. 812 00:36:41,740 --> 00:36:43,520 And then at the bottom we've got a binary plot. 813 00:36:43,620 --> 00:36:45,620 And that looks very similar to the amplitude plot. 814 00:36:45,740 --> 00:36:47,220 Because we've got such a clean signal. 815 00:36:47,460 --> 00:36:50,220 But really it's just a threshold of the amplitude plot anyway. 816 00:36:50,900 --> 00:36:52,540 And then I right click on this one more time. 817 00:36:52,540 --> 00:36:54,780 And I do extract symbols. 818 00:36:55,020 --> 00:36:55,960 To stand it out. 819 00:36:56,520 --> 00:36:57,640 And I minimize this. 820 00:36:57,940 --> 00:36:59,760 And what you'll notice on the screen right here. 821 00:36:59,900 --> 00:37:00,260 I've got. 822 00:37:02,440 --> 00:37:03,600 Make it bigger. 823 00:37:04,020 --> 00:37:05,960 I don't remember how to do this. 824 00:37:08,560 --> 00:37:09,340 There you go. 825 00:37:11,360 --> 00:37:12,360 What you'll notice is. 826 00:37:12,460 --> 00:37:13,920 It dumped the binary of those symbols. 827 00:37:14,840 --> 00:37:16,060 Cutting it at the cursor points. 828 00:37:16,200 --> 00:37:17,580 To stand it out. 829 00:37:17,780 --> 00:37:20,740 So I've gone from a signal that was. 830 00:37:21,600 --> 00:37:22,880 Just an arbitrary capture. 831 00:37:22,940 --> 00:37:24,060 That I grabbed. 832 00:37:24,420 --> 00:37:25,900 And in a couple of minutes. 833 00:37:26,020 --> 00:37:27,820 I've got binary output for one of the packets. 834 00:37:28,120 --> 00:37:29,440 Now I can repeat that for. 835 00:37:29,660 --> 00:37:31,140 Every packet that I find in that file. 836 00:37:31,440 --> 00:37:32,840 I can look to see if they're the same. 837 00:37:32,960 --> 00:37:34,100 If it's repeating transmissions. 838 00:37:34,180 --> 00:37:34,840 If it's modifying. 839 00:37:35,020 --> 00:37:35,740 If it's changing them. 840 00:37:35,980 --> 00:37:37,660 I can look to see if there are code numbers. 841 00:37:37,980 --> 00:37:38,940 Does it look like. 842 00:37:39,020 --> 00:37:41,100 If we have different transmissions over time. 843 00:37:41,300 --> 00:37:43,560 Does it look like they've got different CRCs at a section. 844 00:37:44,000 --> 00:37:45,500 So a lot of analysis I can do. 845 00:37:51,000 --> 00:37:53,140 And this was a pager system. 846 00:37:53,360 --> 00:37:54,640 And there was a number written on the pager. 847 00:37:55,020 --> 00:37:56,760 And I was able to just pull that out. 848 00:37:56,800 --> 00:37:57,940 Of the appropriate field in the binary. 849 00:37:58,800 --> 00:37:59,340 Modify it. 850 00:37:59,600 --> 00:38:01,340 Retransmit and make one of the other pages buzz. 851 00:38:01,980 --> 00:38:03,600 And that one points in the CTF. 852 00:38:03,960 --> 00:38:05,360 And it was a super simple. 853 00:38:06,360 --> 00:38:07,560 It was a super simple challenge. 854 00:38:08,180 --> 00:38:09,460 Once you knew how to use the tools. 855 00:38:09,620 --> 00:38:11,320 But I mean I've just gone through it in. 856 00:38:11,860 --> 00:38:12,660 Two or three minutes. 857 00:38:12,960 --> 00:38:14,960 I mean it probably took me a couple of hours. 858 00:38:15,000 --> 00:38:15,560 To get it right. 859 00:38:15,660 --> 00:38:17,440 And to make sure that I was receiving the right thing. 860 00:38:20,740 --> 00:38:21,620 And all sorts of other things. 861 00:38:21,760 --> 00:38:23,900 But once you learn how to use the tools. 862 00:38:24,080 --> 00:38:25,700 That's an SDR challenge. 863 00:38:25,840 --> 00:38:28,120 That you might find in wireless CTF. 864 00:38:28,260 --> 00:38:29,900 Or that's something you might find. 865 00:38:29,940 --> 00:38:30,980 When you buy a device. 866 00:38:31,320 --> 00:38:34,320 And it takes minutes with a tool like InSpectrum. 867 00:38:34,500 --> 00:38:36,740 So it's a fantastic piece of software. 868 00:38:37,140 --> 00:38:38,480 And I highly recommend it. 869 00:38:38,700 --> 00:38:39,860 Which one of these is actually. 870 00:38:40,320 --> 00:38:40,880 There we go. 871 00:38:41,620 --> 00:38:43,560 The rest of this is mostly you mate. 872 00:38:44,660 --> 00:38:45,800 And then what we do. 873 00:38:45,900 --> 00:38:47,080 Is we take the same data. 874 00:38:47,740 --> 00:38:49,600 So now we know I've received it. 875 00:38:50,740 --> 00:38:51,140 What frequency it was on. 876 00:38:53,120 --> 00:38:53,600 I've. 877 00:38:54,080 --> 00:38:56,120 I've determined that it was amplitude modulated. 878 00:38:56,320 --> 00:38:57,700 If it had been frequency modulated. 879 00:38:57,920 --> 00:38:58,880 I just would have seen. 880 00:38:59,760 --> 00:39:01,980 Two levels in that plot. 881 00:39:02,420 --> 00:39:04,300 And I could have just done exactly the same thing. 882 00:39:04,380 --> 00:39:06,220 But applied a derived plot. 883 00:39:06,300 --> 00:39:07,140 For frequency modulation. 884 00:39:08,700 --> 00:39:09,440 So it. 885 00:39:09,560 --> 00:39:10,700 And you can eyeball it. 886 00:39:11,000 --> 00:39:13,480 There's no kind of magic automated method. 887 00:39:13,580 --> 00:39:14,780 For determining what it is. 888 00:39:14,960 --> 00:39:16,100 You just eyeball that. 889 00:39:16,280 --> 00:39:17,980 And you learn it over time. 890 00:39:20,740 --> 00:39:21,640 And you get the data rate out of it. 891 00:39:21,740 --> 00:39:23,900 If I tab over to InSpectrum. 892 00:39:24,600 --> 00:39:25,620 At the side here. 893 00:39:25,780 --> 00:39:27,480 I have my symbol period. 894 00:39:27,700 --> 00:39:28,520 I have my data rate. 895 00:39:28,640 --> 00:39:29,400 I have my bit period. 896 00:39:29,620 --> 00:39:30,680 And I can use that. 897 00:39:30,760 --> 00:39:32,400 To then program. 898 00:39:33,800 --> 00:39:34,320 Damn it. 899 00:39:35,720 --> 00:39:38,340 I can use that to program a dongle. 900 00:39:38,640 --> 00:39:39,840 This is the yardstick one. 901 00:39:39,920 --> 00:39:40,600 This is RF cat. 902 00:39:40,740 --> 00:39:43,060 This is the yardstick one transmission code. 903 00:39:43,340 --> 00:39:43,720 And so. 904 00:39:43,720 --> 00:39:45,200 Or receiving code sorry. 905 00:39:45,400 --> 00:39:47,820 And so this will just configure those values. 906 00:39:47,940 --> 00:39:49,480 I've just determined from InSpectrum. 907 00:39:49,840 --> 00:39:52,080 Into the yardstick one dongle. 908 00:39:52,560 --> 00:39:53,420 I will then. 909 00:39:53,940 --> 00:39:54,820 Use that. 910 00:39:55,380 --> 00:39:56,580 Like set that going. 911 00:39:56,900 --> 00:39:58,320 I will leave that python script running. 912 00:39:58,440 --> 00:40:00,900 And it will just dump every packet it sees to the screen for me. 913 00:40:01,040 --> 00:40:03,040 I've just automated the process that I took. 914 00:40:03,380 --> 00:40:05,500 Three minutes to complete manually. 915 00:40:05,940 --> 00:40:07,480 And it's just going to happen for me. 916 00:40:07,800 --> 00:40:09,620 And it's going to dump those things to the screen. 917 00:40:09,920 --> 00:40:11,140 And this is it. 918 00:40:11,240 --> 00:40:12,900 This is all the python code in that file. 919 00:40:13,720 --> 00:40:14,320 This is all you need. 920 00:40:14,840 --> 00:40:16,440 Well I guess there's an include at the top. 921 00:40:16,960 --> 00:40:19,080 But set the values of the. 922 00:40:19,180 --> 00:40:20,780 Into the modem for what you're trying to receive. 923 00:40:21,020 --> 00:40:22,100 And then it will just give them to you. 924 00:40:22,260 --> 00:40:24,000 And at that point you can leave it running overnight. 925 00:40:24,180 --> 00:40:25,660 As people play around with this thing. 926 00:40:25,880 --> 00:40:27,020 Or whenever you need to. 927 00:40:27,120 --> 00:40:29,160 Come back to it and do your analysis on it later. 928 00:40:29,620 --> 00:40:30,980 Easy peasy lemon squeezy. 929 00:40:31,120 --> 00:40:31,320 Yeah. 930 00:40:31,620 --> 00:40:33,940 But sometimes you want to do even more with it after that. 931 00:40:34,000 --> 00:40:38,140 Sometimes you want to potentially keep track of devices that are coming on. 932 00:40:39,040 --> 00:40:39,960 Coming around everywhere. 933 00:40:40,280 --> 00:40:40,640 Yeah exactly. 934 00:40:43,720 --> 00:40:44,680 So there was a. 935 00:40:45,280 --> 00:40:48,320 In the wonderful world that is inside my head. 936 00:40:48,480 --> 00:40:50,020 In the dark creature corners. 937 00:40:50,400 --> 00:40:52,440 Of fun bags and unicorns. 938 00:40:53,280 --> 00:40:54,560 There a project. 939 00:40:55,880 --> 00:40:58,120 Came out of my head. 940 00:40:58,180 --> 00:40:59,340 That I started a couple years ago. 941 00:40:59,460 --> 00:41:00,480 And I call it Sohos again. 942 00:41:01,280 --> 00:41:03,220 And the purpose of it was. 943 00:41:03,420 --> 00:41:05,240 My wife and I had just moved to a new house. 944 00:41:05,340 --> 00:41:06,620 It's pretty far back in the property line. 945 00:41:06,800 --> 00:41:07,500 And I wanted to know. 946 00:41:07,740 --> 00:41:10,080 Who and what was coming up in my property. 947 00:41:10,940 --> 00:41:12,300 To ascertain whether or not. 948 00:41:12,320 --> 00:41:13,620 I needed to put pants on or not. 949 00:41:13,720 --> 00:41:15,840 And if my mother in law was coming. 950 00:41:16,800 --> 00:41:17,600 To visit. 951 00:41:17,720 --> 00:41:18,740 Then pants off. 952 00:41:20,080 --> 00:41:20,980 So on and so forth. 953 00:41:21,140 --> 00:41:23,220 So the purpose of it. 954 00:41:23,280 --> 00:41:24,340 Was to start off with Wi-Fi. 955 00:41:24,440 --> 00:41:25,900 And this is during the time period in which. 956 00:41:26,900 --> 00:41:29,500 Devices when they probed for wireless networks. 957 00:41:29,700 --> 00:41:30,920 They would still mostly use. 958 00:41:31,060 --> 00:41:32,440 Their true MAC address. 959 00:41:32,780 --> 00:41:34,600 So some of this still works. 960 00:41:34,720 --> 00:41:35,780 But isn't entirely true. 961 00:41:35,880 --> 00:41:38,700 But the wireless network IDs that are there. 962 00:41:38,800 --> 00:41:39,660 That they are probing for. 963 00:41:39,660 --> 00:41:40,760 Over and over and over. 964 00:41:41,040 --> 00:41:42,900 Can still be used to be unique enough. 965 00:41:43,000 --> 00:41:45,100 In order to determine whose device it is. 966 00:41:45,160 --> 00:41:47,300 If you know who is physically at your house. 967 00:41:48,240 --> 00:41:49,160 The other cool thing. 968 00:41:49,240 --> 00:41:51,040 That I eventually added to it over time. 969 00:41:51,160 --> 00:41:52,080 Was some Bluetooth stuff. 970 00:41:52,160 --> 00:41:53,020 Some TPMS stuff. 971 00:41:53,180 --> 00:41:55,440 I'm working on a mass and alternator thing. 972 00:41:55,520 --> 00:41:56,920 With RTL SDRs. 973 00:41:57,160 --> 00:41:59,760 And what has now allowed me to determine. 974 00:41:59,940 --> 00:42:02,240 Is not just who is coming. 975 00:42:02,460 --> 00:42:03,680 But even mail services. 976 00:42:03,940 --> 00:42:05,400 Like did FedEx just show up. 977 00:42:05,400 --> 00:42:06,580 Is it the same FedEx guy. 978 00:42:06,780 --> 00:42:07,560 That's not creepy. 979 00:42:08,060 --> 00:42:10,500 So my wife Beth. 980 00:42:10,700 --> 00:42:13,060 Made me build in a time period. 981 00:42:13,160 --> 00:42:14,460 In which this information would decay. 982 00:42:14,640 --> 00:42:16,600 Just from organic capture. 983 00:42:16,880 --> 00:42:18,980 Until I flagged it as someone who I wanted. 984 00:42:19,160 --> 00:42:20,360 To track and identify. 985 00:42:20,600 --> 00:42:22,340 And that part is important in a moment. 986 00:42:23,280 --> 00:42:24,180 So it's. 987 00:42:24,220 --> 00:42:26,440 The term is based upon two words. 988 00:42:26,560 --> 00:42:26,760 Soho. 989 00:42:26,860 --> 00:42:27,540 Small home. 990 00:42:27,640 --> 00:42:28,140 Small office. 991 00:42:28,220 --> 00:42:28,680 Signals intelligence. 992 00:42:35,400 --> 00:42:37,120 With a SIG ID wiki. 993 00:42:37,320 --> 00:42:39,520 That was very very important for me. 994 00:42:39,560 --> 00:42:40,180 To be able to use. 995 00:42:40,300 --> 00:42:43,100 In order to help interpret some of the signals. 996 00:42:43,200 --> 00:42:45,280 That I was getting from the RTL SDR. 997 00:42:45,400 --> 00:42:47,580 To determine whether or not it was worth my time. 998 00:42:48,340 --> 00:42:49,260 To put in. 999 00:42:49,400 --> 00:42:51,180 To try to record that particular. 1000 00:42:53,020 --> 00:42:53,380 Transmission. 1001 00:42:54,660 --> 00:42:55,520 First steps first. 1002 00:42:55,660 --> 00:42:56,600 You got to collect your baseline. 1003 00:42:56,740 --> 00:42:58,220 Of everything that you have going around you. 1004 00:42:58,280 --> 00:43:00,440 This is some of the things about the antenna farm. 1005 00:43:00,600 --> 00:43:02,220 That I have in my attic and garage. 1006 00:43:02,420 --> 00:43:03,800 And other places. 1007 00:43:05,400 --> 00:43:05,740 You have a festive. 1008 00:43:07,300 --> 00:43:08,480 Collinear coaxial antenna. 1009 00:43:08,680 --> 00:43:10,120 On your right. 1010 00:43:10,700 --> 00:43:13,400 And that used to live in a window for a long time. 1011 00:43:13,680 --> 00:43:15,080 And Beth said get that out of here. 1012 00:43:15,240 --> 00:43:16,180 And I said but it's festive. 1013 00:43:16,580 --> 00:43:17,980 And lost that argument. 1014 00:43:19,220 --> 00:43:20,100 So the. 1015 00:43:21,020 --> 00:43:23,280 I finally got a rudimentary system in place. 1016 00:43:23,400 --> 00:43:25,360 That was doing wifi and bluetooth. 1017 00:43:25,600 --> 00:43:27,060 And a little bit of TPMS. 1018 00:43:27,320 --> 00:43:28,820 And it was really really interesting. 1019 00:43:29,080 --> 00:43:30,080 For a couple of reasons. 1020 00:43:30,500 --> 00:43:32,220 From the bluetooth side. 1021 00:43:32,220 --> 00:43:33,960 I had no idea there were so many. 1022 00:43:34,000 --> 00:43:35,320 Tickle me Elmo's in my neighborhood. 1023 00:43:37,440 --> 00:43:38,920 And that was fun. 1024 00:43:39,440 --> 00:43:41,000 The other thing was. 1025 00:43:41,080 --> 00:43:42,340 When Halloween came around. 1026 00:43:42,520 --> 00:43:43,300 I noticed that. 1027 00:43:43,880 --> 00:43:45,240 I had a lot of neighbors. 1028 00:43:45,340 --> 00:43:46,900 Who had their SSIDs of their home address. 1029 00:43:47,520 --> 00:43:49,140 So you think about it. 1030 00:43:49,460 --> 00:43:51,280 You set your SSID of your home address. 1031 00:43:51,520 --> 00:43:52,100 Well is that your home. 1032 00:43:52,180 --> 00:43:53,280 Well we know your address. 1033 00:43:53,400 --> 00:43:55,600 But now I know it's you with your device. 1034 00:43:55,640 --> 00:43:56,220 And where you live. 1035 00:43:56,300 --> 00:43:58,880 Based upon the network that you're probing for. 1036 00:44:02,220 --> 00:44:03,160 And I was tracking a neighbor. 1037 00:44:03,240 --> 00:44:05,120 Whose dog was defecating in our yard. 1038 00:44:06,280 --> 00:44:07,440 So that was a. 1039 00:44:08,120 --> 00:44:09,000 Fun interaction. 1040 00:44:09,420 --> 00:44:10,780 But what was really important. 1041 00:44:11,080 --> 00:44:14,580 Was a problem that my neighbors were having. 1042 00:44:14,920 --> 00:44:16,360 And they were noticing. 1043 00:44:16,720 --> 00:44:18,060 So I live in one of those neighborhoods. 1044 00:44:18,160 --> 00:44:20,160 Where people leave their cars unlocked. 1045 00:44:20,460 --> 00:44:21,180 And their houses unlocked. 1046 00:44:21,540 --> 00:44:23,240 And it's like I won't be the lower hanging fruit. 1047 00:44:23,480 --> 00:44:25,340 I'm obviously not the lower hanging fruit. 1048 00:44:26,000 --> 00:44:26,920 But they are. 1049 00:44:27,080 --> 00:44:27,860 And that's a lifestyle. 1050 00:44:28,140 --> 00:44:29,660 And I'm not going to try to argue or change that. 1051 00:44:32,220 --> 00:44:32,440 But it made sense to. 1052 00:44:32,700 --> 00:44:35,160 What ultimately ended up being $180 overnight. 1053 00:44:35,280 --> 00:44:36,160 Stolen from their car. 1054 00:44:36,260 --> 00:44:38,160 They leave their wallet, their phone, their laptops. 1055 00:44:38,380 --> 00:44:39,080 And all that sort of stuff. 1056 00:44:39,260 --> 00:44:41,760 And what I later determined out of it. 1057 00:44:41,840 --> 00:44:44,320 Was that criminals know that when things are stolen. 1058 00:44:44,520 --> 00:44:45,160 That are electronic. 1059 00:44:45,260 --> 00:44:46,460 They can be disabled and tracked. 1060 00:44:46,620 --> 00:44:47,380 But cash is king. 1061 00:44:48,100 --> 00:44:49,540 And we had the question of like. 1062 00:44:49,820 --> 00:44:51,020 Did you talk to your kids. 1063 00:44:51,240 --> 00:44:52,880 Do you need to have the scare talk with your kids. 1064 00:44:53,020 --> 00:44:53,700 Are your kids stealing. 1065 00:44:53,700 --> 00:44:54,860 I think it's your kids. 1066 00:44:54,900 --> 00:44:55,620 It's not Wi-Fi. 1067 00:44:57,360 --> 00:44:58,160 So anyways. 1068 00:44:59,460 --> 00:45:01,820 I created Operation Catch the Fucker. 1069 00:45:04,360 --> 00:45:05,900 And originally it was just. 1070 00:45:05,960 --> 00:45:08,000 Let's stand up a surveillance camera. 1071 00:45:08,680 --> 00:45:09,820 I do a lot of hunting. 1072 00:45:09,980 --> 00:45:12,100 So people when they work at night. 1073 00:45:12,260 --> 00:45:14,260 They kind of act like deer in some regards. 1074 00:45:14,780 --> 00:45:16,080 So I set up a camera. 1075 00:45:16,280 --> 00:45:17,980 Had to move his car over in the driveway. 1076 00:45:18,200 --> 00:45:19,760 And I put some blind spots in the area. 1077 00:45:19,880 --> 00:45:20,660 So the guy would. 1078 00:45:21,900 --> 00:45:23,600 At the time I didn't know it was a guy. 1079 00:45:23,700 --> 00:45:24,920 But when he came through. 1080 00:45:25,420 --> 00:45:26,400 He would you know. 1081 00:45:26,460 --> 00:45:28,620 Feel that it was a little bit more comfortable to hit the car. 1082 00:45:28,720 --> 00:45:30,060 Well I set the camera up on like. 1083 00:45:32,160 --> 00:45:32,960 Friday evening. 1084 00:45:33,340 --> 00:45:35,880 And well he showed up that evening. 1085 00:45:36,940 --> 00:45:39,140 And this is not the identifying photo. 1086 00:45:39,540 --> 00:45:41,060 There's better ones of him. 1087 00:45:41,360 --> 00:45:43,180 But he's coming up to the car. 1088 00:45:43,400 --> 00:45:43,820 And he's like. 1089 00:45:43,880 --> 00:45:45,700 Got a flashlight in his hand that you see. 1090 00:45:45,800 --> 00:45:46,700 But he's like strobing it. 1091 00:45:46,800 --> 00:45:48,020 Because he now sees this thing. 1092 00:45:48,380 --> 00:45:49,980 There that he hasn't seen before. 1093 00:45:50,500 --> 00:45:52,360 And in the first day we got him on the car. 1094 00:45:53,700 --> 00:45:54,620 And looking at it. 1095 00:45:54,660 --> 00:45:55,680 That was kind of cool. 1096 00:45:56,100 --> 00:45:58,480 So we showed it to the detectives. 1097 00:45:58,520 --> 00:45:59,640 They recognized who he was. 1098 00:45:59,740 --> 00:46:00,820 Because he was a frequent customer. 1099 00:46:01,420 --> 00:46:03,920 And during the interview process. 1100 00:46:04,600 --> 00:46:06,600 I suggested to the detectives. 1101 00:46:06,620 --> 00:46:08,740 That you get a warrant for the phone. 1102 00:46:08,920 --> 00:46:11,640 To get the bluetooth and mac address. 1103 00:46:12,240 --> 00:46:13,140 Off of the phone. 1104 00:46:13,280 --> 00:46:15,640 Because I happened to have this weird data set. 1105 00:46:15,800 --> 00:46:16,900 That I've been running for. 1106 00:46:17,300 --> 00:46:18,900 Like over a year. 1107 00:46:19,320 --> 00:46:20,780 And it's totally not creepy. 1108 00:46:20,980 --> 00:46:21,380 It's fine. 1109 00:46:24,120 --> 00:46:25,620 And let's see what happens. 1110 00:46:25,820 --> 00:46:26,460 And they go okay. 1111 00:46:26,560 --> 00:46:27,740 Well the guy consented. 1112 00:46:27,840 --> 00:46:28,600 They didn't need a warrant. 1113 00:46:28,760 --> 00:46:29,820 And sure enough. 1114 00:46:29,860 --> 00:46:31,040 He gave me the mac address. 1115 00:46:31,240 --> 00:46:32,160 I ran it in the data set. 1116 00:46:32,300 --> 00:46:32,760 And ding. 1117 00:46:32,920 --> 00:46:34,580 I got hits every single night. 1118 00:46:34,620 --> 00:46:35,740 That there was a reported theft. 1119 00:46:36,320 --> 00:46:37,280 In my neighborhood. 1120 00:46:38,260 --> 00:46:39,760 And that was awesome. 1121 00:46:39,860 --> 00:46:43,180 This thing augmented my normal surveillance camera system. 1122 00:46:43,840 --> 00:46:45,420 So that was cool. 1123 00:46:45,420 --> 00:46:46,560 And I was also. 1124 00:46:46,720 --> 00:46:48,580 The purpose of the project for me. 1125 00:46:48,620 --> 00:46:50,920 Was to get back into writing packet decoders. 1126 00:46:51,000 --> 00:46:53,180 And sniffers and C. 1127 00:46:53,380 --> 00:46:53,920 And all that stuff. 1128 00:46:54,080 --> 00:46:54,480 And Dragorn. 1129 00:46:54,740 --> 00:46:57,700 This was the other thing that Dominic and I were reflecting upon. 1130 00:46:57,920 --> 00:46:59,160 There's a lot of Mikes. 1131 00:46:59,320 --> 00:47:00,800 Who work in the radio space. 1132 00:47:01,520 --> 00:47:02,500 There's Mike Kershaw. 1133 00:47:02,660 --> 00:47:03,100 Mike Osman. 1134 00:47:03,440 --> 00:47:05,260 It just keeps going on and on and on. 1135 00:47:05,600 --> 00:47:08,060 So anyone know what Mike Osman looks like? 1136 00:47:09,620 --> 00:47:10,460 Not Osman. 1137 00:47:10,600 --> 00:47:10,760 Sorry. 1138 00:47:15,420 --> 00:47:15,980 Only one person. 1139 00:47:16,520 --> 00:47:18,080 This is old man Wi-Fi. 1140 00:47:18,900 --> 00:47:20,540 And old man Wi-Fi. 1141 00:47:20,540 --> 00:47:21,680 A couple years ago. 1142 00:47:21,760 --> 00:47:23,160 And I were talking about my project. 1143 00:47:23,920 --> 00:47:26,580 And that I had written a whole web UI to it. 1144 00:47:26,660 --> 00:47:27,000 And you know. 1145 00:47:27,060 --> 00:47:27,700 Databasing system. 1146 00:47:27,980 --> 00:47:29,260 And then he reached out to me and goes. 1147 00:47:29,340 --> 00:47:30,420 I may have killed your project. 1148 00:47:30,480 --> 00:47:32,220 By revamping all of Kismet. 1149 00:47:32,280 --> 00:47:34,140 And a new data aggregation service. 1150 00:47:34,420 --> 00:47:36,120 And functionality with a web UI. 1151 00:47:36,300 --> 00:47:36,960 Which is awesome. 1152 00:47:37,120 --> 00:47:37,920 I'm okay with this. 1153 00:47:45,700 --> 00:47:47,600 That's his Patreon. 1154 00:47:47,980 --> 00:47:48,300 Please. 1155 00:47:48,540 --> 00:47:51,160 If you never get a chance to see him. 1156 00:47:51,220 --> 00:47:53,280 At least support his beer fund. 1157 00:47:53,720 --> 00:47:55,700 By signing up for that. 1158 00:47:56,340 --> 00:47:56,860 All right. 1159 00:47:56,900 --> 00:47:58,620 So Kismet RC1. 1160 00:47:58,760 --> 00:48:00,020 I believe just went out. 1161 00:48:00,540 --> 00:48:01,820 Yeah like last week. 1162 00:48:01,920 --> 00:48:04,100 He put out a release candidate for this new version. 1163 00:48:04,220 --> 00:48:05,280 It's a complete rewrite. 1164 00:48:05,920 --> 00:48:06,860 Mostly rewrite. 1165 00:48:07,200 --> 00:48:08,780 It's got a web UI now. 1166 00:48:08,900 --> 00:48:09,500 Instead of that. 1167 00:48:09,500 --> 00:48:10,740 And curses. 1168 00:48:10,980 --> 00:48:11,280 UI. 1169 00:48:12,460 --> 00:48:13,180 It's a bunch. 1170 00:48:14,780 --> 00:48:16,840 It's got a whole bunch of nonsense. 1171 00:48:17,500 --> 00:48:17,820 Yeah. 1172 00:48:17,820 --> 00:48:18,240 Goodness. 1173 00:48:19,280 --> 00:48:19,940 Come on. 1174 00:48:20,140 --> 00:48:20,760 It's okay. 1175 00:48:21,780 --> 00:48:23,520 But it's really, really fantastic. 1176 00:48:23,760 --> 00:48:26,780 Because now you can run it on any kind of hardware. 1177 00:48:27,000 --> 00:48:29,220 So like the demonstration over there. 1178 00:48:29,300 --> 00:48:30,860 Is running on a Raspberry Pi zero. 1179 00:48:31,580 --> 00:48:33,620 That is monitoring everything in this room. 1180 00:48:33,820 --> 00:48:35,620 In a way that you just plug it into a device. 1181 00:48:35,740 --> 00:48:37,440 Without actually having to configure it. 1182 00:48:39,500 --> 00:48:40,360 You're off to the races. 1183 00:48:41,120 --> 00:48:43,260 But there's also some other things about Kismet. 1184 00:48:44,380 --> 00:48:47,200 In conversation with the Soho SIG and stuff. 1185 00:48:47,620 --> 00:48:52,660 And I haven't totally started putting in sensor code into it yet. 1186 00:48:52,760 --> 00:48:53,600 Because you know. 1187 00:48:53,600 --> 00:48:54,020 Time. 1188 00:48:54,100 --> 00:48:54,380 Money. 1189 00:48:54,460 --> 00:48:54,880 Energy. 1190 00:48:54,920 --> 00:48:55,720 And sleep. 1191 00:48:56,860 --> 00:48:59,680 And it wasn't until recently that I reached out to Mike and said. 1192 00:48:59,760 --> 00:48:59,900 Hey. 1193 00:49:00,080 --> 00:49:01,560 Just how hard is it to. 1194 00:49:01,760 --> 00:49:02,120 You know. 1195 00:49:09,500 --> 00:49:09,560 Do this. 1196 00:49:09,560 --> 00:49:11,020 And all these other sort of projects. 1197 00:49:12,360 --> 00:49:15,540 And see that you're wrapping it in Python. 1198 00:49:15,740 --> 00:49:16,860 And just firing it at it. 1199 00:49:16,940 --> 00:49:18,060 That looks awesome and easy. 1200 00:49:18,200 --> 00:49:18,300 He goes. 1201 00:49:18,780 --> 00:49:19,220 Nope. 1202 00:49:20,400 --> 00:49:20,840 So. 1203 00:49:21,380 --> 00:49:23,740 We're going to kind of step through that process. 1204 00:49:23,880 --> 00:49:24,700 As to why it's a no. 1205 00:49:24,780 --> 00:49:26,360 But it makes a lot of sense. 1206 00:49:27,840 --> 00:49:30,860 So the other modules that are in there. 1207 00:49:30,920 --> 00:49:32,220 That you may not necessarily know. 1208 00:49:32,700 --> 00:49:34,240 Are things about Zigbee. 1209 00:49:34,440 --> 00:49:35,540 There's RTL 433. 1210 00:49:39,500 --> 00:49:40,720 Weather stations and all that stuff. 1211 00:49:40,840 --> 00:49:42,140 Are going to be ingested in Kismet. 1212 00:49:42,760 --> 00:49:44,460 UAV drone systems are in there. 1213 00:49:44,600 --> 00:49:45,280 There's Z wave. 1214 00:49:46,760 --> 00:49:49,400 And that's just what's there right now. 1215 00:49:49,520 --> 00:49:49,980 Just you know. 1216 00:49:50,180 --> 00:49:51,440 Pull it down out of Git. 1217 00:49:51,540 --> 00:49:52,100 Compile it. 1218 00:49:52,180 --> 00:49:54,240 You're easy and good to go. 1219 00:49:54,440 --> 00:49:57,020 The other thing that Mike wanted to relate to everyone. 1220 00:49:57,240 --> 00:49:59,520 Is that he is a writer. 1221 00:49:59,980 --> 00:50:01,500 A fantastic writer. 1222 00:50:01,680 --> 00:50:03,880 A fantastic documenter. 1223 00:50:03,880 --> 00:50:05,580 Of his code and instructions. 1224 00:50:05,580 --> 00:50:07,320 And the link on the bottom. 1225 00:50:07,600 --> 00:50:09,380 Is the link to. 1226 00:50:10,860 --> 00:50:12,520 The developer source information. 1227 00:50:12,820 --> 00:50:14,760 That explains all the different data types. 1228 00:50:14,980 --> 00:50:16,420 That you could ever want to know about it. 1229 00:50:16,900 --> 00:50:18,420 In great detail. 1230 00:50:18,940 --> 00:50:20,240 And some folks will say. 1231 00:50:20,400 --> 00:50:21,460 Hey just look at the code. 1232 00:50:21,580 --> 00:50:22,160 There's your example. 1233 00:50:22,300 --> 00:50:24,640 He provides additional examples inside of it as well. 1234 00:50:24,800 --> 00:50:27,560 It's just the guy is overly thoughtful. 1235 00:50:27,920 --> 00:50:29,220 In a very good way. 1236 00:50:29,320 --> 00:50:31,260 For everyone to be able to pick it up and run with it. 1237 00:50:31,540 --> 00:50:32,200 So you should. 1238 00:50:32,200 --> 00:50:32,440 Yeah. 1239 00:50:32,440 --> 00:50:34,600 Having developed code for Kismet before. 1240 00:50:35,160 --> 00:50:36,700 For the Uber tooth project. 1241 00:50:37,000 --> 00:50:39,220 Sorry I've gone for a more casual relaxed stance. 1242 00:50:40,260 --> 00:50:41,180 So having. 1243 00:50:42,000 --> 00:50:44,020 Having developed Kismet. 1244 00:50:44,340 --> 00:50:45,700 Code for the Uber tooth project. 1245 00:50:45,760 --> 00:50:46,220 Historically. 1246 00:50:46,360 --> 00:50:49,140 It's really really easy with his documentation and things. 1247 00:50:49,340 --> 00:50:50,620 So like don't be. 1248 00:50:50,780 --> 00:50:52,940 If you do get to the stage where you are. 1249 00:50:53,200 --> 00:50:55,940 You found something that you want to monitor. 1250 00:50:56,140 --> 00:50:58,020 You think Kismet might be a great back end. 1251 00:50:58,060 --> 00:50:58,820 To monitor this thing. 1252 00:50:59,060 --> 00:51:00,960 And you need to get your code into it. 1253 00:51:02,200 --> 00:51:03,660 I'm afraid of adding code to Kismet. 1254 00:51:03,800 --> 00:51:06,560 It's super straight forward with his kind of help and documentation. 1255 00:51:07,540 --> 00:51:08,600 So with that. 1256 00:51:10,240 --> 00:51:11,600 Writing code for Kismet. 1257 00:51:11,760 --> 00:51:14,180 Is for the next few slides. 1258 00:51:14,440 --> 00:51:15,560 Is going to be a little bit like. 1259 00:51:15,640 --> 00:51:16,880 How you draw this damn owl. 1260 00:51:17,560 --> 00:51:19,440 You know you draw two concentric circles. 1261 00:51:19,600 --> 00:51:20,420 And the next thing you know. 1262 00:51:20,440 --> 00:51:21,240 You got a freaking owl. 1263 00:51:21,680 --> 00:51:22,640 Staring you in the face. 1264 00:51:23,780 --> 00:51:26,480 But there's some things I'm going to talk to you about. 1265 00:51:26,600 --> 00:51:27,720 That are the important things. 1266 00:51:28,040 --> 00:51:28,800 To consider. 1267 00:51:29,000 --> 00:51:29,880 The code is already there. 1268 00:51:32,200 --> 00:51:33,220 That you're able to fill in the blanks with. 1269 00:51:33,460 --> 00:51:35,020 But these are the parallels. 1270 00:51:35,200 --> 00:51:36,120 And the things to consider. 1271 00:51:36,500 --> 00:51:38,900 When you decide to go into writing your own sensors. 1272 00:51:39,020 --> 00:51:39,800 And telemetry. 1273 00:51:39,920 --> 00:51:40,540 So the background. 1274 00:51:40,720 --> 00:51:42,560 The importance of me doing this. 1275 00:51:42,660 --> 00:51:43,560 Is that for the wireless village. 1276 00:51:44,100 --> 00:51:45,200 Hopefully by ShmooCon. 1277 00:51:45,400 --> 00:51:46,520 I'll have an electronic badge. 1278 00:51:46,800 --> 00:51:48,580 Either finished in this prototyping. 1279 00:51:48,640 --> 00:51:48,980 Or available. 1280 00:51:49,140 --> 00:51:51,700 Where you'll be able to play most of our CTF. 1281 00:51:51,960 --> 00:51:53,100 From the badge. 1282 00:51:53,100 --> 00:51:55,500 For both wifi, bluetooth and software defined radio. 1283 00:51:55,780 --> 00:51:56,960 So that's my goal. 1284 00:51:57,360 --> 00:51:58,500 Don't hold me to it. 1285 00:51:58,940 --> 00:52:00,320 So first step. 1286 00:52:00,740 --> 00:52:02,940 You have to define a physical interface. 1287 00:52:03,160 --> 00:52:04,520 You have to define a physical layer. 1288 00:52:04,840 --> 00:52:06,440 Kismet doesn't know what you're giving it. 1289 00:52:06,720 --> 00:52:08,080 And it's written in C++. 1290 00:52:08,520 --> 00:52:11,100 So you're going to have to define something. 1291 00:52:11,360 --> 00:52:13,100 So it can ingest that data. 1292 00:52:13,300 --> 00:52:16,060 And know where to take the square peg. 1293 00:52:16,300 --> 00:52:17,440 And all that sort of stuff. 1294 00:52:17,840 --> 00:52:19,180 And once you've. 1295 00:52:19,660 --> 00:52:20,300 You know. 1296 00:52:20,700 --> 00:52:22,620 Mentally got that construct around your head. 1297 00:52:23,100 --> 00:52:24,380 The next few steps start. 1298 00:52:25,580 --> 00:52:26,380 Falling into place. 1299 00:52:26,560 --> 00:52:28,740 The other thing that is absolutely important. 1300 00:52:28,960 --> 00:52:30,280 Is to take a look at the demo code. 1301 00:52:30,420 --> 00:52:32,640 For dealing with tracking of the packets. 1302 00:52:32,920 --> 00:52:33,780 As they're coming in. 1303 00:52:33,840 --> 00:52:34,800 And tracking of the devices. 1304 00:52:35,160 --> 00:52:36,400 This is easily done. 1305 00:52:36,640 --> 00:52:38,340 It's just a couple of lines of code. 1306 00:52:38,420 --> 00:52:39,480 That you can just copy and paste. 1307 00:52:39,620 --> 00:52:40,880 And rename to fit for the device. 1308 00:52:40,960 --> 00:52:42,160 That you're looking to try to monitor. 1309 00:52:42,520 --> 00:52:44,340 But those are absolutely critical. 1310 00:52:45,180 --> 00:52:46,400 In order for Kismet to know. 1311 00:52:46,680 --> 00:52:49,320 What has just been given to it. 1312 00:52:53,100 --> 00:52:53,540 Step two. 1313 00:52:54,700 --> 00:52:55,500 Oh wait. 1314 00:52:55,540 --> 00:52:56,700 Sorry I got ahead of myself. 1315 00:52:57,060 --> 00:53:00,260 So thoughts for the constructs in C++. 1316 00:53:00,480 --> 00:53:01,220 So when I was like. 1317 00:53:01,360 --> 00:53:02,460 You know you have a byte stream. 1318 00:53:02,880 --> 00:53:04,680 And Kismet doesn't know what to do with that. 1319 00:53:04,880 --> 00:53:07,620 If you've ever written a packet sniffer before in C. 1320 00:53:08,380 --> 00:53:10,480 You may remember lid PCAP. 1321 00:53:10,660 --> 00:53:13,860 And you have the struct for a packet. 1322 00:53:14,060 --> 00:53:15,080 Alright I just got a packet. 1323 00:53:15,280 --> 00:53:16,980 What part of the packet is the IP address? 1324 00:53:17,220 --> 00:53:19,500 Is this TCP or UDP? 1325 00:53:19,740 --> 00:53:20,080 And then. 1326 00:53:20,080 --> 00:53:21,320 Well you have those variously. 1327 00:53:21,680 --> 00:53:23,040 Various defined structs. 1328 00:53:23,160 --> 00:53:24,340 Same sort of concept. 1329 00:53:24,480 --> 00:53:25,880 So on the right of the screen. 1330 00:53:26,040 --> 00:53:27,160 Is the radio tap header. 1331 00:53:28,580 --> 00:53:31,560 That defines everything that goes into that particular interface. 1332 00:53:31,880 --> 00:53:34,040 You'll have to define something very very similar. 1333 00:53:34,160 --> 00:53:35,760 So you give it a name. 1334 00:53:36,680 --> 00:53:37,560 A type. 1335 00:53:37,740 --> 00:53:39,220 And then you know. 1336 00:53:39,260 --> 00:53:40,220 Kind of a bit of an offset. 1337 00:53:41,780 --> 00:53:42,960 So step two. 1338 00:53:43,300 --> 00:53:44,960 Then you can even write some Python. 1339 00:53:45,280 --> 00:53:47,420 And the Python piece is going to be the glue. 1340 00:53:47,600 --> 00:53:49,260 That goes from the output of the tool. 1341 00:53:50,080 --> 00:53:51,560 And shoves it into Kismet. 1342 00:53:52,180 --> 00:53:55,060 And the closer to JSON that you make your tool. 1343 00:53:55,240 --> 00:53:57,080 The easier this will be for you. 1344 00:53:57,420 --> 00:54:00,180 So let's quickly talk about RTL 433. 1345 00:54:00,920 --> 00:54:02,580 When you run it from the command line. 1346 00:54:02,740 --> 00:54:05,300 This is the JSON that it barfs out at you in the console. 1347 00:54:05,680 --> 00:54:06,720 You got the time. 1348 00:54:07,040 --> 00:54:07,720 The brand. 1349 00:54:07,900 --> 00:54:08,400 OS model. 1350 00:54:08,540 --> 00:54:09,160 So on and so forth. 1351 00:54:09,260 --> 00:54:10,480 And then the actual values. 1352 00:54:11,900 --> 00:54:13,440 From the C++ side. 1353 00:54:13,620 --> 00:54:15,000 You can take a look at the header file. 1354 00:54:15,260 --> 00:54:16,960 And you see inside of it. 1355 00:54:17,020 --> 00:54:19,240 That there's pretty much the exact same things. 1356 00:54:20,080 --> 00:54:21,020 The different types of devices. 1357 00:54:21,220 --> 00:54:22,560 That are coming in via JSON. 1358 00:54:23,200 --> 00:54:25,740 And then the components of that code. 1359 00:54:25,860 --> 00:54:28,600 Are all identical amongst all those different things. 1360 00:54:28,780 --> 00:54:30,500 It's just shoving it into a different bucket. 1361 00:54:30,740 --> 00:54:33,500 So you know which bucket to then later pull it from. 1362 00:54:34,160 --> 00:54:34,440 All right. 1363 00:54:34,480 --> 00:54:35,460 So that's the header side. 1364 00:54:35,940 --> 00:54:37,620 And these are exactly. 1365 00:54:37,780 --> 00:54:38,840 Like each one of those functions. 1366 00:54:38,920 --> 00:54:40,740 Are pretty much exactly the same from each other. 1367 00:54:40,960 --> 00:54:43,400 But if you remember the JSON. 1368 00:54:43,740 --> 00:54:46,040 You can have multiple different types of values for them. 1369 00:54:46,560 --> 00:54:47,380 All righty. 1370 00:54:47,420 --> 00:54:49,120 Now on the C++ side. 1371 00:54:50,080 --> 00:54:51,200 Kismet just got a packet. 1372 00:54:51,380 --> 00:54:54,140 It just got this blob of data that just came in. 1373 00:54:54,220 --> 00:54:55,440 What is it going to do with it? 1374 00:54:55,760 --> 00:54:57,400 So it's going to take that JSON field. 1375 00:54:57,560 --> 00:54:58,180 Split it up. 1376 00:54:58,280 --> 00:55:00,220 And then follow whichever object class. 1377 00:55:00,340 --> 00:55:03,820 That it is going to need to execute code on. 1378 00:55:03,920 --> 00:55:05,180 In order to just shove it into. 1379 00:55:05,840 --> 00:55:07,900 Whatever container it needs to run in. 1380 00:55:08,200 --> 00:55:09,540 It's pretty much that simple. 1381 00:55:09,700 --> 00:55:11,380 To do the RTL 433 code. 1382 00:55:11,980 --> 00:55:13,700 In C++ for both the header. 1383 00:55:14,200 --> 00:55:15,640 And the source code itself. 1384 00:55:15,940 --> 00:55:17,100 Is almost. 1385 00:55:18,000 --> 00:55:18,940 Because of tabs. 1386 00:55:20,080 --> 00:55:21,200 And you know. 1387 00:55:21,220 --> 00:55:22,700 Beautifully formatted things. 1388 00:55:22,920 --> 00:55:23,700 And all that sort of stuff. 1389 00:55:23,840 --> 00:55:25,620 It's probably about 120 lines of code. 1390 00:55:25,940 --> 00:55:27,500 It's not that complex. 1391 00:55:28,960 --> 00:55:30,520 Now on the Python side. 1392 00:55:30,940 --> 00:55:32,820 Specifically with RTL 433. 1393 00:55:33,120 --> 00:55:34,740 There's this function. 1394 00:55:35,020 --> 00:55:36,480 For message queuing. 1395 00:55:37,340 --> 00:55:39,600 That is unique to that particular application. 1396 00:55:39,840 --> 00:55:42,040 So Mike wrapped that into it as well. 1397 00:55:42,260 --> 00:55:43,180 And that. 1398 00:55:43,460 --> 00:55:44,220 You know. 1399 00:55:44,260 --> 00:55:45,180 From the Python side. 1400 00:55:45,380 --> 00:55:48,080 You define your Python source. 1401 00:55:50,140 --> 00:55:53,200 Am I going to use this particular message transport medium. 1402 00:55:53,360 --> 00:55:54,840 In order to shove it across or not. 1403 00:55:55,080 --> 00:55:55,540 And if you are. 1404 00:55:55,660 --> 00:55:57,660 Then it has it's other known code base. 1405 00:55:57,760 --> 00:55:58,900 In order to execute against that. 1406 00:55:59,800 --> 00:56:01,620 And then finally you just say. 1407 00:56:01,700 --> 00:56:02,960 I want to open a device. 1408 00:56:03,900 --> 00:56:07,720 And then it just takes the output from standard in. 1409 00:56:07,860 --> 00:56:09,720 And then just shoves it into Kismet for you. 1410 00:56:09,820 --> 00:56:11,060 And life is peachy. 1411 00:56:11,740 --> 00:56:12,900 So it's pretty much. 1412 00:56:13,000 --> 00:56:14,340 Easy peasy lemon squeezy. 1413 00:56:14,460 --> 00:56:16,020 Like that looks a little bit scary. 1414 00:56:16,240 --> 00:56:17,300 And a little bit difficult. 1415 00:56:20,080 --> 00:56:21,900 The documentation is way more verbose. 1416 00:56:22,340 --> 00:56:24,780 But those are the main concepts and constructs. 1417 00:56:24,820 --> 00:56:26,820 You've got this data stream coming in. 1418 00:56:26,980 --> 00:56:29,160 Kismet needs to know how to compartmentalize it. 1419 00:56:29,200 --> 00:56:30,420 Into the different types of objects. 1420 00:56:30,700 --> 00:56:32,280 The objects are very well documented. 1421 00:56:33,440 --> 00:56:35,260 And identified for you in your classes. 1422 00:56:35,340 --> 00:56:36,820 For both public and private components. 1423 00:56:37,220 --> 00:56:39,160 And then you just shove the data around. 1424 00:56:39,480 --> 00:56:41,280 And it's a copy paste for the most part. 1425 00:56:41,380 --> 00:56:42,400 Of that particular function. 1426 00:56:43,720 --> 00:56:44,620 And that's that. 1427 00:56:44,880 --> 00:56:45,320 I was going to say. 1428 00:56:45,400 --> 00:56:47,280 If you're playing around with home automation. 1429 00:56:47,520 --> 00:56:48,560 Or you find something at home. 1430 00:56:50,080 --> 00:56:50,660 And you're using RTL 433. 1431 00:56:51,320 --> 00:56:53,620 Where you're expanding the existing tool. 1432 00:56:53,940 --> 00:56:56,420 If you can get it into the RTL 433 tool. 1433 00:56:56,560 --> 00:56:57,780 You have to write zero code. 1434 00:56:57,880 --> 00:56:58,640 To get it into Kismet. 1435 00:56:58,760 --> 00:56:59,820 Because it's been done for you. 1436 00:57:00,020 --> 00:57:02,560 If you can leverage an existing tool. 1437 00:57:02,920 --> 00:57:05,540 It's mostly done for you. 1438 00:57:05,920 --> 00:57:09,300 And if you ever want to get stuff into Kismet. 1439 00:57:09,380 --> 00:57:11,100 To get that kind of logging going. 1440 00:57:11,820 --> 00:57:16,140 I regularly ask Dragoon questions over IRC. 1441 00:57:16,360 --> 00:57:17,980 I'll ask him a casual question. 1442 00:57:18,080 --> 00:57:18,880 About some variable. 1443 00:57:19,220 --> 00:57:20,060 Like, what is this? 1444 00:57:20,080 --> 00:57:21,580 And he'll go away and make breakfast. 1445 00:57:21,800 --> 00:57:22,500 And come back. 1446 00:57:22,640 --> 00:57:24,080 And there'll be a 30 line response. 1447 00:57:24,340 --> 00:57:26,540 Which is now being integrated into the docs. 1448 00:57:26,780 --> 00:57:28,080 There'll be a code snippet. 1449 00:57:28,940 --> 00:57:30,020 He's so helpful. 1450 00:57:30,200 --> 00:57:30,720 And he's like, oh yeah. 1451 00:57:30,760 --> 00:57:31,560 That is a bit confusing. 1452 00:57:32,140 --> 00:57:33,260 I fixed my documentation. 1453 00:57:33,600 --> 00:57:34,460 I fixed my code. 1454 00:57:34,560 --> 00:57:35,400 I fixed your code. 1455 00:57:36,200 --> 00:57:37,220 And you're an idiot. 1456 00:57:38,120 --> 00:57:39,860 But without being like that. 1457 00:57:40,060 --> 00:57:40,220 Yeah. 1458 00:57:40,220 --> 00:57:43,040 Well, you feel like an idiot. 1459 00:57:43,120 --> 00:57:43,920 But he never says that. 1460 00:57:43,980 --> 00:57:44,780 Can I buy you a beer? 1461 00:57:45,000 --> 00:57:45,380 Like, yeah. 1462 00:57:45,460 --> 00:57:46,440 I'm not really sure what to do. 1463 00:57:46,560 --> 00:57:46,900 But yeah. 1464 00:57:47,040 --> 00:57:50,040 So he's super helpful if you ever do want to get stuff into Kismet. 1465 00:57:50,200 --> 00:57:53,060 But if you want to do just kind of the reverse engineering thing. 1466 00:57:53,440 --> 00:57:54,340 Go down the spectrum. 1467 00:57:54,840 --> 00:57:56,320 Mike Walters has run away. 1468 00:57:56,860 --> 00:58:00,160 So he doesn't have to answer your questions. 1469 00:58:00,280 --> 00:58:00,900 But he will be around. 1470 00:58:01,160 --> 00:58:02,180 And he'll be around tomorrow. 1471 00:58:02,460 --> 00:58:05,960 And he's super good at reverse engineering things as well. 1472 00:58:06,900 --> 00:58:09,080 And we have some experience in it. 1473 00:58:10,220 --> 00:58:12,060 So if you have anything they're kind of hacking on or working on at the moment. 1474 00:58:12,720 --> 00:58:13,520 Let us know. 1475 00:58:13,560 --> 00:58:15,300 And I'll be happy to talk to you about it. 1476 00:58:15,440 --> 00:58:18,140 And remember, it's not Wi-Fi. 1477 00:58:18,940 --> 00:58:19,380 Yeah. 1478 00:58:19,540 --> 00:58:20,680 Very rarely Wi-Fi. 1479 00:58:20,780 --> 00:58:21,940 Very rarely Wi-Fi. 1480 00:58:22,560 --> 00:58:23,260 That's our talk. 1481 00:58:23,400 --> 00:58:24,240 That's our talk. 1482 00:58:24,440 --> 00:58:24,780 We're done. 1483 00:58:28,780 --> 00:58:31,380 Is there a talk after us? 1484 00:58:32,020 --> 00:58:32,460 Yes. 1485 00:58:32,880 --> 00:58:34,240 There is a talk after us. 1486 00:58:34,360 --> 00:58:35,620 I wonder why it suddenly got busy.