1 00:00:00,000 --> 00:00:10,880 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. 2 00:00:11,080 --> 00:00:18,940 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. 3 00:00:19,000 --> 00:00:23,060 So let me just give you a brief little intro so you'll have some context about what's going on. 4 00:00:23,380 --> 00:00:28,820 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. 5 00:00:28,820 --> 00:00:34,940 I did a drum machine using Pygame. It's just like three cubes and you're a point cloud. 6 00:00:35,180 --> 00:00:39,520 And if you swat at it vigorously enough, you can make a beat out of that. 7 00:00:39,980 --> 00:00:45,420 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. 8 00:00:45,480 --> 00:00:49,520 They took David Lee Ross' vocal from Running with the Devil and chopped it up and then put it on a soundboard. 9 00:00:49,560 --> 00:00:52,100 You can click it and get all his crazy whoos and all that stuff. 10 00:00:52,640 --> 00:00:55,540 Same thing, just cubes. You're a point cloud and you swat at it. 11 00:00:55,580 --> 00:00:58,000 But what that taught me and what I bring it up is that... 12 00:00:58,820 --> 00:01:06,020 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. 13 00:01:06,280 --> 00:01:14,140 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. 14 00:01:14,760 --> 00:01:16,880 So those are the problems that stopped me from doing anything else. 15 00:01:16,940 --> 00:01:19,460 And then I stumbled upon Blender. 16 00:01:19,560 --> 00:01:25,040 So Christopher Webber did a talk at PyCon 2011 talking about Blender 2.57. 17 00:01:25,200 --> 00:01:27,300 Blender is a 3D game environment. 18 00:01:27,420 --> 00:01:27,960 Let me show you. 19 00:01:28,140 --> 00:01:28,460 Okay. 20 00:01:30,160 --> 00:01:34,000 That you can use to do CGI animations and also has a game engine. 21 00:01:34,220 --> 00:01:40,780 So that solves the OpenGL and physics issues and gives you a platform that you can use to create all kinds of stuff. 22 00:01:40,940 --> 00:01:46,820 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. 23 00:01:47,520 --> 00:01:55,080 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. 24 00:01:55,200 --> 00:01:58,700 So it's real life, real time game engine. 25 00:01:58,820 --> 00:02:00,520 All driven on the back end by Python. 26 00:02:00,820 --> 00:02:03,000 Python 3, nonetheless. 27 00:02:04,040 --> 00:02:04,920 So you should check it out. 28 00:02:05,020 --> 00:02:06,080 Blender.org is the site. 29 00:02:06,460 --> 00:02:13,800 They fostered the development of Blender by putting CGI animators and developers together and then they make a movie with it. 30 00:02:13,880 --> 00:02:17,420 So there's a movie on YouTube you can watch called Sintel, S-I-N-T-E-L. 31 00:02:18,020 --> 00:02:19,240 It's 15 minute animation. 32 00:02:19,240 --> 00:02:19,720 It's great. 33 00:02:19,880 --> 00:02:24,700 And that's how they made, they used that combination of folks to actually make this. 34 00:02:26,700 --> 00:02:27,960 So Scene Blender. 35 00:02:28,180 --> 00:02:28,800 Well, we started with the scene. 36 00:02:28,820 --> 00:02:29,360 We have a problem, though. 37 00:02:29,400 --> 00:02:32,200 How do we get skeleton data into Python? 38 00:02:32,380 --> 00:02:34,720 Like I mentioned, there's no easy way to do that. 39 00:02:34,860 --> 00:02:37,560 So the answer to that is OS Seleton. 40 00:02:37,640 --> 00:02:49,100 OS Seleton is a program that uses the OSC protocol, open sound control protocol, to make a UDP stream of joint data. 41 00:02:49,360 --> 00:02:53,740 So you get this just over your local connection or you can send it over the Internet if you felt like it. 42 00:02:53,840 --> 00:02:56,480 A stream of all the joints that Kinect is seeing. 43 00:02:56,840 --> 00:02:57,820 So let me set this up. 44 00:03:00,240 --> 00:03:06,740 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. 45 00:03:09,000 --> 00:03:10,680 So if this goes well. 46 00:03:11,600 --> 00:03:13,740 So it's initialized looking for me, found me. 47 00:03:13,880 --> 00:03:16,580 If I do the pose, now we get joint data. 48 00:03:16,720 --> 00:03:19,780 So just like that, I got joint data in Python. 49 00:03:20,720 --> 00:03:23,960 Let me show you what we get because this is what goes into Blender. 50 00:03:24,000 --> 00:03:25,680 So you got a variety of joints. 51 00:03:25,760 --> 00:03:28,520 Usually it's just elbow, hand, shoulder, knees, all that stuff. 52 00:03:28,820 --> 00:03:35,760 But it gives you the joint, the player, come on, player number, and then you get X, Y, and Z coordinates. 53 00:03:36,100 --> 00:03:39,540 So now that's what we're going to stream into Blender. 54 00:03:39,680 --> 00:03:42,380 So let me start this up again. 55 00:03:47,320 --> 00:03:48,420 Let it find me. 56 00:03:49,260 --> 00:03:55,480 And then I'm going to show you the first part of the, oh, I think it's done. 57 00:03:56,900 --> 00:03:57,700 Yeah, it is done. 58 00:03:59,000 --> 00:04:01,080 So now we got that into Blender. 59 00:04:02,800 --> 00:04:07,140 The first thing I like in these displays is when they actually have a person that maps to what you're doing. 60 00:04:07,360 --> 00:04:12,400 So I built this using just some open source mesh stuff that's out there on the Internet. 61 00:04:12,500 --> 00:04:14,320 This is just a human male figure. 62 00:04:14,580 --> 00:04:18,900 But the important thing, the thing I want to show you is that it's complete. 63 00:04:19,100 --> 00:04:20,580 Let me make that bigger. 64 00:04:20,880 --> 00:04:23,180 It's complete down to what Blender calls an armature, 65 00:04:23,240 --> 00:04:25,320 which is a series of bones put together. 66 00:04:25,480 --> 00:04:31,680 That when you move them in the, usually in a render engine, you can make, like, walk cycles, poses, stuff like that. 67 00:04:31,860 --> 00:04:36,320 In our case, we're going to link that up to the OSC data coming in to actually get poses. 68 00:04:37,560 --> 00:04:40,180 So let me pull this back and we'll demo. 69 00:04:40,760 --> 00:04:42,280 This guy is called Super Harmer. 70 00:04:46,820 --> 00:04:48,440 So it's running a little slow. 71 00:04:49,200 --> 00:04:50,120 It gets better. 72 00:04:51,360 --> 00:04:52,580 Let me do this again. 73 00:04:57,720 --> 00:04:59,280 Still a little buggy, Blender. 74 00:05:01,180 --> 00:05:01,540 Okay. 75 00:05:01,680 --> 00:05:02,160 That's better. 76 00:05:02,480 --> 00:05:04,400 So it's real time, joint data you can see. 77 00:05:04,860 --> 00:05:05,920 Arms are kind of the best. 78 00:05:06,060 --> 00:05:07,080 Legs are a little twitchy. 79 00:05:07,540 --> 00:05:10,500 So I don't really have them doing too much because I'm not a dancer. 80 00:05:11,940 --> 00:05:13,240 But you can move your arms around. 81 00:05:13,420 --> 00:05:14,680 The head is also a little twitchy. 82 00:05:14,840 --> 00:05:19,060 And then so from the basis of the, and the reason I wanted to show you the bone stuff in there, 83 00:05:19,120 --> 00:05:20,560 because that becomes the basis for gestures. 84 00:05:20,680 --> 00:05:24,120 So there's going to be a flex gesture later when we get into the game environment. 85 00:05:24,740 --> 00:05:25,460 And so it's going to be a flex gesture. 86 00:05:25,480 --> 00:05:28,160 So that's this bone, 90 degrees to X. 87 00:05:28,400 --> 00:05:30,540 So you can start to recognize all kinds of gestures. 88 00:05:31,180 --> 00:05:35,060 So let's jump into the Connect Disploid environment. 89 00:05:38,280 --> 00:05:39,820 So this is Connect Disploid. 90 00:05:39,880 --> 00:05:43,400 It's a first person shooter game environment. 91 00:05:43,700 --> 00:05:44,580 It's kind of minimalist. 92 00:05:44,780 --> 00:05:45,980 There's only a couple of rooms in it. 93 00:05:46,000 --> 00:05:46,820 We only used one room. 94 00:05:47,080 --> 00:05:52,960 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. 95 00:05:53,100 --> 00:05:55,040 And he gave me permission to use it, to use the background. 96 00:05:55,600 --> 00:05:57,220 Anyways, for this demo. 97 00:05:57,680 --> 00:06:00,420 So let's jump in and I'll show you the gestures. 98 00:06:01,600 --> 00:06:04,800 The first thing it's going to do when we start up is make a connection to Metasploit. 99 00:06:04,980 --> 00:06:07,040 I've got Metasploit running over here. 100 00:06:07,800 --> 00:06:09,580 And a victim box. 101 00:06:09,900 --> 00:06:13,580 And it's going to announce it and then we'll start going through the owning of the computer. 102 00:06:15,080 --> 00:06:16,320 Connect Disploid initiated. 103 00:06:17,600 --> 00:06:19,600 So I'm already recognized from OS Elton. 104 00:06:19,800 --> 00:06:24,240 And there's the little super hammer and what's called a heads up display in the Blender. 105 00:06:24,240 --> 00:06:26,740 So it's just mapping two scenes on top of each other. 106 00:06:26,860 --> 00:06:32,340 And you can see we've got our real time running Metasploit console output up in the top. 107 00:06:32,540 --> 00:06:36,760 So some of the initial gestures are if you move forward, you go forward. 108 00:06:37,260 --> 00:06:39,340 Or you lean backwards, you go backwards. 109 00:06:39,740 --> 00:06:41,100 Lean to the left, you go left. 110 00:06:41,240 --> 00:06:42,680 Lean to the right, you go right. 111 00:06:43,520 --> 00:06:47,040 And then if you want to get a look around the room, just rotate your hips. 112 00:06:47,400 --> 00:06:49,080 And like I said, this is a training environment. 113 00:06:49,160 --> 00:06:53,480 So we've got some inspirational posters on the wall here to get us. 114 00:06:55,040 --> 00:06:58,580 Get us a little in the mood to do some pwning. 115 00:07:00,380 --> 00:07:01,760 The more you pwne, the more you know. 116 00:07:02,560 --> 00:07:04,820 And of course the last poster, ICBM. 117 00:07:05,000 --> 00:07:08,620 Now you could also, this door here, you could move yourself through the door and all that. 118 00:07:08,680 --> 00:07:11,820 I won't go through all the rooms because this is the main room that we want to deal with. 119 00:07:12,140 --> 00:07:15,340 The idea would be room equals an IP range. 120 00:07:16,760 --> 00:07:18,980 Just a local IP range on my box in this case. 121 00:07:19,600 --> 00:07:23,060 So to get into actually using this to drive tools. 122 00:07:24,240 --> 00:07:25,920 Of course you've got to scan to find them first. 123 00:07:26,040 --> 00:07:30,920 So the scanning gesture is both hands up to your forehead like you were scanning the horizon. 124 00:07:31,360 --> 00:07:32,220 So we'll do that. 125 00:07:32,680 --> 00:07:36,820 And it gives you a countdown because scanning announces your presence. 126 00:07:37,300 --> 00:07:38,220 And when it's done... 127 00:07:38,940 --> 00:07:39,380 . 128 00:07:41,120 --> 00:07:41,560 . 129 00:07:41,560 --> 00:07:41,720 . 130 00:07:41,720 --> 00:07:41,900 . 131 00:07:41,900 --> 00:07:41,980 . 132 00:07:41,980 --> 00:07:42,300 . 133 00:07:42,300 --> 00:07:42,500 . 134 00:07:42,500 --> 00:07:42,780 . 135 00:07:55,980 --> 00:07:56,420 . 136 00:08:02,760 --> 00:08:03,200 . 137 00:08:03,820 --> 00:08:04,260 . 138 00:08:04,260 --> 00:08:04,360 . 139 00:08:04,360 --> 00:08:04,400 . 140 00:08:04,400 --> 00:08:04,500 . 141 00:08:04,500 --> 00:08:04,540 . 142 00:08:04,540 --> 00:08:04,960 . 143 00:08:04,960 --> 00:08:05,000 . 144 00:08:05,000 --> 00:08:05,380 . 145 00:08:05,380 --> 00:08:05,420 . 146 00:08:05,420 --> 00:08:05,480 . 147 00:08:05,480 --> 00:08:05,700 . 148 00:08:05,700 --> 00:08:06,240 . 149 00:08:07,760 --> 00:08:08,200 . 150 00:08:08,860 --> 00:08:13,840 So these are two computers that we found, victims, that we can attack. 151 00:08:14,540 --> 00:08:18,760 And I was talking to my daughter about this, because first person shooter, you have a gun 152 00:08:18,760 --> 00:08:20,380 that you can use to target things. 153 00:08:20,680 --> 00:08:25,240 And she's like, well, maybe you can just use your gun gun, the flexing gun, like cock your 154 00:08:25,240 --> 00:08:25,720 gun gesture. 155 00:08:25,880 --> 00:08:28,460 So that's the gesture to target one of these guys. 156 00:08:28,580 --> 00:08:32,980 So you do a flex and touch your shoulder and elbow, like in a cocking motion, and you get 157 00:08:32,980 --> 00:08:33,640 a targeting ring. 158 00:08:38,860 --> 00:08:39,660 Target acquired. 159 00:08:45,680 --> 00:08:46,740 So there we go. 160 00:08:52,380 --> 00:08:52,940 Thank you. 161 00:08:53,600 --> 00:08:55,100 If you like that, you're really going to love this. 162 00:08:55,380 --> 00:09:02,080 So the last gesture in this thing is the only one I could come up with for owning a box. 163 00:09:02,080 --> 00:09:05,780 It's the, well, the French have a word that I can't say for it, but it's called arm of 164 00:09:05,780 --> 00:09:08,620 honor, if my translation is right. 165 00:09:08,780 --> 00:09:09,320 It's this. 166 00:09:18,880 --> 00:09:23,840 So this guy's having DB Autopone run against him, and this is my idea of what DB Autopone 167 00:09:23,840 --> 00:09:24,440 sounds like. 168 00:09:24,620 --> 00:09:27,120 It's a mixture of bats and the Skype feedback sound. 169 00:09:29,020 --> 00:09:32,060 I'll have to find someone who has a better idea of what that should actually sound like. 170 00:09:32,060 --> 00:09:37,800 If you keep your eye on the Metasploit console interface up there, you'll see it'll announce 171 00:09:37,800 --> 00:09:41,580 the modules that it's launching after it gets done looking for what it could possibly use 172 00:09:41,580 --> 00:09:46,580 against this thing, and the animation happening is, you know, it's kind of blowing his brains 173 00:09:46,580 --> 00:09:52,760 out as we're auto-poning it, and if all goes well, we'll get sessions, and that's the 174 00:09:52,760 --> 00:09:54,100 end of what we can do so far. 175 00:09:57,120 --> 00:09:58,640 We've got five modules left. 176 00:09:59,320 --> 00:09:59,780 Two. 177 00:10:00,480 --> 00:10:00,940 Sessions. 178 00:10:00,940 --> 00:10:01,200 Sessions. 179 00:10:05,200 --> 00:10:06,200 So there you go. 180 00:10:13,660 --> 00:10:14,380 Thank you. 181 00:10:14,440 --> 00:10:18,040 So those, I'll get out of the game and show you their actual real live sessions in Metasploit. 182 00:10:18,220 --> 00:10:22,640 But the next idea that I got for this one, this doesn't work yet, will be that you march 183 00:10:23,100 --> 00:10:26,760 up to this thing and then do through some gesture, maybe hopping or something, you launch 184 00:10:26,760 --> 00:10:28,080 yourself into the computer. 185 00:10:28,300 --> 00:10:30,820 That becomes a different scene than that you could use to drive. 186 00:10:30,820 --> 00:10:33,760 You know, one of them are interpreter sessions that you got in there. 187 00:10:36,660 --> 00:10:42,500 So like I said, there are real sessions, two of them in there, and that is Connect 188 00:10:42,500 --> 00:10:42,740 Display. 189 00:10:43,280 --> 00:10:43,920 Thank you very much.