1 00:00:00,000 --> 00:00:03,900 So this is Connect Disploy version 2. Thank you guys for 2 00:00:03,900 --> 00:00:08,040 coming out so early on a Sunday. Actually survived the con and 3 00:00:08,040 --> 00:00:11,760 made it to the end of the thing. So this is version 2. It did 4 00:00:11,760 --> 00:00:15,340 version 1 last year. Anybody here for that talk? You want to 5 00:00:15,340 --> 00:00:20,020 show up? Cool. Excellent. Thank you guys for coming back. So 6 00:00:20,540 --> 00:00:27,480 version 1 was just the Connect plus one security tool. And what 7 00:00:27,480 --> 00:00:30,720 we're doing this year is the Connect plus 20 security tools 8 00:00:30,720 --> 00:00:34,380 or 20 tools in general to run a scenario. So our scenario is 9 00:00:34,380 --> 00:00:37,660 going to be we're using a real time 3D first person shooter game 10 00:00:37,660 --> 00:00:41,860 environment to collect the contents of a garbage file off 11 00:00:41,860 --> 00:00:46,080 of a server. So that should sound familiar to some of you, 12 00:00:46,140 --> 00:00:49,960 to most of you. So let me cover just a little bit about the 13 00:00:49,960 --> 00:00:52,180 architecture. We're going to run right into it because there's 14 00:00:52,180 --> 00:00:55,360 no slides. It's all demo. So everyone needs to, while I'm 15 00:00:55,360 --> 00:00:57,360 doing this, say a quick little prayer to whatever demo 16 00:00:57,360 --> 00:01:00,440 god you believe in to make sure that this thing actually 17 00:01:00,440 --> 00:01:03,740 functions. I've been testing it all week. That's the bad part 18 00:01:03,740 --> 00:01:06,560 about doing a talk on Sunday is that you spend the entire con 19 00:01:06,560 --> 00:01:09,260 like practicing and working on your talk and making brand new 20 00:01:09,260 --> 00:01:11,780 mistakes so that you're nervous as hell when you actually finally 21 00:01:11,780 --> 00:01:15,840 get a chance to do it. So that's my state right now. So 22 00:01:15,840 --> 00:01:20,000 architecture wise, everything is on this laptop. So the version 23 00:01:20,000 --> 00:01:23,260 1, the big differences here were that it was Blender using 24 00:01:24,000 --> 00:01:27,340 Metasploit's RPC server to talk to the server. So you can see 25 00:01:27,360 --> 00:01:29,720 when you want to talk to Metasploit, only Metasploit, but 26 00:01:29,720 --> 00:01:33,760 you know, when you want to talk to Snort and Nessus and Edercap 27 00:01:33,760 --> 00:01:37,460 and Nmap and all those other guys, there's no RPC server for 28 00:01:37,460 --> 00:01:41,960 that. So I wrote an asynchronous multi-threaded XML RPC server 29 00:01:42,500 --> 00:01:45,080 that Blender is talking to that then talks to all the external 30 00:01:45,500 --> 00:01:47,380 tools. And, again, everything is on this laptop. There's a 31 00:01:47,380 --> 00:01:51,620 couple VMs that we're going to use as our victim systems. And 32 00:01:51,620 --> 00:01:54,280 there's one external function to go out to the Internet. You'll 33 00:01:54,280 --> 00:01:57,340 see that later on. So let's run it. 34 00:01:57,360 --> 00:02:00,120 I'm running right into it here. Give me just a second to get 35 00:02:00,120 --> 00:02:12,400 this going. Okay. We've got the connector. Let me get myself all 36 00:02:12,400 --> 00:02:15,500 calibrated. And you should be seeing and you are seeing the 37 00:02:15,500 --> 00:02:19,500 Blender screen interface. And that's just taking a little bit 38 00:02:19,500 --> 00:02:23,600 to start up because it's got some large sound files and needs 39 00:02:23,600 --> 00:02:26,940 to process. Connect to exploit initiated. 40 00:02:28,320 --> 00:02:31,820 Okay. Let's run it and actually let me just leave it like that 41 00:02:31,820 --> 00:02:34,700 for now. It's showing the debug stuff up in the top. But we'll 42 00:02:34,700 --> 00:02:38,480 deal with that for now. I could restart it. But we'll lose some 43 00:02:38,480 --> 00:02:42,340 output in some later scenes. So this is the default room where 44 00:02:42,340 --> 00:02:45,500 you start off on. And the main gestures are the same as last 45 00:02:45,500 --> 00:02:48,120 year for you guys who saw this. So you lean forward. You move 46 00:02:48,120 --> 00:02:50,780 forward in the room. You lean to the right. You move to the 47 00:02:50,780 --> 00:02:53,760 right. You lean to the left. Go that way. And if you rotate your 48 00:02:53,760 --> 00:02:57,340 hips, you'll turn around in the room. So that's a little bit of a 49 00:02:57,340 --> 00:03:01,040 change. So this was meant to be patterned after the room in a 50 00:03:01,040 --> 00:03:03,480 matrix. Like the training room, big white room kind of thing 51 00:03:03,480 --> 00:03:07,540 where then the big cabinets full of guns came shooting in. So 52 00:03:07,540 --> 00:03:09,940 that's the first gesture that we're going to do to bring in the 53 00:03:09,940 --> 00:03:12,020 way that we get to the other rooms in there and actually start 54 00:03:12,020 --> 00:03:16,880 our attack scenario looking for this garbage file. So last year 55 00:03:16,880 --> 00:03:19,940 also the big differences are last year every gesture was like 56 00:03:20,300 --> 00:03:23,640 when the gesture fired, when I made the gesture, it did. There 57 00:03:23,640 --> 00:03:27,140 was no delay. So you run the risk of when you're hooked up to 20 58 00:03:27,340 --> 00:03:31,300 different things causing some serious chaos. So this year the 59 00:03:31,300 --> 00:03:34,560 gestures, there's a little bit of delay before they happen and 60 00:03:34,560 --> 00:03:36,320 there's an indication that you're actually causing 61 00:03:36,320 --> 00:03:39,520 something. So if you continue to do it, you will cause something 62 00:03:39,520 --> 00:03:42,280 to happen. So I'm going to raise my hand in like a help gesture 63 00:03:42,280 --> 00:03:45,120 and I want you to notice the lights that show up on there to 64 00:03:45,120 --> 00:03:49,320 indicate that you're about to do something. So put my hand on the 65 00:03:49,320 --> 00:03:51,300 thing. The lights light up. They're going to turn green when 66 00:03:51,300 --> 00:03:55,000 the gesture fires. And in comes our cabinet full of ammo 67 00:03:55,000 --> 00:03:56,240 essentially that we've got. 68 00:04:03,020 --> 00:04:05,120 So we're going to start off our attack against this 69 00:04:05,120 --> 00:04:09,060 fictitious company by going into the wireless room. So you go into a 70 00:04:09,060 --> 00:04:13,340 room just by putting your hand into the cabinet. Now we're in the 71 00:04:13,340 --> 00:04:17,080 wireless room. Scanning in the wireless room is of course the 72 00:04:17,080 --> 00:04:18,900 first thing you do is scan for access points. So we're going to 73 00:04:18,900 --> 00:04:22,440 run IWList scan just by doing our scanning gesture which is like 74 00:04:22,440 --> 00:04:26,320 scanning the horizon and then we should be scanning. Scanning 75 00:04:26,320 --> 00:04:27,320 initiated. Scanning initiated. Scanning initiated. Scanning 76 00:04:27,340 --> 00:04:28,100 initiated. And you actually get access points from our mind. 77 00:04:33,660 --> 00:04:36,840 So this will take a little bit here. Let me just cop to 78 00:04:36,840 --> 00:04:40,280 something. There's obviously no access points here on stage. When 79 00:04:40,280 --> 00:04:42,900 I was originally thinking about this. Refreshing access points. 80 00:04:43,200 --> 00:04:46,140 I was like, oh, you know, I'll bring a real live access point 81 00:04:46,140 --> 00:04:49,460 to DEF CON. I'll be a real man and hack it live on stage. And I 82 00:04:49,460 --> 00:04:52,580 thought twice about that. And I thought, well, if I did that, 83 00:04:52,660 --> 00:04:55,220 I'm sure you guys would hack it before I ever got a chance to. 84 00:04:56,580 --> 00:04:57,320 So these are the things that I wanted to do. So, as you can see, 85 00:04:57,320 --> 00:05:01,640 are real live access points. They're just not real live access points here on stage. So this 86 00:05:01,640 --> 00:05:06,240 is real live output. It's just sort of think of it as a cooking show, you know, when they always 87 00:05:06,240 --> 00:05:11,000 have a lasagna in the oven that's already been cooked. That's exactly this scenario. It's just 88 00:05:11,000 --> 00:05:17,820 same real live output. And I should explain what these things are. So when I thought about how to 89 00:05:17,820 --> 00:05:24,600 represent an access point, when I was a kid, we had this little toy that was like a plastic bubble 90 00:05:24,600 --> 00:05:29,280 on a little wood platform with wheels on it and a stick. And you push it around, there are little 91 00:05:29,280 --> 00:05:33,480 balls in it that would pop up and down. I'm sure some of you guys have played with or have seen 92 00:05:33,480 --> 00:05:37,360 the same thing. And to me that's what an access point is. It's like a little thing that's trying 93 00:05:37,360 --> 00:05:42,100 to self-contain its packets but they fly all over the place. So these are kind of purposely messy 94 00:05:42,100 --> 00:05:50,220 and they're dropping packets all over the place. So the way you target things in Connect 95 00:05:50,220 --> 00:05:54,220 Disploid, of course, is with a fireball. So we're going to shoot a fireball at this Quest 96 00:05:54,220 --> 00:05:54,580 8. We're going to shoot a fireball at this Quest 8. We're going to shoot a fireball at this Quest 97 00:05:54,580 --> 00:06:05,520 18. The other construct here is that we use the walls in the various rooms to help interface 98 00:06:05,520 --> 00:06:09,500 with stuff because you can't just do gestures for everything at some point in time. I mean, 99 00:06:09,520 --> 00:06:15,120 hacking tools are text-oriented. At some point in time you got to deal with text. So the left-most 100 00:06:15,120 --> 00:06:19,560 part is always a context, the right-most part is menu options. There are always context-sensitive 101 00:06:19,560 --> 00:06:24,560 menus. So, like, in this case, we've selected an access point so I can choose to dump the 102 00:06:24,560 --> 00:06:27,000 the packets of that, which of course is the first stage of an 103 00:06:27,000 --> 00:06:30,860 attack. So if you've noticed now the packets out of that Quest 104 00:06:30,860 --> 00:06:36,720 1824 are coming to me rather than going where it was they 105 00:06:36,720 --> 00:06:40,280 were going prior to that. So again, obviously we're not 106 00:06:40,280 --> 00:06:44,880 really pulling packets down off an access point, but we are 107 00:06:44,880 --> 00:06:47,860 going to use a PCAP file that was the result of this exact 108 00:06:47,860 --> 00:06:52,440 process. So when it's done, it shows you some PCAP files that 109 00:06:52,440 --> 00:06:55,700 you've got to choose from and we're going to choose this top 110 00:06:55,700 --> 00:06:58,960 one up here and we're going to run error crack against it and 111 00:06:58,960 --> 00:07:03,740 see if we can crack the web key out of this 1824. So it knows 112 00:07:03,740 --> 00:07:06,200 we've chosen a PCAP file. It doesn't know which access point 113 00:07:06,200 --> 00:07:09,780 we want to crack, so there's no option to do it. So we're going 114 00:07:09,780 --> 00:07:12,040 to target it again, shoot another fireball and it gives 115 00:07:12,040 --> 00:07:16,240 us the option to crack web with PCAP. So that's what we're 116 00:07:16,240 --> 00:07:21,580 going to do. Choose that menu option. It doesn't do much 117 00:07:21,580 --> 00:07:22,420 because it doesn't take very long. So let's go ahead and 118 00:07:22,420 --> 00:07:27,460 check. So if it works, it's going to show the key as part 119 00:07:27,460 --> 00:07:31,220 of the access point itself. Refreshing access points. 120 00:07:32,320 --> 00:07:35,200 So hopefully you can see there's now a little key icon on 121 00:07:35,200 --> 00:07:38,880 that particular access point, denoting that we've got access 122 00:07:38,880 --> 00:07:42,040 to that particular network. So we're done in this room. That's 123 00:07:42,040 --> 00:07:44,520 all we need to do for wireless hacking. That gets us access to 124 00:07:44,520 --> 00:07:50,800 the network that we're going to use. And let me set something up 125 00:07:50,800 --> 00:07:52,400 here by, first of all, let me give you a little bit of an 126 00:07:52,420 --> 00:07:55,540 I want to see if this works. Of course, there's Twitter. You 127 00:07:55,540 --> 00:07:57,560 can't be a security person without having some sort of 128 00:07:57,560 --> 00:08:01,680 access to Twitter. And the reason I want to go in here is 129 00:08:01,680 --> 00:08:04,720 that later on we're going to come back here and actually get 130 00:08:04,720 --> 00:08:06,800 some hashtags for Connect Disploy. So if you want to tweet 131 00:08:06,800 --> 00:08:10,680 something about Connect Disploy, now is the time to do 132 00:08:10,680 --> 00:08:13,860 it. We'll come back later and see what you guys said or what 133 00:08:13,860 --> 00:08:17,360 there is to see. So this is just some tweets out of my 134 00:08:17,360 --> 00:08:22,720 timeline. So what this has done is grabbed 20 or was it 10? 10, 135 00:08:22,840 --> 00:08:26,480 I guess, tweets just out of my timeline. And, of course, the 136 00:08:26,480 --> 00:08:30,660 way you see things, it tried to replace the icons in real time 137 00:08:30,660 --> 00:08:33,320 with whoever happens to be out there. You can see the first one 138 00:08:33,320 --> 00:08:35,600 it missed. But let's see who that is. You shoot a fireball at them 139 00:08:35,600 --> 00:08:39,900 to see what they said and it shows up on the outside of that. 140 00:08:40,100 --> 00:08:42,700 Oops. I got a bug where sometimes you can go through 141 00:08:42,700 --> 00:08:46,600 walls. Let's see one more and then we'll get out of here. 142 00:08:47,480 --> 00:08:50,660 Oh, yeah. The good old Daily Show. Okay. Now let's go back to 143 00:08:50,660 --> 00:08:52,760 the home. But we'll come back to Twitter in a little bit. So if 144 00:08:52,760 --> 00:08:56,080 you want to show up there, tweet something about Connect 145 00:08:56,080 --> 00:09:00,740 Disploy. And one more thing I wanted to show you before we 146 00:09:00,740 --> 00:09:03,360 kind of move on to there, there's a perch, what I'm 147 00:09:03,360 --> 00:09:08,280 calling a perch anyway. Perch. That gets you kind of an 148 00:09:08,280 --> 00:09:11,640 overview of the entire world. So this is the world of Connect 149 00:09:11,640 --> 00:09:14,340 Disploy version 2. You can see all the rooms at once and you 150 00:09:14,340 --> 00:09:17,340 kind of lord over top of them, if you will. So this is the 151 00:09:17,360 --> 00:09:20,640 world of Connect Disploy. And so you can see that first room 152 00:09:20,640 --> 00:09:22,560 over there was the room we started. We got the wireless 153 00:09:22,560 --> 00:09:25,240 access room. We got the Twitter room. And then the reason I 154 00:09:25,240 --> 00:09:28,020 wanted to show you this, this room over here, just kind of the 155 00:09:28,800 --> 00:09:32,900 far right-hand corner is the snort room. So snort's role in 156 00:09:32,900 --> 00:09:35,500 this whole thing is to kind of be our visibility monitor, 157 00:09:35,820 --> 00:09:38,600 right? So instead of usually snorts what the defensive guys 158 00:09:38,600 --> 00:09:41,280 use, in this case the attacking guy is going to use it to let 159 00:09:41,280 --> 00:09:45,760 us know, are we tripping anything? Based on what we've 160 00:09:45,760 --> 00:09:47,340 done, are we showing up on someone's right-hand corner or 161 00:09:47,360 --> 00:09:49,540 radar? And we'll go into the snort room a little later after 162 00:09:49,540 --> 00:09:51,160 there's some more stuff. But you can see there's kind of a 163 00:09:51,160 --> 00:09:55,660 rotating barrel that refreshes itself every 30 seconds. There's 164 00:09:55,660 --> 00:09:58,280 more, there's a barrel per category of alerts. So there's 165 00:09:58,280 --> 00:10:01,120 four alert categories in snort. We're only going to worry about 166 00:10:01,120 --> 00:10:05,700 the top three. So if you see a red, really fast rotating barrel 167 00:10:05,700 --> 00:10:07,640 in snort, you know you've done something that's going to trip 168 00:10:07,640 --> 00:10:11,780 somebody's IDS signatures. So that's the idea behind that. So 169 00:10:11,780 --> 00:10:15,160 let's get out of the perch and back into the home. And we're 170 00:10:15,160 --> 00:10:17,340 going to go into NMAP and take a look at this. So we're going to 171 00:10:17,360 --> 00:10:20,640 do this network that we just got access to from the wireless 172 00:10:20,640 --> 00:10:26,620 access points. So we list the networks to get an idea of what 173 00:10:26,620 --> 00:10:33,640 we can see. And so we've got a couple different points here. 174 00:10:33,740 --> 00:10:36,920 Obviously I'm not going to attack myself. This middle one 175 00:10:36,920 --> 00:10:38,860 is DEFCON. I don't want to attack that. I'm going to 176 00:10:38,860 --> 00:10:44,700 attack 100.0, which is our victim VM. Let me do it again. 177 00:10:47,360 --> 00:10:49,680 Should get the little tick sound every time you select 178 00:10:49,680 --> 00:10:52,120 something just to let you know that you've picked it. And again, 179 00:10:52,180 --> 00:10:55,980 it's kind of purposefully slow there. I'm delaying gestures on 180 00:10:55,980 --> 00:10:58,540 purpose just to make sure that you're not accidentally picking 181 00:10:58,540 --> 00:11:03,140 a menu option without meaning it. So that's why it's changing 182 00:11:03,140 --> 00:11:08,900 color and delaying and all that stuff. So this is running an 183 00:11:08,900 --> 00:11:14,420 NMAP scan against that network. And it didn't take long at all 184 00:11:14,420 --> 00:11:17,340 because NMAP is quick, especially on a local box. So 185 00:11:17,360 --> 00:11:22,620 what this did was go out and run NMAP against that CIDR mask and 186 00:11:22,620 --> 00:11:25,580 pull back all the data in an XML file, parse the XML file, spit 187 00:11:25,580 --> 00:11:30,580 out some representations of computers, run it through graph 188 00:11:30,580 --> 00:11:34,180 viz and then made a graph for us of the trace route of that 189 00:11:34,180 --> 00:11:37,200 network. Obviously it's not a very large network. It's only 190 00:11:37,200 --> 00:11:40,100 got three boxes. But you get the idea, right? So you get a 191 00:11:40,100 --> 00:11:42,820 graphical view of the network that you're dealing with and you 192 00:11:42,820 --> 00:11:45,600 get some hosts out in the room. They're scrolling their ports 193 00:11:45,600 --> 00:11:47,340 that are open is the construct. So you get a graphical view of 194 00:11:47,360 --> 00:11:51,180 the network here. So 101 is us. It's our scanner. 107 looks like 195 00:11:51,180 --> 00:11:56,000 a Windows box. 139, 445. And then 100.8 looks like it's doing 196 00:11:56,000 --> 00:12:00,320 some web services and 2222 is probably a Linux box. Target 197 00:12:00,320 --> 00:12:02,340 acquired. We're going to target that guy, of course, by 198 00:12:02,340 --> 00:12:08,200 shooting fireballs because fireballs are fun. And the best 199 00:12:08,200 --> 00:12:11,960 thing I know to get a handle on those Windows boxes is by 200 00:12:11,960 --> 00:12:16,500 attacking with Nessus. So we're going to go to Nessus. Nessus is 201 00:12:17,360 --> 00:12:22,980 the hospital room. So that's the construct here because we're 202 00:12:22,980 --> 00:12:26,820 going to dig into this guy and see what secrets he's got when he 203 00:12:26,820 --> 00:12:31,700 wants to give up. So if I can get over here. Come on. There's 204 00:12:31,700 --> 00:12:35,880 two switches on the end of the operating table for Nessus. This 205 00:12:35,880 --> 00:12:38,020 one brings our victim into the room. 206 00:12:47,360 --> 00:12:51,380 And this other one. Nessus scan initiated. Nessus scan, like it 207 00:12:51,380 --> 00:12:57,100 says. Like the nice lady. Nessus scan completed. So if you've 208 00:12:57,100 --> 00:12:59,700 ever run Nessus, you know it doesn't complete that fast. So I 209 00:12:59,700 --> 00:13:04,300 will cop to another cooking show portion of this thing. I 210 00:13:04,300 --> 00:13:06,460 actually don't have Nessus loaded on here. But there is an 211 00:13:06,460 --> 00:13:09,420 integration in Nessus that is a real live Nessus scan from that 212 00:13:09,420 --> 00:13:12,900 box. It's just the XML file and kind of replaying because if 213 00:13:12,900 --> 00:13:14,940 you're on Nessus, you know it takes like five or ten minutes 214 00:13:14,940 --> 00:13:17,340 per host. And I don't want you guys staring at me for five or 215 00:13:17,360 --> 00:13:22,820 ten minutes. I like you and all. So I need to warn you just so 216 00:13:22,820 --> 00:13:27,160 you're ready for this because it's a weird thing how you can't 217 00:13:27,160 --> 00:13:30,240 hear it until somebody tells you to listen to it. So what's going 218 00:13:30,240 --> 00:13:31,960 to happen here is I'm going to select one of these 219 00:13:31,960 --> 00:13:34,600 vulnerabilities that we're going to dig into. We want to be 220 00:13:34,600 --> 00:13:36,840 stealthy. So we're not going after the MS1s. We're not just 221 00:13:36,840 --> 00:13:40,360 going to pop shell on a Windows box using, you know, an 222 00:13:40,360 --> 00:13:43,900 interpreter or a exploit. We're going to go after this shares 223 00:13:43,900 --> 00:13:47,340 unprivileged access, which is Nessus speak first. So we're 224 00:13:47,360 --> 00:13:50,400 going to open share. But when I select it, it's going to read you 225 00:13:50,400 --> 00:13:53,680 the output of the Nessus vulnerability or the Nessus 226 00:13:53,680 --> 00:13:56,540 description. But if you're not ready, you won't hear it. So 227 00:13:56,540 --> 00:14:02,080 listen. The following shares can be accessed as a BPIWMGN. 228 00:14:02,420 --> 00:14:08,140 File as readable plus content of this share. Test.TXT 229 00:14:08,140 --> 00:14:14,480 troubleshooting.PCAP. Okay. So we've got two files 230 00:14:14,480 --> 00:14:17,340 accessible on our open share, if you heard it. We're going to 231 00:14:17,360 --> 00:14:20,080 run it. And one of them is a PCAP file. So I don't know about 232 00:14:20,080 --> 00:14:22,580 you guys. Whenever I find a PCAP file and a pen test, first thing 233 00:14:22,580 --> 00:14:25,280 I want to do is run it past intercap to see if there's 234 00:14:25,280 --> 00:14:27,700 anything in there I can use. So that's what we're going to do. 235 00:14:27,760 --> 00:14:30,880 We're going to package this up. And this puts it in a little 236 00:14:30,880 --> 00:14:33,460 ammo box that's going to follow us around kind of like Thor's 237 00:14:33,460 --> 00:14:38,780 hammer. So it attaches to our hand. And the fun thing is you 238 00:14:38,780 --> 00:14:41,440 can kind of outrun it. You can go faster. And then it will 239 00:14:42,360 --> 00:14:46,800 catch up to you. So it's going to follow us around to the rest of 240 00:14:47,360 --> 00:14:48,660 the world. So it's going to sit here until we get rid of it, 241 00:14:48,700 --> 00:14:51,720 which we're going to do shortly. So you know, it's gone. It's 242 00:14:51,720 --> 00:14:54,200 trying to find me and it's running through walls and all 243 00:14:54,200 --> 00:14:57,120 that stuff right now. And it's going to catch up to us in the 244 00:14:57,120 --> 00:15:03,700 intercap. Intercap. You can. There's no reason why you 245 00:15:03,700 --> 00:15:07,220 couldn't in this particular thing so far. The question was, 246 00:15:07,260 --> 00:15:09,200 sorry, I should repeat the question. The question was can 247 00:15:09,200 --> 00:15:11,880 you carry multiple containers? And, yeah, you can. There's 248 00:15:11,880 --> 00:15:15,560 absolutely nothing stopping you from doing that. In this case, 249 00:15:15,580 --> 00:15:17,340 one at a time is really all I need to do. So I'm going to do 250 00:15:17,360 --> 00:15:20,020 something for this particular scenario. And that took a long 251 00:15:20,020 --> 00:15:25,160 time to get that to happen. So I don't have more than one. But 252 00:15:25,160 --> 00:15:28,400 when I came into the intercap room, it knew, because this 253 00:15:28,400 --> 00:15:31,440 container exists in the scene, that I had a target, that I had 254 00:15:31,440 --> 00:15:35,560 a vulnerability. And so it gave me a menu option to target that 255 00:15:35,560 --> 00:15:37,920 guy. So intercap for me, the hard part of this thing is how 256 00:15:37,920 --> 00:15:39,960 do you represent all these various tools that don't have a 257 00:15:39,960 --> 00:15:44,260 physical manifestation? Intercap is a big swirling death. So 258 00:15:45,060 --> 00:15:47,340 that's what it is. So we're going to send this to the 259 00:15:47,360 --> 00:15:49,840 intercap. Another thing to listen for, listen to the sad 260 00:15:49,840 --> 00:15:52,660 tone in her voice. I didn't tell her to do this, but she sounds so 261 00:15:52,660 --> 00:16:00,840 sad when she says this. Target sent to intercap. Intercap 262 00:16:00,840 --> 00:16:06,200 exploiting phone. Intercap finished. It sounds so sad, 263 00:16:06,340 --> 00:16:12,060 doesn't it? So what happened just then? We knew we had an open 264 00:16:12,060 --> 00:16:16,760 SMB share. So there's a script attached to that that knows if 265 00:16:17,360 --> 00:16:19,820 we're going to run an SMB share, SMB client, pull down files, if 266 00:16:19,820 --> 00:16:23,020 there's a PCAP file, send it to intercap. Intercap parses it and 267 00:16:23,020 --> 00:16:26,000 spits out any credentials that it happens to find. So now we've 268 00:16:26,000 --> 00:16:29,720 got creds that we can go use. So let's go back and root. 269 00:16:29,920 --> 00:16:37,140 Sounds like a Linux box. So let's go to our Nessus area. Or 270 00:16:37,140 --> 00:16:40,140 I'm sorry, the map area. Which is where we pick targets that 271 00:16:40,140 --> 00:16:42,880 we're interested in. And we've got, oops, get back over here. 272 00:16:43,060 --> 00:16:45,560 So we've got the Windows guy targeted. It's untarget him. 273 00:16:45,840 --> 00:16:46,620 Target acquired. 274 00:16:47,360 --> 00:16:49,100 Target acquired. Target acquired. 275 00:16:51,020 --> 00:16:58,800 Gone crazy. Let's untarget this guy. Come on. Okay. And let's 276 00:16:58,800 --> 00:17:01,400 be accurate and target this guy. Target acquired. 277 00:17:02,300 --> 00:17:05,440 Targeting is important in games. And it's also important 278 00:17:05,440 --> 00:17:10,280 in this game. So we had a guy with ADN 443 open and we have 279 00:17:10,280 --> 00:17:14,720 some credentials. Let's go to the web room and see what we can 280 00:17:14,720 --> 00:17:17,340 do for those. So here's our target. Came with us. We've got 281 00:17:17,360 --> 00:17:20,720 this into the web room. Let's scan him for URLs. This is just 282 00:17:20,720 --> 00:17:23,400 going to run WGET against him and see what we can find. 283 00:17:24,500 --> 00:17:26,160 Data URLs completed. 284 00:17:27,560 --> 00:17:30,660 Sounds like it's, it announces when it does something, 285 00:17:30,760 --> 00:17:32,660 announces when it's done. So if they happen almost 286 00:17:32,660 --> 00:17:34,840 simultaneously, it sounds like that. Where it kind of came 287 00:17:34,840 --> 00:17:37,060 over the top of itself. So you can see we didn't really get 288 00:17:37,060 --> 00:17:39,420 much, right? So let's use our credentials that we just got 289 00:17:39,420 --> 00:17:42,820 from intercap. It gives us this option because it notices that we 290 00:17:42,820 --> 00:17:46,180 have credentials. And it just ticks on, I'm going to use 291 00:17:46,180 --> 00:17:47,340 credentials, kind of a Boolean. I'm going to use credentials to 292 00:17:47,360 --> 00:17:50,340 be flagged. And let's scan again. Gathering URLs. 293 00:17:51,680 --> 00:17:54,540 Gathering URLs completed. So now we've got quite a bit more. 294 00:17:54,700 --> 00:17:58,320 So let's just WGET using those credentials that we had. And 295 00:17:58,320 --> 00:18:00,640 there's a whole list of URLs. We can scan through them. The 296 00:18:00,640 --> 00:18:02,800 gesture for that is you put your left hand behind you a 297 00:18:02,800 --> 00:18:06,140 little bit and then you do kind of a give me more data movement. 298 00:18:06,440 --> 00:18:09,540 So we've got a bunch of URLs we can pick from. We're going to 299 00:18:09,540 --> 00:18:14,500 pick this challenge three guy. Just because I know that it 300 00:18:14,500 --> 00:18:17,340 works. And now that we've got a, you know, we've got a 301 00:18:17,360 --> 00:18:20,440 URL selected, it gives us an option to launch SQL map. So 302 00:18:20,440 --> 00:18:22,120 that's what we're going to do. We'll launch SQL map and try to 303 00:18:22,120 --> 00:18:25,520 get some more credentials and see if we can kind of stealth our 304 00:18:25,520 --> 00:18:30,980 way on to. SQL map initiated. To retrieve our garbage file. So 305 00:18:30,980 --> 00:18:34,860 when SQL map finishes, it's going to display whatever it 306 00:18:34,860 --> 00:18:39,180 gets. SQL map completed. If your results include hash values, 307 00:18:39,340 --> 00:18:42,380 you may wish to visit John the Ripper for assistance. 308 00:18:47,400 --> 00:18:52,020 A little foreshadowing, maybe. A little obvious foreshadowing. 309 00:18:52,240 --> 00:18:55,320 So obviously we've got a user name administrator and a hash out 310 00:18:55,320 --> 00:18:58,100 of the back end database. So that was a SQL map just running 311 00:18:58,100 --> 00:19:02,460 in the password, you know, give me a password mode. And just 312 00:19:02,460 --> 00:19:05,480 like we did before, we're going to package these up in a little 313 00:19:05,480 --> 00:19:08,660 module because they're not quite complete. We need more data at 314 00:19:08,660 --> 00:19:10,940 them. So we're going to package this up and we're going to take 315 00:19:10,940 --> 00:19:16,200 it off to John. Packaging your creds. Say hi to John for me. 316 00:19:16,420 --> 00:19:17,340 Okay. Yeah, I don't know if that's the right way to do it. 317 00:19:25,300 --> 00:19:28,800 She's got a sense of humor. Okay. So let's go to John. 318 00:19:29,600 --> 00:19:34,000 John. John, the little red box in the corner because I don't 319 00:19:34,000 --> 00:19:38,980 know what else to do with John. The cool thing in blender is I'm 320 00:19:38,980 --> 00:19:40,780 not spending much time on blender. If you have questions 321 00:19:40,780 --> 00:19:44,480 about the game engine, here came our creds. One cool thing is 322 00:19:44,480 --> 00:19:47,340 it's got like a distance sensitive sound. So close to 323 00:19:47,360 --> 00:19:49,400 where I am, the louder the sound, you know, farther away, 324 00:19:50,060 --> 00:19:53,540 the quieter the sound as well. So it's got some, you know, just I 325 00:19:53,540 --> 00:19:56,340 guess those are standard game engine features now. But they're 326 00:19:56,340 --> 00:19:59,360 new to Blender. So we're going to crack these credentials by 327 00:19:59,360 --> 00:20:05,860 sending them off to John. Credentials sent to John. And 328 00:20:05,860 --> 00:20:08,700 when he works, he's going to display them on the wall. John 329 00:20:08,700 --> 00:20:13,080 activated. John completed. So John did this work that fast 330 00:20:13,080 --> 00:20:16,400 because that was a real-time John crack by the way. It wasn't a 331 00:20:16,400 --> 00:20:19,400 cooking show type thing. But that password obviously is in 332 00:20:19,400 --> 00:20:22,000 John's default password database. So we just took that 333 00:20:22,000 --> 00:20:25,180 with a MySQL hash, cracked it against that and so now we've 334 00:20:25,180 --> 00:20:30,360 got administrator creds with an oddly familiar password. So 335 00:20:30,890 --> 00:20:33,700 let's select those because we're going to use, make use of those. 336 00:20:36,720 --> 00:20:40,660 And. Credentials selected. So I left this kind of raw. I could 337 00:20:40,660 --> 00:20:43,160 have done the same ammo box thing but I wanted just an 338 00:20:43,160 --> 00:20:45,520 opportunity to talk about like one of the coolest things in 339 00:20:45,520 --> 00:20:50,000 Blender is the Python scripting engine in there. And so for 340 00:20:50,000 --> 00:20:53,300 example, this object, me right here, I'm just called the player 341 00:20:53,300 --> 00:20:56,860 in the scene. And you can attach Python dictionaries to anything 342 00:20:57,780 --> 00:21:00,380 in any object inside Blender. So when I selected those 343 00:21:00,380 --> 00:21:02,280 credentials, all that really happened was it took this 344 00:21:02,780 --> 00:21:04,880 string. If you're a Python guy, you'll recognize that as a 345 00:21:04,880 --> 00:21:08,940 Python dictionary. Just a field value, field value, right? So 346 00:21:08,940 --> 00:21:11,420 username, administrator, password, Gibson hash. And 347 00:21:11,420 --> 00:21:15,340 attach that as a cred to the player. So anything else inside 348 00:21:15,340 --> 00:21:18,280 Blender can make use of that same thing. So it kind of has 349 00:21:18,280 --> 00:21:21,920 its own internal data transfer mechanism. And we're going to 350 00:21:21,920 --> 00:21:26,780 use these creds next. So we've got a real administrator cred. 351 00:21:28,880 --> 00:21:32,040 And let's see what's, let me check my cheat sheet here. 352 00:21:32,160 --> 00:21:40,840 Sorry. All right. Let's go back and select our Windows box since 353 00:21:40,840 --> 00:21:45,320 we've got an administrator account. In map. So we've got a 354 00:21:48,760 --> 00:21:52,760 lot of code. And we're going to select that guy. Yes, we are 355 00:21:52,760 --> 00:21:56,280 going to select that guy. Target acquired. Target 356 00:21:56,280 --> 00:22:04,420 acquired. Fireballs bounce. Target acquired. Screw you. 357 00:22:05,380 --> 00:22:10,740 Okay. One target acquired. One at a time. We'll work on the mass 358 00:22:10,740 --> 00:22:14,920 module. Maybe that's next year. You can target a hundred things 359 00:22:15,340 --> 00:22:18,620 if you want. And we're going to go to obviously the last two 360 00:22:18,620 --> 00:22:23,160 rooms here in our scenario. So what we're after here is like I 361 00:22:23,160 --> 00:22:26,220 mentioned the contents of garbage file. So the final goal 362 00:22:26,220 --> 00:22:28,620 is to get some forensic work done. The thing that's going to 363 00:22:28,620 --> 00:22:32,840 help us get out of the box, however, is Metasploit. So let's 364 00:22:32,840 --> 00:22:37,280 go to Metasploit. And let's see. Maybe we have a console. 365 00:22:37,460 --> 00:22:40,560 Yeah, we do. Okay. So we have a console output for Metasploit. 366 00:22:41,780 --> 00:22:44,800 It's complaining and bitching about not being updated. But I 367 00:22:44,800 --> 00:22:47,880 didn't want to break anything. So it's not updated recently. 368 00:22:49,400 --> 00:22:53,160 Let's go up here. So what this is going to do is run PSExec to 369 00:22:53,160 --> 00:22:57,260 get a interpreter session on the box. And it's going to run, I 370 00:22:57,260 --> 00:22:59,520 don't know if you guys were here last year for Wes McGrew's 371 00:23:00,100 --> 00:23:03,500 talk, but he released a module that gets you a forensic 372 00:23:03,500 --> 00:23:07,500 interface, just an NBD server, network block device server, on 373 00:23:07,500 --> 00:23:10,800 a box. So through an interpreter, you can then run any 374 00:23:10,800 --> 00:23:14,780 forensic tool that you want. So that's what we're running. I 375 00:23:14,800 --> 00:23:15,560 don't know if you guys are familiar with that. So it's just 376 00:23:15,560 --> 00:23:18,660 PSExec using those credentials that I just showed you. And it's 377 00:23:18,660 --> 00:23:22,580 attempting to run this module. And as you can see, it failed 378 00:23:22,580 --> 00:23:26,840 dramatically. So sometimes that happens. And you just run it 379 00:23:26,840 --> 00:23:30,380 again. And we can do the same thing using gestures. Loading. 380 00:23:30,520 --> 00:23:36,380 So we're loading. It's going to try again. If it works, it'll 381 00:23:36,380 --> 00:23:39,840 serve up the C drive as a network block device. And there 382 00:23:39,840 --> 00:23:43,820 it is. Serving up a C drive. And the entire C drive is now 383 00:23:43,820 --> 00:23:44,780 available to us. So we're going to run it again. And we're going 384 00:23:44,800 --> 00:23:48,640 to use that as a network block device. So that's awesome. And 385 00:23:48,640 --> 00:23:52,140 we're going to use that in the final stretch here. Whatever you 386 00:23:52,140 --> 00:23:54,780 guys said to the demo guys, keep saying it because we're doing 387 00:23:54,780 --> 00:23:57,640 pretty good. We're going to go to the forensic room and see 388 00:23:57,640 --> 00:24:01,280 what we can find out about this now that we've got raw access to 389 00:24:01,280 --> 00:24:04,980 it. So we're going to connect using NBD, just NBD client, 390 00:24:05,220 --> 00:24:08,620 regular Linux client. And it's made the connection and given us 391 00:24:08,620 --> 00:24:12,480 another option to search the garbage, aka the recycler bin 392 00:24:12,480 --> 00:24:13,840 in Windows. 393 00:24:16,040 --> 00:24:18,040 Searching. So this kicks off a job that's going to take 394 00:24:18,040 --> 00:24:20,680 just a little bit. So let me explain kind of what it's doing 395 00:24:20,680 --> 00:24:22,940 while we're waiting for the output. And then we'll go to some 396 00:24:22,940 --> 00:24:25,020 other rooms while we're waiting for the output also. So this is 397 00:24:25,020 --> 00:24:27,340 live, real time, actually hitting that box, searching 398 00:24:27,340 --> 00:24:31,880 through. So it's got a raw, much like a DD image on there. 399 00:24:31,920 --> 00:24:34,060 It's going to run FLS out of the sleuth kit and just look for 400 00:24:34,060 --> 00:24:36,980 anything with the word recycler in it and then display it up on 401 00:24:36,980 --> 00:24:41,580 the wall. So in the meantime, let's go out to the perch and see 402 00:24:41,580 --> 00:24:44,780 if we have some snort. Perch. That we can get some snort out of 403 00:24:44,780 --> 00:24:47,400 and take a look at. And it looks like we do. We've got a 404 00:24:47,400 --> 00:24:51,380 couple barrels. So let's get out of the perch and see if we can 405 00:24:51,380 --> 00:24:57,340 go see what alerts we've triggered so far. So here we go. 406 00:24:57,660 --> 00:25:02,660 Snort. Snort. Snort. So I'll only do one and then we'll move 407 00:25:02,660 --> 00:25:05,540 on to something else here. But all you do is just touch the 408 00:25:05,540 --> 00:25:08,360 barrel. You can get close to it. There's something interfering 409 00:25:08,360 --> 00:25:13,060 here. And it coughs out just a little summary of what alerts are 410 00:25:13,520 --> 00:25:14,760 there for that particular barrel. So let's go ahead and go 411 00:25:14,780 --> 00:25:17,060 ahead and go. So you can see these are like priority two 412 00:25:17,060 --> 00:25:19,860 alerts in snort. So we've got some port sweeps that obviously 413 00:25:19,860 --> 00:25:23,240 are from our m map scan and then some other stuff probably from 414 00:25:23,240 --> 00:25:27,720 the sequel map that we did. So that's the snort integration. 415 00:25:29,620 --> 00:25:31,960 Home. And while we're waiting for our forensic output, it 416 00:25:31,960 --> 00:25:34,300 will announce it to us when we get, we don't have to go back to 417 00:25:34,300 --> 00:25:37,480 the room to check. It will say forensic output received. Let's 418 00:25:37,480 --> 00:25:40,680 go to Twitter and see if. Twitter. Whoa, I ran into 419 00:25:40,680 --> 00:25:44,560 stuff. Let's see if there's any connect display related 420 00:25:44,560 --> 00:25:49,040 stuff besides my one sorry tweet early this morning. 421 00:25:50,680 --> 00:25:56,440 Gathering tweets. Cool. All right. Let's see what, I'll try 422 00:25:56,440 --> 00:25:58,460 to knock some of these down. The fun thing about these, they 423 00:25:58,460 --> 00:26:05,320 don't have much weight to them, much like tweets don't. So you 424 00:26:05,320 --> 00:26:08,140 can kind of knock them over. If you hit them enough times with 425 00:26:09,280 --> 00:26:13,140 fireballs, come on, fall over, please. Of course now it's not 426 00:26:18,060 --> 00:26:21,000 going to work. Let's see what else we've got. Yeah, hack the 427 00:26:21,000 --> 00:26:24,580 gibson, exactly. That's what we're doing. Let's see what else 428 00:26:24,580 --> 00:26:35,740 we've got. Cool. Come on, forensic output. Oh, see this. 429 00:26:36,280 --> 00:26:41,720 A lot of people default icons. And by the way, I should have 430 00:26:41,720 --> 00:26:44,540 said all the code for this is going to be available over the 431 00:26:44,560 --> 00:26:46,000 next couple of weeks. I'm going to open my site. You saw it in 432 00:26:46,000 --> 00:26:49,400 the initial intro there. It's just pwnlabs.com slash DEF CON 433 00:26:49,400 --> 00:26:53,080 20. Everything that's here will be available there. You're going 434 00:26:53,080 --> 00:26:55,040 to give me just a little bit to clean it up because there's a 435 00:26:55,040 --> 00:27:01,080 lot of bad code still left in here. But it will all be open on 436 00:27:01,080 --> 00:27:03,420 there. And Blender as well is open source. If you go to 437 00:27:03,420 --> 00:27:09,300 Blender.org, it runs on Linux, Mac, Windows, and any Blender 438 00:27:09,300 --> 00:27:13,080 file that you create like this can run on any platform. Of 439 00:27:13,080 --> 00:27:14,540 course, given the fact that it's open source, it can run on any 440 00:27:14,560 --> 00:27:18,220 platform. Assuming that you've got all the rest of the stuff on 441 00:27:18,220 --> 00:27:20,420 there. I mean, obviously, if you're going to use M app, you 442 00:27:20,420 --> 00:27:22,200 have to have M app as well. So you're going to have all that 443 00:27:22,200 --> 00:27:26,460 stuff loaded. So everything out of here will be all. Forensic 444 00:27:26,460 --> 00:27:30,120 output received. Cool. So we've got our forensic output. So 445 00:27:30,120 --> 00:27:36,440 let's go back. Home. Home. And let's go back to the forensic 446 00:27:36,440 --> 00:27:40,200 room. I'm going to put room shortcuts in here next because 447 00:27:40,200 --> 00:27:44,020 it gets a little tiring going around. So it did an FLS against 448 00:27:45,700 --> 00:27:48,620 Mac times and all that stuff in forensics. So what we've got is 449 00:27:48,620 --> 00:27:51,860 the I know number on the far left and then the name of the file. 450 00:27:52,060 --> 00:27:55,900 So this is just everything that has recycler on that particular 451 00:27:55,900 --> 00:27:59,520 Windows box. If you have ever done forensics in recycling bin 452 00:27:59,520 --> 00:28:02,520 and all that kind of stuff, you'll know that the info2 file, 453 00:28:02,680 --> 00:28:05,680 which I'm trying to select down here on the very bottom, is kind 454 00:28:05,680 --> 00:28:08,840 of the index for everything in the recycle bin. So we're going 455 00:28:08,840 --> 00:28:14,540 to choose that. Okay. And then we're going to go back to the 456 00:28:16,320 --> 00:28:20,440 network block device. There we go. Info2. And connect 457 00:28:20,440 --> 00:28:24,320 exploit knows that info2 file can be parsed with refi UD and 458 00:28:24,320 --> 00:28:27,400 gives us the option to do that. So I'm going to choose refi UD 459 00:28:27,400 --> 00:28:30,080 and it's going to pull down that file. Retrieving forensic 460 00:28:30,080 --> 00:28:33,860 output received. So what it did just there was run ICAT against 461 00:28:33,860 --> 00:28:36,500 that network block device with that I know number, pull down 462 00:28:36,500 --> 00:28:40,040 info2, run it against refi UD and give us a bunch of what looks 463 00:28:40,040 --> 00:28:43,520 like crazy output. But we can go back to the beginning of this output. 464 00:28:44,560 --> 00:28:49,720 I think we can. Come on. Okay. So it just tells you where the 465 00:28:49,720 --> 00:28:52,600 file was and then the important thing to pay attention to, so the 466 00:28:52,600 --> 00:28:58,140 index number is the number that gets added to DC. So DC1 will be 467 00:28:58,140 --> 00:29:02,140 this file up here. And if you notice the file's name is C slash 468 00:29:02,140 --> 00:29:05,640 in other words root slash period workspace slash garbage dot text. 469 00:29:06,220 --> 00:29:10,980 Which sure sounds like the file that we're interested in. So 470 00:29:10,980 --> 00:29:14,440 let's go get our previous output here. Search garbage again. 471 00:29:16,840 --> 00:29:19,920 Searching. And this is going to. Forensic output received. 472 00:29:20,380 --> 00:29:22,980 So it ran that same exact thing that took a couple minutes 473 00:29:22,980 --> 00:29:26,340 last time but it caches it. So it takes a lot less time the 474 00:29:26,340 --> 00:29:30,240 second time through. So we're going to pick DC1 which we got 475 00:29:30,240 --> 00:29:34,500 from our index on there. And then if this works, it's the 476 00:29:34,500 --> 00:29:37,780 grand finale. So let's hope it works. So we're going to ICAT 477 00:29:37,780 --> 00:29:42,240 that file out and see what it's got. Retrieving. Let me go over 478 00:29:42,240 --> 00:29:44,540 here. It's displayed the output on the back wall. So we're going to 479 00:29:44,560 --> 00:29:49,240 go over here and turn around. And hopefully this will work. And 480 00:29:49,240 --> 00:29:54,820 will be the end of Connect Disploy version 2. There we go. 481 00:29:54,960 --> 00:29:58,580 There's the output of that file. It's in that place where I put 482 00:29:58,580 --> 00:30:02,280 that thing that time. Which if you've ever seen, if you've seen 483 00:30:02,280 --> 00:30:06,380 hackers recently, you will recognize that. So that's 484 00:30:06,380 --> 00:30:06,900 Connect Disploy. 485 00:30:14,560 --> 00:30:15,420 . 486 00:30:15,420 --> 00:30:15,500 . 487 00:30:15,500 --> 00:30:17,260 . 488 00:30:17,260 --> 00:30:17,320 .