1 00:00:00,000 --> 00:00:02,800 All right, let's get started. 2 00:00:02,880 --> 00:00:04,780 Thanks for coming to my talk. 3 00:00:05,160 --> 00:00:08,260 Weird and wonderful things your access point never dreamed out. 4 00:00:12,060 --> 00:00:16,260 Yeah, this guy said I smell good, so you should come closer and enjoy that. 5 00:00:19,720 --> 00:00:21,480 Yeah, come up closer. 6 00:00:21,480 --> 00:00:22,980 It's not very loud here. 7 00:00:25,920 --> 00:00:27,100 It's not loud down there. 8 00:00:27,100 --> 00:00:28,180 It's perfect up here. 9 00:00:30,380 --> 00:00:43,770 All right, so the idea I had, it was a few years ago, I was playing around with some basic Wi-Fi hacking stuff and I realized how low level you can actually go. 10 00:00:44,030 --> 00:00:49,570 And I had way too much fun with it and I thought I'd share with you guys some of the fun I had. 11 00:00:49,570 --> 00:00:54,990 And yeah, it's for fun and certainly not profit because it's ridiculous. 12 00:00:54,990 --> 00:01:02,090 It's not really very useful, but it's a lot of fun and interesting to see very alternative ways you can use Wi-Fi. 13 00:01:02,430 --> 00:01:11,250 If you don't bother with access points or association or any kind of retransmissions, all the stuff you get from the higher layers, just drop that. 14 00:01:11,250 --> 00:01:16,490 You can do some stuff that's more like ham radio, more low level. 15 00:01:16,790 --> 00:01:23,250 So it turns out it's possible to send frames with very little overhead, very few headers. 16 00:01:24,610 --> 00:01:29,050 You can put your socket into this raw socket mode or you can use Scapey, it's a little shorter. 17 00:01:29,050 --> 00:01:29,910 I'll show both. 18 00:01:32,230 --> 00:01:37,330 So I'm mostly going to be showing some CLI demos and I'll be showing you some code. 19 00:01:37,330 --> 00:01:41,630 It's all code that mostly fits, at least the first couple of them, mostly fit on one screen. 20 00:01:41,630 --> 00:01:49,110 It's like short code, just to get an idea of the way too much fun I had when I was playing around with this stuff. 21 00:01:50,090 --> 00:01:52,870 And I'll show in Wireshark that it's actually going out in the air. 22 00:01:52,870 --> 00:01:54,830 So I have a couple of these. 23 00:01:54,830 --> 00:02:01,750 I have another one here that allow injection of raw 8 or to 11 frames. 24 00:02:02,110 --> 00:02:10,650 So the first I just show you the absolute, I think most bare bones, how can you just send a frame and receive a frame with as few lines as possible. 25 00:02:11,430 --> 00:02:14,590 And I'll use that to do something like AirDrop. 26 00:02:15,590 --> 00:02:17,670 I won't call it AirDrop, I'll call it FileDrop. 27 00:02:17,670 --> 00:02:23,070 And I'll show a walkie-talkie idea, which is a similar idea. 28 00:02:24,110 --> 00:02:27,290 And then MeshTastic, I don't know if any of you play with that. 29 00:02:27,730 --> 00:02:38,150 It's an interesting mesh network that doesn't use Wi-Fi at all, but you can kind of shoehorn it in to use Wi-Fi and that's what I'm going to show. 30 00:02:38,970 --> 00:02:46,790 And then WifiFS is another interesting idea of a completely alternative view of Wi-Fi, different way than Wireshark. 31 00:02:47,770 --> 00:02:54,890 Okay, so first of all, the simplest possible, I think at least this is the most minimal 8 or to 11 frame possible. 32 00:02:55,210 --> 00:02:59,490 Just use the socket mode or you escape, I'll show you both. 33 00:03:04,730 --> 00:03:08,570 Here's some code that transmits. 34 00:03:08,650 --> 00:03:13,510 I open a socket and bind it to my Wi-Fi interface. 35 00:03:13,510 --> 00:03:18,910 There's a few headers unnecessary like a source, destination, and what access point you're connected to. 36 00:03:18,910 --> 00:03:21,410 So I just made up some headers there. 37 00:03:21,950 --> 00:03:30,850 And there's some radio, because of the way injection works, you do need to add another kind of a header for the injection to even happen, but that isn't actually transmitted, that part. 38 00:03:31,190 --> 00:03:36,770 And there's some very minimal 802.11 header you need, so I just hard-coded that. 39 00:03:36,970 --> 00:03:40,490 Actually, this is the header that includes the source, destination, and so on. 40 00:03:40,590 --> 00:03:41,690 And then send. 41 00:03:43,650 --> 00:03:45,190 So let's try it. 42 00:03:45,190 --> 00:03:57,090 So by here, this tab I'll be transmitting, probably sending now. 43 00:03:57,090 --> 00:04:02,490 And in this tab, I'll be receiving the low world. 44 00:04:02,490 --> 00:04:04,890 Okay, that was what we saw here. 45 00:04:04,890 --> 00:04:06,690 And with a number that comes after. 46 00:04:06,690 --> 00:04:08,630 Oh, I should share the receive as well, of course. 47 00:04:08,630 --> 00:04:09,810 Receive is even simpler. 48 00:04:09,970 --> 00:04:15,430 Again, open the raw socket, and then just call receive, how many bytes, like up to that many bytes you want. 49 00:04:15,430 --> 00:04:19,750 But then you need to peel away the header, and then you're good to go. 50 00:04:19,750 --> 00:04:22,750 You got completely raw packets. 51 00:04:23,090 --> 00:04:25,270 But I mean, obviously, there's no retransmission. 52 00:04:25,270 --> 00:04:28,350 If the listen device doesn't get it, it just doesn't get it. 53 00:04:28,350 --> 00:04:36,830 There's nothing to know whether the frame actually went through, and there's no security, no anything, because you have all the normal niceties of Wi-Fi. 54 00:04:36,890 --> 00:04:40,390 So it's more like a very basic radio, right? 55 00:04:41,590 --> 00:04:43,470 Here's the Scapey version. 56 00:04:43,470 --> 00:04:53,050 So Scapey is a Python library that makes it a little nicer, so you don't have to deal with this sort of bytes manipulation. 57 00:04:54,610 --> 00:05:00,650 So a transmitter with Scapey, it has this funny syntax, actually, with slashes, that's a little weird. 58 00:05:00,770 --> 00:05:09,430 But you basically, yeah, very few lines, call send, it's a function in Scapey, and there you go, you get the same. 59 00:05:09,430 --> 00:05:10,870 Let me run that one. 60 00:05:11,750 --> 00:05:13,210 Simple Scapey. 61 00:05:13,370 --> 00:05:14,170 Transmitter. 62 00:05:15,330 --> 00:05:16,910 Oh wait, this is a receiver . 63 00:05:17,610 --> 00:05:19,370 Go over here to the transmitter. 64 00:05:19,650 --> 00:05:21,110 Simple Scapey. 65 00:05:21,750 --> 00:05:22,550 Transmit. 66 00:05:23,630 --> 00:05:24,730 Then a receiver. 67 00:05:24,730 --> 00:05:26,110 Yeah, starting from zero again. 68 00:05:26,450 --> 00:05:28,110 See, it's the same kind of fact. 69 00:05:28,110 --> 00:05:29,270 Okay, so that's the very basics. 70 00:05:29,270 --> 00:05:30,090 It's baseline. 71 00:05:31,810 --> 00:05:34,930 Now , take that, and you could build all kinds of weird things. 72 00:05:34,930 --> 00:05:37,890 Like, the great thing about AirDrop is you don't have to be on the same access point. 73 00:05:37,890 --> 00:05:41,370 You don't have to to have, like, authenticated, and connected, and so on. 74 00:05:41,370 --> 00:05:46,350 You can just use two completely unrelated devices, and as long as both of these are in send and receive mode, they work. 75 00:05:46,350 --> 00:05:47,590 I mean, Apple's AirDrop, right? 76 00:05:47,590 --> 00:05:50,910 So I just wish something like that existed for other things than Apple. 77 00:05:51,630 --> 00:05:54,250 And it's pretty easy to craft something like that. 78 00:05:54,250 --> 00:06:03,530 Here's a really simple version that doesn't have any retransmission, doesn't have anything you probably want, but, you know, it works. 79 00:06:04,770 --> 00:06:07,790 So the sender, the transmitter, again, I do the same. 80 00:06:07,790 --> 00:06:08,930 I open the Wi-Fi interface. 81 00:06:08,930 --> 00:06:10,630 I could have used Skate, but it would have been a bit shorter. 82 00:06:11,650 --> 00:06:13,050 I open a file. 83 00:06:13,670 --> 00:06:15,990 I read from the file. 84 00:06:17,570 --> 00:06:19,110 Read back to the file. 85 00:06:20,550 --> 00:06:24,350 Pack it up with the headers, and so on, and call send, because that's the basic idea. 86 00:06:24,350 --> 00:06:25,670 I could open a file. 87 00:06:28,450 --> 00:06:30,890 Oh, I read the whole file into memory here. 88 00:06:30,890 --> 00:06:31,610 Actually, that's what I did, right? 89 00:06:31,610 --> 00:06:34,490 And then I'm looking over the bytes of the file and sending them out. 90 00:06:34,490 --> 00:06:34,970 There's a limit. 91 00:06:34,970 --> 00:06:39,010 You can't send a megabyte in one frame, a frame to max to like 2k or something. 92 00:06:39,310 --> 00:06:41,110 So that's why I'm doing like that. 93 00:06:41,250 --> 00:06:46,930 And on the receive side, very similar, opening it in raw mode and receiving. 94 00:06:47,630 --> 00:06:54,430 And I'm doing a little bit of, like, I made my own little header because I don't want to just receive any random frames that's going around. 95 00:06:54,430 --> 00:06:56,490 I want to make sure it's the frame that I intended to receive. 96 00:06:56,490 --> 00:07:02,830 So I put a little magic number in the beginning of the frame to see, like, oh, is this a frame that's part of my mini file pub here? 97 00:07:03,070 --> 00:07:04,230 So anyway, let's try it out. 98 00:07:10,320 --> 00:07:17,100 So I'll start a receiver in one tab and a transmitter over in this tab. 99 00:07:17,520 --> 00:07:22,160 First, I'm going to just transmit a file that just had the words hello world in it. 100 00:07:22,160 --> 00:07:24,000 It's really short, so it fit in one packet. 101 00:07:24,160 --> 00:07:25,500 See that the receiver get it. 102 00:07:25,820 --> 00:07:26,480 It got it. 103 00:07:26,480 --> 00:07:28,160 It got the whole packet and it got it. 104 00:07:28,160 --> 00:07:33,400 I made a little, like, MD5 hash that also sends WIP, just to make sure that it got the whole packet. 105 00:07:33,660 --> 00:07:36,820 So in my receive directory now, I got my hello world. 106 00:07:36,920 --> 00:07:38,020 That was what I sent. 107 00:07:39,360 --> 00:07:40,800 It gets tricky. 108 00:07:40,800 --> 00:07:42,720 Like, it's fine for tiny things, right? 109 00:07:42,720 --> 00:07:49,020 But when you have bigger files, like this picture of CAC sent 30 packets. 110 00:07:49,020 --> 00:07:50,260 Let's see over here. 111 00:07:50,420 --> 00:07:55,460 We got it receive, receive, receive, packet by packet, but it only got 96% of them. 112 00:07:55,460 --> 00:07:57,060 It didn't get all 30 packets. 113 00:07:57,280 --> 00:07:58,760 So, okay, it's pretty good still. 114 00:07:58,760 --> 00:08:00,880 We got... actually, it looks all right. 115 00:08:01,600 --> 00:08:03,660 It got a viewable file. 116 00:08:03,660 --> 00:08:05,500 There's going to be some missing bits in that file. 117 00:08:05,500 --> 00:08:06,900 There's going to be some missing chunks. 118 00:08:07,380 --> 00:08:08,580 So I can just retransmit it. 119 00:08:08,580 --> 00:08:12,160 I made it so that just run it again, will send the same things again. 120 00:08:12,160 --> 00:08:15,940 And, oh, yeah, finally, we got all the... this time, like, whatever was missing before came through. 121 00:08:16,580 --> 00:08:19,360 And, you know, so run it a couple of times until it gets 100%. 122 00:08:19,360 --> 00:08:22,180 And then you got the whole file and it matches. 123 00:08:23,760 --> 00:08:24,580 So, yeah. 124 00:08:26,320 --> 00:08:27,040 Okay. 125 00:08:27,620 --> 00:08:29,560 Another idea, similar idea. 126 00:08:29,580 --> 00:08:30,300 Let's take the same. 127 00:08:30,300 --> 00:08:33,960 Instead of reading a file, let's read an audio stream and you get a walkie -talkie, basically. 128 00:08:33,960 --> 00:08:35,280 You don't need connections or anything. 129 00:08:35,280 --> 00:08:40,620 You don't need to be, you know, dialing each other at any kind of handshake, just like a walkie-talkie, basically, right? 130 00:08:40,760 --> 00:08:41,520 Let's try that. 131 00:08:43,860 --> 00:08:48,800 So first I'll start a receiver here. 132 00:08:48,800 --> 00:08:51,140 Oh, actually, let me show you a clip real quick. 133 00:08:51,380 --> 00:08:52,980 We have time. 134 00:08:55,760 --> 00:08:57,320 Walkie-talkie receiver. 135 00:08:57,720 --> 00:08:59,860 Yeah, let's look at the receiver first. 136 00:09:00,940 --> 00:09:04,940 Receiver, again, open the raw socket, find it's a network interface. 137 00:09:05,600 --> 00:09:09,060 And then here we're opening an output screen. 138 00:09:09,060 --> 00:09:12,320 So like, oh, this is from this library called sound device in Python. 139 00:09:12,520 --> 00:09:18,600 So like that's basically a place where just throw your raw audio frames and it'll play them. 140 00:09:18,600 --> 00:09:22,720 At least, as long as you kind of keep up the pace and you don't have gaps, otherwise it will sound terrible. 141 00:09:22,720 --> 00:09:26,200 But if you manage to pace it right, it'll sound all right. 142 00:09:27,120 --> 00:09:29,220 So there's a thread that just plays. 143 00:09:29,220 --> 00:09:34,280 I think I had another thread for, yeah, there's another thread that receives from this raw socket. 144 00:09:34,280 --> 00:09:36,260 I unpack it a little bit. 145 00:09:36,320 --> 00:09:40,360 Oh, I wanted to print out the loudness because maybe it's going to be hard to hear. 146 00:09:40,360 --> 00:09:41,820 So at least we can see something. 147 00:09:42,820 --> 00:09:44,140 Changing the sample rate a little bit. 148 00:09:44,140 --> 00:09:50,400 It would be a little intense to send a very high resolution audio over this unreliable link. 149 00:09:50,400 --> 00:09:55,720 So I'm like trying to lower the resolution a little bit to decrease the chance of success. 150 00:09:55,720 --> 00:09:58,780 Okay, anyway, let's run the receiver. 151 00:09:59,980 --> 00:10:01,340 And let's run the transmitter. 152 00:10:01,340 --> 00:10:03,280 I won't bother looking at the converter inside. 153 00:10:03,280 --> 00:10:04,760 Very similar, you get the idea. 154 00:10:05,160 --> 00:10:09,300 It's opening an audio device and opening the raw sockets. 155 00:10:12,860 --> 00:10:17,660 Okay, so let's... I got a speaker here. 156 00:10:17,840 --> 00:10:18,340 Hello? 157 00:10:19,440 --> 00:10:25,320 Oh, hello, hello? 158 00:10:26,480 --> 00:10:29,920 Oh, okay, you can't really hear it. 159 00:10:29,920 --> 00:10:31,500 But we can see something is coming through. 160 00:10:31,500 --> 00:10:33,040 I'm printing how many packets per second. 161 00:10:33,040 --> 00:10:35,480 And this is, I guess it's just really noisy here. 162 00:10:35,960 --> 00:10:37,780 We can probably see when I blow into the microphone. 163 00:10:37,780 --> 00:10:39,280 This isn't the receiver side, right? 164 00:10:40,720 --> 00:10:44,860 The meter shows that there's more volume here. 165 00:10:51,430 --> 00:10:53,430 That doesn't... Nope, not working right now. 166 00:10:53,430 --> 00:10:55,890 Anyway, but packets got through. 167 00:10:55,890 --> 00:10:56,870 The microphone part worked. 168 00:10:56,870 --> 00:10:57,950 The receive part worked. 169 00:10:58,150 --> 00:10:59,350 Sorry, the send part worked. 170 00:10:59,350 --> 00:11:00,410 The receive part worked. 171 00:11:00,410 --> 00:11:02,330 But it didn't play out the speaker, that part. 172 00:11:02,330 --> 00:11:03,850 I don't know why it's broken right now. 173 00:11:03,850 --> 00:11:05,790 Anyway, you get the idea. 174 00:11:06,290 --> 00:11:09,370 Xdemo is this Meshtastic. 175 00:11:10,230 --> 00:11:20,790 Meshtastic, like I said, it's this mesh network based on, not Wi-Fi, based on something called LoRa, which is like a long-range, low-power radio technology. 176 00:11:21,670 --> 00:11:28,230 And it's popular with, you know, if you want to be like off-grid and be able to do messaging, it's popular for that. 177 00:11:29,470 --> 00:11:30,630 I quite enjoy it. 178 00:11:30,630 --> 00:11:36,450 I'm giving a talk about that specifically tomorrow because it's also 1 o'clock or 1.30. 179 00:11:36,550 --> 00:11:38,970 But so here I did something strange. 180 00:11:38,970 --> 00:11:40,970 Let's go back slides. 181 00:11:43,070 --> 00:11:44,750 I did something strange. 182 00:11:44,750 --> 00:11:46,690 A very elaborate and weird setup. 183 00:11:47,030 --> 00:11:53,730 But normally Meshtastic is something that runs on a microcontroller, like an Arduino or something, with one of these special LoRa radios. 184 00:11:53,730 --> 00:11:56,730 And then you talk to it using Bluetooth from your phone. 185 00:11:56,730 --> 00:11:58,230 You can send messages that way. 186 00:11:58,950 --> 00:12:05,370 But I thought it would be fun to just send, like, replace the LoRa layer and just use Wi-Fi instead. 187 00:12:05,370 --> 00:12:17,410 So basically, if you had many laptops in here at DEF CON running this, you could, like, mesh network, like , it would retransmit your packet and get you to the other side of the hall without using any access points or anything, right? 188 00:12:17,410 --> 00:12:20,250 So that's the basic idea. 189 00:12:20,310 --> 00:12:23,230 So Meshtastic has this special Linux build. 190 00:12:23,450 --> 00:12:25,310 They have a Docker image for it. 191 00:12:25,570 --> 00:12:36,590 And it's kind enough to send out UDP frames on a multicast address instead of LoRa, like, just for this Linux build, for, like, testing purposes. 192 00:12:36,630 --> 00:12:44,130 So what I did is just, like, listen to these UDP packets and then retransmit them out on the Wi-Fi as raw 802.11 frames. 193 00:12:44,150 --> 00:12:46,970 And then there's a receiver side that does, you know, the same, the opposite. 194 00:12:46,970 --> 00:12:49,450 They both, I mean, they both do the same both ways. 195 00:12:51,210 --> 00:12:54,030 So script 196 00:12:59,050 --> 00:13:06,930 for this is, basically, have a familiar open the raw socket thing. 197 00:13:06,930 --> 00:13:15,590 And then I'm also doing something complicated to get the, the escapee for that, to get the packets from the multicast address. 198 00:13:15,630 --> 00:13:16,990 A similar idea. 199 00:13:17,950 --> 00:13:19,750 So basically, yeah, it bridges. 200 00:13:19,750 --> 00:13:20,830 There's a Wi-Fi loop. 201 00:13:20,830 --> 00:13:26,250 There's a UDP loop that watches for these UDP multicast packets on Meshtastic's kind of test interface. 202 00:13:26,250 --> 00:13:29,650 And then it just bridges those to basically send them one to the other. 203 00:13:47,150 --> 00:13:48,990 Oh, actually, first, let me show you. 204 00:13:48,990 --> 00:14:00,610 So Meshtastic has, it's normally a phone app, like I said, but they have this web interface, which you could also use with the microcontroller-based one, same kind of web interface. 205 00:14:01,010 --> 00:14:11,510 And right now, so I have two tabs open here with these two instances, this hexadecimal CAAB and hexadecimal D00D. 206 00:14:11,650 --> 00:14:26,270 And if I write hello here from YouTube, the cafe, oh wait, hello was my, 207 00:14:30,800 --> 00:14:31,460 here . 208 00:14:39,330 --> 00:14:40,750 Okay, this is what I wanted. 209 00:14:40,750 --> 00:14:44,330 I'm sending it from one, it's not coming to the other, because I'm not running the bridge, right? 210 00:14:44,330 --> 00:14:49,030 But they're two isolated Docker containers are not connected right now, so they cannot speak Meshtastic. 211 00:14:49,630 --> 00:14:58,830 So if we run our bridge script that I showed you before, but I've got it already. 212 00:15:05,540 --> 00:15:10,880 Running, bring the bridge script from one of the Meshtastic containers, and I'm going to write to the other one. 213 00:15:13,540 --> 00:15:16,720 Then, if I send, oh sorry, too many tabs. 214 00:15:17,460 --> 00:15:19,980 Let's send the hello again. 215 00:15:21,260 --> 00:15:32,480 Okay, now the bridge script picked up that there was one of these UDP multicast packages and sent it on the Wi-Fi, and the other bridge script got it on the Wi-Fi and sent it back on the other one's UDP interface. 216 00:15:32,580 --> 00:15:33,620 It's opening the other tab. 217 00:15:33,620 --> 00:15:35,180 Yeah, we got the hello again. 218 00:15:35,420 --> 00:15:38,900 We didn't get the hello, we got the hello again, so that works. 219 00:15:39,320 --> 00:15:41,040 Send the other way, hi. 220 00:15:41,460 --> 00:15:47,600 We got the hi the other way, so theoretically, oh, I should show you proof that this is actually happening. 221 00:15:47,600 --> 00:16:00,040 If I restart my Wireshark over here, so it's just capturing right now, and I'm just filtering it for the word Mesht, because I used that as my magic number in the beginning of my packets. 222 00:16:01,200 --> 00:16:05,260 Send a message, hi, there we go. 223 00:16:05,260 --> 00:16:15,240 And then it came out on the Wi-Fi interface, back into the other Wi-Fi interface, and yeah, it's encrypted, like the Meshtastic is encrypted, so you wouldn't see if Wayne's X here. 224 00:16:16,640 --> 00:16:21,900 And there's two packets, because, you know, it has X, it has the transmission stuff kind of at that layer, right? 225 00:16:21,900 --> 00:16:24,020 So, see all that. 226 00:16:27,340 --> 00:16:30,020 All right, the last demo is 227 00:16:33,840 --> 00:16:34,880 at site... 228 00:16:35,940 --> 00:16:38,560 is this thing, Wi-Fi FS. 229 00:16:38,600 --> 00:16:42,580 So, FUSE is this amazing technology I've had way too much fun with. 230 00:16:42,580 --> 00:16:48,100 It allows you, with really simple code, to make your own file system, basically. 231 00:16:48,180 --> 00:17:02,900 Use this item package, you implement this interface they've defined, they expect there to be a read directory function, where you return what directories there should be in this file system, and a read function, so like, if, you know, if the OS wants to open a certain file path, 232 00:17:02,900 --> 00:17:07,420 what should we, what bytes should we return to the OS, and a super simple interface. 233 00:17:07,420 --> 00:17:15,960 So, you can imagine how we could plug this in with Scapey, to get a kind of a file system view of the Wi-Fi around us. 234 00:17:15,960 --> 00:17:16,980 So, let's do that. 235 00:17:21,960 --> 00:17:29,540 The code for this is a little bit more complicated, so probably won't go through that much of it, but a lot of helper functions. 236 00:17:30,900 --> 00:17:44,760 And, but basically, you see things like here, read directory, where I'm doing things like, for different levels of the directory, like top level directory is going to be interfaces, which Wi-Fi interface do you want to, you want to look at. 237 00:17:44,760 --> 00:17:52,580 It's going to be channels, and going to be, yeah, you'll see in a minute, but the point is, it's so nice and easy to implement these FUSE file systems. 238 00:17:52,580 --> 00:17:59,920 We just implement these, read directory, and get attributes, these sensible file system functions. 239 00:18:08,690 --> 00:18:24,350 So, the way you run a FUSE file system is, simply just run the Python script, and I had a parameter in my CLI, the program here for the, for this Python file, that I want to mount this directory as my virtual file system is supposed to do it. 240 00:18:27,190 --> 00:18:29,830 So, that's this mount directory here. 241 00:18:30,290 --> 00:18:31,950 So, let's look in your file browser. 242 00:18:31,950 --> 00:18:33,990 Okay, I got two Wi-Fi interfaces. 243 00:18:33,990 --> 00:18:36,850 Let's look at my USD1. 244 00:18:36,910 --> 00:18:37,470 Boom! 245 00:18:37,470 --> 00:18:47,970 It was like, it called the readdir function of the subdirectory under my USD1 Wi-Fi interface. 246 00:18:48,050 --> 00:18:57,290 So, it stated, it wanted to enumerate all channels, and also, I guess the file browser likes to like, go into every, or you know, what's, it goes into every folder. 247 00:18:57,290 --> 00:19:02,930 So, every time a channel folder is accessed, it switches channel. 248 00:19:02,930 --> 00:19:04,470 That's how I've set it up, right? 249 00:19:04,550 --> 00:19:08,350 So, let's go under channel six, and initiate. 250 00:19:08,350 --> 00:19:09,550 So, now it's switched to channel six. 251 00:19:09,550 --> 00:19:18,810 Like, when I go into a directory, the FUSE file system function gets invoked for read that directory, and it sees, okay, I need to change channel, but it went to channel six now. 252 00:19:19,110 --> 00:19:21,150 And it's constantly monitoring for packets. 253 00:19:21,150 --> 00:19:24,090 If I press F5, there we go, we got new packets. 254 00:19:26,790 --> 00:19:31,270 As I refresh, I'll be getting more and more BSSIDs. 255 00:19:31,270 --> 00:19:39,150 So, these are access point, basically, or at least the packets that had that MAC address in their BSSID field. 256 00:19:39,410 --> 00:19:53,630 And also, it collects the broadcast packets with the beacons, you'll see there's, here's the RF villages, one of the CTFs, for example. 257 00:19:53,630 --> 00:20:00,910 So, we could go in there, and then it just makes a file for each packet it's captured. 258 00:20:00,910 --> 00:20:03,290 So, this is an alternative way. 259 00:20:03,390 --> 00:20:07,330 Wireshark is probably a lot better for this, but it's just a different way to do it. 260 00:20:07,330 --> 00:20:17,290 So, you can do interesting things with this, like, so here, I'm just LS-ing a directory, right? 261 00:20:18,450 --> 00:20:20,470 So, let's transmit something. 262 00:20:22,790 --> 00:20:24,190 Let's transmit something. 263 00:20:24,190 --> 00:20:31,010 I'm just, like, transmitting my first example, the escapee hello world on channel six. 264 00:20:31,270 --> 00:20:40,350 And so, if I go into my CD, into that directory of my Wi-Fi FS, I'm now in the channel six directory. 265 00:20:40,350 --> 00:20:49,090 Now, unless I get all these directories with BSSIDs, like my, this example over here, the escapee example, it was just transmitting hello world, right? 266 00:20:49,550 --> 00:20:53,350 So, now I could just grep in the file system, like I would grep in any other file system. 267 00:20:54,230 --> 00:21:01,270 And there's probably hundreds of megabytes, oh, there we go, hundreds of megabytes already, because it's just capturing whatever packets comes by it, right? 268 00:21:02,090 --> 00:21:06,050 And you got file, there's some garbage in the beginning, that's, oh, it says the file name, first of all. 269 00:21:06,790 --> 00:21:11,650 And then there's some garbage, because that's, well, what looks like garbage here, that's the headers stuff, right? 270 00:21:11,650 --> 00:21:15,950 And then we got the actual, I mean, the minimal headers there are, has to be some, right? 271 00:21:16,130 --> 00:21:20,210 And then we got our actual contents that we transmitted. 272 00:21:20,230 --> 00:21:27,270 So, a different way to filter packets, an alternative to Wireshark, probably not better, but it was fun. 273 00:21:30,310 --> 00:21:31,590 And that's it. 274 00:21:33,730 --> 00:21:38,370 If anyone has any questions, I'll be happy to answer them. 275 00:21:39,350 --> 00:21:40,030 Yeah. 276 00:21:42,210 --> 00:21:43,450 Is there what, sorry? 277 00:21:45,390 --> 00:21:48,190 Oh, I'm sorry, no, I uploaded after this talk. 278 00:21:48,190 --> 00:21:49,110 Yeah, I didn't upload it yet. 279 00:21:49,110 --> 00:21:49,910 I will. 280 00:21:55,180 --> 00:21:56,980 Sorry, you have to speak louder. 281 00:22:03,020 --> 00:22:06,680 Do you mean whether there are other protocols that kind of go lower level like this? 282 00:22:06,800 --> 00:22:14,920 I don't really know, actually, but I'd imagine something like AirDrop, they probably wrote their own, you know, standards, probably in a similar way, but I don't really know what Apple did there. 283 00:22:15,680 --> 00:22:31,040 Yeah, actually, a friend of mine does like some drone technology where, like, up in, like, high up in the sky with great distances, you don't want to be, like, relying on, on, you know, on being constantly connected to an access point and so on. 284 00:22:31,040 --> 00:22:32,880 So I think they're doing some, like, low-level stuff. 285 00:22:32,880 --> 00:22:34,260 They might be useful for that kind of thing. 286 00:22:34,820 --> 00:22:36,920 So, yes. 287 00:22:41,800 --> 00:22:45,600 Oh, usually the ones built into laptops don't support it, unfortunately. 288 00:22:45,600 --> 00:22:52,080 I mean, actually, this Samsung, where this Samsung laptop happens to support it, the built-in one does, but I'm actually not using the built-in one. 289 00:22:52,080 --> 00:22:53,740 I'm using these external ones. 290 00:22:53,860 --> 00:22:56,440 And I got, like, an Edimax something. 291 00:22:56,440 --> 00:22:57,680 This one is a more expensive one. 292 00:22:57,680 --> 00:22:59,080 I don't remember, actually, how much. 293 00:22:59,980 --> 00:23:02,200 This Edimax one, it's a tiny USB dongle. 294 00:23:02,200 --> 00:23:03,380 It's much cheaper. 295 00:23:03,820 --> 00:23:09,320 But just, like, search for interfaces, you know, that support injection, you'll find a ton. 296 00:23:10,780 --> 00:23:11,500 Yes. 297 00:23:19,580 --> 00:23:20,600 Oh, oh, yeah. 298 00:23:20,600 --> 00:23:22,700 I was experimenting on several computers. 299 00:23:22,700 --> 00:23:23,500 Is that what you meant? 300 00:23:23,640 --> 00:23:24,020 Yeah, yeah. 301 00:23:24,020 --> 00:23:26,440 It definitely works across several computers, but it would be hard to demo. 302 00:23:26,440 --> 00:23:31,400 So that's why I just put two access points, sorry, two interfaces on one computer here. 303 00:23:33,800 --> 00:23:37,220 It's, sorry, I haven't yet hit publish on it, but I will after this talk. 304 00:23:37,720 --> 00:23:38,740 There also. 305 00:23:40,320 --> 00:23:41,120 Yes. 306 00:23:43,200 --> 00:23:45,180 Have I tried, what did you say? 307 00:23:47,000 --> 00:23:48,480 Like, other languages? 308 00:23:49,980 --> 00:23:50,980 Ben 5 Thunder. 309 00:23:51,060 --> 00:23:52,320 So I couldn't fight here. 310 00:23:54,880 --> 00:23:56,220 Oh, MicroPython. 311 00:23:56,220 --> 00:23:58,020 Oh, huh. 312 00:23:58,080 --> 00:24:00,400 That'd be interesting, like, on an embedded device or something. 313 00:24:01,140 --> 00:24:02,160 Yeah, I don't know. 314 00:24:02,160 --> 00:24:06,660 I mean, like, on embedded devices, usually you, by default, have a very low-level access. 315 00:24:06,660 --> 00:24:11,560 So I don't know how well Scapey, like, if there's kind of that supported in Scapey. 316 00:24:12,220 --> 00:24:16,580 Yeah, no, I've not tried it, but I'd imagine it would be pretty straightforward as well. 317 00:24:18,540 --> 00:24:19,380 Yes. 318 00:24:33,110 --> 00:24:34,250 Oh, yeah. 319 00:24:34,250 --> 00:24:35,610 Sorry, I should have been repeating the question. 320 00:24:35,610 --> 00:24:41,630 You're asking, could we bridge any kind of TCP, any systems, like other protocols, ImageTastic? 321 00:24:41,690 --> 00:24:50,550 Yeah, in theory, but then you might as well just use normal access point because they did all the hard work of, like, and TCP itself, you know, does read transmission. 322 00:24:50,670 --> 00:24:54,230 So you might as well not use this for that. 323 00:24:54,290 --> 00:24:56,170 It's not really meant for that. 324 00:24:59,660 --> 00:25:00,680 All right. 325 00:25:00,680 --> 00:25:02,360 Thanks for your attention.