This is Connect Exploit. So this is a talk about joining the Connect, Microsoft Connect, to Metasploit via a 3D first-person shooter game environment in real time. And we're going to use that to own a box. So this is all demo. There's no slides. But it only takes about 10 minutes or so to do the demo. So let me just give you a brief little intro so you'll have some context about what's going on. So I got a Connect about a year ago or whatever it was that came out. And the first couple projects I did, you can see these on YouTube. I did a drum machine using Pygame. It's just like three cubes and you're a point cloud. And if you swat at it vigorously enough, you can make a beat out of that. And then the second one I did was a David Lee Ross soundboard that I'm sure you guys have seen on the Internet a long time ago. They took David Lee Ross' vocal from Running with the Devil and chopped it up and then put it on a soundboard. You can click it and get all his crazy whoos and all that stuff. Same thing, just cubes. You're a point cloud and you swat at it. But what that taught me and what I bring it up is that... So I'm a Python programmer, so I'm not into mounds and mounds of OpenGL code, which is what you end up doing there, and physics as well. So, and then the third thing is that there wasn't any, and there still isn't, as far as I know, skeleton tracking for Connect in a Python wrapper. So those are the problems that stopped me from doing anything else. And then I stumbled upon Blender. So Christopher Webber did a talk at PyCon 2011 talking about Blender 2.57. Blender is a 3D game environment. Let me show you. Okay. That you can use to do CGI animations and also has a game engine. So that solves the OpenGL and physics issues and gives you a platform that you can use to create all kinds of stuff. So it's a 3D, I'm assuming you guys haven't seen Blender, so I'll just give you a brief little quick tour. 3D animation environment and the cool thing, coolest thing, is that, I don't know if you can see the swap on the top there, it's telling you it's 60 frames a second. So it's real life, real time game engine. All driven on the back end by Python. Python 3, nonetheless. So you should check it out. Blender.org is the site. They fostered the development of Blender by putting CGI animators and developers together and then they make a movie with it. So there's a movie on YouTube you can watch called Sintel, S-I-N-T-E-L. It's 15 minute animation. It's great. And that's how they made, they used that combination of folks to actually make this. So Scene Blender. Well, we started with the scene. We have a problem, though. How do we get skeleton data into Python? Like I mentioned, there's no easy way to do that. So the answer to that is OS Seleton. OS Seleton is a program that uses the OSC protocol, open sound control protocol, to make a UDP stream of joint data. So you get this just over your local connection or you can send it over the Internet if you felt like it. A stream of all the joints that Kinect is seeing. So let me set this up. And here's just a quick little Python debug, about ten lines or so, and it's just going to blast out everything that we see. So if this goes well. So it's initialized looking for me, found me. If I do the pose, now we get joint data. So just like that, I got joint data in Python. Let me show you what we get because this is what goes into Blender. So you got a variety of joints. Usually it's just elbow, hand, shoulder, knees, all that stuff. But it gives you the joint, the player, come on, player number, and then you get X, Y, and Z coordinates. So now that's what we're going to stream into Blender. So let me start this up again. Let it find me. And then I'm going to show you the first part of the, oh, I think it's done. Yeah, it is done. So now we got that into Blender. The first thing I like in these displays is when they actually have a person that maps to what you're doing. So I built this using just some open source mesh stuff that's out there on the Internet. This is just a human male figure. But the important thing, the thing I want to show you is that it's complete. Let me make that bigger. It's complete down to what Blender calls an armature, which is a series of bones put together. That when you move them in the, usually in a render engine, you can make, like, walk cycles, poses, stuff like that. In our case, we're going to link that up to the OSC data coming in to actually get poses. So let me pull this back and we'll demo. This guy is called Super Harmer. So it's running a little slow. It gets better. Let me do this again. Still a little buggy, Blender. Okay. That's better. So it's real time, joint data you can see. Arms are kind of the best. Legs are a little twitchy. So I don't really have them doing too much because I'm not a dancer. But you can move your arms around. The head is also a little twitchy. And then so from the basis of the, and the reason I wanted to show you the bone stuff in there, because that becomes the basis for gestures. So there's going to be a flex gesture later when we get into the game environment. And so it's going to be a flex gesture. So that's this bone, 90 degrees to X. So you can start to recognize all kinds of gestures. So let's jump into the Connect Disploid environment. So this is Connect Disploid. It's a first person shooter game environment. It's kind of minimalist. There's only a couple of rooms in it. We only used one room. And it's built, there was a guy on the Blender forums who built this just as kind of a first person shooter game he was messing around with. And he gave me permission to use it, to use the background. Anyways, for this demo. So let's jump in and I'll show you the gestures. The first thing it's going to do when we start up is make a connection to Metasploit. I've got Metasploit running over here. And a victim box. And it's going to announce it and then we'll start going through the owning of the computer. Connect Disploid initiated. So I'm already recognized from OS Elton. And there's the little super hammer and what's called a heads up display in the Blender. So it's just mapping two scenes on top of each other. And you can see we've got our real time running Metasploit console output up in the top. So some of the initial gestures are if you move forward, you go forward. Or you lean backwards, you go backwards. Lean to the left, you go left. Lean to the right, you go right. And then if you want to get a look around the room, just rotate your hips. And like I said, this is a training environment. So we've got some inspirational posters on the wall here to get us. Get us a little in the mood to do some pwning. The more you pwne, the more you know. And of course the last poster, ICBM. Now you could also, this door here, you could move yourself through the door and all that. I won't go through all the rooms because this is the main room that we want to deal with. The idea would be room equals an IP range. Just a local IP range on my box in this case. So to get into actually using this to drive tools. Of course you've got to scan to find them first. So the scanning gesture is both hands up to your forehead like you were scanning the horizon. So we'll do that. And it gives you a countdown because scanning announces your presence. And when it's done... . . . . . . . . . . . . . . . . . . . . . . . So these are two computers that we found, victims, that we can attack. And I was talking to my daughter about this, because first person shooter, you have a gun that you can use to target things. And she's like, well, maybe you can just use your gun gun, the flexing gun, like cock your gun gesture. So that's the gesture to target one of these guys. So you do a flex and touch your shoulder and elbow, like in a cocking motion, and you get a targeting ring. Target acquired. So there we go. Thank you. If you like that, you're really going to love this. So the last gesture in this thing is the only one I could come up with for owning a box. It's the, well, the French have a word that I can't say for it, but it's called arm of honor, if my translation is right. It's this. So this guy's having DB Autopone run against him, and this is my idea of what DB Autopone sounds like. It's a mixture of bats and the Skype feedback sound. I'll have to find someone who has a better idea of what that should actually sound like. If you keep your eye on the Metasploit console interface up there, you'll see it'll announce the modules that it's launching after it gets done looking for what it could possibly use against this thing, and the animation happening is, you know, it's kind of blowing his brains out as we're auto-poning it, and if all goes well, we'll get sessions, and that's the end of what we can do so far. We've got five modules left. Two. Sessions. Sessions. So there you go. Thank you. So those, I'll get out of the game and show you their actual real live sessions in Metasploit. But the next idea that I got for this one, this doesn't work yet, will be that you march up to this thing and then do through some gesture, maybe hopping or something, you launch yourself into the computer. That becomes a different scene than that you could use to drive. You know, one of them are interpreter sessions that you got in there. So like I said, there are real sessions, two of them in there, and that is Connect Display. Thank you very much.