WEBVTT

00:00.000 --> 00:03.200
In a world...

00:05.460 --> 00:07.880
He sold tortillas on the corner.

00:07.880 --> 00:10.300
And the mob wanted in.

00:11.400 --> 00:13.260
These are my tortillas.

00:14.260 --> 00:15.580
Are we going?

00:15.580 --> 00:17.940
So you caught my little tortilla boy invitation?

00:17.940 --> 00:19.540
It's not very good.

00:19.540 --> 00:20.400
Alright!

00:20.720 --> 00:21.800
Welcome!

00:22.040 --> 00:24.200
I'm gonna use my search warrant voice.

00:24.200 --> 00:26.760
All of you put your hands behind your head.

00:27.800 --> 00:28.800
Excellent.

00:28.800 --> 00:31.240
Seriously, come on in, sit down, have fun.

00:31.460 --> 00:32.840
We're all here for the fun.

00:33.440 --> 00:34.620
My name is Zero Chaos.

00:34.620 --> 00:36.040
I am here with the Wireless Village.

00:36.040 --> 00:37.640
And it's my fault that this is all delayed.

00:37.640 --> 00:39.600
So, if you are just walking in, that's great.

00:39.600 --> 00:41.720
You're catching the first important talk.

00:42.060 --> 00:44.380
Only some losers spoke earlier.

00:44.380 --> 00:45.280
So, welcome.

00:45.280 --> 00:46.640
This is Intro to SDR.

00:46.640 --> 00:47.540
This is Russ.

00:47.540 --> 00:49.840
Russ is the newest member of our inner circle.

00:49.840 --> 00:52.860
And he has penetrated not only our networks, but our hearts.

00:54.660 --> 00:55.840
All the thanks.

00:55.920 --> 00:58.460
Wow, that was fricking risky business letting you do that.

00:58.460 --> 00:59.440
Thank you, Zero.

01:00.240 --> 01:01.920
So, I'm humbled.

01:01.920 --> 01:03.300
Thank you, everyone, for coming.

01:03.320 --> 01:04.540
My name is Russ.

01:04.740 --> 01:08.360
I'm going to teach you about a handful of things regarding software-defined radios.

01:08.360 --> 01:09.820
More importantly, for two reasons.

01:09.820 --> 01:13.160
One, so that y'all can play with all the stuff that we set up over here.

01:13.360 --> 01:16.400
Secondarily, I really want to see more ham radio operators.

01:16.400 --> 01:21.440
So, I'm going to show you the fun world of various bits of radio communications that are out there.

01:21.440 --> 01:25.260
And what you need to do in order to start testing the waters legally and cleanly.

01:25.260 --> 01:29.480
So, the title of the talk was originally, so you want to get into SDR.

01:29.700 --> 01:32.840
I was on the Blade RF channel not so long ago.

01:32.840 --> 01:36.100
And they actually suggested I change it to being 64 shades of qualm.

01:36.100 --> 01:38.340
As opposed to, like, 50 shades of gray.

01:38.540 --> 01:42.800
But nonetheless, I have Hoopy Cat to thank for that one.

01:43.020 --> 01:46.320
Real quickly, I'm going to cover some SDR 101 stuff.

01:46.320 --> 01:49.020
So that everyone understands what the heck I'm talking about.

01:49.400 --> 01:55.240
Some of the cool things that you can do with them as far as having distributed radios, portable packs.

01:55.240 --> 01:58.540
Some of the issues and concerns in regards to all that sort of stuff.

01:58.540 --> 02:01.240
Let's say you want to start setting these things up at your house.

02:01.240 --> 02:01.980
What do you need to do?

02:01.980 --> 02:05.180
Things to be cautious of in order to keep from burning equipment.

02:05.520 --> 02:11.000
Some nice things to be able to do that you can do with these various devices.

02:11.120 --> 02:17.520
And some various random things, more importantly, that I've come across that will be kind of hintish for the challenge.

02:17.520 --> 02:20.220
But also some of the other things that you may be interested in.

02:20.220 --> 02:21.520
And poking it around.

02:21.520 --> 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.

02:32.820 --> 02:33.980
How to draw an owl.

02:33.980 --> 02:37.100
Well, draw two circles and then draw the rest of the fucking owl.

02:38.700 --> 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.

02:44.260 --> 02:45.880
Well, okay, maybe.

02:45.880 --> 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?

02:52.280 --> 02:54.360
There's a missing step between this.

02:55.160 --> 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.

03:01.560 --> 03:06.660
The thing to keep in mind with software-defined radios is that they are software-defined.

03:06.660 --> 03:08.580
It's just a radio at the front end.

03:08.580 --> 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.

03:17.740 --> 03:22.700
Once again, the theme of The Village is kind of matrix-y some stuff in that.

03:22.700 --> 03:29.800
Well, if you remember when Neo learned Kung Fu, he was dynamically uploaded on the fly, he learned a new thing.

03:29.800 --> 03:31.600
Same thing with software-defined radios.

03:31.600 --> 03:34.960
You have to tell them how to interpret the signaling that's coming in.

03:34.960 --> 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.

03:41.620 --> 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.

03:59.000 --> 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.

04:07.160 --> 04:09.620
It used to be the realm of academics.

04:09.620 --> 04:14.060
It used to be ungodly expensive, $40,000 and up.

04:14.220 --> 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.

04:22.020 --> 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.

04:40.760 --> 04:43.380
But it's software that's doing that for you.

04:43.380 --> 04:47.020
It's just receiving the signal, and then the software is taking care of the rest.

04:47.020 --> 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.

05:00.540 --> 05:04.420
Dude, it's totally because I got trousered last night.

05:05.420 --> 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.

05:12.720 --> 05:18.760
So you can start dealing with various more frequencies, but they do fundamentally very different things.

05:19.100 --> 05:24.440
So be cautious and cognizant of what their capabilities are.

05:24.440 --> 05:27.380
One is half-duplex, one allows full-duplex.

05:27.380 --> 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.

05:35.340 --> 05:37.740
Three hours of sleep, I don't care anymore.

05:38.720 --> 05:42.700
But know which tool you're going to pick for the job that you're going to research.

05:42.700 --> 05:45.620
The radio signal that you're going to want to look into.

05:45.920 --> 05:50.520
Your antennas are your physical layer into this realm.

05:50.520 --> 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.

05:58.860 --> 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.

06:12.920 --> 06:16.040
So there's a great book called Antenna Theory.

06:17.100 --> 06:20.500
So I suggest going out, picking it up, just flip through it.

06:20.500 --> 06:25.440
You'll be able to understand, you know, resonance and all that sort of stuff to tune to the right frequency.

06:25.540 --> 06:28.920
Actually, it's even just better to understand so that you actually can...

06:28.920 --> 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.

06:34.700 --> 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.

06:44.120 --> 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.

06:52.380 --> 06:53.760
I'm getting ahead of myself.

06:55.720 --> 07:02.300
So compared to things like Kismet and anything else along those lines, Kismet gives you raw packets.

07:02.300 --> 07:07.320
Software-defined radio capturing tools give you just raw data.

07:08.320 --> 07:13.080
Sometimes they store that data in a proprietary format, otherwise they don't.

07:13.080 --> 07:17.740
And what they give you is representations of IQ data.

07:17.920 --> 07:21.080
Imaginary and quotient components of a signal.

07:21.080 --> 07:24.780
I'm not going to get into the fancy math, just recognize the terms.

07:24.780 --> 07:29.820
There's a lot of fun math behind it, and it also explains the DC spike and all that stuff.

07:29.820 --> 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.

07:47.480 --> 07:49.380
And I'll have some examples of that in a moment.

07:49.980 --> 07:54.320
Like I said, it used to be really difficult to get into this.

07:54.600 --> 07:57.240
Commercially, you're paying a lot of money.

07:57.340 --> 07:59.080
Academically, you're paying a lot of money.

07:59.080 --> 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.

08:11.000 --> 08:13.660
If you try to download it, it comes with no documentation.

08:13.660 --> 08:15.840
If you try to run it, good frickin' luck.

08:15.940 --> 08:18.880
If you need help with it, good frickin' luck.

08:19.000 --> 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.

08:30.720 --> 08:32.480
But anyways, yeah!

08:32.480 --> 08:34.080
Round of applause.

08:38.760 --> 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.

08:50.940 --> 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.

09:08.780 --> 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.

09:28.480 --> 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.

09:37.360 --> 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.

09:50.320 --> 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.

10:01.420 --> 10:04.300
Let me slow down.

10:04.300 --> 10:07.120
Red, leather, yellow... Wow, I can't even do that.

10:07.120 --> 10:10.360
Anyways, drink.

10:11.860 --> 10:16.220
You need to be able to understand how much bandwidth you're actually recording at a time.

10:16.440 --> 10:20.200
You never record at the center of the frequency that you want to record at.

10:20.200 --> 10:24.040
You always record off-center of it because of the DC spike.

10:24.540 --> 10:26.440
I'll show you what that looks like in a minute.

10:26.760 --> 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.

10:31.920 --> 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.

10:40.920 --> 10:46.140
If you got PIN2, you've solved like 99% of your problems and Nubuntu ain't one.

10:46.600 --> 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.

10:55.160 --> 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.

11:04.200 --> 11:08.620
In addition to that, you'll be able to more clearly identify what your center frequency is.

11:08.620 --> 11:17.060
Now keep in mind, these cheap little devices, they have drift as to what they report their receiving signal is.

11:17.060 --> 11:25.100
Because as they warm up or as they cool down, the clocks in them cause what they're representing to shift.

11:25.420 --> 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.

11:31.200 --> 11:34.220
But you need to find a reference frequency.

11:34.220 --> 11:36.340
Yes sir?

11:38.810 --> 11:39.470
Cheap ones.

11:39.470 --> 11:40.010
Cheap ones.

11:40.010 --> 11:42.950
The other devices can drift, do drift.

11:43.390 --> 11:44.390
The HackRF...

11:44.970 --> 11:48.010
Yeah, the HackRF is flawless.

11:48.610 --> 11:51.650
I haven't seen the HackRF drift.

11:51.650 --> 11:53.190
I haven't seen my BladeRF drift.

11:53.630 --> 11:56.090
The RTLs drift.

11:56.090 --> 12:04.650
The best way to find out what your center frequency drift is, is to go to the National Weather Service transmissions.

12:04.650 --> 12:09.450
And then you'll see, if you select it and hit center, you'll be off by a couple kilohertz.

12:09.930 --> 12:10.350
So you'll be...

12:12.010 --> 12:14.070
Yes, you can do that as well.

12:16.010 --> 12:16.890
Absolutely.

12:17.190 --> 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.

12:23.890 --> 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.

12:34.070 --> 12:37.090
If you have Windows, SDR-Sharp works pretty well.

12:37.090 --> 12:38.530
There's been drama surrounding that.

12:38.530 --> 12:40.270
Not going to get into that at the moment.

12:41.210 --> 12:42.370
But it's still out there.

12:42.370 --> 12:45.090
It's available probably every two weeks or so.

12:45.090 --> 12:50.310
I see another plug-in written for it and it's for added capabilities and all that sort of stuff.

12:50.930 --> 12:54.090
The biggest thing that you need to understand with software-defined radio.

12:54.090 --> 12:55.530
Alright, you see a signal.

12:55.670 --> 12:57.210
What the heck is that signal?

12:57.210 --> 13:02.350
Well, there's a great wiki that is the signal identification guide.

13:02.350 --> 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.

13:11.530 --> 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.

13:20.170 --> 13:24.050
And most importantly, an audio sample of it so you can hear it.

13:24.050 --> 13:31.690
So your software-defined radio being your brain is the best thing that you can use to identify other radio communications.

13:31.690 --> 13:38.170
An example was when we were at B-Sides Vegas earlier this week giving a two-day class on this stuff.

13:38.170 --> 13:44.890
Justin and I were observing a POCSAG communication, but it was nowhere near any pager frequency.

13:44.890 --> 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.

13:54.190 --> 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.

14:11.090 --> 14:20.050
So the other things that you can use in order to analyze your captured signals is a fantastic tool called Bodline.

14:20.790 --> 14:23.290
Bodline has some quirks.

14:23.290 --> 14:25.870
It doesn't like large files.

14:26.710 --> 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.

14:45.250 --> 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.

14:54.550 --> 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?

15:08.730 --> 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.

15:19.010 --> 15:20.830
So, the...

15:22.810 --> 15:25.450
Wow, I am that jerk.

15:25.550 --> 15:26.750
Voicemail.

15:27.790 --> 15:33.350
The way that you run Bodline, download it, extract it, execute it.

15:33.350 --> 15:34.490
It's pre-compiled.

15:34.490 --> 15:35.730
You're good to go.

15:35.730 --> 15:38.990
So, when you open up Bodline, this is kind of what it starts with.

15:38.990 --> 15:41.570
It's got some fun little quirks because of the UI.

15:41.570 --> 15:43.910
You right-click for your menus.

15:43.910 --> 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.

15:53.110 --> 15:56.850
You need to select that it is a raw file format.

15:56.850 --> 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.

16:11.490 --> 16:16.450
You're going to select two channels because you have both I and Q in these files.

16:17.010 --> 16:19.690
Quadrature and 8-bit unsigned data.

16:19.690 --> 16:25.250
And once you do that, this is an example of a recording of a key fob for a car.

16:26.270 --> 16:27.890
Specifically, drag horns.

16:28.570 --> 16:32.330
So you'll see it displays these bursts.

16:32.370 --> 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.

16:42.750 --> 16:45.570
Well, you can enhance, like in CSI.

16:45.750 --> 16:50.230
And what you very plainly see is stuff like this.

16:50.230 --> 16:53.890
What do you think this on-off-on-off-on-off-on-off at the top is?

16:55.970 --> 16:56.530
Preamble.

16:56.530 --> 16:57.690
Very good.

16:58.070 --> 17:01.910
And then right after that, you have a series of on's and off's.

17:02.430 --> 17:04.070
So what do they mean?

17:04.070 --> 17:05.430
What is their significance?

17:05.590 --> 17:07.370
Well, that's up to you to determine.

17:07.370 --> 17:14.010
How do you go from this in order to put it into an actual reverse bit stream or byte stream?

17:14.450 --> 17:18.350
Well, that's when time and experience is going to come into play.

17:18.350 --> 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.

17:32.230 --> 17:34.430
And I was like, dude, how the hell did you do that?

17:34.430 --> 17:36.270
How did you demodulate too quickly?

17:36.270 --> 17:40.730
What new radio widget do you have kicking out?

17:40.730 --> 17:42.330
I just looked at it.

17:43.130 --> 17:45.770
Okay, clearly I'm not there yet.

17:45.770 --> 17:51.990
But if you get in a whole lot, you can zoom in very, very plainly into seeing this one capture.

17:52.010 --> 17:58.990
And you also then need to identify whether it's OOK, AFSK, or any other form of modulation.

17:58.990 --> 18:02.350
So like OOK on off is like this.

18:02.350 --> 18:03.670
It's like Morse code.

18:04.130 --> 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.

18:12.370 --> 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.

18:22.810 --> 18:24.650
That may or may not be true.

18:24.650 --> 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.

18:40.270 --> 18:44.450
That really screwed with me for a while when I started getting into this.

18:44.690 --> 18:48.930
So in this case, I gave you an example of OOK data.

18:48.990 --> 18:50.650
Transmitter's on, it's off.

18:52.090 --> 18:55.390
And the things that you can do that can go wrong.

18:55.390 --> 18:57.370
I'm just going to ramble at this point.

18:58.130 --> 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.

19:12.070 --> 19:14.570
Or is very different from the other person.

19:14.830 --> 19:16.150
This is why.

19:17.210 --> 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.

19:28.410 --> 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.

19:36.930 --> 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.

19:44.970 --> 19:46.670
I can't stress that enough.

19:46.950 --> 19:52.390
It starts with the physical layer, your actual hardware of the wire.

19:52.390 --> 19:56.930
So if you have that, bad times.

19:57.210 --> 19:59.970
Now, Lightning definitely wants to be your friend.

19:59.970 --> 20:01.930
Do not be Lightning's friend.

20:01.930 --> 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.

20:13.770 --> 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.

20:18.130 --> 20:20.690
Or find another ham radio operator in your area.

20:20.690 --> 20:22.690
They'll be more than happy to come out, I'm sure.

20:23.630 --> 20:29.790
This is an example of an Ethernet plug from an Ethernet based radio that I manage.

20:29.790 --> 20:31.290
The radio survived.

20:31.290 --> 20:36.550
A six foot section of that Ethernet cable baked and fried.

20:36.830 --> 20:38.990
But the Lightning suppression system worked.

20:38.990 --> 20:39.990
The radio survived.

20:39.990 --> 20:41.450
It's working now.

20:41.850 --> 20:44.550
Everything else south of the Lightning arrestor worked.

20:44.550 --> 20:47.130
The grounding straps and everything else worked.

20:47.230 --> 20:49.730
Make sure you get that right.

20:49.730 --> 20:51.890
Because otherwise, I've blown radios.

20:51.890 --> 20:53.610
I've had almost fires.

20:53.610 --> 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.

21:04.750 --> 21:06.610
It will do whatever it wants.

21:06.610 --> 21:08.610
It's the honey badger of nature.

21:09.270 --> 21:11.210
Lightning doesn't give a fuck.

21:11.510 --> 21:15.910
So, the other thing to keep in mind is just general static.

21:16.230 --> 21:25.070
Taking these cheaper ones, and you'll notice that the connector heads of them are kind of barreled and very loose.

21:25.070 --> 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.

21:32.790 --> 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.

21:39.770 --> 21:40.850
So, be wary.

21:40.850 --> 21:41.930
You get what you pay for.

21:41.930 --> 21:43.150
A lot like training.

21:43.890 --> 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.

21:50.210 --> 21:55.770
Be very, very careful of wind and static built up on your elements with wind.

21:55.890 --> 22:00.790
Like I said, any time something rubs against something else, you're going to generate some level of static.

22:00.790 --> 22:05.510
These devices sometimes don't have static protection built into them.

22:06.730 --> 22:07.890
It's a crap shoot.

22:07.890 --> 22:11.610
I've bought the exact same device out of the exact same batch queue.

22:11.610 --> 22:14.350
Some have ESD protection, some don't.

22:14.350 --> 22:16.390
You don't know until you open it up.

22:16.390 --> 22:22.490
And you can fry your radio receiver and these things with a little tiny shock.

22:22.930 --> 22:24.430
And I have done that.

22:24.950 --> 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.

22:33.030 --> 22:39.290
The mitigation of radio noise from external sources at radio receiving sites and the Enable RFI Handbook.

22:39.290 --> 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.

22:45.170 --> 22:52.730
But eliminating common radio signal sources, like noise sources, in your environment helps a ton.

22:52.730 --> 22:57.970
It really, really helps clean up some of the signals that you're going to be receiving.

22:57.990 --> 23:05.170
So, some of the best examples inside these guides are the computer power supplies.

23:05.170 --> 23:09.950
Not in accordance with barrier feed and ground principles like BFG.

23:11.570 --> 23:17.470
So, what that means is that this electrical outlet, this plug right here, is plastic.

23:17.470 --> 23:20.870
It's not grounded to the actual power supply itself.

23:21.030 --> 23:27.710
So, any signal source coming in is now going inside the computer and can possibly cause a source of interference.

23:27.970 --> 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...

23:34.710 --> 23:38.010
to a copper braid and use brass and just paint over it.

23:38.010 --> 23:43.350
So, what ended up happening is the connector had expanded and contracted over time due to the elements.

23:43.350 --> 23:45.250
It created a fracture in the cap.

23:45.530 --> 23:52.150
The issue with this device was it was a grounding point for a cellular communication tower.

23:52.150 --> 23:55.370
It brought the cellular communication tower down to its knees.

23:55.370 --> 23:58.250
Just that, from improper grounding.

23:58.250 --> 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.

24:06.090 --> 24:12.330
The clocks, as I mentioned earlier, they tend to drift as they warm up and cool down.

24:12.730 --> 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.

24:23.730 --> 24:29.730
The stupidest thing that I've seen someone do is take a fan and put it on top of their RTL.

24:29.730 --> 24:33.250
Because a fan is just a noise generator for RF.

24:33.250 --> 24:39.190
And you're putting a bright flashlight next to your eyeball as you're receiving these radio communications.

24:39.190 --> 24:41.170
It's just saturating out everything else.

24:41.170 --> 24:43.990
So, I'm getting ahead of myself.

24:43.990 --> 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.

24:57.290 --> 25:04.130
This is a website where I was reading about multi-channel receivers.

25:04.130 --> 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.

25:16.130 --> 25:21.470
But, once again, you're going to be soldering these signal feeds back onto the board.

25:21.470 --> 25:25.170
If you have a bad solder joint, it's going to be sad panda.

25:25.170 --> 25:29.310
Now, as I was mentioning earlier, the clock will drift as it warms up.

25:29.310 --> 25:33.770
So, you need to check reference radio frequencies all the time, depending on where you are.

25:33.770 --> 25:36.290
Hey, I'm in the U.S., so I use the National Weather Service.

25:37.090 --> 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.

25:48.090 --> 25:49.890
E, sorry, vitamin E.

25:49.890 --> 25:50.650
Thank you.

25:50.650 --> 25:51.770
Wow, drink.

25:55.010 --> 25:57.150
Vitamin E will lead to corrosion.

25:57.710 --> 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.

26:03.490 --> 26:08.710
Then you take your pet and put them outside and the mess will take care of itself in a few hours.

26:10.550 --> 26:12.630
Easiest set of napkins ever.

26:13.470 --> 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.

26:21.730 --> 26:22.890
Fantastic.

26:23.130 --> 26:25.550
Now, some of the dev random stuff.

26:25.550 --> 26:31.350
And when I started getting into this, I started recording various radio communications.

26:31.350 --> 26:33.870
In particular, my alarm system at my house.

26:33.870 --> 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.

26:42.130 --> 26:44.870
The best way to nerd snipe me is to send me a waveform.

26:45.230 --> 26:48.250
So that is your secret key to get his help.

26:48.250 --> 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.

26:54.590 --> 26:58.150
You're going to be running multiple sessions of GQRX side by side.

26:58.150 --> 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.

27:05.570 --> 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.

27:22.950 --> 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.

27:28.750 --> 27:31.030
So over time, what you'll end up seeing...

27:31.030 --> 27:33.290
Oh, I do have an example of Manchester encoding.

27:33.750 --> 27:36.430
As well as AFSK.

27:36.910 --> 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.

27:45.370 --> 27:48.410
At the top you get the preamble and then data.

27:48.430 --> 27:49.830
What do they mean?

27:49.830 --> 27:51.210
Beats the hell out of me as of yet.

27:51.210 --> 27:55.130
I'm still working on it, and I have some up here if anyone wants to mess with them with me.

27:55.310 --> 28:02.630
But similarly, all the way on the right is AFSK example along with Manchester encoding.

28:02.770 --> 28:07.990
So you'll end up seeing the preamble on this is very clearly on-off-on-off-on-off.

28:07.990 --> 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.

28:12.990 --> 28:16.210
Well, actually it's read up on Manchester encoding.

28:16.210 --> 28:19.870
It'll explain it because of the interest of time that I'm in.

28:20.010 --> 28:24.590
Now I also mentioned being able to drop this stuff into Audacity in order to get waveforms out.

28:24.590 --> 28:30.590
You could also drop them into GNU Radio and you'll be able to generate scope plots.

28:30.690 --> 28:34.390
So this is an example of a scope plot of my alarm system.

28:34.470 --> 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.

28:41.950 --> 28:50.350
And then you'll then be able to figure out exactly what bits are meaningful and all that sort of stuff.

28:50.530 --> 28:53.190
Now the other thing to... wow, that was really annoying.

28:53.530 --> 29:00.590
The other thing to keep in mind is when you're doing this stuff, jamming is illegal.

29:00.590 --> 29:04.510
You've got to watch yourself because you might do it by accident.

29:04.690 --> 29:09.690
And for the challenge, I'm using Raspberry Pis as FM transmitters.

29:09.690 --> 29:15.210
And if you don't tell them to stop being FM transmitters, they turn into FM jammers.

29:15.470 --> 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.

29:28.510 --> 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.

29:38.770 --> 29:40.170
That was a mistake.

29:40.170 --> 29:43.390
I recorded it so that you can see what you can do wrong.

29:43.850 --> 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.

29:50.390 --> 29:52.250
So that was a lesson learned.

29:52.350 --> 29:58.570
The other cool things that you can do with RTLs and other software-defined radio stuff is radio astronomy.

29:59.170 --> 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.

30:08.450 --> 30:10.610
It almost looks like a Doppler shift.

30:10.610 --> 30:13.770
Well, that's actually a meteor shooting across the atmosphere.

30:13.790 --> 30:18.910
As it interacts with the atmosphere, it also interacts with the ionosphere and it generates radio signals.

30:19.130 --> 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.

30:27.230 --> 30:34.190
You'll start seeing all this stuff, especially in the signal identification guide.

30:34.510 --> 30:38.890
And there's just like this really awesome world of things that communicate that are out there.

30:39.770 --> 30:47.570
So the rest of the sources of information, the places that I go to, rtl-sdr.com on a daily basis.

30:47.570 --> 30:53.610
Radio reference is a bookmark in order to take a look at what is immediately there.

30:53.610 --> 31:01.330
Dangerous Prototypes occasionally has SDR stuff, but when they do, it's really amazing and poignant.

31:01.350 --> 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.

31:08.870 --> 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.

31:15.170 --> 31:18.970
And last but not least, Dragorn, Kismet Wireless.

31:19.110 --> 31:21.610
He's put together a handful of how-tos.

31:21.610 --> 31:23.310
I'm scraping his how-tos.

31:23.310 --> 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.

31:33.410 --> 31:36.030
So I think I almost got us caught back up to time.

31:36.030 --> 31:37.070
Any questions?

31:38.930 --> 31:40.910
Did I embarrass myself?

31:41.810 --> 31:42.390
No?

31:43.510 --> 31:44.550
Yes, sir, in the back.

31:51.070 --> 31:52.930
Oh, yes, yes.

31:52.930 --> 31:53.930
Absolutely.

31:57.730 --> 32:01.410
I did forget to throw in, I'm also on that subreddit.

32:01.410 --> 32:03.650
I'm a lurker, not a poster.

32:03.650 --> 32:09.930
But on reddit.com slash r slash RTL SDR, there is a very active community there.

32:10.170 --> 32:13.170
It's almost like it's a Reddit version of IRC.

32:13.170 --> 32:20.770
Well, so what Reddit is really great for in this case is being able to submit like, what is this signal?

32:20.770 --> 32:22.430
And someone helping you out.

32:22.430 --> 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.

32:32.950 --> 32:35.990
So yeah, highly, highly recommend that as well.

32:35.990 --> 32:36.910
Thank you, sir.

32:38.130 --> 32:39.330
All righty.

32:39.330 --> 32:42.750
Well, in the interest of time and getting things moving, thanks again.

32:42.810 --> 32:47.210
Hope you got something out of this other than seeing this cat like that.

32:48.110 --> 32:49.950
And have fun.

32:49.970 --> 32:52.370
We got the challenge running now.

32:53.410 --> 32:54.890
Feel free to ask any questions.

32:54.890 --> 32:56.170
Thank you very kindly.

33:02.590 --> 33:05.570
Oh, yeah, I did forget one other thing.

33:05.990 --> 33:08.330
The portable pack stuff.

33:08.330 --> 33:11.130
So sometimes your signal sources are going to be a problem.

33:11.150 --> 33:14.430
A great way to isolate it is to put your SDR on a battery pack.

33:14.430 --> 33:17.490
So it's not going to generate any noise source.

33:17.490 --> 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.

33:25.730 --> 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.

33:35.630 --> 33:39.110
So if you want to see an actual demonstration of a replay attack, come tomorrow.

33:39.110 --> 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.

33:46.710 --> 33:49.290
That was a demonstration that we gave in the class as well.

33:49.630 --> 33:51.390
Sorry, ADHD.

33:52.590 --> 33:54.150
Go forth and conquer.

33:57.250 --> 33:58.210
I'm done.

33:58.210 --> 33:58.950
I'm tired.

