So I'm talking about a thing called TOSPOvirus. I call it TOSPOvirus. You'll find out what that means in the future. This is my little trek through the sweetest of the Wi-Fi fruits, which is the Wi-Fi pineapple. It is kind of geared towards a workshop. Is anybody actually doing this as a workshop, or are we just sitting around? All right, so we've got a couple people. Great. Do you have pineapples? That's going to make it really hard. You kind of need pineapples for it. So yeah, anybody doing this as a workshop? It's going to make it really short if nobody is doing it, because then we don't have to wait for anybody. Yeah, it's just story time. Cool. Anybody back there? We got one? Oh, you got one? Do we have a second one? Because we really need two. Thank you so very much. Yeah, is there anything important on it? Because we are going to flash it back down. We're going to downgrade it. If you were here for the previous talk, you may have heard that all of this stuff kind of got fixed. Doesn't care? Cool. Not up for it? Okay, all right. That can happen at any point in time. Sorry. Is there anybody that works in affirmative action here? So I'll keep going. That's my man servant over there. So the workshop layout is going to be like introductions. You'll find out a little bit about me, very little. Yes, sir. Yeah, just like two would be great. You know what? I mean, I've got two, and we can reflash those. That's really easy. I think that'll work. You? No, we need two. You got to listen. This thing's working, right? All right, all right, all right. We'll use the, actually, this probably works out well, because then it's less for people to fuck around with. So, yeah, we'll go through some setup, which will be these guys setting up. They will be our, I guess, guinea pigs. Which is wonderful. Thank you for volunteering yourselves. We're going to disclose some vulnerabilities, which have kind of already been disclosed a little bit. And we're going to do some exploitation of those vulnerabilities. We're going to overview, have a very, very, very tiny little overview of viruses, which is like literally one slide, but important. And then we're going to introduce you to TOSPOvirus itself. Then we will go through the process of using TOSPOvirus, and then we will recover some data. Over the air, which is quite fun, I think. So, introductions. Myself, I am Catatonic Prime. I'm sometimes caught making good decisions about alcohol, but not often, especially at DEF CON. Did anybody else drink too much last night? Yeah, yeah, yeah. I also wrote the TOSPOvirus itself. This is Actual Reverend. He is my manservant. He's a Windows sysadmin. He's been hanging out with me. And he provided all of the comments to make it easy. It's easier for people to read. If you do get a copy of his materials, they will be available sometime after the talk. We'll put them up on GitHub or whatever. So, what you need, if you looked at the website, is you will need a laptop. You need a working version of Metasploit. Kali works just fine for this. And you need a partner. Remember, two devices. And somebody needs to be device number one. So, I guess since it's just you two, both of you give us your social security numbers. The one with the lowest is the one that is device number one. Device number one. Oh, I know it. Device number one. You guys must be very close. So, we should have, did you turn one of these guys on? That guy's on? They're both on? Okay. So, you guys, if anybody else wants to follow along over there, you are welcome to. You can jump in almost at any time. But these things are going to go away because I think we're going to share one over. Okay. But if you guys could, from, if you're using a virtual machine, do this from your virtual machine. The materials need to be in your Linux distro, not on your host. So, yeah, connect to one of these guys. The rest of you, please don't fuck it up. Like, I'm begging you, do not de-auth and do mean things or, like, intercept. It just makes me sad. Yeah, you especially. I don't have anything on. I, as soon as, when you showed your demo earlier, I was like. Oh, fuck. I should have put that in. That looks glorious. It's nice and fast. So, we will take a couple of minutes. Anybody have any questions yet? No? Okay. Yeah. It's all the boring stuff at the beginning. Yeah. How about I ask you guys some questions? Where are you from? Who here is from the great state of California? Hippies. Who here loves guns? Woo! I don't see any of the California people raising their hands. Oh, man. Yeah. Just come. I did not think of any of that until now. I swear. You guys ready yet? Tick-tock. Tick-tock. We have two hours. Yeah, we do have two hours. It's going to be really long. We're going to take time. Feel free to ask questions at any point in time, especially since we don't have a lot of people that we're managing. It's probably going to be just nice and smooth. You can ask anything at any time. Did you guys do the bathtub last night? Oh, man. I wish that we had. We have a jacuzzi in our room that is filled with ice, beer, and liquor. And we got, I think, maybe halfway through it. More than half. Oh, we just, oh, my God. So, if any of you pray, we do got a guy that went to the hospital, and he clocked in with a .422. So, DEFCON, holy shit. Yeah. My understanding is you said the hospital did say that was the highest that they've ever seen, and that's in Las Vegas. So, yeah. He was texting, right? He was texting? Yeah. He texted me earlier. Okay. So, his hands work, but we don't know if he can speak. It's going to be terrible in posterity when I come back and I'm like, no, he can't speak. Dang it. Yes, sir. Why are you live? Oh, you know, I was like, I could use Shaw. And then I was like, meh. Good enough? Yeah. You guys set? Set? Everybody set? Okay. Anybody back up? Anybody back there waiting? Nope. Everybody doing their own thing, having fun. That's cool. That's great. All right. So, we're moving on. Some of the stuff that you got to do once you get those course materials, you got to unpack them, you got to move some stuff into the right places, you got to install a backdoor that we do for you, just run scripts, pull the exploits from exploit DB and just execute, right? That always works. Tick tock, tick tock. Tick tock. This is the slowest part. And then later we get into more of the fun stuff. We have a moment at some point, I want to ask a question. Oh, yeah. Anytime, man. Whenever you're ready. So, did any... Oh, I'm sorry. Yeah. So, did anybody get their pineapple on last year during Darren and Seb's talk? Here? Yeah. Did it just like go completely dead? Yeah. I was testing the exploit out on you. I didn't own one yet. And I was literally standing right next to you. So, if you were on the back row, you were messing around with your pineapple during their talk. And I was literally standing there with my laptop because there was no seating with it bent up like this. And I'm looking over the guy's shoulder and it's not working, right? The exploit's just not working. So, I'm messing with it, messing with it. I was like, this thing should work. It worked. So, I had done all of my testing in a virtual machine, an X86 virtual machine with all the Wi-Fi pineapple stuff copied over into it. What happened was I had bash in that virtual machine. Wi-Fi pineapple just has busy box. And so, one of my commands was screwing up. So, it was working. The payload just wasn't running. And I got so mad about it, I just RMRFed it. So, my bad. A dandy public apology there. Right. Yeah, the rest of them got pretty bad treatment, too, but at least they got a nice entertaining screen. You're saying that you're going to buy this guy a beer, right? Absolutely. So, now it's like five people here. Yeah, that's what I was saying. Everybody's, yeah. Oh, free beer, yeah. You guys all set yet? You just got to type what's on the screen. I don't know how to type. This is my first ever. Stop. I think we got to, like, call the guy who can text still. I do feel really bad for him, though. I hope he's okay. It is exciting once it comes around. I know, right? Start making things up. I am a little curious. I did look at something earlier. I was walking around with my pineapple running what I will be showing off today. And I did see that it connected to at least one, which said, pineapple 5 version 1.2.0, you can hunt me. And I was curious if that was yours. No. Oh, okay. I don't have a honeypot up. Oh, yeah. I thought about that. I mean, all the legit honeypots I've seen have gotten completely wrecked. Yeah. I have seen some of the, like, the joke names and stuff. Sure. I haven't actually opt on one to see if it's in here. This year I'm completely crowd sourcing it. I haven't run the script at all here. It's just been other people that I've given it to. Just in case my laptop eats battery and I forget and then it's going to shut down in the middle and that would suck. I hear some teamwork occurring over here. Anybody else here know how to type? Anybody know how to use Linux? It did something. He said it did something. Oh, you guys know, so you get into the MetalSploit framework. You know where that's located? Yeah, we're good. You're good? Cool. Great. One more guinea pig, too. Oh, you got another one? We'll catch up with this thing. Okay. Cool. Great. The password was TOSPOvirus. With a P, principal. TOSPO. TOSPO. TOSPO. Yeah. That was the problem with that. Oh. Oh. TOSPO with a P. That's an upside down B. Or D or something. Okay. So once you get that all done, we actually need to probably download it. So I'm going to download it. And then I'm going to go ahead and ungrade your pineapple. Because this does not work on the latest firmware. So you can do that by finishing configuring your device. And then you can copy it. That will open up SSH. You can copy your bin over. You can copy the old firmware, which is included in the course materials with backdoors. And you just, yeah, run these commands. Ta-da. All of the vulnerabilities that I use. They've been patched. So they are all mitigated. The way that they are, were you here in the previous talk? Okay. So at the end of the previous talk, they were mentioning that now when you configure a new device, when you get a new device that has the latest firmware, you have to go through a process of proving that you own it. And the way that you do that is you use Ethernet and you turn off the radios. Because as it turns out, leaving the radios on leaves some attack surface open. So yeah. Now they force you to turn the radios off by flipping DIP switches. Then you can continue, flip the DIP switches back on when it's time, and finish configuring your device so that somebody else doesn't do it for you. Yeah. Me, too. I didn't do it. I didn't do it, either. It does take a couple of minutes to flash. You get your commands in, at least. Does it say that it's writing firmware, rebooting, et cetera? No, I didn't. Okay. Man servant, go help them. God, I – I'm so glad that I have them. I don't know what I would do in my life without them. Oh, yeah, you know what? In the course materials is also the HTML. Yeah, there's like a lab document in there. You can open that. It has every command that we run. You can literally copy, paste into a terminal. If you can type like three keys, two of them at the same time, you're set. That's the tough part. Or right-clicking is also successful, unless you're missing a middle finger. No. What? Whoa, you're... Ah, dude, that's fucking weird. That's what middle finger privilege sounds like. That's what middle finger privilege sounds like. How's the third one doing? Has anybody else here done any exploits on the Pineapple their own? Has anybody run my script? Yeah, has anybody run McGrew's script here? He released it? No? You're not that famous, man. Oh, my God. I gave out the URL. You were here attending my talk. I did. All right. You just hadn't had time to play with it, right? Oh, I understand. I am considering integrating it later. It's highly effective. It'll make it... Something so dumb. I think it'll make a good addition. Anybody here know how you can identify a Pineapple over the air? Like, if you get beacon frames? Like, what's a good option for that? Like, how to tell? Anybody? Always just connect it to them and... No, no, no. It is. The SSIDs in them. Anybody know about their SSIDs for the OUI? Yeah, sorry, the MAC address, yes. Yes. Yeah, so the SSID, yeah, that's one way. Once they're configured and they don't have the SSID... I'm sorry, I didn't mean SSID. I meant BSSID, the MAC address, the OUI. Yeah, it's like, I believe, 031-337... Somebody? Anybody? Yeah, so... So if you see those, those are probably Pineapples when you're at DEF CON. Yeah, so, I mean, it could be a good thing to play with with this, is instead of looking for SSIDs, you look for those, and it might help with searching and finding them. Are you guys set? Cool. Cool. Cool. Cool. Okay, cool. Good to know. Yeah. All right. Yes? Maybe I should do it. You could. Sure. Ah. Dude, this part is pretty boring. Yeah, this part is boring. So, you guys are good. You've got the lab, at least. I'm going to move on. So the vulnerability is... Ah, hey, fun stuff, right? This is what people really want to hear about. Yeah. So, you guys are good. So, like I said, as far as I know, all of these have been mitigated in version 2.4. That's the latest version. It's actually 2.4.0. Those changes were put out by Seb, like, just last week. And all of the vulnerabilities, the first one, I don't usually like to count this as a vulnerability. I just happen... It happens to be super useful in this case. It's default usernames and passwords. Eh. Okay, boring. Anybody know what the default password for a pineapple is? Yeah. Whatever. What's the password? We know they're yummy. We know they're yummy, sir, but what is the password? Yeah. So, yeah, default username is root. Default password is pineapples are yummy. Then there's a weak proof of ownership challenge. They covered that a little bit at the end of the previous talk. We'll talk about it a little bit more and give you some closer numbers. I'm really bad at math, so if I fucked all that up, sorry. Predictable anti-CRSRF tokens. This is what I actually count as the vulnerability. They do not release their CSRF token to you until after the device is fully configured and you successfully log in. But as it turns out, you can do some other stuff. It's easy and fun. And then a little bit later, I picked up a login anti-CSRF bypass as well in pre-configuration devices, so you can just skip all of that other stuff and just get to the chase, which we will talk about that as well. And all of these have been fixed. Once you get authentication, once you get session, that's good. You want to target component system configuration functions.php, and you want to be able to run commands there. This is built in. It's by design. So target that. That's your command injection point. So the weak challenge ‑‑ we're going to skip the default passwords, right, because we already covered that. No need to put in a slide for it. Weak challenge. The challenge allows you to reset the password. There are four LEDs on a Wi‑Fi port. I believe it's green, blue, red, yellow, or amber. And there are three possible states, on, off, or blinking. So hey, that's like a theoretical of 81 possible solutions, which if you were actually hitting them really fast and getting them wrong like I've done, you can get about two per second approximately. And you should, in theory, I think, get them in half of that time. So that's 80 divided by two divided by two. Or approximately 20 seconds to compromising the password and resetting it, which will allow you to log in and complete all of the rest of the setup. Or if you get them wrong a lot, like I have, you'll notice the green one is literally always on. So there's only 27 possible solutions, which leads you down to being able to compromise the device in seven seconds. This is very important because all of these vulnerabilities only apply to pre‑configuration devices. So once they're configured, they're kind of gone. But they're a lot better off with the exception of some ARP spoofing. So yeah, pardon me. I should get some aspirin, too. So yeah, seven seconds to compromise. Very important. Once you get a successful login, so either by resetting the password or using the default credentials. Once you're successfully logged in, you will generate a CSERF token, an anti‑CSERF token. And that is based entirely ‑‑ yeah. Muscles is no word good. I mean, I played football for, like, years. Yeah, yeah, we're good. Good one. All right. All right. Good lord. I'll leave it the way I got it. I was quarterback. So once you generate your anti‑CSERF token, it is generated as the SHA1 of the session ID, which on these devices is quite interesting. Okay. So if you use a cookie with a session ID that did not already exist, it will make that session for you. I was talking to some other guy, and he was like, oh, my God, session fixation. And I was like, I don't know. Is it? Is it? So if somebody knows about that and would like to chat about it later, yeah, I see this guy looking confused. I'm with him. I don't think so, either. But if somebody has a fancy idea about that, let's talk. I would love to hear ideas, and we can try them out. We have devices. Okay. So that will create a session with a specific token. In this case, my session would lead to a token like this. Which then gives us access to execute commands. Because anti‑CSERF is passed, you have a logged‑in session. You can now run commands on the device. You are root on the device effectively. So doing all of this a little bit faster, there's a faulty check in the authentication stack, in the header stuff that they include. And it looks for a string called include CSS styles.php. But it doesn't look for it being the end of the string and also the beginning of the string. It looks for it anywhere in the string. So if we do like a little directory traversal trick, we can just include that at the beginning. Back up a little bit. And then presto, we can execute commands without doing any log‑in at all or any brute forcing at all. The virus does not use this. But I imagine it could. Activity for the astute student. So the exploit chain kind of looks like this or could look like this. You could adjust it to make it better for you however you wanted. You choose your starting point, choose an exploit method. In our case, we just stay on the top side in the TOSPO virus land. But it would be pretty easy to put these in an actual chain instead of having that decision at the beginning. So just try one. If it fails, try the next one. If it fails, try the next one. Try the last one. And then hopefully you'll get there. So once you have done this, there are a couple of ideas like, well, what should you do with it? I think that you should install a service. I think that you should install an SSH pack door. I believe yours was doing this, but you added a user. Right. So in the previous exploit last year, it did a lot of very bad things. It attempted to make it as difficult as possible to recover it. It removed the whole web interface and tried to remove anything that could reflash it and all this sort of stuff. This year, I settled for just adding a user and SSH-ing in, but the code's available. Do what you want afterwards. So it could be a good thing to add the user. I add an SSH authorized key instead. I found that to be easier at the time, even though it's really big. And part of that has to do with preventing people from cracking the SHA later if you use a weak password for it when you add the user. I like keys. It's a little bit better in this way. Then you can also do maybe like a little encrypted packet disclosure with some stuff for the WPA-protected managed interface. Once you finish configuring a device, let's say that it's been infected by the virus, then you still want to be able to gain access to it. The question is, how do you spot them? How do you know which ones are infected? You could just connect to anything. You could say, oh, hey, look, that MAC address looks about right for one of the OUIs for Wi-Fi pineapple. Might as well connect and just see if it has the back door on it. Or you could just wait for it to tell you. I like that a little bit better. And all of these things combined is what makes up TOSPOvirus. So we'll talk a little bit about that after. So this was geared towards being a workshop for people to do all of this stuff. Do you guys get set up? You haven't been listening to me, have you? I was hoping that you were just working and ignoring all of the vulnerabilities. So there's some I need some Metasploit modules for these. If it was a workshop, you can just load these up. They're super easy to use. Exactly these commands. Presto, you're in. You can modify your password. You can start completing the configuration a little bit or just change the password to whatever you want. Run this command again. Exploit. Boom. You're in. Then the bypass. Same deal. You can change the password. Do whatever. You can play around with it a little bit, and it'll get you in every time as long as it's a pre-configuration device. So yes, I'm going to move along. I hear that we are having a little less time than we were expecting to, which is cool. So if you were doing the workshop, you'd want to grab your SSID and the SSID of your partner. So everybody should have their SSIDs because you're going to share that information. This is a politeness thing. Because, well, we'll talk about that later. And on the first device, if you pick a device, you'd say, on this device, enable SSH. That will let you copy files over and get things started. So talking about viruses, they really only have two primitives. They have a search function and they have a copy and replicate function. And if you have those two things, you basically are a virus by definition. I always thought it was, like, way more complicated than this. But no. It turns out if you just, like, little black book, computer viruses, this is it. Worms are very similar. They just do these things in an automated fashion without any human interaction. So it can happen automatically. Think 1988 Morris worm. Stuff like that. Just uses an exploit, exploit, exploit, and just keeps jumping around. Or Code Red if you want to be, like, slightly more newer. Or Stuxnet if you want to be even more newer. So forth and so on. And the way TospoVirus works is, as we discussed, you can identify Wi-Fi pineapples by their SSIDs. You can detect pre-configuration ones definitely by their SSID. It looks a lot like pineapple five. Oh, and I can't spell. Underscore something, something, something. Which are the last four digits of the MAC address. Once it sees one of these. Once it sees one of these. Uses IWList scan. And to find that, once it sees one, it will attempt to use the default credentials. If that fails, it will attempt to brute force the puzzle, reset the password to the default so it's easy for them to be, like, huh, that's weird. Maybe the default still works. Glitch, whatever. I don't know. I was hoping to not interfere too much with the user experience or prevent them from using their device because then they'll just reflash it. Once it gains access, it backdoors it. Adds an SSH key. Adds an RSA key. Which it will use later. Both of those are public only. It also generates its own SSH key. So the device that it's on creates an SSH key that it will use to infect victims. Which is only for that particular device. And every device will do that. So that is a unique part. But all of them carry, like, a master backdoor key that they add. So they actually end up adding two keys. And they install a service. I call it a service. But it's really just, like, a cron job. Every minute. Every minute. Look for a new device. See one. Own it. A minute later. Look for another one. See it. Own it. Only now you have two doing it. Because, yeah. It does that. It's pretty fun. And that is the automated fashion that makes TOSPOvirus actually technically a worm. So if you were participating, you guys still behind? We'll run through it real quick. I can run through it pretty fast. And at least show it off. You would, yes, if you're going through it, you could cd into TOSPOvirus. You can edit stuff. There's a whitelist in there. You set up the whitelist so that you're not rude to your neighbors in the wireless village. And you're not infecting other people's devices without authorization. Because that is, you know, I hear it's a problem or something. U.S. federal code or something. I don't know. Never heard of it. Yeah. Never heard of it. And I'm not a lawyer. I have no advice. You can build it. This takes TOSPOvirus and actually shrinks it down. It goes through, like, some little obfuscator that I pulled off. Makes it slightly harder to read. Not too much harder. You could pump it through as much as you would like. I think that would be a great thing to add in a little extra anti-reversing or, you know, make it polymorphic or metamorphic or something. That would be sweet. Just so that people get weird samples when they start looking at each other. You could also install a rootkit, like a backdoor, to hide the virus. I did not choose to. I was originally going to let this loose without telling anybody about it at all. Yeah. I mean, to authorize devices, to authorize devices, there was a whitelist. It's cool. But yeah. I chatted with Seb and Darren, and they are such nice guys, I was like, oh, man, I can't do that. I'm not that kind of person. I'm not that kind of person. I'm so glad that you're here. So, yeah. Then you basically create a seed device and just copy the directory over, make a directory, copy the files over, install the service yourself, and a minute later you'll see that it should jump over to the second device that's in its whitelist, whitelist, whitelist. Then you can confirm that by using the master backdoor key, which is TOSPOvirus backdoor TVBD, and that should just let you pop right into the device as root, and presto, you have access as you would expect. Then you can go back, reflash device number one, which was the seed device. It will now be clean, and if you wait approximately two minutes, then it should jump back. You can confirm this by using SSH. We'll come to that in a second. Would anybody like to see this actually work? That would be cool, right? I agree. So let's just try to run through it real quick. I need to flash a couple devices. From right now? Oh, shit. Oh, shit. I mean I could do that. You said that earlier. Yeah, you gave me that number like awhile ago. I thought you was over smart. Your info is not good. Yeah. I was assume you us I was just doing that. I just burned through, like 15 fucking slides for that. Oh my god man, this resolution is ridiculous. What has happened here? Oh, God. I can't computer. Oh, that doesn't look good. Oh, great. I heard this was a problem at DEF CON. Demos. Yeah, I know, right? Why do I not have a power device? I heard that's a problem at DEF CON, too. What? I'm taking mine, so I can do that, too. Okay, that would be great. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. I don't see my Ethernet around here. Your Ethernet? Yeah. Am I crazy? This is the one where we don't deal with it. I know, right? Like, who needs wires? Oh, man. Yeah, right? Yeah. Well, you know. Dude, I'm fucking getting just... Like, some driver issue or something? I thought it was going to be a workshop. I thought other people were going to be doing this. I thought they were taking music. I was going to be just an asshole sitting here watching. Everybody else was on the same video. What? Ryan, I'm fucking dying here, man. There's nothing to see here. Literally. Literally. Not anymore. Damn. Like, I literally just lost the device. That is super bizarre. I think the Windows solution is to reboot. I apologize while I read... God. This is my first time being in front of, like, a group of people ever. And clothed. Yeah. Yeah, I should just do DEF CON comedy. I don't think I'm as funny as those guys, though. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. What's that weird buzzing sound? . Sounds like somebody is playing with a vibrator. . Cool. Cool. Cool. Hey, what's up? You should be too big of a horse. Oh, I see. Let's not do that. He's terribly worried about the recording quality. It's cool. I mean. Did we actually bring our device back up? Come on, Windows, don't fail me. This is so unfortunate. I don't know. What did you do to your wired interface? I don't know. I plugged in this fucking projector, but look, there's the device. Great, we're set. Oh my God, this resolution. I say web development. I really mean, like, exploits. It's the same thing. Has anybody ever added a web interface to something that never was supposed to have it? It's okay, be honest. It's a bad idea. I just want to know what it was. That's all. It's a good find, though. It's a good find, though. I was really concerned there for a moment. Paused. I wonder if it works. I wonder if it went away when I put my machine to sleep. I don't know. Let's turn this on. Good Lord. Let's make sure that we... You got to do everything from bridged adapter. Oh, thank God. There it is. Yay, back on track. All right. All right. All right. All right. All right. So now I've told everybody about the vulnerabilities, I'm going to spin up a box for you right now. Now, feel free, later. Did you get that one up? Problems at DEF CON. Yay. I heard you're not supposed to bring laptops to DEF CON or cell phones. I also heard it was canceled. I actually thought it was. I saw that picture of the Cosmopolitan and I was like, oh, man, DEF CON is over. It takes a minute to reboot. Oh, to reflash it. Yeah. No, because she's configured it. That's right. Is that one thing we talked about earlier? Oh, man. Yeah, I'm hungover. I wish it was better for you. It's like a crowd of my father out here. I'm so disappointed. That guy knows what I'm talking about. Yeah. Is it the long hair? That's everything. So for those of you who haven't caught up with what's happening over here, they didn't have the root password to reflash it, to downgrade it. So post-configuration devices, these things don't affect it. We can't reset it. I don't remember. You can just flash. You don't need the password. Yeah, you can flip the last switch up and then reboot it with an IP address of 192.168.1.2 and then so forth and so on. They have an image. They have an image. Sorry? Go ahead and... People yelling at me? Just... just... just... I don't remember. It's coming up. Blue flashy light for anybody who cares. That means it's booting. Hopefully it keeps doing that, unlike my other one in the hotel. Or rather, hopefully it stops doing that, unlike my other one at the hotel. Yeah, it's not good. There he goes. Thank you, guys. Oh, man. Any questions? No. Thanks, everybody. Thanks, mate. do, do, do, do, do. I don't have MetalSploit on this machine because I was expecting other people to do this once more. I know, right? That's right. The father's up here. I think that's right. If I read. Free passwords. There's an end user license agreement? Oh, I had no idea. Because usually when I do this, I do use the MetalSploit modules in which case, no, I definitely do not read the end user license agreement. Yeah. Sounds great. Let's do this. Yes, it is flash time. Configuring it now. The vibrator is still going. Somebody has got, like, incredible endurance. They must be so proud. Yeah. I think it's on the, uh, scavenger hunt list. You have to drink from it. I can't handle this. I'll make a list. No, no. I'm sorry. Think of another, uh, self-sexual satisfaction device in which you can pour contents in. But you're careful. You have to drink that one. I think it's acceptable. It's acceptable. We'll cover it later. Yeah, a new device. We'll call it, cover that device later. Pineapples are yummy. That's right. Oh, yeah, that's right. There we go. So here's the virus being copied over. You can see that there are also two keys in there. One of them is the disclosure key. The other one is the SSH key. It's in the recents. Just fast forward. Somewhere in here. I forgot what I'm supposed to do now. Oh, yeah, that's, that's the one. Fucking Microsoft and their curly quotes. They think they're so goddamn smart. For those of you who missed that, that was, uh, you could stop at fuck Microsoft. He's a Windows sysadmin. And he loves it. . . He's aeous. Cool. I'm so tired. to hell with it. Let's do that. Who needs a whitelist like this? Let's just do something more like... Yeah. Yeah, everybody here is consenting to Wi-Fi pineapple stuff, right? Yeah, alright, see? That sounded authoritative to me. Alright, so my device here is configured now. It should have the virus on it. We can pop into it real quick. Just to double check. And we'll take a look at the time, see about when it's going to fire off. Looks like in another 45 seconds. Or it's doing it now. We'll just wait for the network to come back. Is it done? I've ruined it for you. Oh, hey, look, it came back. I wonder what it was doing. Well, that was weird. The network disappeared for a little bit, but it came back. I don't know. Yeah, so yeah, I believe that my device has hopefully just jumped over. We can kind of go check. Oh, man. I think... Somebody else turn one on. Did you guys just finish? I think it's me. I think it's me. I don't suggest doing this in, like, the chill-out area. Not suggesting that at all. Well, I don't know. I don't know. I hear, though, if you do, turning off IPv4 is really entertaining. So there's a couple extra files up here that weren't here originally. If we take a quick look at these, we should be able to get the open-out CD cat. Take a quick look at, like, what probably got owned. This is not one of mine. Whoops. Whoops. Whoever has a Pineapple 5 B1BF, if you could check out your root directory for a TOSPO directory, you might want to just see if it's there. This might be the new one over here, too, though. Yeah? Did you guys get it spun up? Flashed? Reflashed? No? Okay. Well, then. That's... Sorry. So, yeah, in theory, it jumped over to somewhere, which is maybe good enough. Let's move on now. Whoever you are, I hope you enjoy it. You can see how it kind of works. You get it loaded, and as soon as it finds the device, it drops for a little bit, but it restores all previous network state. The goal of that was to keep people just like, all right, that was weird. Once it is infected, it likes to share some information. Once a device gets, you know, infected, it likes to share some information. Once it's post-configured, after you've configured it, your SSID, you've got a password in slash etsy slash config slash wireless, and it likes to go and scrape that password out of there for you. It will just make a copy of that, and then it runs it through OpenSSL with one of the keys. That would be the TVD.pub, which is an RSA public key. It is only 256-bit, but we take all of that data and shove it into a probe request using IWList scan. Because that command is awesome. It's super simple. It's available on, like, everything, especially wireless router-type things. And you can fit 32 bytes into the SSID, but with the RSA encryption tacked in there because of some of the padding stuff that it does, you actually only get about 20 bytes that you can put in. So it's super low bandwidth. It only goes out, like, once a minute. You could probably expand it to, like, have your own encapsulation and do, you know, complete exfiltration in this way. But the goal for me was to not disclose people's Wi-Fi pineapple passwords that they get in post-configuration throughout the whole con for everybody, but maybe just a couple of people. I mean, like, all the authorized devices. Yeah. So yes, I chose to use RSA 256. I figured it was good for three days. Maybe. I'm not a cryptographer. So would anybody like to see what that looks like? I need a USB, mini-USB, because I ran down here. I need, I need, does anybody have a thing that connects to one of these alpha cards? God, I owe, like, everybody a beer in the audience. Oh, what do I? No, no, no. Oh, no, no. This guy right here. This one. Look at that. So I'm here. Look, oh, an alpha card. God, I hope this fucking works. Oh, it's doing something special down below. Oh, yeah, thank you. I know it wasn't yours. I heard a very authoritative answer of yes over there. I think that guy knows what he's talking about. Staffcon. It makes it all, it just makes it better. I forgot what I was doing. Oh, so to help with this, since these packets are encrypted. They look kind of nasty, and I don't like, like fishing for them in Wireshark, but I'll show you what they look like in Wireshark. Okay. Oh, thank God. Slowly. Yeah, that's got to go. Okay. Good thing I have Wireshark on here. Yeah, I know. Running Wireshark as root is totally cool. I love it. Their dissectors are so perfect. Every single one. Yeah, every single one. No vulns, no vulns. This is the worst place to do Wireshark captures for Wi-Fi packets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I'm going back to my room and drinking. This is fancy. I'm scared. Yours worked like immediately. I wonder if I got a bad card. I think I do actually have a bad card. I just lose it. And then it ends up in the wrong place at the worst time. I know I should just ditch it. Someday. Oh man. I just passed it through. Oh man. Sorry? Here. I know what usually adds it now. Here. I'm here for like another 10 minutes or something. Hey. That's the only time I've ever seen network manager work. I know. If I see any of the Debian guys or Ubuntu, whoever the fuck added that, I'm buying them a beer. Does anybody know how to use Aramon? Yeah. Let's try it again. Oh, there he is. Saying prayers. This one will probably work. Or not. Anybody else want to try this? Sorry. Yeah, I unplugged it. I tried again. God. This would be so much easier if you guys were doing it. Because I'd be up here yelling at you. This is the worst experience of my life. I've done this like fucking 50 times now. We did it last night, the night before. It worked great. Yeah, we did. Just to show them. Well, I want to scrape the packets up. I need those packets. Yeah, how are you doing? How about you guys? Is there anybody in here who can sniff packets right now? Who would like to come over and join? They're busy. I know, right? This is an awful experience. Thanks. We'll just pretend. At this point, it's going to be available. You got it? Bring it up here. Yeah, this is now your time. Congratulations. So, W-9-1-MON. Cool. Theris chipset. Rock and roll. People fall. All right. I'm liking that. V-A-A-1. Oh, it's right with the V-J here. Yeah, good to go. No backdoor. No promises. No promises. It's going to take a long time for me anyways. This card is in the worst spot for the V-J-8 after. You can switch to the other side. You just have to restart it. Nope. Hey, Maddox. Good luck with that. No guarantee. It literally does not fit because the USB is in the way. All right. Fuck. Yeah. Don't try any typing. It's like right next to it. Oh. We got a winner. It's my new machine. I'm going to start doing this now. I know, right? What? What? Oh, your mouse pad is so... It's so difficult for me to use. Yeah. Yeah. So you're aware. And the nib sucks, too. Is there a way for me to yank this thing to the other screen? Oh, fine. All right, great. I literally drank most of my whiskey in this class, so, I mean... That sounds very nice. Do you want some? Yeah, I do. That is a good one. Woo! Let's see what it is. I think it's under administration. What if we do... What if we do... Oh, that's scotch. Oh, man. What's it doing? Oh, oh, oh. Hey! It's not just me. Wait, give that back to me. All right, so... That'd be lane one. All right. Yeah. You don't have to do pseudo. Oh, man. But is it true? Ah, it looks true. This is going to be painful for me. Sounds great. Oh. Oh. Oh, yes, thank you. Now we're talking, right? Yeah, we have to do that for both of us. So, yeah. Yeah. Yeah. Yeah. Yeah. Oh, DOS? Oh, yeah. Nobody needs networks. Let's see if we can find a probe request in here somewhere. Somewhere, somewhere, somewhere, somewhere. If somebody sees a probe request, let me know. That's a response, guys. English. I'm going to use the filter. I just forget what it is. There it is. Damn. How's our responses? How's our responses? Hey, you can just keep saying that. It's like I wouldn't know the difference. I wouldn't know the difference. Request to send. Yeah, yeah. Sort by info? Oh, sort by info. That sounds great. Yeah, there we go. I wrote a Python script for it. That's fun. But it didn't get any better. It's drinking and mousing. Oh my god. Just... What? Man, fuck this. I think we have another volunteer to come up with. I know, right? This makes it a workshop. Man. I think a response would work fine, because I think the subtype is 4. And I just forget, like... I'm feeling bad about sorting now. Why is there so much in this room? I know, right? Let's see if we can yank one of these guys. Oh, your mouse! God! You just wait for it. Then you go across the screen. Okay. Okay. Okay. Okay. All right. We'll take this guy. Oh, yeah. There's a lot. Just sitting around. Did you ever stop a capture? I don't want to stop a capture. It's fast enough. Nice machine, dude. Except for the mouse pad. All right. So here we have Probe Request. But in particular, we are interested in the fact that we have a few requests. And any Probe Request that has a length of 32... Your mouse is killing me. So we will just filter down to those. So here are our exfiltrated password packets. They look like just a bunch of random noise. They have a length of 32 bytes. They do not actually contain the password. I wish that there was a way for me to copy this to another machine that maybe had the public key on it so that we could decrypt it. You mind if I plug in a USB? Nothing can go wrong. Right now, I'm indebted to you. I'll sell you my manservant. how's my hands hurt after a week i wish i wish biggest dream judge judy in sleep that sounds pretty good i'm i'm sold you mean linux that's formatted weird too that's formatted weird too that's formatted weird too the standard of windows the standard of windows the standard of windows the standard of windows the standard of windows Noemi. I'm going to copy some files. You're going to get a copy of the virus. You're cool with that, right? Oh, root, right. Yeah. Fuck that. I forget what interface was it. So I wrote a little Python script to do all the filtering for me because I'm lazy. And it works way better than... Oh, I made that wrong one. Oh, god damn it. Fuck. I can type three keys. Three keys. So since it transmits every minute or so, we wait. And at one point, it will find the encrypted packets. It will give you the AP that it came from. It will take a guess at which SSID it actually belongs to because it doesn't actually know that. They're slightly different. And then you end up with the password that is the password to that SSID decrypted using the public key, which he now has. So anything that happens, it was him. I very much appreciate all of y'all's patience. Holy shit. I love you too, Darren. So, yes, that pretty much wraps that all up. I think we're getting pretty close. We're maybe like a little 30 minutes early. Any questions? I have had plenty of time to talk about all of this, and nobody has been participating. Would anybody like to go spread this around? I mean, play with us somewhere? Spread, yeah? Well, you have a copy of it now on... Oh, look, hey, more. So, when they come in... Let me give you the ending notes. Sir, thank you. Thank you. They'll advise me you can do it at a conference. It was his, not mine. My lawyer will contact you shortly. This is... That's it. It's probably going to go up on Reverend's GitHub because I don't know if he's going to be able to do it. I don't want people bugging me about it, even though I wrote it. So, thank you very much to HackFi for being so generous with letting me... They suggested that I even do any of the presentation stuff at all. I wasn't going to do that. Like I said, I was going to spread it to authorized devices only. Thanks to DEF CON, et cetera, the Wi-Fi village. Thanks to this guy who has given me more than he should have. That other guy whose father hates him as well. My dad loves me, actually. But I feel bad for that guy. Any questions? Yeah. If not, I think we're done. Thank you so very much. Have a wonderful day. Thank you.