Welcome to the Wireless Village. I have the pleasure of, for the second time this weekend, introducing my good friend who will remain nameless because for those of you who haven't had a chance to see him yet, I want you all to get a fine picture in your head of what a wonderful man this is. This man's been, well, we worked together for quite a while and that was a lot of fun and then he left me to start his own project and nobody had actually seen him for a while and when I say nobody had seen him for a while, I mean for some reason you just never saw him but what you did get was his wonderful voice. So without further ado, I'd like to have you all close your eyes so you don't get confused. I'd like to hear his famous catchphrase that he has at all the beginnings of his videos. Hello all, welcome to securitytube.net. And how do you miss that? Give this man a big hand. Thanks for coming. Thanks for that great introduction, Rick. Okay, so in this session, we're going to be looking at how to script your own Wi-Fi attack tools with Python. How many of you have scripted your own tools in any language? Wireless, okay. Python? Ruby? Perl? A couple? Okay. All the Perl guys are hesitating to raise their hands. So I've been doing a lot of wireless security for probably the last 15 years and being able to script quick proof of concepts always comes in handy. Now, when you look at wireless scripting, there are really two ways by which you can get packets from the network. One is using raw sockets, which is probably the absolute low-level way of talking to your operating system, telling it to go ahead and give you the packets. And the other way is to give you packets. The second, slightly more abstracted way would be to use something like Skippy, LippyCap, or some other wrapper which works around all the low-level details of a raw socket. So how many of you have ever created your own SSID sniffer with a raw socket or used raw sockets at all? Okay. So let me show you how it looks like. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw socket based SSID sniffer in roughly 20 lines of code. So this is a raw of Python. This does not use any external library. Now, initially, there's an interesting story behind why I created this piece of code. Initially, I had actually created a much more simplified one, roughly the same number of lines using Skippy, right? After that, I posted this on Reddit programming. And all the programmers started flaming me. They were like, you use Skippy, right? That isn't allowed. I mean, if you have to do it, you have to do it using just raw sockets. So that's when I created the alternate version, which just uses raw sockets. Now, how does this work? It opens a raw socket. And then we bind it to an interface assuming mon zero. Unfortunately, we have to change that to a WLAN X mon now, if you use one of the latest versions. Is it? Oh. That's because I think that change was brought about by Zero Chaos' AirMon NG ZC, right? It's less confusing. You know what interfaces are. That kind of required me to change almost all my scripts, which I probably wrote over the last eight years. So everything crashes for the first time now. So here is an example of how you can do that. What we do after that is basically just receive from the interface and check if this is an 802.11 packet and after that, pick up the SSID length from the exact location and check if it is another SSID or not. I mean, we are going to be using this to learn using Python. This is an example that you could write your own SSID sniffer in Python in just so many lines. The only place where I see a good application of this is on an embedded device. So if you have an open interface like this one, it will be open WRT based router, where you're trying to go ahead, sniff the air, you probably want to use this rather than scapy. Unfortunately, scapy seems to hold most of the packets in memory and embedded devices don't have that much amount of memory. So all your scapy based scripts end up crashing on your open WRT systems if they run for a long time. Let me show you how this looks like. So my wireless interface is WLAN 3. I'm just going to go to an airmon-ng start WLAN 3. So I'm just going to go ahead and start WLAN 3. And then I'm going to change the interface to WLAN 3mon. You could even take it as an input if you wanted. Let's actually take it as an input. Now the very first demo always crashes. So I'm just going to use a channel hopper in the background. Okay, this is bad. Just give me a second. Okay. I'll just get back to this. Unusually, I mean, this is the first time this has ever bailed out on me. So it's probably just bad luck. I'll just come back. I'll definitely kind of make this run. What a horrible way to start. What I really want to talk today about is how to automate WPA-based attacks. How many of you have used WPA-CLI? Anyone? Okay. So the de facto network management utility is WPA supplicant on Linux-based machines. Now, interestingly, WPA supplicant allows what is called a control interface through which you can control it at run time. So you can actually change parameters, make it do interesting stuff while it is running. So once you connect your client card, typically your network manager would go ahead and start it. You can actually look at where run. Okay, just a second, guys. I think I'll just do a quick reboot. I know what is wrong. I actually killed many of the network management utilities. That's the reason why. So how is this going to work? Basically, WLAN, the WPA supplicant exposes a control interface. Meantime, I can actually show you what the control interface looks like. Hmm. Hmm. Hmm. okay so wpa supplicant basically has a control interface and that control interface is actually what is used by our network manager so internally wpa supplicant exposes all of these different interfaces to you the one we are going to use is what they call the control if now the control if is actually a c-based api and we are going to be using a python wrapper to go ahead and talk to that and control wpa supplicant now what does the control interface allow us to do it actually allows us to run a bunch of commands for example ping looking at the mib the status so let's say if you're connected to a wpa network or for that matter any network using wpa supplicant you can monitor the status on a separate terminal you can even look at things like the different key caches you can set variables do log on log off so every single thing you could actually do with the wpa supplicant config file you can actually control that at runtime using the wpa supplicant control interface so let me quickly log in the demo gods aren't with me today this is my fifth talk at defcon i did two main stage and i think one village talk and one is tomorrow but this seems to probably be it it's about time statistics caught up with me so something has to go wrong okay you'll see it should run interestingly wpa supplicant also has a very low level api called the dbus api this is used by a ton of gui programs to go ahead and basically emulate what is linux's com right if you've used windows com think of this as com on linux so this allows different programs to talk to each other using a dbus this is really a virtual bus over which programs can send message to each other so you can have subscribers consumers you can publish your apis so wpa supplicant actually publishes its own api which you can access over the dbus so you could send it command poll what is the current events happening and things like that now as soon as you run your machine your network manager automatically will start wpa supplicant if you have a wireless card if wpa supplicant is configured to run its control interface you should actually find it in var run wpa supplicant interestingly the control interface file has the exact same name as the interface right wlan 3 in this case now anytime you need to go ahead and talk to the existing running version of wpa supplicant you actually use the control interface so let's look at some very simple examples now the best way to learn the control interface is to use a utility called wpa cli so anyone used it ok this is like one of the little hidden gems i mean if you use wpa cli you can automatically figure out the entire control interface so if you run wpa cli without any arguments it will automatically go inside the var run wpa supplicant directory directory figure out the control interface file and in a way attach to it so now it can monitor and look at what is happening on your current running instance of wpa supplicant so if you notice we just got two events here which said control events can result wps ap available right so you could actually write your own aero dump ng just by going ahead and invoking wpa cli with scan results and there you go you have a ton of information about everything wpa supplicant and in turn your network manager sees it also tells you which of the aps are wps enabled so if you have a wps supplicant and you have a wps supplicant and you have a wps supplicant i don't know if aero dump supports this at this point is thomas here no i haven't seen wps being tagged anywhere and this does not require any special cards if you have a functional linux system with a wireless card on it which works you can run wps cli on it this does not require an atheros card or an alpha card or any special hardware right it will just work out of the way so that's the bottom of the box now there are tons of different commands you can actually use with wps cli probably the easiest way to get started with wps supplicant which can be very confusing if you look at what is available in the config now let's try and look at uh... if he can automate some of these things right so you you could play with WPA CLI later on. It's completely command line, ton of help out there. And all you have to do is to configure a network as an example, you'll use add network. It actually returns an ID to you. And then you go ahead and, you know, add the network configs and all of that. It's a great tool if you want to configure, but this talk is about automation. So I'm not going to talk about how to use WPA CLI, right? But definitely have a look at it. So now let's look at how we can control WPA supplicant using the WPA control APIs. Okay, let's wait for it. Something's wrong. Someone's watching over me. Okay. So I'm trying my best not even, you know, move a muscle on this side. So that probably the cable doesn't get, you know, shaken up in any way. But I... Now, interestingly, there is only one Python extension available for WPA control called PyWPA control. You can actually go to GitHub. And originally the author of WPA supplicant had published this with some demo code in there. Unfortunately, he didn't maintain it. So PyWPA CTRL is the one which is updated with some small patching here and there. So remember to download that. Once you do that, you basically have the power of Python to control your WPA supplicant interface. So I'm going to open up another tab. And just start WPA CLI on this. Interestingly, you can have multiple agents pulling the same control interface and even sending receiving commands, right? So we'll use WPA CLI just to look at the kind of events which are happening in the background. Just so that you don't have to watch me type in stuff. Using WPA control is actually quite easy. All we have to do is import WPA control as expected. Now, once you do that, you need to tell WPA control where the control interface exists, which is where run WPA supplicant WLAN 3 in our case. So we're going to go ahead and define that as the control interface. all of the sample source code will be available for download then I'll give you a URL and you can download it now after this you can actually tell WPA control to open and get a handle to this control interface right this is done with very simply WPA CTRL dot WPA control give it the path to the control interface now once you do that you can actually go ahead and ping the interface and if everything works fine you should get back a anyone if you ping it what do you get back a pong right so that's basically their own interface so that's basically their own interface internal quick heartbeat test mechanism so you can ping it just to ensure that hey do I have a stable connection is the control interface still running and all of the commands which we talked about here can actually be sent over the WPA CTRL interface I mean this is fantastic total hidden gems in here I mean you can actually automate live attacks and a ton of stuff now interestingly with just a couple of lines of Python you can actually control WPA supplicant and tell it to scan the network so before we do that you can look at the status of the interface so before we do that you can look at the status of the interface by just using status and right now it says he is inactive not connected really do anything and it just gives you a MAC address now we can request several Dynamics projects to do a server network setup a scan now keep in mind your network manager is already talking to wpa supplicant and requesting it to scan the air probably once every minute one of the ways you can stop that is kill the network manager or stop it and then you start your own instance of wpa supplicant with the right config options so that the control interface is available right then you might not have the network manager interfering so a lot of times when you actually try to run a scan you might actually get an error busy right now it says okay which is great and if we go back here let's try scanning once again so we are requesting a scan and a couple of seconds later you'll actually see scan results available so this is the wpa cli interface which is also monitoring for all the live events which wpa supplicant is publishing on its control interface so the moment we have scanned results and that's something you can monitor in python as well you could very simply go back and pretty much write your own version of arrow dump there you go isn't that great and and , and you could just run this in a loop you know time it once every couple of seconds and then you can get all the results interestingly if the network manager is running you do not even have to do anything it'll automatically scan periodically there are also event based mechanisms where you can be told when a scan is complete so people who've programmed like a callback right so that you receive a callback and you can only handle events and you can only handle events and you can see the results when they happen rather than having to poll for events continuously now here is one quick word of caution is if you run scan successively really quickly you're actually going to get fail busies now all of these scan requests are actually getting cached so after some time you'll actually have wpa supplicant quickly process them one after the other now this is something you would need to handle in your code and you'll actually see the error busy quite a lot of the fail busy quite a lot sometimes it's probably channel hopping still collecting stuff so you cannot time it you can't say okay after five seconds i can be sure the scan results are available you can't do that one mechanism is if you poll you have to check for the return value the other is where you subscribe and wait for the right event ,, right we'll talk about the event based mechanism a little later now wpa cli actually has like a ton of commands in there let me see if i can pick something up ,, okay i'll share this document as well this is a draft of one of the chapters i was writing for our next book ,, but wpa cli if i just quickly scroll down to show you the relevant part before we can move on to other interesting things so you can actually configure wpa psk wpa2 psk enterprise networks and all of that using wpa cli so here is an example you know scroll up ,, here's an example of how to configure a wpa-psk network using wpa cli so we first do an ad network, this returns an id and we need to use that ideanow to refleonce that network configuration every tiny talk to wpa-cli so after that you're going to be going to go ahead and change for example the ssid ah ? ,,, 2018.13.12.white__30.com . ,, so WPA supplicant even allows you to decide whether you would like to send things like null probe requests or just silently wait for beacons all of that can be configured now in the case of PSK auth is going to be open, it's WPA PSK we are using tkip and then finally we use PSK, this is a demo 1.2.3 mode defines whether this is infrastructure or independent BSS and very similarly you could actually go ahead and configure WPA2 PSK and enterprise as well so I highly recommend using and looking at WPA CLI as I said it's the best way to learn stuff now let's actually look at some serious scripting which we can do so event monitoring here's a simple example of how to monitor events really very simple all you have to do is call attach and after that you can just wait receiving for events so WPA.receive is a blocking call so anytime a new event is available you get woken up now if you're thinking what about individual events can I just subscribe to a scan result event well the control interface does not support that directly you probably have to write your own wrapper around it and then call whatever code you want depending on what event you received now one of the things I'd always wanted to do is write a live WPA PSK attack tool I mean there is nothing more to do than to write a live WPA PSK attack tool there is nothing more than an academic value to that now here is what I mean by that let's take a word list how do we crack WPA or WPA to PSK right now can anyone just explain while I connect everything what if there is no client around what if you're an impatient person so one of the interesting things which you can look at and this actually applies to a lot of stuff is what if I mean again there isn't much of practical value to this but the best part is you can still do it what if we could actually take pass phrases pass phrases out of a word list and try and check every single passphrase against the access point live now when you look at something like an air replay ng or many of these tools they are stateless which is most of them operate typically with the single packet principle right you send a you forget about it you keep sending dots doing a fake authentication actually is easy just a probe request response and the asoc stuff trying to verify a wpa passphrase live against an ap is non-trivial you actually need to have the entire wpa stack available including things like looking at the four-way handshake checking you know the different nonces creating your ptk and then finally verifying that against the mic right which is a very important thing to do and then finally verifying that against the mic which is like a signature over some of the four-way handshake packets only then do we actually know that hey the ap and i both of us have the same passphrase now how do you do something like that if you wanted to and actually this attack and automation doesn't just apply to wpa psk any time you actually want a full network stack available to you and where you'd like to try different attacks you would probably have to do something like this and that's what we're going to do we have to use the control interface of wpa supplicant or host apd right host apd also has a control interface so how do we do that okay so i've i'm going to show you what this script does in just a bit so it's a wpa psk live cracker and what it does is it goes through a dictionary picks up individual passphrases and tries it against the access point live yay right the reason i did not mention the ssid and all of that yet is i know the ctf guys would immediately like go ahead and send diodes and stop uh you know this from working so now i can go back to the script and show you how this works uh the same template can be used for any stateful attack so let's say you would like to create an access point on demand and you know an mitm setup you could go ahead use the control interface for host apd accordingly uh how does the code look like all of these python scripts would be shared after the class so you can run it yourself later on now if you recall i'd shown you wpa clis config on how you can go ahead and create a network and set different parameters for that network right so we are going to be using wpa controls api to simulate all of those steps but inside our own code so for every single passphrase in our word list we go ahead create the appropriate network setting and we're going to go ahead and create a network and then we tell wpa supplicant to actually run and try and connect to that so if i were to monitor wpa supplicant while this attack is going on uh you probably really appreciate what is happening in the background and why it is so heavyweight that you need a full-blown stack so i'm running this and actually start seeing tracebacks on wpa supplicant if you notice it's trying to authenticate associated right this is wpa supplicant trying to do the four-way handshake and there you go the first attempt the four-way handshake failed do you see that right and it basically disconnects then i give it the next passphrase and then it goes back and tries again second one right now is right on the list so finally key negotiation succeeds and we are able to connect to the network so by monitoring all of these state changes you can actually write your own stateful tools which probably can launch more sophisticated attacks after connections here is another simple example let's say you want to check every single open ssid and verify which one has free internet access on it right how do you do that right now if i told you to write a script connect to every network right and tell me if this has an internet available without maybe you know any form of captive portal on it or if it has a captive portal then maybe capturing the captive portals page and storing it somewhere right so you could use the exact same process all that would differ here is we would first scan the air do you recall when we called scan results the whole wpa ctrl scan and then we got the scan results and for every ap in the scan result we go ahead try and connect to it based on the security parameters which we see which is of course in this case it's open does not have any form of encryption once that is the case we try and connect to that access point and see if that succeeds wpa supplicant will raise the event and then you can actually even call the dhcp client on that interface actually could even have it running and then you can check if you're able to access servers and things like that so this is just an easy example really anything which requires you to do stateful things now if i were to go back just to look at the complicated part of the script now all of this looks quite simple and you don't have to do all the commands again and again all you have to change is just the passphrase every single time so i'm going through the word list and for every passphrase all i do is set the passphrase and then select and enable this network when we do that and send this command to wpa supplicant over the control interface wpa supplicant immediately starts picking up the configuration you created and tries to connect now all of the problems which i faced i mean i actually thought this would just be 20 lines of code that's it but when i started working with it do you recall all those fail busy fail those events seem to be happening more often than probably i realized so what i had to do is anytime i run a command i actually have a wrapper on top of it so this wrapper will actually automatically try to run that command for up to five times the command failing right so it tries the command gets back a failure says okay let's wait for maybe you know a second or two let's try it once again so this seems to be the only way and which i finally figured a lot of people were using as well uh including you would actually find not exactly this but something similar in android's wpa supplicant python code as well so literally all your linux and posix systems which use wpa supplicant including android actually automates most of the connection for the network manager using this exact control interface right there is no other choice really i mean the only other choice is you have a fixed config file which you start wpa supplicant with while a network manager needs the flexibility to be able to change the network based on what the user selects so this was one of the things i had to write uh it's actually very simple you know all i do is a while one and i go ahead keep trying uh catch the exception people who've used python if you haven't every language pretty much has something similar to this and i just go ahead and try up to maximum retries uh this actually works quite well let me actually delete uh the right passphrase from the word list and if you go back here you should be able to see the entire trace back now one of the other things i also managed to do after this is actually fire other automated tools so as an example let's say you want some kind of an automated scan to run after connection so you could connect to the network manager and you could connect to the network manager and you could control wpa supplicant connect to the network and once you get a dhcp address you can then launch nmap and all of those automatically right so a lot of automation across not just wi-fi but layers above it can actually happen with this script as a starting point i've tried brute forcing for up to 5000 of course it takes an astronomical time as i said the whole purpose of a wpa psk cracking live is more academic and just to illustrate the fact that you can do this without having to write your own network stack of any kind uh but it is actually quite stable uh the only flaky part was getting the ok busy and the ok errors from time to time and if you handle that with a wrapper it's actually quite stable any any questions with respect to the control interface i mean this is just one example of what you can do it's up to your creativity and you know the task at hand but any questions so far control interface yeah if you have multiple cards so here's the thing right because in a way wpa supplicant has a true stack not a simulated one using raw sockets so if you look at things like airbase ng they sniff packets just using raw sockets so if you look at things like airbase ng they sniff packets just using raw sockets so you could actually run multiple instances of airbase ng and one instance wouldn't interfere with the other because there is no true network stack attached but wpa supplicant actually has a stack and unfortunately because of that you can only run one instance on one card you could run multiple instances but you need multiple cards for that what is the other way you can automate is by doing everything in raw sockets but that is actually very very painful given the fact that the wpa four-way handshake and everything which follows after that including the group key management and the gtks and all of that is something which is quite difficult to emulate if you just wanted to do it in you know your own fake ap software but yes you could that would be one of the ways to do it question okay okay now one of the other things is something actually even more sophisticated just going to keep this simple all the code examples are available probably take a couple of hours to go through what dbus is but at a very high level a lot of programs use what is called the dbus which can be a system dbus or a system dbus or a system dbus or a system dbus or a system dbus or a system dbus or only on a per application basis think of this as a message queue at a very high level right so i can go ahead and say okay me wpa supplicant can go ahead and receive or send messages on the dbus and anyone who like to control me or probably go ahead and read data from what i'm doing can subscribe to the same dbus this isn't restricted to wpa supplicant actually i'm not going to go ahead and subscribe to the same dbus but i'm going to go ahead and a lot of software does this on posix based systems so here is an example and this this code can be a little intimidating but actually it is quite simple of how you can automate a wpa enterprise attack using dbus i'll just explain what it is so let's say in the case of peep or eapttls you probably want to try different iterations of usernames and passwords just as one other example right so in this case we could again use the wpa control interface which we just looked at what is the downside with the control interface the responses which you receive are all text based so you have to do the text parsing most of them are just separated by new lines so every line is separated by a new line the dbus gives you a pure data structure right so that you can actually work with data structures and objects directly rather than having to use text and maybe try to convert it to whatever compatible object your program requires so at the very top what we do is we mention the different dbus parameters this typically would tell the application where the dbus path interface and all of that is now wpa supplicant has all of this very well defined in its documentation right so they have a huge documentation for the dbus api ideally most of the implementations which i've seen of the dbus for supplicant is all c code your network manager for example actually uses the dbus api now the dbus api provides you most of the interfaces the control one does but as i said now you get back objects if i go back to the code now most of the process is exactly similar you would just have to do it in the dbus way right so that you can set up you know who you want to send messages to call the appropriate interfaces and all of that stuff all this code is going to be available for free uh personally i haven't seen a lot of dbus apps in the past i've seen much of this code being around anywhere so it kind of took me some time to write it because the documentation around this is poor the only good places i could find something was android's document or documentation really android's code for its network manager which also uses dbus and a couple of other things so with this you can actually i've kind of given scripts here uh you can automate scans So here is an example of me scanning with Dbus. It almost kills you, given the fact that the last time we scanned, we just basically sent scan and we just printed it, right? And everybody clapped. I'm sure when I run this, nobody will. So you could actually go ahead, start the scan. Let me show you how the scan looks like using the Dbus interface. So you need to know the interface ID. ID and run scan WLAN 3. Now, the best part of using Dbus is, as I said, everything you receive is objects. So you can actually parse all of these individual parameters very nicely and kind of reuse them in your program, right? Parse some of them, you can parse the rest. Some of them are still placeholders. So you could run the scan, get the list of APs, look at the list of APs, look at interesting ones, and now launch another module to do an automated attack. The WPA supplicant interface is the only one available right now to actually do very complicated stateful attacks on Wi-Fi, right? I haven't seen anything else. Any questions with respect to the Dbus? I mean, I'd probably take at least a day to go through the Dbus API if I were to teach it in a class. I just want to keep it high level and so that people can download and try the code rather than me explaining every aspect of it. Questions? Okay. Apart from this, of course, you also have some of the other code which we are giving out. Skippy, anyone? Skippy? Yay, right? Okay. Yeah. So a ton of Skippy code. A couple of the interesting ones, including things like monitoring probe requests through Skippy. You can try it. I mean, compared to using the WPA control and the Dbus API, I think Skippy is Python 101. So, I mean, it's super easy to use Skippy. There isn't much to it at all per se. So I'm not going to run Skippy code. This zip file should be available. At pentesteracademy.com slash wifivillage in the next one hour. I couldn't make my VPN work. I wonder why. So as soon as I get it working, it should be there. pentesteracademy.com slash wifivillage. Let me kind of write that out for you. You can download all the code. You can email me in case you're having any issues with the code or if there is any other interesting... aspect of it, which you want to know. Any other questions, queries about programming your own kind of wireless attack tool, which is stateful. All the deauth and all that is actually quite easy to write. I mean, you could write it with Skippy. You could do it in raw sockets. Most of them are just single packet or at most a couple of packets. Those are quite easy to write and maintain. Even the fake auth, I'd actually recommend using Skippy. Skippy has a couple of functions where it can actually... wait for the response, where it understands that if I send out a probe request, I'm looking for a response. Or if I send out an SOC request, I'm looking for a response. So I'd recommend Skippy up to fake auth. Beyond that, if you want to do anything stateful, which is stable, you probably look no further than the WPA control APIs. Extremely stable code, very well written. You know, being a C programmer, I actually looked at the code and I was like, oh, this is a really good code. I mean, you know, it's way better than what I could probably ever write. Been around probably for the last 15 years, so it's a fantastic code base. Every POSIX system uses WPA supplicant and host APD. By the way, they haven't published the interface for host APD, but you can tap into similar stuff and work with it as well by creating fake APs. Why is it better to use host APD over something like Airbase interface? What is the difference and where is it important to realize that difference? How many of you have used Airbase? Okay. How many of you have never created a fake AP? Okay. So people who used Airbase, you know, could we use Airbase if you wanted to do WPA enterprise? WPA enterprise. If you wanted to create a WPA2 peep or a TTLS based honeypot where you also have a back-end radius server. Actually, we did a bunch of demos yesterday in the last class we took, but maybe some of you weren't here. So could we do that with Airbase? No. Why? Because Airbase was in mental smoke. So you must do linium 4 bypass tech in the Airbase monitor mode. But if you work in monitor mode, we get all packets. So Airbase could actually pick up all the packets and do the needful, right? I mean, you're close, but not close enough. Go ahead. Give it a try. You need to build own host data. That's the point. Demon. Phone. Okay, you're close. Let me give the answer. So basically, what Airbase cannot do is low-level EAP packet redirection. Right? So when we look at WPA enterprise, all the initial network logon over 802.1X happens using EAP. I mean, EAP isn't IP. EAP is a protocol in by itself. So Airbase doesn't understand EAP. And Airbase doesn't work right now at least. And it cannot redirect EAP packets to the RADIUS server. Host APD can. Yeah, I mean, you could modify any tool if you added the support, but right now there isn't any support, is what I mean. Yeah, I mean, you could modify any source code to add any support you like, but as of this point, there isn't. Right? I mean, it isn't a limitation of it conceptually. It's a limitation in the sense of not being implemented. Right? Any questions? Any other questions? So you can download this code in maybe an hour's time. The link should be up. And if you have any questions about programming or automation with Python, we did the very first Python for Pentesters course online in the world. So we love Python. So if there's anything, just send us an email. Thank you. Thank you.