[00:03.520 --> 00:04.920] Hey, everybody, can you hear me? [00:04.920 --> 00:06.940] Ooh, listen to that. [00:06.940 --> 00:09.900] Wow, they modulated my voice, that sounds so good and sultry. [00:10.440 --> 00:12.540] Hey, everybody, my name is Eric Escobar. [00:12.540 --> 00:25.480] Today we're going to be talking about Meshtastic, my favorite thing in the world to talk about, and specifically command and control server that we have for it, so that you can debug things remotely without cell towers, internet or any of that good stuff. [00:25.520 --> 00:29.620] Raise your hand if you have a Meshtastic radio with you right now. [00:29.960 --> 00:31.500] Whoa, look at that. [00:31.500 --> 00:35.380] Raise your hand if you have one or if you don't have one but you want one. [00:36.560 --> 00:39.160] Wait, I saw some of the same hands go up. [00:40.100 --> 00:48.540] If you want them, the Rockland booth is selling them, so I would recommend running over there because they may or may not be out by the time this talk is over. [00:48.880 --> 00:52.780] So, all right, without further ado, let me spit out my gum. [00:53.660 --> 00:58.580] So I am the wireless technical lead at Sophos, previously SecureWorks, we just got bought out. [00:59.500 --> 01:11.960] And my day job is a wireless penetration tester and adversarial, doing all the fun things, hacking in, breaking into all the same things, so you'll see a bit of the reason, a bit of the necessity of why we built the tools that we built. [01:12.600 --> 01:14.420] And now we can also talk about them. [01:14.420 --> 01:15.300] Can I just hold this? [01:15.300 --> 01:16.060] That would be awesome. [01:16.060 --> 01:17.260] I can't, beautiful. [01:17.560 --> 01:21.220] So basics, who does not know what Meshtastic is? [01:22.280 --> 01:23.000] Excellent. [01:23.000 --> 01:25.480] I'm glad that I put some slides in here for all of you then. [01:25.680 --> 01:30.520] So Meshtastic, you can think of it like text messaging walkie talkies. [01:30.540 --> 01:37.820] So the idea of it is that you can send a text message, not using your phone, but over the Meshtastic app or a Meshtastic device. [01:38.060 --> 01:45.040] And it's very low data rate, but very power efficient, and can go very, very long distances. [01:45.720 --> 01:52.060] And so it runs off of LoRa radios, LoRa is, you know, the type of wireless communication protocol that it uses. [01:52.060 --> 01:57.980] So it's not Wi-Fi, not your cell networks, typically runs on 900 megahertz, we'll talk about all that fancy stuff in a little bit. [01:58.260 --> 02:10.480] But really, it's ideal for long range communication, where you do not need a lot of bandwidth, you are not going to be speaking audio over this, you're not going to be sending pictures over this, this is strictly text, emojis, that sort of thing. [02:10.580 --> 02:12.780] It's also really great for nerds. [02:12.780 --> 02:20.920] It's one of those things that when I talk to my friends that are normies that don't do computers, they see this, and they're like, Oh, my gosh, do other people care about this? [02:20.920 --> 02:25.360] And I'm like, yeah, I'm actually talking to DEF CON they're like, wait, so you're talking at a conference about this? [02:25.360 --> 02:28.980] Like, no one, no one in my circle cares about this whatsoever. [02:28.980 --> 02:37.100] So it's really nice to be in a room full of people and see, you know, at least I think this morning, I counted 1500 on the DEF CON mesh running DEF CON firmware. [02:37.100 --> 02:44.060] So it feels really good that there's at least 1500 other nerds out there that like the same thing that I like. [02:45.120 --> 02:47.540] So a little bit more about Meshtastic. [02:47.540 --> 02:52.460] So the actual devices that they are, so I have a smattering of them up here. [02:52.480 --> 02:57.240] And I have, you'll see dozens of pictures of the different devices that that I have. [02:57.420 --> 03:04.600] If you want to talk about specific devices, after the talk, come see me, I will be hanging out behind the tables at the Wireless Village. [03:04.980 --> 03:11.460] And we can talk about all the different pros and cons and what to flash, what not to flash, channels, frequencies, all that kind of good stuff. [03:11.600 --> 03:15.780] These are some of the like rough, like outline devices that there are. [03:15.780 --> 03:19.220] So you can see this little one, it's the little green one, it's called a Heltech. [03:19.220 --> 03:21.200] Heltech is really good because it's really cheap. [03:21.200 --> 03:25.680] You can buy that for like $25 on Amazon, and it just gets you going. [03:25.680 --> 03:28.280] But it doesn't have a battery, plug it in via USB. [03:28.960 --> 03:32.680] Then the next kind of step up is the Pocket Mesh, it's made by Rack Wireless. [03:33.120 --> 03:36.280] This is a very nice board, it's kind of like the Cadillac. [03:36.340 --> 03:42.220] And it has, you know, GPS on board, sensors on board, a little screen on board, a lot of really good stuff. [03:42.220 --> 03:43.700] It's very power efficient. [03:43.820 --> 03:47.200] So you can run it, you can run it for multiple days on a single charge. [03:47.640 --> 03:50.220] The price for that is probably like $150. [03:50.440 --> 04:01.960] And then if you're, if you're looking to build out a mesh, because there's no one else to talk to you in your neighborhood, your surroundings, your city, or maybe you're just way out in the boondocks where there's nobody, that's where you see the ones who you're right. [04:01.960 --> 04:08.060] And that is a solar powered, it's meant to like set it and forget it, you leave it, and it will then repeat your message. [04:08.060 --> 04:10.360] So we'll talk about why that's important in a little bit. [04:10.600 --> 04:13.340] Does anybody have any questions with anything that I've said so far? [04:13.340 --> 04:16.160] Because it's critical to the rest of the talk if you don't understand something. [04:16.160 --> 04:17.860] Just raise your hand and shout. [04:18.600 --> 04:20.640] Going once, going twice. [04:20.960 --> 04:21.700] Excellent. [04:21.960 --> 04:23.320] All right, somebody needs to raise their hand. [04:23.320 --> 04:24.580] Let's talk to somebody else. [04:25.960 --> 04:36.380] So when you talk about other nerds that also like this, I was recently going to Legoland and I decided to put a Meshtastic device on top of my car and just see what other nodes that I picked up. [04:36.380 --> 04:43.780] And so this is me driving through the kind of Carpentria, LA Basin and San Diego, Carlsbad area. [04:43.780 --> 04:52.220] So there are a lot of nodes in Southern California, which is, which is really interesting because up in Fresno, California, where I'm from, there are not a ton of nodes. [04:52.420 --> 05:00.160] But it's interesting to see when there are so many nodes like this, you get congestion, you get different hop counts that can happen. [05:00.160 --> 05:11.000] So we'll talk a little bit more about why that's important and why when you get in kind of these dense situations, why you might want to switch to a different firmware, different type of, you know, different type of channel, different channel slot. [05:11.000 --> 05:16.680] One of the things that DEF CON, so DEF CON has their own Meshtastic firmware for just DEF CON. [05:16.680 --> 05:23.400] So when you go home, do not run the DEF CON Meshtastic firmware, because you probably will not be able to communicate with anybody. [05:23.760 --> 05:32.400] But for DEF CON specifically, what they change is they make it so that your messages are shorter and faster, because you're not, you don't need to go very far. [05:32.400 --> 05:37.100] Typically, when I'm at home, I need to go 20 miles before I can talk to the next Meshtastic node. [05:37.100 --> 05:41.580] When you're at DEF CON, you need to go maybe the next 20 feet before you talk to a Meshtastic node. [05:41.580 --> 05:50.560] So you do not need the power, you do not need the range when you're out here, which is why they can make it in the, in the, what is it, short turbo, as far as messaging speed goes. [05:53.140 --> 05:57.000] So LORA stands for long range radio, it uses chirp spread spectrum. [05:57.060 --> 06:00.940] This is a lot of the reasons why it can get out of the noise floor. [06:00.940 --> 06:15.480] So basically, without getting it way too much and deep into the RF characteristics of it, this RF, the chirp spread spectrum allows you to basically send, send your communication, send your signals in such a way that even if you have really low power, [06:15.480 --> 06:27.260] even if things are, even if you only have low power, and even if the noise floor is pretty high, like DEF CON, your message can still be understood based upon the bandwidth that's out there. [06:27.540 --> 06:36.860] And so that's really what makes it ideal for what Meshtastic uses it for, which is long range, low power, you know, type of communications. [06:37.600 --> 06:44.700] So when you're looking at it, and the question I get a lot is, well, what kind of license do I need in order to use Meshtastic, right? [06:45.140 --> 06:50.760] And for Meshtastic, you don't need any license, but you can also use it if you're a ham radio operator. [06:50.840 --> 06:59.960] So some of the differences of it is that LORA transmits on something called the ISM band, this is kind of like where Wi-Fi and other unlicensed frequencies can transmit on. [07:00.560 --> 07:05.880] These ISM bands, you can transmit with limited amounts of power on them without any type of license. [07:05.880 --> 07:07.560] And you can also use encryption. [07:07.840 --> 07:15.740] So that that's what's really also nice about Meshtastic is that not only do you not need a license, but you can also send encrypted messages. [07:16.000 --> 07:19.640] Now, if you're a ham radio operator, you can also toggle this ham switch. [07:19.640 --> 07:21.680] So you can see licensed operator down there. [07:21.680 --> 07:26.740] Now when you toggle that switch on a lot of people immediately think in their mind, oh, I'm a licensed operator. [07:26.740 --> 07:29.540] If I turn this switch on, I get to pump out more power. [07:29.700 --> 07:34.080] And with more power, that means I can go farther, do cooler things, all that kind of stuff. [07:34.100 --> 07:49.640] With Meshtastic, while that is true, you could go farther, you could pump out more power, you could use 433 for your communications, you are then still restricted to the what your ham license allows you to transmit, which means you cannot transmit anything encrypted over that. [07:49.640 --> 07:58.460] So if you were to switch on that, that option, you will now not be able to communicate with anybody else that's using Meshtastic unless they are also licensed operators. [07:58.480 --> 08:08.140] So you might get to a point where you're like, hey, all me and my buddies, we're all licensed operators, we want more power, all those sorts of things, in which case, turn it on. [08:08.140 --> 08:19.580] But by default, if you're a ham radio operator, you might want to put it on there, but I would strongly say, do not, just keep it checked off, you already have the long range that you need and typically enough power to do whatever you want. [08:20.820 --> 08:27.460] But yeah, so if you're a ham radio operator, don't immediately toggle that on, because you don't need to typically to get involved with the rest of the community. [08:27.460 --> 08:39.380] This is, it's kind of like a gateway drug radio, so if you are a ham radio operator, this is one of those things that you could buy for all of your friends and be like, yeah, there's cooler things that you can do, you can transmit thousands of miles if you just get your ham license. [08:39.400 --> 08:49.360] So this is great for somebody maybe younger in your life who doesn't care as much about radios, but you think, hey, they're a little nerdy, maybe they could get involved in it, pick up one of these devices for them. [08:50.720 --> 08:52.760] So about the different modes that there are. [08:52.760 --> 09:04.760] So if you're, if you're looking in your setup, your configuration for different modes, basically, you can, you can set things like long, slow, long, fast, short, medium, or medium, fast, all the way through that list, you can go look at it. [09:04.760 --> 09:08.840] Basically, what that changes is it changes the speed with which your message is sent out. [09:08.840 --> 09:20.460] And so the, the slower that your message is sent out, the longer range that it'll go be cut in and it'll go, your message will go slower, and it'll go way farther. [09:20.460 --> 09:27.880] Now what you can do, like what DEF CON does is they do short turbo, which means you can get way more data through there in a shorter message time. [09:28.060 --> 09:29.820] And that's meant to keep congestion down. [09:29.820 --> 09:44.000] So by default, all the Meshtastic devices that are running the stock Meshtastic firmware, they're all long, fast, and it's kind of the happy, the happy spot of long distance, but you can still, you know, your message still gets out in a reasonable amount of time. [09:44.020 --> 09:54.020] And with that, you can basically go, I'd say, like every message might take a couple of seconds to get from one, one node to another node, depending on how many hops that you have in between. [09:54.340 --> 10:00.940] And really what these things are made for, they're not made for streaming data, they're not made for streaming video, audio, anything like that. [10:00.940 --> 10:06.320] They're made for getting things like telemetry data, sensor data, message data, that sort of thing across. [10:06.420 --> 10:10.320] And so if you're looking at this, this is just kind of one of the examples of what we've used it for. [10:11.260 --> 10:15.000] Where you can use an app, you can see telemetry from other devices. [10:15.000 --> 10:20.660] So I have a temperature sensor, I have a barometric pressure sensor, humidity sensor. [10:21.040 --> 10:22.980] And so you have these sensors attached to the board. [10:22.980 --> 10:26.420] And so you can go look at these in the app stock default. [10:26.420 --> 10:31.780] And if that sensor is on board, you can then go read that historical data that your device has seen. [10:31.800 --> 10:48.080] So this is really nice if you are way out in the middle of nowhere, and you want to place a remote node say on a mountaintop, you want a remote weather station, and a lot of farmer use cases where they're looking out there for like , hey, I want to I want to put tons of tons of inexpensive sensors out in the field to see different varieties of conditions . [10:48.360 --> 10:50.720] You can do any of that with the stock sensors. [10:52.280 --> 11:07.740] And there's also GPIO boards typically on board where you can collect tons of other sensor data if you want to collect things like, you know, sunlight intensity, if you want to collect, you know, let's say, like the water, the water percentage in like the soil, [11:07.740 --> 11:12.020] all those things, if there's a sensor that you can hook up to Arduino, you can hook it up to mesh tasking. [11:12.020 --> 11:22.380] And so that's kind of the perfect use case if you're trying to collect telemetry from something that these are very low data, but because of that they can run off of very low power for a long time. [11:22.600 --> 11:34.760] For example, I have this device right here, it's a it's a solar power node, if you were to cover this solar panel, it would run this rack mesh tasking device for a week on just one single 18650. [11:34.760 --> 11:39.300] So it's very, very, very power efficient, as far as what it's doing. [11:41.980 --> 11:46.300] So then when you're kind of getting into this, you want to know how well is my antenna working? [11:46.300 --> 11:47.980] How well are my placements working? [11:47.980 --> 11:52.260] So there's a ton of different features when you kind of dig into the settings of the app itself. [11:52.580 --> 11:57.860] The things that actually matter most, I've done lots of testing on this, and you'll see lots of pictures in a little bit here. [11:57.940 --> 12:00.080] But line of sight is what matters the most. [12:00.080 --> 12:07.360] So the line of sight elevation, getting up and over the tree line, getting up and over the city line, that is what is going to get you as far as possible, right? [12:07.360 --> 12:09.380] So yes, antennas matter. [12:09.380 --> 12:13.820] Yes, the length of cable of coax going into your antenna matters. [12:13.820 --> 12:24.800] But the thing that matters more than anything is you could have a dumb little, you know, like little antenna sticking out, little SMA antenna, and it will go hundreds of miles if you get it placed high enough. [12:24.800 --> 12:32.060] So just keep that in mind when you're building out your use cases, you're building out your nodes that the higher, the better line of sight matters absolutely the most. [12:32.160 --> 12:35.440] But what Meshesic has built into it is as a range test mode. [12:35.440 --> 12:44.820] So you can basically set your device, put it in this range test mode, where every 15 seconds, it'll basically send a ping out, and you can see the signal quality of it. [12:44.820 --> 12:54.020] So you're not having to wait for messages over and over and you're not playing the game of did I receive it or not receive it, you're playing the game of what's RSSI on there to really kind of fine tune your mesh. [12:54.060 --> 12:56.000] You may not need that when you're starting out. [12:56.000 --> 13:04.780] But this really helps to kind of tune a device before you get to the point where you're going to go one time hike a mountain and place it and leave it there for 18 months. [13:04.780 --> 13:05.900] Ask me how I know. [13:07.620 --> 13:09.400] So how messages are routed. [13:09.400 --> 13:14.940] So this is not like your typical walkie talkie where it is from point, you know, from one device to another device, right? [13:14.940 --> 13:22.040] So well, if I had a meshtastic device, and one of you had a meshtastic device, ours would typically go point to point and you would see it. [13:22.040 --> 13:30.640] But what this does is by default, your meshtastic device will hop three times to three different devices to kind of get its signal out. [13:30.640 --> 13:40.780] So the messages, basically what happens is every time a device receives a message, before it repeats that message out, what it will do is it will do basically minus one on the hop count. [13:40.780 --> 13:44.500] So it will hop three times, and that's done in kind of the headers of the message. [13:44.500 --> 13:48.120] So it's kind of similar to APRS and how far it will go out of your hand radio operator. [13:48.500 --> 13:52.280] And each message only will not retransmit a message that it sees. [13:52.280 --> 13:56.820] So there's not going to be like a packet storm, there's not going to be like an infinite loop that's created. [13:57.340 --> 14:00.540] And you can see so I'm located in central California. [14:00.660 --> 14:09.760] But if you look at this map, kind of in how many hops I can get out, I can get to Northern Bay Area, which you're talking hundreds of miles away by hopping through multiple devices. [14:10.020 --> 14:19.160] And it being a mesh, if some devices aren't there, you have kind of your your more stationary devices that are up on top of hills or water towers or that sort of a thing. [14:19.160 --> 14:21.320] Those are typically what are the backbone of the network. [14:21.320 --> 14:23.660] And we'll talk about that here in a little bit. [14:23.660 --> 14:27.600] Does anybody have any questions so far that they have before I keep going? [14:28.180 --> 14:29.400] Great, I'll keep going. [14:29.400 --> 14:33.580] And you guys can save it at the end or just feel free to raise your hand if you want to talk about something right away. [14:33.580 --> 14:35.680] I am not shy, you will not interrupt me. [14:37.380 --> 14:41.200] So this is so kind of my setup, I'll fast forward a slide. [14:41.220 --> 14:44.360] So my setup is I have this 80 foot tree in my backyard. [14:45.040 --> 14:46.980] And so I have a handheld device. [14:46.980 --> 14:53.980] So when I send a message, the message goes from a handheld device into the tree to a mountain and that mountain down to the rest of the city. [14:53.980 --> 15:02.000] So it takes it makes best use case out of those three hops to be able to send messages all around my city in the Central Valley of California. [15:02.440 --> 15:12.180] One of the things that I did do to kind of help this along is in the firmware, I modified the firmware of the one that's in the tree, so it doesn't actually decrement a hop. [15:12.200 --> 15:25.160] So it's basically what that means is that when I'm sending a message from my handheld, the message from my handheld is not is not subtracting one hop count when it's going out into the tree, which is kind of nice because that way I'm not having to, you know, [15:25.160 --> 15:34.340] go outside quite often, I can just have one of these tiny little devices just in my pocket or, you know, strapped to my phone to be able to relay my messages out. [15:36.180 --> 15:41.080] And then what it comes down to is, is you have the kind of the backhaul of the network backbone of the network, which is the routers. [15:41.280 --> 15:43.900] So devices have different device modes. [15:43.900 --> 15:45.520] And we'll talk about the modes going forward. [15:45.520 --> 15:50.240] But really what we need to know right now is that the routers are the big devices on the network. [15:50.240 --> 15:53.800] And what these routers do is they take messages, they have priority in the network. [15:53.940 --> 16:07.040] And they're typically devices, or at least they should be devices that are placed in very high, you know, high terrain line of sight places, because they're what are going to relay the bulk of the messages as they come through. [16:07.080 --> 16:11.520] So as you can see, like a meshtastic device can be this tiny little thing that I can fit in my pocket. [16:11.520 --> 16:19.500] Or it could be a device like this, which is on top of a mountain, that I have, I haven't seen this device in probably 15 months since I placed it. [16:19.500 --> 16:21.740] So that's why range testing is important. [16:21.740 --> 16:29.080] Because before you go hike a mountain, go place a device, you want to make sure that the range test your antennas, everything's tuned , and everything is going to survive. [16:29.080 --> 16:34.440] Because if this were break, if something were to happen to it, I would not want to go climb this mountain again to go place it. [16:34.900 --> 16:46.800] And a little bit more of like kind of specialty builds is that if you are somebody who just like, hey, I want to get involved in meshtastic, I want to buy something off the shelf, you can just go by the Rockland booth in the vendor area and buy something like this. [16:46.900 --> 16:52.980] If you're a DIYer, and you have really specific use cases for you want to do, you can do something like what I've done right here. [16:52.980 --> 17:01.300] So this device right here, I live in Fresno, California, it is very, very hot in the summertime, very much like Vegas, it can get 115 degrees. [17:01.300 --> 17:03.660] And you can even see that it's in a fire prone zone. [17:03.660 --> 17:08.000] If you look carefully at this picture, there's a black scorch mark behind where this radio is. [17:08.000 --> 17:13.580] So none of these batteries can go kinetic, because if they do, it's going to cause a huge fire. [17:13.760 --> 17:20.740] So kind of one of the design principles that I had on this is under no circumstance can this cause a fire if those batteries get hot. [17:20.740 --> 17:25.420] And so what's going to make a battery hot 115 degrees in a metal box. [17:25.420 --> 17:27.600] So this device is in a metal box. [17:28.120 --> 17:34.820] So that if it were to, you know, go kinetic, something bad were to happen to it, the fire would be contained to that box. [17:34.820 --> 17:39.960] Again, ask me how I know I tested it, I should have actually probably added that video into here because it's kind of fun. [17:40.400 --> 17:42.580] But the fire will not escape that box. [17:42.580 --> 17:45.360] But it being in a metal box, I tested it. [17:45.360 --> 17:47.320] Again, you test things over and over and over. [17:47.780 --> 17:57.980] And without the sunshield that you see to the left right there, it will get over 160 degrees Fahrenheit in that box, which is way too hot for your typical batteries. [17:57.980 --> 18:00.960] So what I did is I 3d printed a sunshade to go on top of it. [18:00.960 --> 18:12.100] And so now now inside that box is one degree above ambient temperature on 100 degree day, which I think is pretty good and pretty reasonable because those batteries have a safe operating temperature of believe 130 degrees. [18:12.100 --> 18:15.140] So well, well within the threshold of safety there. [18:16.220 --> 18:25.600] So these routers, I place them everywhere because they are they allow other mishtastic people that might be sequestered to the tiny little valley to not be able to communicate outbound. [18:25.600 --> 18:28.560] So this was one that I put on the central coast of California. [18:28.760 --> 18:41.160] And under really specific conditions, you can see that I can reach from this one node all the way up into basically South Bay and then into like northern Thousand Oaks area of Los Angeles. [18:41.160 --> 18:45.400] So you can see on here that that that device is pretty darn high up. [18:45.400 --> 18:53.600] And the distance that I was able to see it from was 170 miles, which is pretty good range when you consider that that can run for a week on a single 18650. [18:53.600 --> 18:55.160] This is not high power. [18:55.160 --> 18:59.600] This is, you know , in the middle of watts, not in the watt range or anything like that. [18:59.600 --> 19:06.280] So for a ham radio operator, they might be able to say like, oh, yeah, well, I can hit, you know, New Zealand from here on my QRP rig. [19:06.280 --> 19:09.200] This is like QQRP if you're a ham radio operator. [19:09.200 --> 19:12.980] This is the lowest of the low power thing that you're going to be able to transmit with. [19:14.380 --> 19:17.020] So there's different roles that your device can have. [19:17.020 --> 19:20.320] So you can set these roles in your in the settings of your device. [19:20.320 --> 19:22.660] By default, all devices are clients. [19:22.660 --> 19:26.440] What clients do is they will receive messages and they will repeat messages. [19:26.440 --> 19:27.300] That's pretty simple. [19:27.300 --> 19:29.080] That's what their whole point is. [19:29.180 --> 19:30.400] Then there's client mute. [19:30.400 --> 19:33.460] Client mute is one that I think a lot more people should use, but they don't. [19:33.460 --> 19:36.880] Client mute is basically, hey, this is a device that's going to be in my pocket. [19:36.880 --> 19:41.440] I don't necessarily care for it to repeat to all the other metastatic devices that I have. [19:41.440 --> 19:46.020] You can create a lot of noise congestion if you have a lot of clients because they're all going to be chatting and talking. [19:46.460 --> 19:50.120] When in reality, client mute, what that does is it's just not going to repeat. [19:50.120 --> 19:56.080] So if you're here at Defcon, you can realistically turn on client mute and go about your day and you're still going to receive all the messages. [19:56.140 --> 20:02.280] You'll still be able to send messages, but you're not necessarily going to act as like a repeater in the mesh creating congestion. [20:02.520 --> 20:15.080] Now where you might not want to do that is if you have, say you're high up in one of the skyscrapers in Las Vegas, that would be a good spot to maybe have a router or a client node because you do care then about adding to the range of the network from there. [20:15.180 --> 20:16.440] Then there's repeater and router. [20:16.440 --> 20:17.200] They're very similar. [20:17.200 --> 20:19.040] We're not going to go into the nuances of them. [20:19.220 --> 20:22.980] But the router mode is basically something that you're going to put very high up there. [20:22.980 --> 20:24.580] It gets priority in the network. [20:24.580 --> 20:28.380] It's what's going to receive those messages and send them out. [20:28.380 --> 20:40.900] And so when a client device sees that there's a router device, it's going to say, hey, I want to get my message favorably to that router device because that's realistically going to have the greater chances of extending the range on the network. [20:41.080 --> 20:45.660] Then there's all the sorts of fun different roles that there are. [20:45.660 --> 20:46.620] There's tracker. [20:46.920 --> 20:49.320] So tracker is kind of like, you know, would be like an air tag, right? [20:49.320 --> 20:50.960] So it uses a lot more battery. [20:51.000 --> 20:55.480] But it's focused on sending out telemetry packets of GPS, right, which is interesting. [20:55.560 --> 20:56.920] Then there's lost and found. [20:56.920 --> 20:59.780] So lost and found is a really interesting kind of role. [20:59.780 --> 21:04.440] Because what it does is say you have a tiny little mish-tastic device like this. [21:04.500 --> 21:05.440] I dropped it. [21:05.440 --> 21:06.180] It's broken. [21:07.420 --> 21:18.620] A tiny little mish-tastic device like this that weighs nine grams, you could have this on your pet's collar, and it's going to be absolutely silent and not do anything until it receives a packet to turn on. [21:18.620 --> 21:24.580] When it receives a packet to turn on, then it's going to start beaconing data out like crazy so that you can find it. [21:24.580 --> 21:36.120] So it's nice because it's a little tracking token that you can put in a box, you can leave somewhere, you can do something, and only when it's activated, only when it receives the right packet can then will it start sending out those telemetry packets. [21:36.640 --> 21:37.580] I'm going to try this. [21:37.580 --> 21:39.300] Let's see if I can do the downward camera. [21:40.840 --> 21:42.200] Oh, snap. [21:42.620 --> 21:49.360] So this is the tiny little seed device that is based on the ESP32 platform. [21:49.520 --> 21:51.660] But you can see how tiny that is compared to my hand. [21:51.660 --> 21:54.980] So it's again, nine grams, and if you add a battery to it, it's 20 grams. [21:56.840 --> 21:57.720] Nice, look at that. [21:57.720 --> 21:58.840] It all went, it all worked well. [21:58.840 --> 21:59.440] Awesome. [21:59.460 --> 21:59.940] That was great. [21:59.940 --> 22:00.680] Thank you, guys. [22:00.680 --> 22:01.860] Thank you, AV team. [22:03.620 --> 22:08.520] And so then there are some, there's a lot of other node roles that I did not mention in here. [22:08.780 --> 22:14.980] And what those are, so if any of you are in the military, you've used ATAC, I know that some people have a love-hate relationship with ATAC. [22:14.980 --> 22:19.280] If you don't know what it is, don't worry about it, but it's also ATAC compatible as well if you set it up in the settings. [22:19.280 --> 22:22.520] We do not need to talk about that anymore because I don't use it. [22:24.000 --> 22:32.540] So talking about all the different types of mish-tastic devices, I own probably one of every, if not multiples of all of these, which I've brought to DEF CON. [22:32.540 --> 22:40.100] So if you want to look at one, play with one, I have tested absolutely every single one of them out since the very inception of all of them being made. [22:41.480 --> 22:43.880] And yeah, I don't think there's a single one that I don't own. [22:44.100 --> 22:49.740] But basically there's things like the T-beam, T-beam have the GPS, they have, they can run off of 18650. [22:49.740 --> 22:56.800] They're pretty popular, that was kind of one of the first things that came out as far as a device, and that's this one right here, kind of up to the top. [22:56.880 --> 23:05.460] The thing I did not like about the T-beam though, is that the antenna was in the middle of the board, so it was kind of funky when you're trying to carry it in a pocket or do something like that. [23:05.480 --> 23:10.820] There is the T-beam Supreme, which rotates that 90 degrees so that it's more like a walkie talkie kind of style. [23:11.400 --> 23:14.040] Not a huge fan of it because it's not super power efficient. [23:14.660 --> 23:16.100] Then there's the T-Echo. [23:16.100 --> 23:23.900] The T-Echo, it looks like it would be really cool because it has this paperweight display, but the buttons are not recessed on it. [23:23.900 --> 23:28.600] So when it's in your pocket, you can put it into DFU mode or just mess it up. [23:28.600 --> 23:30.980] So I didn't really like it from that perspective. [23:30.980 --> 23:37.340] I was sort of 3D printing other cases, so I didn't touch the buttons, but I wasn't a huge fan of it just because of how that button setup was there. [23:37.340 --> 23:43.380] But then came along was the RackWizBlock, and it's specifically this pocket mesh. [23:43.600 --> 23:46.560] Let me see if I can do this whole deal again. [23:48.400 --> 23:49.700] It's this guy. [23:49.700 --> 23:54.280] Oh, black on black does not seem to work out well, but good thing I have it on the laptop. [23:54.280 --> 23:56.200] It's this white one here to the left. [23:56.240 --> 24:10.460] Now, the things that I like about this GPS on board, which is great if you're trying to do, say you're backpacking, say you're hunting, say you're out in the sticks, to be able to have that GPS information that then you can share with other mesh-tastic devices. [24:10.820 --> 24:11.660] That's really nice. [24:11.660 --> 24:12.680] It's very rugged. [24:12.680 --> 24:14.260] Buttons are recessed. [24:14.260 --> 24:17.200] It has nice little points where you can zip tie things. [24:17.480 --> 24:19.600] There's plenty of open source STL files. [24:19.600 --> 24:24.340] If you have a 3D printer, you can print all of your own cases, all your own stuff for it, which is pretty awesome. [24:25.660 --> 24:29.360] And it's based on the RackWizBlock. [24:30.100 --> 24:30.640] What's it called? [24:30.640 --> 24:31.600] I don't have one up here. [24:31.600 --> 24:33.360] I have it over there if you want to go look at it. [24:33.480 --> 24:43.240] The board, the RackWizBlock board is probably the best IoT board that I've played with to an extent because it has the ability to do battery charging on board. [24:43.240 --> 24:46.460] So you can take solar input, it can charge that battery for you. [24:46.460 --> 24:47.680] And so it does all the smarts. [24:47.680 --> 24:49.540] It's not going to overcharge, not going to over discharge. [24:50.140 --> 24:52.800] So it has all those smarts all built into it. [24:52.800 --> 25:00.200] Then the other part that you get with it is it's very, very, very power efficient, which is great when you're designing IoT off grid type of things. [25:00.200 --> 25:01.640] That's something that you really want. [25:01.880 --> 25:18.660] And then it has tons of ability to have GPIO, other type of, you know, extensible ports that you can put on there, little snap-on sensors of every variety that you can imagine, as well as it also has a, like a PoE Ethernet interface. [25:18.660 --> 25:22.020] So if you want to throw this on your roof and just power it over PoE, you can do all that as well. [25:22.020 --> 25:24.380] So that's the one that I would recommend if you're looking at one. [25:24.380 --> 25:25.460] It is a little bit more expensive. [25:25.460 --> 25:29.600] It's $150, but it does absolutely everything that you could ever imagine. [25:31.040 --> 25:33.040] Now, if you want, they sell the Heltex. [25:33.040 --> 25:35.000] The Heltex are these tiny little boards. [25:35.000 --> 25:35.860] Where are they? [25:35.860 --> 25:36.760] It's right here. [25:37.180 --> 25:39.120] You can see how small it is in my hand, right? [25:39.120 --> 25:40.120] Very small. [25:40.160 --> 25:41.880] Or it comes in that little green case. [25:41.880 --> 25:43.200] These are very inexpensive. [25:43.200 --> 25:48.840] They're not the most power efficient boards, but they're very inexpensive and you can connect them to Wi-Fi, which is also really nice. [25:48.940 --> 26:01.000] So I really like the Heltex to just plug in and if you're going to do development work, if you want to just connect it over serial and battery isn't that big of an issue, I would recommend just getting a handful of these for the price because of what they are and what they can do. [26:01.860 --> 26:07.160] And that's what I built the Mesh C2 system on. [26:08.960 --> 26:19.120] So now that we have an understanding of what Meshtastic is, decentralized, off-grid, encrypted communications, all that fun stuff, what are the use cases, right? [26:19.120 --> 26:25.640] And so by day, I'm a red teamer, adversarial, pick the cool word that you're going to put in that box. [26:25.640 --> 26:33.860] We break into places, we leave drop boxes and often times when you connect a drop box to a network, it works initially and then you got to sneak your way out of the building. [26:33.860 --> 26:43.740] When you sneak your way out of the building, you might lose your internet connection for whatever reason and you just need to send it a couple of commands or you just want to know that it is still alive. [26:44.140 --> 26:53.380] So that's where if you look at this box right here, this is one of our drop boxes, it's actually encased, you can't see it from the top, but it's actually a rat trap that we got from Ace Hardware. [26:53.380 --> 26:58.960] So we just put this inside of a building, on the outside of a building, no one ever wants to open up a rat trap. [26:59.220 --> 27:08.120] And so it makes it a perfect drop box because with that battery it can last, Raspberry Pi can last on there for upwards of probably five days or so. [27:08.120 --> 27:10.700] So it's enough time to do anything we need to do. [27:10.700 --> 27:15.060] But if we lose connection to it, we do not want to be fiddling with this on the outside of a building. [27:15.180 --> 27:18.280] So that's where we came up with Mesh C2. [27:18.280 --> 27:26.400] So Mesh C2, basically all that it is, it converts your existing Meshtastic serial interface into a command and control server. [27:26.400 --> 27:43.580] So you install the script, you plug in your Meshtastic device, and now when you install it, it generates its encrypted channel, so an encrypted key, unique key, for only you and anybody else to be able to, that you share the key with, to be able to issue commands to the device. [27:43.580 --> 27:49.320] The nice thing is that it's an AES-256 key, so pretty strong encryption, and it's symmetric. [27:49.960 --> 27:56.520] And kind of the beauty of this is that you can send and receive your shell communications to do debug. [27:56.520 --> 28:07.180] Now you're not going to be running Metasploit over this, you're not going to be running NetExec over this, you're not going to be running Responder or any of the other tools that you would use in a penetration test or something along those lines. [28:07.180 --> 28:12.940] But you can use this to get your main connection back up and out. [28:12.940 --> 28:20.640] So whether that be LTE, whether that be connecting to guest Wi-Fi, you can send simple commands over there to be able to do this. [28:22.340 --> 28:26.440] So this is just an example of it, so I just issued LS. [28:26.640 --> 28:35.600] Issuing LS, what it does is it first sends you a message back saying, hey, this is the command that I received, and then it will then issue the output of the command. [28:35.600 --> 28:46.000] Pretty simple, and basically this tool is not crazy sophisticated, but there's a bunch of things and nuance to it that if you don't get right can kind of suck for using it as a command and control server. [28:46.100 --> 28:59.660] So if this LS or maybe a thousand files in a directory, it will chunk that up into appropriately sized Meshtastic messages and it will buffer them so that if you want to see more of a command or less of a command, you can basically go through there and say, [28:59.660 --> 29:02.220] I want to see more of command whatever, right? [29:02.220 --> 29:09.320] And so it'll keep that in the buffer for five minutes if you want to see what your interfaces look like, if you want to get a heartbeat from it. [29:09.320 --> 29:15.840] The other thing that I like to have on this too is that it's just a daemon that's running on whatever your Linux host of choice is. [29:15.880 --> 29:18.540] And so you can just echo whatever you want. [29:18.540 --> 29:21.700] You could just send messages in a bash script. [29:21.700 --> 29:32.140] So any script that you have, whether that's catching hashes, whether that's the internet is down, whether that is, hey, your hunting cabin now no longer has solar power because a battery died. [29:32.140 --> 29:37.740] If you can configure it as a script to run, you can have it sent out now over the mesh securely . [29:38.240 --> 29:49.400] And one of the things that's nice about this is that what it does is that you can go into a city and you can not have to have any infrastructure there. [29:49.600 --> 29:54.520] So say you were to come into Fresno and you and your buddies had your own channel set up. [29:54.520 --> 29:58.400] So in this case, you can see slot number two there is mesh C2. [29:58.400 --> 30:11.380] And so if you all had this on your device, you could relay off my routers that are sitting up in the hills, the router devices, the devices that repeat, they do not need to have your encryption key in order to transmit that message. [30:11.380 --> 30:13.660] All they have are the message headers. [30:13.660 --> 30:17.560] They do not have the message contents nor do they need the message contents. [30:17.580 --> 30:30.260] So the cool part about that is that if you're using it as command and control infrastructure, you are using an existing citywide infrastructure of a city that you may not have been in previously and you can send secure communications, secure commands, [30:30.260 --> 30:37.340] receive commands from that without having to raise any real more awareness that there's more RF in a building than there should be. [30:37.600 --> 30:44.520] And I do know people where they would notice that there's this tiny little bit of RF in there, but they are way outside the norm. [30:45.020 --> 30:49.100] 9000% of the time is going to be that no one is going to ever recognize this. [30:49.100 --> 30:51.000] Could you use this for data exfiltration? [30:51.080 --> 30:51.440] Sure. [30:51.440 --> 30:52.520] It's going to be really slow. [30:52.520 --> 30:53.400] You could get hashes out. [30:53.400 --> 30:54.500] You could get passwords out. [30:54.500 --> 30:59.860] Really, this is meant for debugging so that you can make sure that your device is back online doing the thing that it's going to do. [30:59.860 --> 31:16.640] Because the worst thing that you could possibly do is break into a facility, go through all the hoops to clone badges, get in, middle of the night, place your Dropbox behind a printer, bypass whatever port security they have, all for that device to reboot and now your key's not on board. [31:16.640 --> 31:25.080] So that's what this was designed for, to be able to issue those simple commands, receive those simple commands, buffer those commands so that you can then access it later on. [31:25.080 --> 31:28.240] And then the other thing that's nice about it too is that you could also use the daemon. [31:28.240 --> 31:33.860] So even if you don't want to do any of the secret squirrel community control stuff, you could still have it. [31:33.860 --> 31:43.400] So you just plug one of these little devices in to a USB port, and now any bash script that you write or any script that you write can now just be broadcasted over the mesh. [31:43.660 --> 31:49.280] And I said it, so by default it only does send it on your secure mesh C2 instance. [31:49.540 --> 31:57.100] But if you want to, you can just add a flag to it that says, hey, broadcast this on the default public lung fast or the public DEF CON network. [31:57.100 --> 32:04.560] So you can configure this just with a flag in the script to be able to send over any channel that you want, or even at a cadence. [32:04.560 --> 32:09.980] So if you just wanted it to say, hey, I'm still alive, here's a heartbeat, you could do that as well. [32:10.580 --> 32:20.480] And the beauty of it is that this is all end-to-end encrypted, which is very nice because it would be really dumb to make a C2 server that anybody could issue commands to. [32:20.480 --> 32:39.800] There was one time I powered it up before, and when I was doing my development work, I powered up the mesh C2 at my local network, and it wasn't selecting the appropriate channel, and so it broadcasted on boot and said, hey, the C2 server is up, feel free to issue commands out to the entire public mesh. [32:40.000 --> 32:50.800] And then I had a, luckily I have a fairly small mesh, I know pretty much everybody in it, and so I just got a bunch of text messages that are like, hey, dummy, maybe don't have your C2 network broadcast on the open network. [32:50.840 --> 32:53.500] But again, it was all during development, I wasn't really worried about it. [32:53.500 --> 33:02.300] It's just kind of one of those funny things where I made sure that there was a flag that it gives you a warning that says, hey, don't be dumb, be sure you want to do this. [33:02.300 --> 33:06.180] So you don't have to worry about it becoming an accidental command and control server. [33:08.220 --> 33:09.140] Let's see. [33:09.140 --> 33:16.140] So some of the other things that are nice about the script, about the daemon that runs, is that it breaks that mesh C2 out into multiple packets. [33:16.340 --> 33:25.840] So if you have, say, you're cadding a file that's going to be, I don't know, a thousand characters, it will break that up into a logical amount of packets and then buffer it. [33:25.840 --> 33:32.180] So it will send out ten messages by default, all broken up, you know, like paginated, basically. [33:32.660 --> 33:42.680] But then what it will do as well is that if you want more of that output, you can then type more and continue to receive that buffered output for about five minutes while that output stays in there. [33:42.680 --> 33:46.480] And it will buffer it and then you can also issue other commands on top of it and you don't have to worry about it. [33:46.480 --> 33:53.060] It does all the nice signal handling of sending and receiving messages so they don't get, you know, trump on top of each other. [33:54.560 --> 33:58.440] And the other thing too is it queues them all up so it creates a nice little buffer to send out the messages. [33:58.440 --> 34:04.860] So if you have multiple alerts going out, multiple commands coming back with data, it will then queue that out, buffer it out, so you don't have to worry about it. [34:04.860 --> 34:09.000] You could also add, you could also, there's also a flag in there that will append timestamps. [34:09.140 --> 34:13.340] So if you want to know , hey, when did this command actually come back, you can also append timestamps. [34:13.340 --> 34:21.160] The reason I don't do timestamps by default is because it just adds unneeded data that you could use for actual packets and data coming back. [34:21.160 --> 34:26.180] So I don't want to take up a significant chunk of the message that you're going to get just in the stupid timestamp. [34:26.380 --> 34:31.920] The other thing that it does too is that it will try, it will retry by default three times to send that message out. [34:31.920 --> 34:40.440] So oftentimes if you have one of the small little devices, one of the little ESP32 devices with like a little flimsy antenna on it, it may not get out that well. [34:40.440 --> 34:46.440] So it will then retry three times until it gets an acknowledgment from the other version of that command and control server. [34:46.960 --> 34:54.780] Again, these are all things that are not crazy complicated, but they're really nice to have, especially when you need that data to get out the most. [34:55.940 --> 34:59.680] So here's an example of some of the different things that you could do with it. [34:59.680 --> 35:03.380] So you could add this into whatever your bash ZSH. [35:03.660 --> 35:07.000] Once you install it, Mesh C2 is just an executable program. [35:07.000 --> 35:09.680] So you could just say, hey, this is the message timestamp. [35:09.680 --> 35:11.480] You can have it send on specific channels. [35:12.300 --> 35:18.940] Again, I use it for C2, but I could recognize that there are other times where you might want to use it for other things. [35:18.940 --> 35:22.320] I have a friend who had like a chicken door, right? [35:22.320 --> 35:30.360] You could have this chicken door so that when the door is up, door is down, and it's a remote part of your property, that you get the message that says, hey, I'm going to send the message, door is closed. [35:30.360 --> 35:36.800] Chickens are locked up for the night on a specific channel that maybe isn't your encrypted Mesh C2 channel, but maybe it's just the public channel, right? [35:36.800 --> 35:50.960] So lots of different use cases that I was like, hey, this is going to take me an extra couple minutes to add these features in, and I don't know what you might do with it, but it's in there so that you can easily and programmatically kind of send messages out over the Mesh, [35:50.960 --> 35:54.480] whatever channel you want from pretty much whatever device you do want it from. [35:55.880 --> 35:57.800] We don't need to really go into architecture. [35:58.000 --> 36:02.420] System, it's a system D service that just runs, everything is by default is AES 256. [36:02.980 --> 36:11.580] All the commands and the, all the commands and command output, they are all logged into the device by default. [36:11.580 --> 36:23.460] You can turn off that if you don't want them to, if you're using a Dropbox , I understand maybe you don't want to fill your device up with just random Mesh logs, but it is nice because if you are concerned that somebody issued commands or you, like, for whatever reason, [36:23.460 --> 36:35.780] you just want to audit the commands that were sent over this device, they are all fully logged, all the, all the commands, all the responses to those commands are logged to the device itself in the logs directory, which is, again, not, not an astounding feature. [36:35.780 --> 36:37.640] It's a very nice feature, though, when you need it. [36:39.100 --> 36:48.020] So some of the features on it, so you can do it in non, so if you do, if you don't do the dash dash real device mode on there, then it will, you can just kind of simulate as if a Mesh device were there. [36:48.840 --> 36:50.280] You can create different channels. [36:50.280 --> 36:52.380] You can basically just use this to create list channels. [36:52.380 --> 37:00.400] In fact, you can use it as, like, a easy way to back up and restore different channels and different configurations if you didn't want to do it through the app. [37:00.840 --> 37:10.560] And by default, when you do install this, it does generate its own AES-256 key for the channel, so you don't have to worry about, you know, key reuse or something along those lines. [37:10.740 --> 37:15.460] And honestly, it's just cool to send, to be able to send messages from your terminal out to the Mesh. [37:15.460 --> 37:16.700] There's tons of other use cases. [37:16.700 --> 37:23.120] I actually use this as one of the, for one of the challenges in the wireless CTF to transmit flags and do that kind of a thing, too. [37:23.120 --> 37:31.740] So if you're playing the wireless capture the flag, then Hintant, this is what I'm using to send out different flags for some of the Meshtastic challenges that are out there. [37:32.160 --> 37:34.580] Yeah, if you want to know more, check out meshtastic.org. [37:34.580 --> 37:37.820] That has basically all the libraries, all the information you could ever want. [37:38.040 --> 37:41.620] If you want to know more about our local Mesh, it's fresnomesh.com. [37:41.640 --> 37:45.020] I have links to pretty much everything that I've talked about in here. [37:45.200 --> 37:56.260] And then if you want to git clone this project, you can make fun of how terrible my agentic coding is, or I should say Chechenese coding skills are, by checking out Mesh C2. [37:56.640 --> 38:00.360] Again, this is really a tool that I built for myself. [38:00.500 --> 38:03.460] And then after I talked to some friends, they're like, okay, you should tell other people about it, too. [38:03.460 --> 38:05.180] This is kind of cool and really nerdy. [38:05.180 --> 38:09.180] And thank you for sitting through my talk for the next 45 minutes. [38:09.180 --> 38:10.820] Does anybody have any questions? [38:10.820 --> 38:11.520] Anybody? [38:12.400 --> 38:14.960] You can also just come see me at the booth, too. [38:14.960 --> 38:16.180] I see a question right there. [38:26.270 --> 38:30.510] Could you use it as a back-end connection to an OMG cable? [38:30.510 --> 38:31.330] Yeah, you actually could. [38:31.330 --> 38:47.930] So if you had basically a middleware device, so kind of like a Dropbox, so when we're doing... it gets out of the Mesh-tastic realm, we're planting devices in networks that we have permission to... networks in physical spaces where we have permission to put things like OMG cables, [38:47.930 --> 38:50.890] things like key loggers and all that kind of stuff. [38:51.050 --> 38:59.850] If you have a Dropbox that is able to receive information from that OMG cable, you could absolutely then use this C2 infrastructure to get that data out as well. [39:00.210 --> 39:11.130] As long as it's not a lot of data and it's just some text data, but key loggers would be perfect for it, provided that your user does not type professionally at 100 words per minute. [39:12.010 --> 39:13.070] That's a good question, though. [39:13.070 --> 39:13.810] Yeah, I hadn't thought about it. [39:13.810 --> 39:19.070] And again, that's why I built it out, because I don't know what your use cases might be, but that is the legitimate use case for it. [39:19.610 --> 39:20.530] Anybody else? [39:21.290 --> 39:22.270] Going once? [39:22.650 --> 39:23.610] Going twice? [39:23.690 --> 39:24.130] All right. [39:24.130 --> 39:28.690] Well, if you do have a question and you don't want to announce it to everybody, feel free to come see me at the Village. [39:29.270 --> 39:34.810] I live, eat, and breathe Mesh-tastic, LoRa, and low-power gear. [39:34.810 --> 39:35.510] So thank you all. [39:35.510 --> 39:36.130] Appreciate it.