start	end	text
3520	4920	Hey, everybody, can you hear me?
4920	6940	Ooh, listen to that.
6940	9900	Wow, they modulated my voice, that sounds so good and sultry.
10440	12540	Hey, everybody, my name is Eric Escobar.
12540	25480	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.
25520	29620	Raise your hand if you have a Meshtastic radio with you right now.
29960	31500	Whoa, look at that.
31500	35380	Raise your hand if you have one or if you don't have one but you want one.
36560	39160	Wait, I saw some of the same hands go up.
40100	48540	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.
48880	52780	So, all right, without further ado, let me spit out my gum.
53660	58580	So I am the wireless technical lead at Sophos, previously SecureWorks, we just got bought out.
59500	71960	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.
72600	74420	And now we can also talk about them.
74420	75300	Can I just hold this?
75300	76060	That would be awesome.
76060	77260	I can't, beautiful.
77560	81220	So basics, who does not know what Meshtastic is?
82280	83000	Excellent.
83000	85480	I'm glad that I put some slides in here for all of you then.
85680	90520	So Meshtastic, you can think of it like text messaging walkie talkies.
90540	97820	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.
98060	105040	And it's very low data rate, but very power efficient, and can go very, very long distances.
105720	112060	And so it runs off of LoRa radios, LoRa is, you know, the type of wireless communication protocol that it uses.
112060	117980	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.
118260	130480	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.
130580	132780	It's also really great for nerds.
132780	140920	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?
140920	145360	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?
145360	148980	Like, no one, no one in my circle cares about this whatsoever.
148980	157100	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.
157100	164060	So it feels really good that there's at least 1500 other nerds out there that like the same thing that I like.
165120	167540	So a little bit more about Meshtastic.
167540	172460	So the actual devices that they are, so I have a smattering of them up here.
172480	177240	And I have, you'll see dozens of pictures of the different devices that that I have.
177420	184600	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.
184980	191460	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.
191600	195780	These are some of the like rough, like outline devices that there are.
195780	199220	So you can see this little one, it's the little green one, it's called a Heltech.
199220	201200	Heltech is really good because it's really cheap.
201200	205680	You can buy that for like $25 on Amazon, and it just gets you going.
205680	208280	But it doesn't have a battery, plug it in via USB.
208960	212680	Then the next kind of step up is the Pocket Mesh, it's made by Rack Wireless.
213120	216280	This is a very nice board, it's kind of like the Cadillac.
216340	222220	And it has, you know, GPS on board, sensors on board, a little screen on board, a lot of really good stuff.
222220	223700	It's very power efficient.
223820	227200	So you can run it, you can run it for multiple days on a single charge.
227640	230220	The price for that is probably like $150.
230440	241960	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.
241960	248060	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.
248060	250360	So we'll talk about why that's important in a little bit.
250600	253340	Does anybody have any questions with anything that I've said so far?
253340	256160	Because it's critical to the rest of the talk if you don't understand something.
256160	257860	Just raise your hand and shout.
258600	260640	Going once, going twice.
260960	261700	Excellent.
261960	263320	All right, somebody needs to raise their hand.
263320	264580	Let's talk to somebody else.
265960	276380	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.
276380	283780	And so this is me driving through the kind of Carpentria, LA Basin and San Diego, Carlsbad area.
283780	292220	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.
292420	300160	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.
300160	311000	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.
311000	316680	One of the things that DEF CON, so DEF CON has their own Meshtastic firmware for just DEF CON.
316680	323400	So when you go home, do not run the DEF CON Meshtastic firmware, because you probably will not be able to communicate with anybody.
323760	332400	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.
332400	337100	Typically, when I'm at home, I need to go 20 miles before I can talk to the next Meshtastic node.
337100	341580	When you're at DEF CON, you need to go maybe the next 20 feet before you talk to a Meshtastic node.
341580	350560	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.
353140	357000	So LORA stands for long range radio, it uses chirp spread spectrum.
357060	360940	This is a lot of the reasons why it can get out of the noise floor.
360940	375480	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,
375480	387260	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.
387540	396860	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.
397600	404700	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?
405140	410760	And for Meshtastic, you don't need any license, but you can also use it if you're a ham radio operator.
410840	419960	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.
420560	425880	These ISM bands, you can transmit with limited amounts of power on them without any type of license.
425880	427560	And you can also use encryption.
427840	435740	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.
436000	439640	Now, if you're a ham radio operator, you can also toggle this ham switch.
439640	441680	So you can see licensed operator down there.
441680	446740	Now when you toggle that switch on a lot of people immediately think in their mind, oh, I'm a licensed operator.
446740	449540	If I turn this switch on, I get to pump out more power.
449700	454080	And with more power, that means I can go farther, do cooler things, all that kind of stuff.
454100	469640	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.
469640	478460	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.
478480	488140	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.
488140	499580	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.
500820	507460	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.
507460	519380	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.
519400	529360	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.
530720	532760	So about the different modes that there are.
532760	544760	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.
544760	548840	Basically, what that changes is it changes the speed with which your message is sent out.
548840	560460	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.
560460	567880	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.
568060	569820	And that's meant to keep congestion down.
569820	584000	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.
584020	594020	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.
594340	600940	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.
600940	606320	They're made for getting things like telemetry data, sensor data, message data, that sort of thing across.
606420	610320	And so if you're looking at this, this is just kind of one of the examples of what we've used it for.
611260	615000	Where you can use an app, you can see telemetry from other devices.
615000	620660	So I have a temperature sensor, I have a barometric pressure sensor, humidity sensor.
621040	622980	And so you have these sensors attached to the board.
622980	626420	And so you can go look at these in the app stock default.
626420	631780	And if that sensor is on board, you can then go read that historical data that your device has seen.
631800	648080	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 .
648360	650720	You can do any of that with the stock sensors.
652280	667740	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,
667740	672020	all those things, if there's a sensor that you can hook up to Arduino, you can hook it up to mesh tasking.
672020	682380	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.
682600	694760	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.
694760	699300	So it's very, very, very power efficient, as far as what it's doing.
701980	706300	So then when you're kind of getting into this, you want to know how well is my antenna working?
706300	707980	How well are my placements working?
707980	712260	So there's a ton of different features when you kind of dig into the settings of the app itself.
712580	717860	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.
717940	720080	But line of sight is what matters the most.
720080	727360	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?
727360	729380	So yes, antennas matter.
729380	733820	Yes, the length of cable of coax going into your antenna matters.
733820	744800	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.
744800	752060	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.
752160	755440	But what Meshesic has built into it is as a range test mode.
755440	764820	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.
764820	774020	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.
774060	776000	You may not need that when you're starting out.
776000	784780	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.
784780	785900	Ask me how I know.
787620	789400	So how messages are routed.
789400	794940	So this is not like your typical walkie talkie where it is from point, you know, from one device to another device, right?
794940	802040	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.
802040	810640	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.
810640	820780	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.
820780	824500	So it will hop three times, and that's done in kind of the headers of the message.
824500	828120	So it's kind of similar to APRS and how far it will go out of your hand radio operator.
828500	832280	And each message only will not retransmit a message that it sees.
832280	836820	So there's not going to be like a packet storm, there's not going to be like an infinite loop that's created.
837340	840540	And you can see so I'm located in central California.
840660	849760	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.
850020	859160	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.
859160	861320	Those are typically what are the backbone of the network.
861320	863660	And we'll talk about that here in a little bit.
863660	867600	Does anybody have any questions so far that they have before I keep going?
868180	869400	Great, I'll keep going.
869400	873580	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.
873580	875680	I am not shy, you will not interrupt me.
877380	881200	So this is so kind of my setup, I'll fast forward a slide.
881220	884360	So my setup is I have this 80 foot tree in my backyard.
885040	886980	And so I have a handheld device.
886980	893980	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.
893980	902000	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.
902440	912180	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.
912200	925160	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,
925160	934340	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.
936180	941080	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.
941280	943900	So devices have different device modes.
943900	945520	And we'll talk about the modes going forward.
945520	950240	But really what we need to know right now is that the routers are the big devices on the network.
950240	953800	And what these routers do is they take messages, they have priority in the network.
953940	967040	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.
967080	971520	So as you can see, like a meshtastic device can be this tiny little thing that I can fit in my pocket.
971520	979500	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.
979500	981740	So that's why range testing is important.
981740	989080	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.
989080	994440	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.
994900	1006800	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.
1006900	1012980	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.
1012980	1021300	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.
1021300	1023660	And you can even see that it's in a fire prone zone.
1023660	1028000	If you look carefully at this picture, there's a black scorch mark behind where this radio is.
1028000	1033580	So none of these batteries can go kinetic, because if they do, it's going to cause a huge fire.
1033760	1040740	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.
1040740	1045420	And so what's going to make a battery hot 115 degrees in a metal box.
1045420	1047600	So this device is in a metal box.
1048120	1054820	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.
1054820	1059960	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.
1060400	1062580	But the fire will not escape that box.
1062580	1065360	But it being in a metal box, I tested it.
1065360	1067320	Again, you test things over and over and over.
1067780	1077980	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.
1077980	1080960	So what I did is I 3d printed a sunshade to go on top of it.
1080960	1092100	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.
1092100	1095140	So well, well within the threshold of safety there.
1096220	1105600	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.
1105600	1108560	So this was one that I put on the central coast of California.
1108760	1121160	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.
1121160	1125400	So you can see on here that that that device is pretty darn high up.
1125400	1133600	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.
1133600	1135160	This is not high power.
1135160	1139600	This is, you know , in the middle of watts, not in the watt range or anything like that.
1139600	1146280	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.
1146280	1149200	This is like QQRP if you're a ham radio operator.
1149200	1152980	This is the lowest of the low power thing that you're going to be able to transmit with.
1154380	1157020	So there's different roles that your device can have.
1157020	1160320	So you can set these roles in your in the settings of your device.
1160320	1162660	By default, all devices are clients.
1162660	1166440	What clients do is they will receive messages and they will repeat messages.
1166440	1167300	That's pretty simple.
1167300	1169080	That's what their whole point is.
1169180	1170400	Then there's client mute.
1170400	1173460	Client mute is one that I think a lot more people should use, but they don't.
1173460	1176880	Client mute is basically, hey, this is a device that's going to be in my pocket.
1176880	1181440	I don't necessarily care for it to repeat to all the other metastatic devices that I have.
1181440	1186020	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.
1186460	1190120	When in reality, client mute, what that does is it's just not going to repeat.
1190120	1196080	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.
1196140	1202280	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.
1202520	1215080	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.
1215180	1216440	Then there's repeater and router.
1216440	1217200	They're very similar.
1217200	1219040	We're not going to go into the nuances of them.
1219220	1222980	But the router mode is basically something that you're going to put very high up there.
1222980	1224580	It gets priority in the network.
1224580	1228380	It's what's going to receive those messages and send them out.
1228380	1240900	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.
1241080	1245660	Then there's all the sorts of fun different roles that there are.
1245660	1246620	There's tracker.
1246920	1249320	So tracker is kind of like, you know, would be like an air tag, right?
1249320	1250960	So it uses a lot more battery.
1251000	1255480	But it's focused on sending out telemetry packets of GPS, right, which is interesting.
1255560	1256920	Then there's lost and found.
1256920	1259780	So lost and found is a really interesting kind of role.
1259780	1264440	Because what it does is say you have a tiny little mish-tastic device like this.
1264500	1265440	I dropped it.
1265440	1266180	It's broken.
1267420	1278620	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.
1278620	1284580	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.
1284580	1296120	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.
1296640	1297580	I'm going to try this.
1297580	1299300	Let's see if I can do the downward camera.
1300840	1302200	Oh, snap.
1302620	1309360	So this is the tiny little seed device that is based on the ESP32 platform.
1309520	1311660	But you can see how tiny that is compared to my hand.
1311660	1314980	So it's again, nine grams, and if you add a battery to it, it's 20 grams.
1316840	1317720	Nice, look at that.
1317720	1318840	It all went, it all worked well.
1318840	1319440	Awesome.
1319460	1319940	That was great.
1319940	1320680	Thank you, guys.
1320680	1321860	Thank you, AV team.
1323620	1328520	And so then there are some, there's a lot of other node roles that I did not mention in here.
1328780	1334980	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.
1334980	1339280	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.
1339280	1342520	We do not need to talk about that anymore because I don't use it.
1344000	1352540	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.
1352540	1360100	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.
1361480	1363880	And yeah, I don't think there's a single one that I don't own.
1364100	1369740	But basically there's things like the T-beam, T-beam have the GPS, they have, they can run off of 18650.
1369740	1376800	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.
1376880	1385460	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.
1385480	1390820	There is the T-beam Supreme, which rotates that 90 degrees so that it's more like a walkie talkie kind of style.
1391400	1394040	Not a huge fan of it because it's not super power efficient.
1394660	1396100	Then there's the T-Echo.
1396100	1403900	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.
1403900	1408600	So when it's in your pocket, you can put it into DFU mode or just mess it up.
1408600	1410980	So I didn't really like it from that perspective.
1410980	1417340	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.
1417340	1423380	But then came along was the RackWizBlock, and it's specifically this pocket mesh.
1423600	1426560	Let me see if I can do this whole deal again.
1428400	1429700	It's this guy.
1429700	1434280	Oh, black on black does not seem to work out well, but good thing I have it on the laptop.
1434280	1436200	It's this white one here to the left.
1436240	1450460	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.
1450820	1451660	That's really nice.
1451660	1452680	It's very rugged.
1452680	1454260	Buttons are recessed.
1454260	1457200	It has nice little points where you can zip tie things.
1457480	1459600	There's plenty of open source STL files.
1459600	1464340	If you have a 3D printer, you can print all of your own cases, all your own stuff for it, which is pretty awesome.
1465660	1469360	And it's based on the RackWizBlock.
1470100	1470640	What's it called?
1470640	1471600	I don't have one up here.
1471600	1473360	I have it over there if you want to go look at it.
1473480	1483240	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.
1483240	1486460	So you can take solar input, it can charge that battery for you.
1486460	1487680	And so it does all the smarts.
1487680	1489540	It's not going to overcharge, not going to over discharge.
1490140	1492800	So it has all those smarts all built into it.
1492800	1500200	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.
1500200	1501640	That's something that you really want.
1501880	1518660	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.
1518660	1522020	So if you want to throw this on your roof and just power it over PoE, you can do all that as well.
1522020	1524380	So that's the one that I would recommend if you're looking at one.
1524380	1525460	It is a little bit more expensive.
1525460	1529600	It's $150, but it does absolutely everything that you could ever imagine.
1531040	1533040	Now, if you want, they sell the Heltex.
1533040	1535000	The Heltex are these tiny little boards.
1535000	1535860	Where are they?
1535860	1536760	It's right here.
1537180	1539120	You can see how small it is in my hand, right?
1539120	1540120	Very small.
1540160	1541880	Or it comes in that little green case.
1541880	1543200	These are very inexpensive.
1543200	1548840	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.
1548940	1561000	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.
1561860	1567160	And that's what I built the Mesh C2 system on.
1568960	1579120	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?
1579120	1585640	And so by day, I'm a red teamer, adversarial, pick the cool word that you're going to put in that box.
1585640	1593860	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.
1593860	1603740	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.
1604140	1613380	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.
1613380	1618960	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.
1619220	1628120	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.
1628120	1630700	So it's enough time to do anything we need to do.
1630700	1635060	But if we lose connection to it, we do not want to be fiddling with this on the outside of a building.
1635180	1638280	So that's where we came up with Mesh C2.
1638280	1646400	So Mesh C2, basically all that it is, it converts your existing Meshtastic serial interface into a command and control server.
1646400	1663580	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.
1663580	1669320	The nice thing is that it's an AES-256 key, so pretty strong encryption, and it's symmetric.
1669960	1676520	And kind of the beauty of this is that you can send and receive your shell communications to do debug.
1676520	1687180	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.
1687180	1692940	But you can use this to get your main connection back up and out.
1692940	1700640	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.
1702340	1706440	So this is just an example of it, so I just issued LS.
1706640	1715600	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.
1715600	1726000	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.
1726100	1739660	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,
1739660	1742220	I want to see more of command whatever, right?
1742220	1749320	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.
1749320	1755840	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.
1755880	1758540	And so you can just echo whatever you want.
1758540	1761700	You could just send messages in a bash script.
1761700	1772140	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.
1772140	1777740	If you can configure it as a script to run, you can have it sent out now over the mesh securely .
1778240	1789400	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.
1789600	1794520	So say you were to come into Fresno and you and your buddies had your own channel set up.
1794520	1798400	So in this case, you can see slot number two there is mesh C2.
1798400	1811380	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.
1811380	1813660	All they have are the message headers.
1813660	1817560	They do not have the message contents nor do they need the message contents.
1817580	1830260	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,
1830260	1837340	receive commands from that without having to raise any real more awareness that there's more RF in a building than there should be.
1837600	1844520	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.
1845020	1849100	9000% of the time is going to be that no one is going to ever recognize this.
1849100	1851000	Could you use this for data exfiltration?
1851080	1851440	Sure.
1851440	1852520	It's going to be really slow.
1852520	1853400	You could get hashes out.
1853400	1854500	You could get passwords out.
1854500	1859860	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.
1859860	1876640	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.
1876640	1885080	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.
1885080	1888240	And then the other thing that's nice about it too is that you could also use the daemon.
1888240	1893860	So even if you don't want to do any of the secret squirrel community control stuff, you could still have it.
1893860	1903400	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.
1903660	1909280	And I said it, so by default it only does send it on your secure mesh C2 instance.
1909540	1917100	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.
1917100	1924560	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.
1924560	1929980	So if you just wanted it to say, hey, I'm still alive, here's a heartbeat, you could do that as well.
1930580	1940480	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.
1940480	1959800	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.
1960000	1970800	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.
1970840	1973500	But again, it was all during development, I wasn't really worried about it.
1973500	1982300	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.
1982300	1986180	So you don't have to worry about it becoming an accidental command and control server.
1988220	1989140	Let's see.
1989140	1996140	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.
1996340	2005840	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.
2005840	2012180	So it will send out ten messages by default, all broken up, you know, like paginated, basically.
2012660	2022680	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.
2022680	2026480	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.
2026480	2033060	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.
2034560	2038440	And the other thing too is it queues them all up so it creates a nice little buffer to send out the messages.
2038440	2044860	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.
2044860	2049000	You could also add, you could also, there's also a flag in there that will append timestamps.
2049140	2053340	So if you want to know , hey, when did this command actually come back, you can also append timestamps.
2053340	2061160	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.
2061160	2066180	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.
2066380	2071920	The other thing that it does too is that it will try, it will retry by default three times to send that message out.
2071920	2080440	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.
2080440	2086440	So it will then retry three times until it gets an acknowledgment from the other version of that command and control server.
2086960	2094780	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.
2095940	2099680	So here's an example of some of the different things that you could do with it.
2099680	2103380	So you could add this into whatever your bash ZSH.
2103660	2107000	Once you install it, Mesh C2 is just an executable program.
2107000	2109680	So you could just say, hey, this is the message timestamp.
2109680	2111480	You can have it send on specific channels.
2112300	2118940	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.
2118940	2122320	I have a friend who had like a chicken door, right?
2122320	2130360	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.
2130360	2136800	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?
2136800	2150960	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,
2150960	2154480	whatever channel you want from pretty much whatever device you do want it from.
2155880	2157800	We don't need to really go into architecture.
2158000	2162420	System, it's a system D service that just runs, everything is by default is AES 256.
2162980	2171580	All the commands and the, all the commands and command output, they are all logged into the device by default.
2171580	2183460	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,
2183460	2195780	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.
2195780	2197640	It's a very nice feature, though, when you need it.
2199100	2208020	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.
2208840	2210280	You can create different channels.
2210280	2212380	You can basically just use this to create list channels.
2212380	2220400	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.
2220840	2230560	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.
2230740	2235460	And honestly, it's just cool to send, to be able to send messages from your terminal out to the Mesh.
2235460	2236700	There's tons of other use cases.
2236700	2243120	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.
2243120	2251740	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.
2252160	2254580	Yeah, if you want to know more, check out meshtastic.org.
2254580	2257820	That has basically all the libraries, all the information you could ever want.
2258040	2261620	If you want to know more about our local Mesh, it's fresnomesh.com.
2261640	2265020	I have links to pretty much everything that I've talked about in here.
2265200	2276260	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.
2276640	2280360	Again, this is really a tool that I built for myself.
2280500	2283460	And then after I talked to some friends, they're like, okay, you should tell other people about it, too.
2283460	2285180	This is kind of cool and really nerdy.
2285180	2289180	And thank you for sitting through my talk for the next 45 minutes.
2289180	2290820	Does anybody have any questions?
2290820	2291520	Anybody?
2292400	2294960	You can also just come see me at the booth, too.
2294960	2296180	I see a question right there.
2306270	2310510	Could you use it as a back-end connection to an OMG cable?
2310510	2311330	Yeah, you actually could.
2311330	2327930	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,
2327930	2330890	things like key loggers and all that kind of stuff.
2331050	2339850	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.
2340210	2351130	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.
2352010	2353070	That's a good question, though.
2353070	2353810	Yeah, I hadn't thought about it.
2353810	2359070	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.
2359610	2360530	Anybody else?
2361290	2362270	Going once?
2362650	2363610	Going twice?
2363690	2364130	All right.
2364130	2368690	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.
2369270	2374810	I live, eat, and breathe Mesh-tastic, LoRa, and low-power gear.
2374810	2375510	So thank you all.
2375510	2376130	Appreciate it.
