1 00:00:00,000 --> 00:00:03,200 In a world... 2 00:00:05,460 --> 00:00:07,880 He sold tortillas on the corner. 3 00:00:07,880 --> 00:00:10,300 And the mob wanted in. 4 00:00:11,400 --> 00:00:13,260 These are my tortillas. 5 00:00:14,260 --> 00:00:15,580 Are we going? 6 00:00:15,580 --> 00:00:17,940 So you caught my little tortilla boy invitation? 7 00:00:17,940 --> 00:00:19,540 It's not very good. 8 00:00:19,540 --> 00:00:20,400 Alright! 9 00:00:20,720 --> 00:00:21,800 Welcome! 10 00:00:22,040 --> 00:00:24,200 I'm gonna use my search warrant voice. 11 00:00:24,200 --> 00:00:26,760 All of you put your hands behind your head. 12 00:00:27,800 --> 00:00:28,800 Excellent. 13 00:00:28,800 --> 00:00:31,240 Seriously, come on in, sit down, have fun. 14 00:00:31,460 --> 00:00:32,840 We're all here for the fun. 15 00:00:33,440 --> 00:00:34,620 My name is Zero Chaos. 16 00:00:34,620 --> 00:00:36,040 I am here with the Wireless Village. 17 00:00:36,040 --> 00:00:37,640 And it's my fault that this is all delayed. 18 00:00:37,640 --> 00:00:39,600 So, if you are just walking in, that's great. 19 00:00:39,600 --> 00:00:41,720 You're catching the first important talk. 20 00:00:42,060 --> 00:00:44,380 Only some losers spoke earlier. 21 00:00:44,380 --> 00:00:45,280 So, welcome. 22 00:00:45,280 --> 00:00:46,640 This is Intro to SDR. 23 00:00:46,640 --> 00:00:47,540 This is Russ. 24 00:00:47,540 --> 00:00:49,840 Russ is the newest member of our inner circle. 25 00:00:49,840 --> 00:00:52,860 And he has penetrated not only our networks, but our hearts. 26 00:00:54,660 --> 00:00:55,840 All the thanks. 27 00:00:55,920 --> 00:00:58,460 Wow, that was fricking risky business letting you do that. 28 00:00:58,460 --> 00:00:59,440 Thank you, Zero. 29 00:01:00,240 --> 00:01:01,920 So, I'm humbled. 30 00:01:01,920 --> 00:01:03,300 Thank you, everyone, for coming. 31 00:01:03,320 --> 00:01:04,540 My name is Russ. 32 00:01:04,740 --> 00:01:08,360 I'm going to teach you about a handful of things regarding software-defined radios. 33 00:01:08,360 --> 00:01:09,820 More importantly, for two reasons. 34 00:01:09,820 --> 00:01:13,160 One, so that y'all can play with all the stuff that we set up over here. 35 00:01:13,360 --> 00:01:16,400 Secondarily, I really want to see more ham radio operators. 36 00:01:16,400 --> 00:01:21,440 So, I'm going to show you the fun world of various bits of radio communications that are out there. 37 00:01:21,440 --> 00:01:25,260 And what you need to do in order to start testing the waters legally and cleanly. 38 00:01:25,260 --> 00:01:29,480 So, the title of the talk was originally, so you want to get into SDR. 39 00:01:29,700 --> 00:01:32,840 I was on the Blade RF channel not so long ago. 40 00:01:32,840 --> 00:01:36,100 And they actually suggested I change it to being 64 shades of qualm. 41 00:01:36,100 --> 00:01:38,340 As opposed to, like, 50 shades of gray. 42 00:01:38,540 --> 00:01:42,800 But nonetheless, I have Hoopy Cat to thank for that one. 43 00:01:43,020 --> 00:01:46,320 Real quickly, I'm going to cover some SDR 101 stuff. 44 00:01:46,320 --> 00:01:49,020 So that everyone understands what the heck I'm talking about. 45 00:01:49,400 --> 00:01:55,240 Some of the cool things that you can do with them as far as having distributed radios, portable packs. 46 00:01:55,240 --> 00:01:58,540 Some of the issues and concerns in regards to all that sort of stuff. 47 00:01:58,540 --> 00:02:01,240 Let's say you want to start setting these things up at your house. 48 00:02:01,240 --> 00:02:01,980 What do you need to do? 49 00:02:01,980 --> 00:02:05,180 Things to be cautious of in order to keep from burning equipment. 50 00:02:05,520 --> 00:02:11,000 Some nice things to be able to do that you can do with these various devices. 51 00:02:11,120 --> 00:02:17,520 And some various random things, more importantly, that I've come across that will be kind of hintish for the challenge. 52 00:02:17,520 --> 00:02:20,220 But also some of the other things that you may be interested in. 53 00:02:20,220 --> 00:02:21,520 And poking it around. 54 00:02:21,520 --> 00:02:32,820 So, software-defined radios, unfortunately, as far as getting into the hobby or working into it, is much like this picture describes. 55 00:02:32,820 --> 00:02:33,980 How to draw an owl. 56 00:02:33,980 --> 00:02:37,100 Well, draw two circles and then draw the rest of the fucking owl. 57 00:02:38,700 --> 00:02:44,260 There's a lot of people who are out there who say, Okay, I bought this dongle, I pop it in, and then woohoo, I'm sniffing the airwaves. 58 00:02:44,260 --> 00:02:45,880 Well, okay, maybe. 59 00:02:45,880 --> 00:02:52,280 So, how do you get from seeing that hearing static to a signal to actually seeing actual real data or anything along those lines? 60 00:02:52,280 --> 00:02:54,360 There's a missing step between this. 61 00:02:55,160 --> 00:03:01,240 So, I hope to be able to provide some information as to the missing steps so that you too can draw your very own owl. 62 00:03:01,560 --> 00:03:06,660 The thing to keep in mind with software-defined radios is that they are software-defined. 63 00:03:06,660 --> 00:03:08,580 It's just a radio at the front end. 64 00:03:08,580 --> 00:03:17,740 It is taking signaling directly off of the ICs to the back end and allowing the host computer in order to demodulate it as you go. 65 00:03:17,740 --> 00:03:22,700 Once again, the theme of The Village is kind of matrix-y some stuff in that. 66 00:03:22,700 --> 00:03:29,800 Well, if you remember when Neo learned Kung Fu, he was dynamically uploaded on the fly, he learned a new thing. 67 00:03:29,800 --> 00:03:31,600 Same thing with software-defined radios. 68 00:03:31,600 --> 00:03:34,960 You have to tell them how to interpret the signaling that's coming in. 69 00:03:34,960 --> 00:03:41,340 Fortunately, there's a lot of tools already built to do that, so you can then reverse-engineer those tools, read the documentation on them. 70 00:03:41,620 --> 00:03:58,140 But then you can start going a little bit nuts with GNU Radio and start exploring some of the fewer documented protocols that are out there, like some of the SCADA system water gates, flood gates, other forms of broadcasted communications, things along those lines. 71 00:03:59,000 --> 00:04:06,720 So the hardware to get into this, the whole reason why you're all here is what hardware is out there to do it, probably. 72 00:04:07,160 --> 00:04:09,620 It used to be the realm of academics. 73 00:04:09,620 --> 00:04:14,060 It used to be ungodly expensive, $40,000 and up. 74 00:04:14,220 --> 00:04:22,020 Then a couple years ago, Atis Research came out with the USRP, dropped it to being about a $2,000 price, and it's been cycling downhill from there. 75 00:04:22,020 --> 00:04:39,960 You have the cheapy little RTL-SDRs, which are actually meant to demodulate DVB-T radio transmissions, which is a form of high-def TV in Europe and China and such. 76 00:04:40,760 --> 00:04:43,380 But it's software that's doing that for you. 77 00:04:43,380 --> 00:04:47,020 It's just receiving the signal, and then the software is taking care of the rest. 78 00:04:47,020 --> 00:04:56,640 So with some hackery, with some software drivers, you're able to actually get them to be the cheapest, stupidest receivers that you can get. 79 00:05:00,540 --> 00:05:04,420 Dude, it's totally because I got trousered last night. 80 00:05:05,420 --> 00:05:12,720 Then you also have the HackRF and the BladeRF, which are the next series of really amazing tools, mostly because of price. 81 00:05:12,720 --> 00:05:18,760 So you can start dealing with various more frequencies, but they do fundamentally very different things. 82 00:05:19,100 --> 00:05:24,440 So be cautious and cognizant of what their capabilities are. 83 00:05:24,440 --> 00:05:27,380 One is half-duplex, one allows full-duplex. 84 00:05:27,380 --> 00:05:35,100 One is 30 MHz to 6 GHz, the other one's 300 MHz to just around 5 or 4 GHz, something along those lines. 85 00:05:35,340 --> 00:05:37,740 Three hours of sleep, I don't care anymore. 86 00:05:38,720 --> 00:05:42,700 But know which tool you're going to pick for the job that you're going to research. 87 00:05:42,700 --> 00:05:45,620 The radio signal that you're going to want to look into. 88 00:05:45,920 --> 00:05:50,520 Your antennas are your physical layer into this realm. 89 00:05:50,520 --> 00:05:58,680 If you don't have the right antenna or don't understand basic radio theory of antenna design, you're going to have bad times. 90 00:05:58,860 --> 00:06:12,800 If you end up trying to transmit with an improperly attenuated antenna, you're going to get a sad panda face on your reflected mirror screen from your monitor after you figure out, fuck, I just burned this thing up. 91 00:06:12,920 --> 00:06:16,040 So there's a great book called Antenna Theory. 92 00:06:17,100 --> 00:06:20,500 So I suggest going out, picking it up, just flip through it. 93 00:06:20,500 --> 00:06:25,440 You'll be able to understand, you know, resonance and all that sort of stuff to tune to the right frequency. 94 00:06:25,540 --> 00:06:28,920 Actually, it's even just better to understand so that you actually can... 95 00:06:28,920 --> 00:06:34,700 If your antenna is way too big, you're going to pick up more noise for the signal that you're not intentionally trying to receive. 96 00:06:34,700 --> 00:06:44,120 So by having the right height, or length rather, of your antenna, you're going to be able to better filter out what it is you're going to be looking for. 97 00:06:44,120 --> 00:06:52,380 You also have filters, now that I mentioned it, that can bandpass filters that help you whittle out even more noise and all that, but I'll get to that in a moment. 98 00:06:52,380 --> 00:06:53,760 I'm getting ahead of myself. 99 00:06:55,720 --> 00:07:02,300 So compared to things like Kismet and anything else along those lines, Kismet gives you raw packets. 100 00:07:02,300 --> 00:07:07,320 Software-defined radio capturing tools give you just raw data. 101 00:07:08,320 --> 00:07:13,080 Sometimes they store that data in a proprietary format, otherwise they don't. 102 00:07:13,080 --> 00:07:17,740 And what they give you is representations of IQ data. 103 00:07:17,920 --> 00:07:21,080 Imaginary and quotient components of a signal. 104 00:07:21,080 --> 00:07:24,780 I'm not going to get into the fancy math, just recognize the terms. 105 00:07:24,780 --> 00:07:29,820 There's a lot of fun math behind it, and it also explains the DC spike and all that stuff. 106 00:07:29,820 --> 00:07:47,480 But what they're actively doing is comparing the signals in order to come up with a representation of something that you'll be able to use in order to apply software to, then to convert it to audio, take a look at the audio stream, or be able to demodulate it into a bit stream. 107 00:07:47,480 --> 00:07:49,380 And I'll have some examples of that in a moment. 108 00:07:49,980 --> 00:07:54,320 Like I said, it used to be really difficult to get into this. 109 00:07:54,600 --> 00:07:57,240 Commercially, you're paying a lot of money. 110 00:07:57,340 --> 00:07:59,080 Academically, you're paying a lot of money. 111 00:07:59,080 --> 00:08:11,000 The software and the papers that were out there in regards to it, having been an academic, I call it gradware, meaning the software only works for graduate students for the exact experiment that they're working on right then and there. 112 00:08:11,000 --> 00:08:13,660 If you try to download it, it comes with no documentation. 113 00:08:13,660 --> 00:08:15,840 If you try to run it, good frickin' luck. 114 00:08:15,940 --> 00:08:18,880 If you need help with it, good frickin' luck. 115 00:08:19,000 --> 00:08:30,660 But fortunately, thanks to folks like Dominic, Mike Osman, and the rest of the folks in the community, I don't see anyone else here right off the bat that I'm thanking for helping me with these various things. 116 00:08:30,720 --> 00:08:32,480 But anyways, yeah! 117 00:08:32,480 --> 00:08:34,080 Round of applause. 118 00:08:38,760 --> 00:08:50,240 So Mike Osman threw out the HackRF as a very easy-to-use tool, and now more and more people are getting into it, such as yourselves. 119 00:08:50,940 --> 00:09:08,780 So because they are software-defined and not limited to just one function, your ability to observe and examine radio communications is limited to your own skill sets and who you work with, or what your knowledge base is. 120 00:09:08,780 --> 00:09:28,480 Travis Goodspeed, who is not here just yet, has used software-defined radios for his SASA, where he's tracking low-Earth-orbiting satellites and then capturing their radio communications in order to figure out what it is they're saying and what it is they're doing. 121 00:09:28,480 --> 00:09:37,360 I highly recommend you corner this neighborly individual in order to have him explain to you what SASA is and how it works. 122 00:09:37,360 --> 00:09:48,880 That's an application of these cheap devices being able to allow individuals to do more thorough research on all these other protocols that may or may not have really awful problems. 123 00:09:50,320 --> 00:10:01,340 So for your own edification, the majority of the main points that you need to pay attention to is what your sampling bit rate is. 124 00:10:01,420 --> 00:10:04,300 Let me slow down. 125 00:10:04,300 --> 00:10:07,120 Red, leather, yellow... Wow, I can't even do that. 126 00:10:07,120 --> 00:10:10,360 Anyways, drink. 127 00:10:11,860 --> 00:10:16,220 You need to be able to understand how much bandwidth you're actually recording at a time. 128 00:10:16,440 --> 00:10:20,200 You never record at the center of the frequency that you want to record at. 129 00:10:20,200 --> 00:10:24,040 You always record off-center of it because of the DC spike. 130 00:10:24,540 --> 00:10:26,440 I'll show you what that looks like in a minute. 131 00:10:26,760 --> 00:10:31,920 But like I said, pay attention to the tool that you're using for the radio frequency that you're going to examine. 132 00:10:31,920 --> 00:10:40,180 The tools that are out there for folks who want to just get into this and also start messing with the SDR challenges here. 133 00:10:40,920 --> 00:10:46,140 If you got PIN2, you've solved like 99% of your problems and Nubuntu ain't one. 134 00:10:46,600 --> 00:10:55,160 The program GQRX is a magnificent program to be able to just see what's out there from a radio communication standpoint. 135 00:10:55,160 --> 00:11:03,660 You get a line chart of peaks and valleys of signal strengths and then you get a waterfall display so you can see how it communicates over time. 136 00:11:04,200 --> 00:11:08,620 In addition to that, you'll be able to more clearly identify what your center frequency is. 137 00:11:08,620 --> 00:11:17,060 Now keep in mind, these cheap little devices, they have drift as to what they report their receiving signal is. 138 00:11:17,060 --> 00:11:25,100 Because as they warm up or as they cool down, the clocks in them cause what they're representing to shift. 139 00:11:25,420 --> 00:11:31,200 So a couple times during the day, either unplug it, let it cool down, or I'll show you some other things you can do. 140 00:11:31,200 --> 00:11:34,220 But you need to find a reference frequency. 141 00:11:34,220 --> 00:11:36,340 Yes sir? 142 00:11:38,810 --> 00:11:39,470 Cheap ones. 143 00:11:39,470 --> 00:11:40,010 Cheap ones. 144 00:11:40,010 --> 00:11:42,950 The other devices can drift, do drift. 145 00:11:43,390 --> 00:11:44,390 The HackRF... 146 00:11:44,970 --> 00:11:48,010 Yeah, the HackRF is flawless. 147 00:11:48,610 --> 00:11:51,650 I haven't seen the HackRF drift. 148 00:11:51,650 --> 00:11:53,190 I haven't seen my BladeRF drift. 149 00:11:53,630 --> 00:11:56,090 The RTLs drift. 150 00:11:56,090 --> 00:12:04,650 The best way to find out what your center frequency drift is, is to go to the National Weather Service transmissions. 151 00:12:04,650 --> 00:12:09,450 And then you'll see, if you select it and hit center, you'll be off by a couple kilohertz. 152 00:12:09,930 --> 00:12:10,350 So you'll be... 153 00:12:12,010 --> 00:12:14,070 Yes, you can do that as well. 154 00:12:16,010 --> 00:12:16,890 Absolutely. 155 00:12:17,190 --> 00:12:23,890 But, so all these things are your initial tools in order to see kind of what's out there, see the light, how bright the light is. 156 00:12:23,890 --> 00:12:34,070 And then you take that and run it through other programs like your new radio or other pre-compiled applications in order to demodulate more cleanly and directly. 157 00:12:34,070 --> 00:12:37,090 If you have Windows, SDR-Sharp works pretty well. 158 00:12:37,090 --> 00:12:38,530 There's been drama surrounding that. 159 00:12:38,530 --> 00:12:40,270 Not going to get into that at the moment. 160 00:12:41,210 --> 00:12:42,370 But it's still out there. 161 00:12:42,370 --> 00:12:45,090 It's available probably every two weeks or so. 162 00:12:45,090 --> 00:12:50,310 I see another plug-in written for it and it's for added capabilities and all that sort of stuff. 163 00:12:50,930 --> 00:12:54,090 The biggest thing that you need to understand with software-defined radio. 164 00:12:54,090 --> 00:12:55,530 Alright, you see a signal. 165 00:12:55,670 --> 00:12:57,210 What the heck is that signal? 166 00:12:57,210 --> 00:13:02,350 Well, there's a great wiki that is the signal identification guide. 167 00:13:02,350 --> 00:13:11,370 What they have for their information is what frequency it is, has someone identified it before, a description of what they've identified it as. 168 00:13:11,530 --> 00:13:19,870 A picture of the waterfall display of it, like a really clean, crisp waterfall of it so you can see what it looks like as it's transmitting. 169 00:13:20,170 --> 00:13:24,050 And most importantly, an audio sample of it so you can hear it. 170 00:13:24,050 --> 00:13:31,690 So your software-defined radio being your brain is the best thing that you can use to identify other radio communications. 171 00:13:31,690 --> 00:13:38,170 An example was when we were at B-Sides Vegas earlier this week giving a two-day class on this stuff. 172 00:13:38,170 --> 00:13:44,890 Justin and I were observing a POCSAG communication, but it was nowhere near any pager frequency. 173 00:13:44,890 --> 00:13:54,190 But what we were able to then identify as being is like those restaurant hockey pucks that light up and vibrate whenever someone's table is ready. 174 00:13:54,190 --> 00:14:10,370 So just by being able to listen to it, identify it, and then doing some other querying out of radio reference and some FCC lookup stuff, it was very plainly and easily identified as that being the device without even having to demodulate it. 175 00:14:11,090 --> 00:14:20,050 So the other things that you can use in order to analyze your captured signals is a fantastic tool called Bodline. 176 00:14:20,790 --> 00:14:23,290 Bodline has some quirks. 177 00:14:23,290 --> 00:14:25,870 It doesn't like large files. 178 00:14:26,710 --> 00:14:45,250 And there is, according to Dragorn, a push to have an open-source version, a complete and total open-source version of Bodline, in order to address some of these quirks and also to get them rolled into Pentoo and other open-source distros. 179 00:14:45,250 --> 00:14:53,830 But really the big thing that you need to be able to do with Bodline, and you can either use DD or Split, but you need to break up your IQ capture files into 50 meg chunks. 180 00:14:54,550 --> 00:15:08,730 Now, as you can imagine, what if you chop the file where the transmission is like right at that middle point, so in that 49 to 51 meg barrier, you chop the file right there and you cut your signal in half? 181 00:15:08,730 --> 00:15:18,890 Well, use DD in order to trim and skew, in order to whittle down on that IQ file to actually get a good handle as to what it is you're seeing. 182 00:15:19,010 --> 00:15:20,830 So, the... 183 00:15:22,810 --> 00:15:25,450 Wow, I am that jerk. 184 00:15:25,550 --> 00:15:26,750 Voicemail. 185 00:15:27,790 --> 00:15:33,350 The way that you run Bodline, download it, extract it, execute it. 186 00:15:33,350 --> 00:15:34,490 It's pre-compiled. 187 00:15:34,490 --> 00:15:35,730 You're good to go. 188 00:15:35,730 --> 00:15:38,990 So, when you open up Bodline, this is kind of what it starts with. 189 00:15:38,990 --> 00:15:41,570 It's got some fun little quirks because of the UI. 190 00:15:41,570 --> 00:15:43,910 You right-click for your menus. 191 00:15:43,910 --> 00:15:52,790 You'll be able to navigate to your capture.bin or capture.iq file from whatever it is you're using to record the raw IQ samples from. 192 00:15:53,110 --> 00:15:56,850 You need to select that it is a raw file format. 193 00:15:56,850 --> 00:16:11,490 Then the few other things that you need to remember to do is to, whatever your sample rate for your capture was, remember to put in the sample rate as well so your cadence for the demodulation is going to be able to display cleanly. 194 00:16:11,490 --> 00:16:16,450 You're going to select two channels because you have both I and Q in these files. 195 00:16:17,010 --> 00:16:19,690 Quadrature and 8-bit unsigned data. 196 00:16:19,690 --> 00:16:25,250 And once you do that, this is an example of a recording of a key fob for a car. 197 00:16:26,270 --> 00:16:27,890 Specifically, drag horns. 198 00:16:28,570 --> 00:16:32,330 So you'll see it displays these bursts. 199 00:16:32,370 --> 00:16:42,730 And since we, for this example from the class, recorded offset from the center frequency, you'll see these little groupings of data bursts. 200 00:16:42,750 --> 00:16:45,570 Well, you can enhance, like in CSI. 201 00:16:45,750 --> 00:16:50,230 And what you very plainly see is stuff like this. 202 00:16:50,230 --> 00:16:53,890 What do you think this on-off-on-off-on-off-on-off at the top is? 203 00:16:55,970 --> 00:16:56,530 Preamble. 204 00:16:56,530 --> 00:16:57,690 Very good. 205 00:16:58,070 --> 00:17:01,910 And then right after that, you have a series of on's and off's. 206 00:17:02,430 --> 00:17:04,070 So what do they mean? 207 00:17:04,070 --> 00:17:05,430 What is their significance? 208 00:17:05,590 --> 00:17:07,370 Well, that's up to you to determine. 209 00:17:07,370 --> 00:17:14,010 How do you go from this in order to put it into an actual reverse bit stream or byte stream? 210 00:17:14,450 --> 00:17:18,350 Well, that's when time and experience is going to come into play. 211 00:17:18,350 --> 00:17:32,230 I'll show you a few more examples of this, but when I was working on demodulating something with Mike Ostman, I shot him a screen cap of one of my baud line captures, and he immediately responded back with what the bit stream was. 212 00:17:32,230 --> 00:17:34,430 And I was like, dude, how the hell did you do that? 213 00:17:34,430 --> 00:17:36,270 How did you demodulate too quickly? 214 00:17:36,270 --> 00:17:40,730 What new radio widget do you have kicking out? 215 00:17:40,730 --> 00:17:42,330 I just looked at it. 216 00:17:43,130 --> 00:17:45,770 Okay, clearly I'm not there yet. 217 00:17:45,770 --> 00:17:51,990 But if you get in a whole lot, you can zoom in very, very plainly into seeing this one capture. 218 00:17:52,010 --> 00:17:58,990 And you also then need to identify whether it's OOK, AFSK, or any other form of modulation. 219 00:17:58,990 --> 00:18:02,350 So like OOK on off is like this. 220 00:18:02,350 --> 00:18:03,670 It's like Morse code. 221 00:18:04,130 --> 00:18:12,370 AFSK, you'll see, I'm not sure if I have an example on the screenshot, but it alternates between two frequencies. 222 00:18:12,370 --> 00:18:22,750 Now the other thing to keep in mind when looking at this stuff, when you see something is on and something is off, we typically think of that as a binary representation of a 1 or a 0. 223 00:18:22,810 --> 00:18:24,650 That may or may not be true. 224 00:18:24,650 --> 00:18:40,270 Because there's really neat things out there like other modulation schemas like Manchester encoding, where you actually have symbols, and depending on how those symbols match up, they pair up to actually being a representation of a 1 or a 0. 225 00:18:40,270 --> 00:18:44,450 That really screwed with me for a while when I started getting into this. 226 00:18:44,690 --> 00:18:48,930 So in this case, I gave you an example of OOK data. 227 00:18:48,990 --> 00:18:50,650 Transmitter's on, it's off. 228 00:18:52,090 --> 00:18:55,390 And the things that you can do that can go wrong. 229 00:18:55,390 --> 00:18:57,370 I'm just going to ramble at this point. 230 00:18:58,130 --> 00:19:12,010 So for those who are going to do the contest, or anyone who's going to bot those little RTLs, you may notice once you put two RTLs side by side, what it is you're receiving looks like shit. 231 00:19:12,070 --> 00:19:14,570 Or is very different from the other person. 232 00:19:14,830 --> 00:19:16,150 This is why. 233 00:19:17,210 --> 00:19:28,350 Sometimes when you pop off the bottom tin plate, maybe it's connected, maybe it's not, maybe the ground plane is connected to the element feed, who the F knows. 234 00:19:28,410 --> 00:19:36,930 So really, some of the best stuff that you can do in order to ensure that you get a good clean signal is to go out on Amazon and buy little pigtails. 235 00:19:36,930 --> 00:19:44,670 So you can actually connect real antennas with SMA or PL239 or whatever connector head is necessary for what it is you're looking into. 236 00:19:44,970 --> 00:19:46,670 I can't stress that enough. 237 00:19:46,950 --> 00:19:52,390 It starts with the physical layer, your actual hardware of the wire. 238 00:19:52,390 --> 00:19:56,930 So if you have that, bad times. 239 00:19:57,210 --> 00:19:59,970 Now, Lightning definitely wants to be your friend. 240 00:19:59,970 --> 00:20:01,930 Do not be Lightning's friend. 241 00:20:01,930 --> 00:20:13,770 If you're going to set up a ground station, a base station at your house, make sure, please, please, please, please, please, make sure that you do Lightning suppression and grounding properly. 242 00:20:13,770 --> 00:20:18,130 Have a licensed electrician, if you're not familiar with it, have a licensed electrician come out and help you with it. 243 00:20:18,130 --> 00:20:20,690 Or find another ham radio operator in your area. 244 00:20:20,690 --> 00:20:22,690 They'll be more than happy to come out, I'm sure. 245 00:20:23,630 --> 00:20:29,790 This is an example of an Ethernet plug from an Ethernet based radio that I manage. 246 00:20:29,790 --> 00:20:31,290 The radio survived. 247 00:20:31,290 --> 00:20:36,550 A six foot section of that Ethernet cable baked and fried. 248 00:20:36,830 --> 00:20:38,990 But the Lightning suppression system worked. 249 00:20:38,990 --> 00:20:39,990 The radio survived. 250 00:20:39,990 --> 00:20:41,450 It's working now. 251 00:20:41,850 --> 00:20:44,550 Everything else south of the Lightning arrestor worked. 252 00:20:44,550 --> 00:20:47,130 The grounding straps and everything else worked. 253 00:20:47,230 --> 00:20:49,730 Make sure you get that right. 254 00:20:49,730 --> 00:20:51,890 Because otherwise, I've blown radios. 255 00:20:51,890 --> 00:20:53,610 I've had almost fires. 256 00:20:53,610 --> 00:21:04,750 Dragorn, just recently at his house, Lightning hit one tree, jumped out of the tree, hit another tree, said, fuck you tree, you're too small, and then jumped to a third tree, and then went down to earth ground. 257 00:21:04,750 --> 00:21:06,610 It will do whatever it wants. 258 00:21:06,610 --> 00:21:08,610 It's the honey badger of nature. 259 00:21:09,270 --> 00:21:11,210 Lightning doesn't give a fuck. 260 00:21:11,510 --> 00:21:15,910 So, the other thing to keep in mind is just general static. 261 00:21:16,230 --> 00:21:25,070 Taking these cheaper ones, and you'll notice that the connector heads of them are kind of barreled and very loose. 262 00:21:25,070 --> 00:21:32,790 I've seen some where if you just twist it a little bit, it causes the receiver in it to freak out and reboot the actual device. 263 00:21:32,790 --> 00:21:39,750 So, whatever it is you're monitoring stops, you'll take a look at DMessage, and you'll see that it disconnected and reconnected. 264 00:21:39,770 --> 00:21:40,850 So, be wary. 265 00:21:40,850 --> 00:21:41,930 You get what you pay for. 266 00:21:41,930 --> 00:21:43,150 A lot like training. 267 00:21:43,890 --> 00:21:50,210 But the thing, if you're going to set up a base station at your house, you're probably going to have the antenna outside. 268 00:21:50,210 --> 00:21:55,770 Be very, very careful of wind and static built up on your elements with wind. 269 00:21:55,890 --> 00:22:00,790 Like I said, any time something rubs against something else, you're going to generate some level of static. 270 00:22:00,790 --> 00:22:05,510 These devices sometimes don't have static protection built into them. 271 00:22:06,730 --> 00:22:07,890 It's a crap shoot. 272 00:22:07,890 --> 00:22:11,610 I've bought the exact same device out of the exact same batch queue. 273 00:22:11,610 --> 00:22:14,350 Some have ESD protection, some don't. 274 00:22:14,350 --> 00:22:16,390 You don't know until you open it up. 275 00:22:16,390 --> 00:22:22,490 And you can fry your radio receiver and these things with a little tiny shock. 276 00:22:22,930 --> 00:22:24,430 And I have done that. 277 00:22:24,950 --> 00:22:32,550 So, the other things, if you're going to set up a base station, are stuff to... these two documents to read. 278 00:22:33,030 --> 00:22:39,290 The mitigation of radio noise from external sources at radio receiving sites and the Enable RFI Handbook. 279 00:22:39,290 --> 00:22:45,170 You don't have to be a crazy person like me and build a skiff in your basement that has a Faraday cage and all that stuff. 280 00:22:45,170 --> 00:22:52,730 But eliminating common radio signal sources, like noise sources, in your environment helps a ton. 281 00:22:52,730 --> 00:22:57,970 It really, really helps clean up some of the signals that you're going to be receiving. 282 00:22:57,990 --> 00:23:05,170 So, some of the best examples inside these guides are the computer power supplies. 283 00:23:05,170 --> 00:23:09,950 Not in accordance with barrier feed and ground principles like BFG. 284 00:23:11,570 --> 00:23:17,470 So, what that means is that this electrical outlet, this plug right here, is plastic. 285 00:23:17,470 --> 00:23:20,870 It's not grounded to the actual power supply itself. 286 00:23:21,030 --> 00:23:27,710 So, any signal source coming in is now going inside the computer and can possibly cause a source of interference. 287 00:23:27,970 --> 00:23:34,710 Also from this same guide is another great example where someone thought it was a brilliant idea to take a copper braid... 288 00:23:34,710 --> 00:23:38,010 to a copper braid and use brass and just paint over it. 289 00:23:38,010 --> 00:23:43,350 So, what ended up happening is the connector had expanded and contracted over time due to the elements. 290 00:23:43,350 --> 00:23:45,250 It created a fracture in the cap. 291 00:23:45,530 --> 00:23:52,150 The issue with this device was it was a grounding point for a cellular communication tower. 292 00:23:52,150 --> 00:23:55,370 It brought the cellular communication tower down to its knees. 293 00:23:55,370 --> 00:23:58,250 Just that, from improper grounding. 294 00:23:58,250 --> 00:24:06,090 So, if you're going to go this level of insanity, make sure you just read those guides and cover your basics. 295 00:24:06,090 --> 00:24:12,330 The clocks, as I mentioned earlier, they tend to drift as they warm up and cool down. 296 00:24:12,730 --> 00:24:22,990 So, some of the things that you can do in order to manage that drift is cooling your RTLs, or keeping them cool for longer periods of time, or cycling them around for their usage. 297 00:24:23,730 --> 00:24:29,730 The stupidest thing that I've seen someone do is take a fan and put it on top of their RTL. 298 00:24:29,730 --> 00:24:33,250 Because a fan is just a noise generator for RF. 299 00:24:33,250 --> 00:24:39,190 And you're putting a bright flashlight next to your eyeball as you're receiving these radio communications. 300 00:24:39,190 --> 00:24:41,170 It's just saturating out everything else. 301 00:24:41,170 --> 00:24:43,990 So, I'm getting ahead of myself. 302 00:24:43,990 --> 00:24:57,290 But , in regards to managing your clocks, if you want to capture more bandwidth simultaneously, there's some hacks that you can do where you can take the crystal off and stitch them together using a common real-time source. 303 00:24:57,290 --> 00:25:04,130 This is a website where I was reading about multi-channel receivers. 304 00:25:04,130 --> 00:25:15,990 I think they can output up to 8, so that means you can theoretically stitch up to 8 RTLs at the same time and start capturing more bandwidth at the same time of a particular signal. 305 00:25:16,130 --> 00:25:21,470 But, once again, you're going to be soldering these signal feeds back onto the board. 306 00:25:21,470 --> 00:25:25,170 If you have a bad solder joint, it's going to be sad panda. 307 00:25:25,170 --> 00:25:29,310 Now, as I was mentioning earlier, the clock will drift as it warms up. 308 00:25:29,310 --> 00:25:33,770 So, you need to check reference radio frequencies all the time, depending on where you are. 309 00:25:33,770 --> 00:25:36,290 Hey, I'm in the U.S., so I use the National Weather Service. 310 00:25:37,090 --> 00:25:47,490 So, in regards to the cooling, a really clever thing that I've seen is, you know, you just put it in a tin can with vegetable oil or mineral oil without vitamin K. 311 00:25:48,090 --> 00:25:49,890 E, sorry, vitamin E. 312 00:25:49,890 --> 00:25:50,650 Thank you. 313 00:25:50,650 --> 00:25:51,770 Wow, drink. 314 00:25:55,010 --> 00:25:57,150 Vitamin E will lead to corrosion. 315 00:25:57,710 --> 00:26:03,490 Mineral oil, if you have pets, is great because if the can tips over and spills out, the pets will clean it up. 316 00:26:03,490 --> 00:26:08,710 Then you take your pet and put them outside and the mess will take care of itself in a few hours. 317 00:26:10,550 --> 00:26:12,630 Easiest set of napkins ever. 318 00:26:13,470 --> 00:26:21,730 But, keeping it cool is absolutely important, but if you also put it inside of a tin can, you've also started to isolate additional noise sources. 319 00:26:21,730 --> 00:26:22,890 Fantastic. 320 00:26:23,130 --> 00:26:25,550 Now, some of the dev random stuff. 321 00:26:25,550 --> 00:26:31,350 And when I started getting into this, I started recording various radio communications. 322 00:26:31,350 --> 00:26:33,870 In particular, my alarm system at my house. 323 00:26:33,870 --> 00:26:42,130 Now, I grabbed a copy of the waveform and I sent it off to Mike Osman, and he responded with this quote immediately. 324 00:26:42,130 --> 00:26:44,870 The best way to nerd snipe me is to send me a waveform. 325 00:26:45,230 --> 00:26:48,250 So that is your secret key to get his help. 326 00:26:48,250 --> 00:26:54,070 So this is what, when you start going into this stuff, this is what your desktop is going to end up looking like. 327 00:26:54,590 --> 00:26:58,150 You're going to be running multiple sessions of GQRX side by side. 328 00:26:58,150 --> 00:27:05,570 You're going to have GIMP or some sort of screenshot utility open, because you'll want to be able to translate those bitstream patterns into something usable. 329 00:27:05,570 --> 00:27:22,610 Like Jared was using Audacity as well as the open source version of Excel in order to mark above the boxes which symbol pairs were ones or zeros. 330 00:27:22,950 --> 00:27:28,610 With these, I just printed them out, put graph paper on them, and then just did it by hand for the very first time. 331 00:27:28,750 --> 00:27:31,030 So over time, what you'll end up seeing... 332 00:27:31,030 --> 00:27:33,290 Oh, I do have an example of Manchester encoding. 333 00:27:33,750 --> 00:27:36,430 As well as AFSK. 334 00:27:36,910 --> 00:27:45,370 So these are like sensors from my alarm system in my house that like to burp activity every once in a while. 335 00:27:45,370 --> 00:27:48,410 At the top you get the preamble and then data. 336 00:27:48,430 --> 00:27:49,830 What do they mean? 337 00:27:49,830 --> 00:27:51,210 Beats the hell out of me as of yet. 338 00:27:51,210 --> 00:27:55,130 I'm still working on it, and I have some up here if anyone wants to mess with them with me. 339 00:27:55,310 --> 00:28:02,630 But similarly, all the way on the right is AFSK example along with Manchester encoding. 340 00:28:02,770 --> 00:28:07,990 So you'll end up seeing the preamble on this is very clearly on-off-on-off-on-off. 341 00:28:07,990 --> 00:28:12,990 Well, this almost looks like it starts with off and then goes to on-off-on-off, or maybe it's the other way around. 342 00:28:12,990 --> 00:28:16,210 Well, actually it's read up on Manchester encoding. 343 00:28:16,210 --> 00:28:19,870 It'll explain it because of the interest of time that I'm in. 344 00:28:20,010 --> 00:28:24,590 Now I also mentioned being able to drop this stuff into Audacity in order to get waveforms out. 345 00:28:24,590 --> 00:28:30,590 You could also drop them into GNU Radio and you'll be able to generate scope plots. 346 00:28:30,690 --> 00:28:34,390 So this is an example of a scope plot of my alarm system. 347 00:28:34,470 --> 00:28:41,950 It wakes up, it farts out this like bass band noise as it's waking up, and then it goes on-off-on-off-on-off-on-off. 348 00:28:41,950 --> 00:28:50,350 And then you'll then be able to figure out exactly what bits are meaningful and all that sort of stuff. 349 00:28:50,530 --> 00:28:53,190 Now the other thing to... wow, that was really annoying. 350 00:28:53,530 --> 00:29:00,590 The other thing to keep in mind is when you're doing this stuff, jamming is illegal. 351 00:29:00,590 --> 00:29:04,510 You've got to watch yourself because you might do it by accident. 352 00:29:04,690 --> 00:29:09,690 And for the challenge, I'm using Raspberry Pis as FM transmitters. 353 00:29:09,690 --> 00:29:15,210 And if you don't tell them to stop being FM transmitters, they turn into FM jammers. 354 00:29:15,470 --> 00:29:28,510 So this is an example of my proof of that for a very short period of time, where I overpowered for a period of time a commercial FM radio station at my house. 355 00:29:28,510 --> 00:29:38,770 I stopped the transmission, but the center spike on this was still so strong that it bled over and just saturated the actual bandwidth of that legitimate radio station. 356 00:29:38,770 --> 00:29:40,170 That was a mistake. 357 00:29:40,170 --> 00:29:43,390 I recorded it so that you can see what you can do wrong. 358 00:29:43,850 --> 00:29:50,330 Don't do this, or at least if you're doing this, be very careful to make sure that you stop doing this. 359 00:29:50,390 --> 00:29:52,250 So that was a lesson learned. 360 00:29:52,350 --> 00:29:58,570 The other cool things that you can do with RTLs and other software-defined radio stuff is radio astronomy. 361 00:29:59,170 --> 00:30:08,450 So if you do this stuff, if you're monitoring at night, you might start seeing these neat little streaks like this. 362 00:30:08,450 --> 00:30:10,610 It almost looks like a Doppler shift. 363 00:30:10,610 --> 00:30:13,770 Well, that's actually a meteor shooting across the atmosphere. 364 00:30:13,790 --> 00:30:18,910 As it interacts with the atmosphere, it also interacts with the ionosphere and it generates radio signals. 365 00:30:19,130 --> 00:30:26,470 Ham radio operators are known to use those as well in order to reflect radio communications around the world at various places. 366 00:30:27,230 --> 00:30:34,190 You'll start seeing all this stuff, especially in the signal identification guide. 367 00:30:34,510 --> 00:30:38,890 And there's just like this really awesome world of things that communicate that are out there. 368 00:30:39,770 --> 00:30:47,570 So the rest of the sources of information, the places that I go to, rtl-sdr.com on a daily basis. 369 00:30:47,570 --> 00:30:53,610 Radio reference is a bookmark in order to take a look at what is immediately there. 370 00:30:53,610 --> 00:31:01,330 Dangerous Prototypes occasionally has SDR stuff, but when they do, it's really amazing and poignant. 371 00:31:01,350 --> 00:31:08,870 My shameless plug, I'm throwing together a website to kind of be like, hey, not just RTL stuff, but HackRF, BladeRF, USRP. 372 00:31:08,870 --> 00:31:14,690 If you want to get into this, here's all the knowledge as opposed to going to these one individual one-off sites. 373 00:31:15,170 --> 00:31:18,970 And last but not least, Dragorn, Kismet Wireless. 374 00:31:19,110 --> 00:31:21,610 He's put together a handful of how-tos. 375 00:31:21,610 --> 00:31:23,310 I'm scraping his how-tos. 376 00:31:23,310 --> 00:31:32,930 Some of the ones that I've done to just toss them into SDR Ninja for the purpose of one-on-one processes as to how to learn how to do these things. 377 00:31:33,410 --> 00:31:36,030 So I think I almost got us caught back up to time. 378 00:31:36,030 --> 00:31:37,070 Any questions? 379 00:31:38,930 --> 00:31:40,910 Did I embarrass myself? 380 00:31:41,810 --> 00:31:42,390 No? 381 00:31:43,510 --> 00:31:44,550 Yes, sir, in the back. 382 00:31:51,070 --> 00:31:52,930 Oh, yes, yes. 383 00:31:52,930 --> 00:31:53,930 Absolutely. 384 00:31:57,730 --> 00:32:01,410 I did forget to throw in, I'm also on that subreddit. 385 00:32:01,410 --> 00:32:03,650 I'm a lurker, not a poster. 386 00:32:03,650 --> 00:32:09,930 But on reddit.com slash r slash RTL SDR, there is a very active community there. 387 00:32:10,170 --> 00:32:13,170 It's almost like it's a Reddit version of IRC. 388 00:32:13,170 --> 00:32:20,770 Well, so what Reddit is really great for in this case is being able to submit like, what is this signal? 389 00:32:20,770 --> 00:32:22,430 And someone helping you out. 390 00:32:22,430 --> 00:32:32,950 Whereas if you try to do that in an IRC chat room for like HackerRef or BladerRef or Pentoo or anything else, that's not exactly the right form for that sort of question. 391 00:32:32,950 --> 00:32:35,990 So yeah, highly, highly recommend that as well. 392 00:32:35,990 --> 00:32:36,910 Thank you, sir. 393 00:32:38,130 --> 00:32:39,330 All righty. 394 00:32:39,330 --> 00:32:42,750 Well, in the interest of time and getting things moving, thanks again. 395 00:32:42,810 --> 00:32:47,210 Hope you got something out of this other than seeing this cat like that. 396 00:32:48,110 --> 00:32:49,950 And have fun. 397 00:32:49,970 --> 00:32:52,370 We got the challenge running now. 398 00:32:53,410 --> 00:32:54,890 Feel free to ask any questions. 399 00:32:54,890 --> 00:32:56,170 Thank you very kindly. 400 00:33:02,590 --> 00:33:05,570 Oh, yeah, I did forget one other thing. 401 00:33:05,990 --> 00:33:08,330 The portable pack stuff. 402 00:33:08,330 --> 00:33:11,130 So sometimes your signal sources are going to be a problem. 403 00:33:11,150 --> 00:33:14,430 A great way to isolate it is to put your SDR on a battery pack. 404 00:33:14,430 --> 00:33:17,490 So it's not going to generate any noise source. 405 00:33:17,490 --> 00:33:25,710 So that's essentially what this is, and it's rebroadcasting it over Wi-Fi in a radio frequency range that this RTL just doesn't work with. 406 00:33:25,730 --> 00:33:35,630 And if anyone has an SDR with them that they want to play with, this little set of key finder stuff, Dragor and I were able to do a replay attack on. 407 00:33:35,630 --> 00:33:39,110 So if you want to see an actual demonstration of a replay attack, come tomorrow. 408 00:33:39,110 --> 00:33:46,710 We'll teach you and show you how to do it, because we can make these things sing without pressing the button whatsoever. 409 00:33:46,710 --> 00:33:49,290 That was a demonstration that we gave in the class as well. 410 00:33:49,630 --> 00:33:51,390 Sorry, ADHD. 411 00:33:52,590 --> 00:33:54,150 Go forth and conquer. 412 00:33:57,250 --> 00:33:58,210 I'm done. 413 00:33:58,210 --> 00:33:58,950 I'm tired.