So this is Connect Disploy version 2. Thank you guys for coming out so early on a Sunday. Actually survived the con and made it to the end of the thing. So this is version 2. It did version 1 last year. Anybody here for that talk? You want to show up? Cool. Excellent. Thank you guys for coming back. So version 1 was just the Connect plus one security tool. And what we're doing this year is the Connect plus 20 security tools or 20 tools in general to run a scenario. So our scenario is going to be we're using a real time 3D first person shooter game environment to collect the contents of a garbage file off of a server. So that should sound familiar to some of you, to most of you. So let me cover just a little bit about the architecture. We're going to run right into it because there's no slides. It's all demo. So everyone needs to, while I'm doing this, say a quick little prayer to whatever demo god you believe in to make sure that this thing actually functions. I've been testing it all week. That's the bad part about doing a talk on Sunday is that you spend the entire con like practicing and working on your talk and making brand new mistakes so that you're nervous as hell when you actually finally get a chance to do it. So that's my state right now. So architecture wise, everything is on this laptop. So the version 1, the big differences here were that it was Blender using Metasploit's RPC server to talk to the server. So you can see when you want to talk to Metasploit, only Metasploit, but you know, when you want to talk to Snort and Nessus and Edercap and Nmap and all those other guys, there's no RPC server for that. So I wrote an asynchronous multi-threaded XML RPC server that Blender is talking to that then talks to all the external tools. And, again, everything is on this laptop. There's a couple VMs that we're going to use as our victim systems. And there's one external function to go out to the Internet. You'll see that later on. So let's run it. I'm running right into it here. Give me just a second to get this going. Okay. We've got the connector. Let me get myself all calibrated. And you should be seeing and you are seeing the Blender screen interface. And that's just taking a little bit to start up because it's got some large sound files and needs to process. Connect to exploit initiated. Okay. Let's run it and actually let me just leave it like that for now. It's showing the debug stuff up in the top. But we'll deal with that for now. I could restart it. But we'll lose some output in some later scenes. So this is the default room where you start off on. And the main gestures are the same as last year for you guys who saw this. So you lean forward. You move forward in the room. You lean to the right. You move to the right. You lean to the left. Go that way. And if you rotate your hips, you'll turn around in the room. So that's a little bit of a change. So this was meant to be patterned after the room in a matrix. Like the training room, big white room kind of thing where then the big cabinets full of guns came shooting in. So that's the first gesture that we're going to do to bring in the way that we get to the other rooms in there and actually start our attack scenario looking for this garbage file. So last year also the big differences are last year every gesture was like when the gesture fired, when I made the gesture, it did. There was no delay. So you run the risk of when you're hooked up to 20 different things causing some serious chaos. So this year the gestures, there's a little bit of delay before they happen and there's an indication that you're actually causing something. So if you continue to do it, you will cause something to happen. So I'm going to raise my hand in like a help gesture and I want you to notice the lights that show up on there to indicate that you're about to do something. So put my hand on the thing. The lights light up. They're going to turn green when the gesture fires. And in comes our cabinet full of ammo essentially that we've got. So we're going to start off our attack against this fictitious company by going into the wireless room. So you go into a room just by putting your hand into the cabinet. Now we're in the wireless room. Scanning in the wireless room is of course the first thing you do is scan for access points. So we're going to run IWList scan just by doing our scanning gesture which is like scanning the horizon and then we should be scanning. Scanning initiated. Scanning initiated. Scanning initiated. Scanning initiated. And you actually get access points from our mind. So this will take a little bit here. Let me just cop to something. There's obviously no access points here on stage. When I was originally thinking about this. Refreshing access points. I was like, oh, you know, I'll bring a real live access point to DEF CON. I'll be a real man and hack it live on stage. And I thought twice about that. And I thought, well, if I did that, I'm sure you guys would hack it before I ever got a chance to. So these are the things that I wanted to do. So, as you can see, are real live access points. They're just not real live access points here on stage. So this is real live output. It's just sort of think of it as a cooking show, you know, when they always have a lasagna in the oven that's already been cooked. That's exactly this scenario. It's just same real live output. And I should explain what these things are. So when I thought about how to represent an access point, when I was a kid, we had this little toy that was like a plastic bubble on a little wood platform with wheels on it and a stick. And you push it around, there are little balls in it that would pop up and down. I'm sure some of you guys have played with or have seen the same thing. And to me that's what an access point is. It's like a little thing that's trying to self-contain its packets but they fly all over the place. So these are kind of purposely messy and they're dropping packets all over the place. So the way you target things in Connect Disploid, of course, is with a fireball. So we're going to shoot a fireball at this Quest 8. We're going to shoot a fireball at this Quest 8. We're going to shoot a fireball at this Quest 18. The other construct here is that we use the walls in the various rooms to help interface with stuff because you can't just do gestures for everything at some point in time. I mean, hacking tools are text-oriented. At some point in time you got to deal with text. So the left-most part is always a context, the right-most part is menu options. There are always context-sensitive menus. So, like, in this case, we've selected an access point so I can choose to dump the the packets of that, which of course is the first stage of an attack. So if you've noticed now the packets out of that Quest 1824 are coming to me rather than going where it was they were going prior to that. So again, obviously we're not really pulling packets down off an access point, but we are going to use a PCAP file that was the result of this exact process. So when it's done, it shows you some PCAP files that you've got to choose from and we're going to choose this top one up here and we're going to run error crack against it and see if we can crack the web key out of this 1824. So it knows we've chosen a PCAP file. It doesn't know which access point we want to crack, so there's no option to do it. So we're going to target it again, shoot another fireball and it gives us the option to crack web with PCAP. So that's what we're going to do. Choose that menu option. It doesn't do much because it doesn't take very long. So let's go ahead and check. So if it works, it's going to show the key as part of the access point itself. Refreshing access points. So hopefully you can see there's now a little key icon on that particular access point, denoting that we've got access to that particular network. So we're done in this room. That's all we need to do for wireless hacking. That gets us access to the network that we're going to use. And let me set something up here by, first of all, let me give you a little bit of an I want to see if this works. Of course, there's Twitter. You can't be a security person without having some sort of access to Twitter. And the reason I want to go in here is that later on we're going to come back here and actually get some hashtags for Connect Disploy. So if you want to tweet something about Connect Disploy, now is the time to do it. We'll come back later and see what you guys said or what there is to see. So this is just some tweets out of my timeline. So what this has done is grabbed 20 or was it 10? 10, I guess, tweets just out of my timeline. And, of course, the way you see things, it tried to replace the icons in real time with whoever happens to be out there. You can see the first one it missed. But let's see who that is. You shoot a fireball at them to see what they said and it shows up on the outside of that. Oops. I got a bug where sometimes you can go through walls. Let's see one more and then we'll get out of here. Oh, yeah. The good old Daily Show. Okay. Now let's go back to the home. But we'll come back to Twitter in a little bit. So if you want to show up there, tweet something about Connect Disploy. And one more thing I wanted to show you before we kind of move on to there, there's a perch, what I'm calling a perch anyway. Perch. That gets you kind of an overview of the entire world. So this is the world of Connect Disploy version 2. You can see all the rooms at once and you kind of lord over top of them, if you will. So this is the world of Connect Disploy. And so you can see that first room over there was the room we started. We got the wireless access room. We got the Twitter room. And then the reason I wanted to show you this, this room over here, just kind of the far right-hand corner is the snort room. So snort's role in this whole thing is to kind of be our visibility monitor, right? So instead of usually snorts what the defensive guys use, in this case the attacking guy is going to use it to let us know, are we tripping anything? Based on what we've done, are we showing up on someone's right-hand corner or radar? And we'll go into the snort room a little later after there's some more stuff. But you can see there's kind of a rotating barrel that refreshes itself every 30 seconds. There's more, there's a barrel per category of alerts. So there's four alert categories in snort. We're only going to worry about the top three. So if you see a red, really fast rotating barrel in snort, you know you've done something that's going to trip somebody's IDS signatures. So that's the idea behind that. So let's get out of the perch and back into the home. And we're going to go into NMAP and take a look at this. So we're going to do this network that we just got access to from the wireless access points. So we list the networks to get an idea of what we can see. And so we've got a couple different points here. Obviously I'm not going to attack myself. This middle one is DEFCON. I don't want to attack that. I'm going to attack 100.0, which is our victim VM. Let me do it again. Should get the little tick sound every time you select something just to let you know that you've picked it. And again, it's kind of purposefully slow there. I'm delaying gestures on purpose just to make sure that you're not accidentally picking a menu option without meaning it. So that's why it's changing color and delaying and all that stuff. So this is running an NMAP scan against that network. And it didn't take long at all because NMAP is quick, especially on a local box. So what this did was go out and run NMAP against that CIDR mask and pull back all the data in an XML file, parse the XML file, spit out some representations of computers, run it through graph viz and then made a graph for us of the trace route of that network. Obviously it's not a very large network. It's only got three boxes. But you get the idea, right? So you get a graphical view of the network that you're dealing with and you get some hosts out in the room. They're scrolling their ports that are open is the construct. So you get a graphical view of the network here. So 101 is us. It's our scanner. 107 looks like a Windows box. 139, 445. And then 100.8 looks like it's doing some web services and 2222 is probably a Linux box. Target acquired. We're going to target that guy, of course, by shooting fireballs because fireballs are fun. And the best thing I know to get a handle on those Windows boxes is by attacking with Nessus. So we're going to go to Nessus. Nessus is the hospital room. So that's the construct here because we're going to dig into this guy and see what secrets he's got when he wants to give up. So if I can get over here. Come on. There's two switches on the end of the operating table for Nessus. This one brings our victim into the room. And this other one. Nessus scan initiated. Nessus scan, like it says. Like the nice lady. Nessus scan completed. So if you've ever run Nessus, you know it doesn't complete that fast. So I will cop to another cooking show portion of this thing. I actually don't have Nessus loaded on here. But there is an integration in Nessus that is a real live Nessus scan from that box. It's just the XML file and kind of replaying because if you're on Nessus, you know it takes like five or ten minutes per host. And I don't want you guys staring at me for five or ten minutes. I like you and all. So I need to warn you just so you're ready for this because it's a weird thing how you can't hear it until somebody tells you to listen to it. So what's going to happen here is I'm going to select one of these vulnerabilities that we're going to dig into. We want to be stealthy. So we're not going after the MS1s. We're not just going to pop shell on a Windows box using, you know, an interpreter or a exploit. We're going to go after this shares unprivileged access, which is Nessus speak first. So we're going to open share. But when I select it, it's going to read you the output of the Nessus vulnerability or the Nessus description. But if you're not ready, you won't hear it. So listen. The following shares can be accessed as a BPIWMGN. File as readable plus content of this share. Test.TXT troubleshooting.PCAP. Okay. So we've got two files accessible on our open share, if you heard it. We're going to run it. And one of them is a PCAP file. So I don't know about you guys. Whenever I find a PCAP file and a pen test, first thing I want to do is run it past intercap to see if there's anything in there I can use. So that's what we're going to do. We're going to package this up. And this puts it in a little ammo box that's going to follow us around kind of like Thor's hammer. So it attaches to our hand. And the fun thing is you can kind of outrun it. You can go faster. And then it will catch up to you. So it's going to follow us around to the rest of the world. So it's going to sit here until we get rid of it, which we're going to do shortly. So you know, it's gone. It's trying to find me and it's running through walls and all that stuff right now. And it's going to catch up to us in the intercap. Intercap. You can. There's no reason why you couldn't in this particular thing so far. The question was, sorry, I should repeat the question. The question was can you carry multiple containers? And, yeah, you can. There's absolutely nothing stopping you from doing that. In this case, one at a time is really all I need to do. So I'm going to do something for this particular scenario. And that took a long time to get that to happen. So I don't have more than one. But when I came into the intercap room, it knew, because this container exists in the scene, that I had a target, that I had a vulnerability. And so it gave me a menu option to target that guy. So intercap for me, the hard part of this thing is how do you represent all these various tools that don't have a physical manifestation? Intercap is a big swirling death. So that's what it is. So we're going to send this to the intercap. Another thing to listen for, listen to the sad tone in her voice. I didn't tell her to do this, but she sounds so sad when she says this. Target sent to intercap. Intercap exploiting phone. Intercap finished. It sounds so sad, doesn't it? So what happened just then? We knew we had an open SMB share. So there's a script attached to that that knows if we're going to run an SMB share, SMB client, pull down files, if there's a PCAP file, send it to intercap. Intercap parses it and spits out any credentials that it happens to find. So now we've got creds that we can go use. So let's go back and root. Sounds like a Linux box. So let's go to our Nessus area. Or I'm sorry, the map area. Which is where we pick targets that we're interested in. And we've got, oops, get back over here. So we've got the Windows guy targeted. It's untarget him. Target acquired. Target acquired. Target acquired. Gone crazy. Let's untarget this guy. Come on. Okay. And let's be accurate and target this guy. Target acquired. Targeting is important in games. And it's also important in this game. So we had a guy with ADN 443 open and we have some credentials. Let's go to the web room and see what we can do for those. So here's our target. Came with us. We've got this into the web room. Let's scan him for URLs. This is just going to run WGET against him and see what we can find. Data URLs completed. Sounds like it's, it announces when it does something, announces when it's done. So if they happen almost simultaneously, it sounds like that. Where it kind of came over the top of itself. So you can see we didn't really get much, right? So let's use our credentials that we just got from intercap. It gives us this option because it notices that we have credentials. And it just ticks on, I'm going to use credentials, kind of a Boolean. I'm going to use credentials to be flagged. And let's scan again. Gathering URLs. Gathering URLs completed. So now we've got quite a bit more. So let's just WGET using those credentials that we had. And there's a whole list of URLs. We can scan through them. The gesture for that is you put your left hand behind you a little bit and then you do kind of a give me more data movement. So we've got a bunch of URLs we can pick from. We're going to pick this challenge three guy. Just because I know that it works. And now that we've got a, you know, we've got a URL selected, it gives us an option to launch SQL map. So that's what we're going to do. We'll launch SQL map and try to get some more credentials and see if we can kind of stealth our way on to. SQL map initiated. To retrieve our garbage file. So when SQL map finishes, it's going to display whatever it gets. SQL map completed. If your results include hash values, you may wish to visit John the Ripper for assistance. A little foreshadowing, maybe. A little obvious foreshadowing. So obviously we've got a user name administrator and a hash out of the back end database. So that was a SQL map just running in the password, you know, give me a password mode. And just like we did before, we're going to package these up in a little module because they're not quite complete. We need more data at them. So we're going to package this up and we're going to take it off to John. Packaging your creds. Say hi to John for me. Okay. Yeah, I don't know if that's the right way to do it. She's got a sense of humor. Okay. So let's go to John. John. John, the little red box in the corner because I don't know what else to do with John. The cool thing in blender is I'm not spending much time on blender. If you have questions about the game engine, here came our creds. One cool thing is it's got like a distance sensitive sound. So close to where I am, the louder the sound, you know, farther away, the quieter the sound as well. So it's got some, you know, just I guess those are standard game engine features now. But they're new to Blender. So we're going to crack these credentials by sending them off to John. Credentials sent to John. And when he works, he's going to display them on the wall. John activated. John completed. So John did this work that fast because that was a real-time John crack by the way. It wasn't a cooking show type thing. But that password obviously is in John's default password database. So we just took that with a MySQL hash, cracked it against that and so now we've got administrator creds with an oddly familiar password. So let's select those because we're going to use, make use of those. And. Credentials selected. So I left this kind of raw. I could have done the same ammo box thing but I wanted just an opportunity to talk about like one of the coolest things in Blender is the Python scripting engine in there. And so for example, this object, me right here, I'm just called the player in the scene. And you can attach Python dictionaries to anything in any object inside Blender. So when I selected those credentials, all that really happened was it took this string. If you're a Python guy, you'll recognize that as a Python dictionary. Just a field value, field value, right? So username, administrator, password, Gibson hash. And attach that as a cred to the player. So anything else inside Blender can make use of that same thing. So it kind of has its own internal data transfer mechanism. And we're going to use these creds next. So we've got a real administrator cred. And let's see what's, let me check my cheat sheet here. Sorry. All right. Let's go back and select our Windows box since we've got an administrator account. In map. So we've got a lot of code. And we're going to select that guy. Yes, we are going to select that guy. Target acquired. Target acquired. Fireballs bounce. Target acquired. Screw you. Okay. One target acquired. One at a time. We'll work on the mass module. Maybe that's next year. You can target a hundred things if you want. And we're going to go to obviously the last two rooms here in our scenario. So what we're after here is like I mentioned the contents of garbage file. So the final goal is to get some forensic work done. The thing that's going to help us get out of the box, however, is Metasploit. So let's go to Metasploit. And let's see. Maybe we have a console. Yeah, we do. Okay. So we have a console output for Metasploit. It's complaining and bitching about not being updated. But I didn't want to break anything. So it's not updated recently. Let's go up here. So what this is going to do is run PSExec to get a interpreter session on the box. And it's going to run, I don't know if you guys were here last year for Wes McGrew's talk, but he released a module that gets you a forensic interface, just an NBD server, network block device server, on a box. So through an interpreter, you can then run any forensic tool that you want. So that's what we're running. I don't know if you guys are familiar with that. So it's just PSExec using those credentials that I just showed you. And it's attempting to run this module. And as you can see, it failed dramatically. So sometimes that happens. And you just run it again. And we can do the same thing using gestures. Loading. So we're loading. It's going to try again. If it works, it'll serve up the C drive as a network block device. And there it is. Serving up a C drive. And the entire C drive is now available to us. So we're going to run it again. And we're going to use that as a network block device. So that's awesome. And we're going to use that in the final stretch here. Whatever you guys said to the demo guys, keep saying it because we're doing pretty good. We're going to go to the forensic room and see what we can find out about this now that we've got raw access to it. So we're going to connect using NBD, just NBD client, regular Linux client. And it's made the connection and given us another option to search the garbage, aka the recycler bin in Windows. Searching. So this kicks off a job that's going to take just a little bit. So let me explain kind of what it's doing while we're waiting for the output. And then we'll go to some other rooms while we're waiting for the output also. So this is live, real time, actually hitting that box, searching through. So it's got a raw, much like a DD image on there. It's going to run FLS out of the sleuth kit and just look for anything with the word recycler in it and then display it up on the wall. So in the meantime, let's go out to the perch and see if we have some snort. Perch. That we can get some snort out of and take a look at. And it looks like we do. We've got a couple barrels. So let's get out of the perch and see if we can go see what alerts we've triggered so far. So here we go. Snort. Snort. Snort. So I'll only do one and then we'll move on to something else here. But all you do is just touch the barrel. You can get close to it. There's something interfering here. And it coughs out just a little summary of what alerts are there for that particular barrel. So let's go ahead and go ahead and go. So you can see these are like priority two alerts in snort. So we've got some port sweeps that obviously are from our m map scan and then some other stuff probably from the sequel map that we did. So that's the snort integration. Home. And while we're waiting for our forensic output, it will announce it to us when we get, we don't have to go back to the room to check. It will say forensic output received. Let's go to Twitter and see if. Twitter. Whoa, I ran into stuff. Let's see if there's any connect display related stuff besides my one sorry tweet early this morning. Gathering tweets. Cool. All right. Let's see what, I'll try to knock some of these down. The fun thing about these, they don't have much weight to them, much like tweets don't. So you can kind of knock them over. If you hit them enough times with fireballs, come on, fall over, please. Of course now it's not going to work. Let's see what else we've got. Yeah, hack the gibson, exactly. That's what we're doing. Let's see what else we've got. Cool. Come on, forensic output. Oh, see this. A lot of people default icons. And by the way, I should have said all the code for this is going to be available over the next couple of weeks. I'm going to open my site. You saw it in the initial intro there. It's just pwnlabs.com slash DEF CON 20. Everything that's here will be available there. You're going to give me just a little bit to clean it up because there's a lot of bad code still left in here. But it will all be open on there. And Blender as well is open source. If you go to Blender.org, it runs on Linux, Mac, Windows, and any Blender file that you create like this can run on any platform. Of course, given the fact that it's open source, it can run on any platform. Assuming that you've got all the rest of the stuff on there. I mean, obviously, if you're going to use M app, you have to have M app as well. So you're going to have all that stuff loaded. So everything out of here will be all. Forensic output received. Cool. So we've got our forensic output. So let's go back. Home. Home. And let's go back to the forensic room. I'm going to put room shortcuts in here next because it gets a little tiring going around. So it did an FLS against Mac times and all that stuff in forensics. So what we've got is the I know number on the far left and then the name of the file. So this is just everything that has recycler on that particular Windows box. If you have ever done forensics in recycling bin and all that kind of stuff, you'll know that the info2 file, which I'm trying to select down here on the very bottom, is kind of the index for everything in the recycle bin. So we're going to choose that. Okay. And then we're going to go back to the network block device. There we go. Info2. And connect exploit knows that info2 file can be parsed with refi UD and gives us the option to do that. So I'm going to choose refi UD and it's going to pull down that file. Retrieving forensic output received. So what it did just there was run ICAT against that network block device with that I know number, pull down info2, run it against refi UD and give us a bunch of what looks like crazy output. But we can go back to the beginning of this output. I think we can. Come on. Okay. So it just tells you where the file was and then the important thing to pay attention to, so the index number is the number that gets added to DC. So DC1 will be this file up here. And if you notice the file's name is C slash in other words root slash period workspace slash garbage dot text. Which sure sounds like the file that we're interested in. So let's go get our previous output here. Search garbage again. Searching. And this is going to. Forensic output received. So it ran that same exact thing that took a couple minutes last time but it caches it. So it takes a lot less time the second time through. So we're going to pick DC1 which we got from our index on there. And then if this works, it's the grand finale. So let's hope it works. So we're going to ICAT that file out and see what it's got. Retrieving. Let me go over here. It's displayed the output on the back wall. So we're going to go over here and turn around. And hopefully this will work. And will be the end of Connect Disploy version 2. There we go. There's the output of that file. It's in that place where I put that thing that time. Which if you've ever seen, if you've seen hackers recently, you will recognize that. So that's Connect Disploy. . . . .