1 00:00:00,000 --> 00:00:01,400 Hi, everybody. How's it going? 2 00:00:04,500 --> 00:00:07,120 It's a great conference. I'm really glad to be here, actually. 3 00:00:07,640 --> 00:00:10,660 My name's Nadeem Duba. 4 00:00:11,300 --> 00:00:15,440 I'm going to be presenting Sploitago, Maltego's local partner in crime. 5 00:00:17,080 --> 00:00:19,160 Just a little bit about me. I come from Canada. 6 00:00:19,860 --> 00:00:22,280 I'm working with my dad at a security firm. 7 00:00:22,460 --> 00:00:26,300 I like to think that I taught him security. Don't tell him that. 8 00:00:26,300 --> 00:00:33,900 But I also worked with Paterva down in South Africa with Andrew and RT 9 00:00:33,900 --> 00:00:38,660 on amplifying the Maltego client for Mac OS X. 10 00:00:39,360 --> 00:00:45,840 And now I'm here to present a framework for local transforms in Maltego. 11 00:00:47,180 --> 00:00:49,520 So we're going to discuss Maltego briefly. 12 00:00:49,840 --> 00:00:52,820 What is Sploitago, before and after Sploitago. 13 00:00:53,120 --> 00:00:54,840 I'm going to show you some cool demos. 14 00:00:55,100 --> 00:00:56,200 Hopefully you'll enjoy. 15 00:00:56,300 --> 00:00:58,880 And we'll wrap things up at the end. 16 00:00:59,540 --> 00:01:02,160 So who here is not familiar with Maltego? 17 00:01:02,400 --> 00:01:04,380 Is anybody not familiar with Maltego? 18 00:01:04,960 --> 00:01:07,080 All right, so this is going to be just short and sweet. 19 00:01:08,160 --> 00:01:09,880 So this is Maltego. 20 00:01:10,360 --> 00:01:16,720 It's a graphing tool for what people have termed open source intelligence. 21 00:01:16,940 --> 00:01:20,100 So you can bring a piece of information on the graph. 22 00:01:20,340 --> 00:01:21,960 So let's take a person. 23 00:01:24,220 --> 00:01:26,060 And you can run a transform. 24 00:01:26,300 --> 00:01:31,440 Which is essentially a data mining function on the internet. 25 00:01:33,540 --> 00:01:37,280 And get more information out of it. 26 00:01:38,140 --> 00:01:39,080 So here we go. 27 00:01:39,240 --> 00:01:39,880 Hold on. 28 00:01:45,120 --> 00:01:46,100 So that's it. 29 00:01:46,960 --> 00:01:49,000 So these are called entities. 30 00:01:49,160 --> 00:01:50,660 What you're seeing on the graph here. 31 00:01:51,460 --> 00:01:54,160 So John Doe apparently has a whole bunch of emails. 32 00:01:54,420 --> 00:01:56,160 This is all fetched from the internet. 33 00:01:56,300 --> 00:01:58,120 There's no penetration on any system. 34 00:01:58,560 --> 00:01:59,760 It's all open source. 35 00:01:59,980 --> 00:02:02,240 So Google, PGP, whatever's available. 36 00:02:04,180 --> 00:02:08,020 And by the way, this just ran on a server on the internet. 37 00:02:08,360 --> 00:02:10,640 So that's what we call a remote transform. 38 00:02:11,860 --> 00:02:13,860 Sploitago is actually a local transform. 39 00:02:14,320 --> 00:02:16,800 So this is going to be running locally on your machine. 40 00:02:18,160 --> 00:02:20,280 So as I said, what is Sploitago? 41 00:02:20,460 --> 00:02:22,440 It's a local transform framework for Maltego. 42 00:02:22,640 --> 00:02:23,900 I wrote it in Python. 43 00:02:25,460 --> 00:02:26,280 But I'm here. 44 00:02:26,280 --> 00:02:27,120 I'm here to oversell it. 45 00:02:27,180 --> 00:02:29,460 Andrew was telling me I was underselling it the whole conference. 46 00:02:29,600 --> 00:02:31,160 So I'm going to make my best to sell this. 47 00:02:31,380 --> 00:02:32,940 So it brings sexy back. 48 00:02:33,720 --> 00:02:34,160 Seriously. 49 00:02:36,040 --> 00:02:38,480 It's a rapid transform development framework. 50 00:02:38,920 --> 00:02:40,860 It's got some awesome set of core features. 51 00:02:41,120 --> 00:02:43,600 I was so addicted to developing this thing. 52 00:02:43,780 --> 00:02:47,380 I stayed up every night during our busy season until 4 a.m. 53 00:02:49,020 --> 00:02:51,640 And, you know, it's got an awesome set of transforms. 54 00:02:51,880 --> 00:02:54,080 I really enjoyed learning the tech. 55 00:02:54,740 --> 00:02:56,180 You're going to see some of it today. 56 00:02:56,280 --> 00:02:56,480 Hopefully. 57 00:02:56,860 --> 00:02:58,460 And it's ridiculously simple. 58 00:02:58,720 --> 00:03:01,980 So any of you can really pick up, if you know a little bit of Python, 59 00:03:02,980 --> 00:03:09,380 and make some really incredible transforms to create some really cool data visualization of your data. 60 00:03:10,800 --> 00:03:14,740 And we even got great early feedback from the designers at Apple. 61 00:03:15,360 --> 00:03:19,080 It's true that when something exceeds your ability to understand how it works, 62 00:03:19,180 --> 00:03:20,520 it sort of becomes magical. 63 00:03:20,880 --> 00:03:23,100 And that's exactly what Sploitago is. 64 00:03:23,760 --> 00:03:25,120 I hope I'm overselling. 65 00:03:29,200 --> 00:03:33,080 So why use local transforms instead of the remote transforms? 66 00:03:33,380 --> 00:03:37,660 If you guys are familiar with Maltego and you're familiar with Paterva down in South Africa, 67 00:03:38,380 --> 00:03:40,360 they have an awesome set of transforms. 68 00:03:40,820 --> 00:03:42,500 They've done really good work out there. 69 00:03:42,980 --> 00:03:49,760 But the problem is their transforms are only able to see the data that's publicly available to them, 70 00:03:49,980 --> 00:03:51,900 which is the data that's available on the Internet. 71 00:03:52,360 --> 00:03:55,480 And that's not a lot when you're doing a local assessment, 72 00:03:55,660 --> 00:03:56,120 when you're doing. 73 00:03:56,280 --> 00:03:56,760 You're doing something internal. 74 00:03:57,760 --> 00:04:03,240 The other part of it too is by doing your assessment against Maltego's servers, 75 00:04:03,560 --> 00:04:05,960 sometimes your clients want some sort of privacy. 76 00:04:06,220 --> 00:04:12,440 And by kind of disclosing that your open source intelligence subject or target to Paterva, 77 00:04:12,500 --> 00:04:14,120 you've kind of lost that privacy. 78 00:04:15,380 --> 00:04:22,320 And finally, they might not want to make transforms that are evil enough or powerful enough. 79 00:04:22,460 --> 00:04:24,900 They might want to just focus on what they want to do, 80 00:04:24,920 --> 00:04:26,260 like social engineering transforms. 81 00:04:26,280 --> 00:04:28,840 You know, it's not their fault. 82 00:04:28,980 --> 00:04:29,720 That's what they do. 83 00:04:30,340 --> 00:04:36,020 So I'm here to give you the power to do whatever you want with this awesome graphing tool. 84 00:04:36,240 --> 00:04:39,280 And this is why I've developed Sploitego. 85 00:04:40,360 --> 00:04:41,600 So here's a scenario. 86 00:04:41,800 --> 00:04:42,920 This is a really quick demo. 87 00:04:43,420 --> 00:04:45,040 So your boss wants answers. 88 00:04:45,320 --> 00:04:49,640 Is there anybody in the company breaking our Internet acceptable use policy? 89 00:04:50,260 --> 00:04:53,480 So, you know, first place to look, DNS logs. 90 00:04:58,300 --> 00:05:06,220 So here we'll start a new graph, and I'm going to pull in, where is the IP address? 91 00:05:07,040 --> 00:05:07,660 There it is. 92 00:05:08,380 --> 00:05:11,440 I'm going to pull in a DNS server off the net. 93 00:05:12,080 --> 00:05:15,040 And actually, let's make it two to make it interesting. 94 00:05:20,800 --> 00:05:23,680 And what we're going to do here is I'm going to use Sploitego. 95 00:05:23,680 --> 00:05:30,940 I'm going to use Sploitego transform that essentially does DNS cache snooping. 96 00:05:31,200 --> 00:05:36,240 So if anybody is not familiar with DNS cache snooping, when you do a DNS request, 97 00:05:36,540 --> 00:05:38,000 it's recursive in nature. 98 00:05:38,320 --> 00:05:42,740 And if you turn off, you have the ability to turn off that recursive nature in DNS 99 00:05:42,740 --> 00:05:46,920 and essentially figure out what's cached on those DNS servers. 100 00:05:47,080 --> 00:05:47,820 So let's do that. 101 00:05:49,680 --> 00:05:53,660 So now what this is going to be doing is it's actually going to be going to the DNS server, 102 00:05:53,680 --> 00:05:56,660 hitting it with DNS requests with the non-recursive bit. 103 00:05:57,520 --> 00:06:01,080 And it's actually going to use the Alexa top 500 list. 104 00:06:01,240 --> 00:06:02,300 This is actually customizable. 105 00:06:02,740 --> 00:06:04,040 You can use any list you want. 106 00:06:05,600 --> 00:06:08,340 For this case, I'm going to use Alexa top 500. 107 00:06:08,900 --> 00:06:09,840 So here we go. 108 00:06:09,940 --> 00:06:13,020 We got some results back from one server. 109 00:06:13,460 --> 00:06:14,820 We're still waiting for the next. 110 00:06:16,580 --> 00:06:21,900 So just to save a little bit of time, I'm going to Martha Stewart this thing and get you a pre-cooked graph. 111 00:06:25,360 --> 00:06:28,080 And so this is what your data would look like. 112 00:06:28,520 --> 00:06:30,100 I know it's really hard to see. 113 00:06:30,200 --> 00:06:30,960 You're not going to see anything. 114 00:06:31,260 --> 00:06:34,280 But let's put it into bubble view and make this data really come out. 115 00:06:37,460 --> 00:06:38,480 And check it out. 116 00:06:40,640 --> 00:06:45,460 What you're seeing here is essentially the work of two transforms. 117 00:06:45,820 --> 00:06:52,220 So if I go back to this one graph here, one transform that I forgot to show you is that you can actually change this type. 118 00:06:52,580 --> 00:06:53,660 This is not the transformer. 119 00:06:53,680 --> 00:06:54,040 This is the transform itself. 120 00:06:54,520 --> 00:07:03,100 But if you change it to website and then you go to reconnaissance, I've actually included two site categorization transforms, 121 00:07:03,380 --> 00:07:05,940 one from Bluecoat and one from WebSense. 122 00:07:06,400 --> 00:07:11,600 By right-clicking on that, you'll be able to get the site categories. 123 00:07:12,240 --> 00:07:15,140 And so this is what you're seeing in those big bubbles. 124 00:07:16,540 --> 00:07:23,040 The bigger the bubble, the more sites that are pointing to this piece of information. 125 00:07:23,280 --> 00:07:23,660 So if I go back to this one graph here, I'm going to go back to this one graph here. 126 00:07:23,660 --> 00:07:34,680 And if I go to my entity list, and I see incoming links, you can see the Internet's most popular site categories right there. 127 00:07:35,780 --> 00:07:37,160 So that's a little demo. 128 00:07:40,440 --> 00:07:45,640 So now, why Sploitago? 129 00:07:45,920 --> 00:07:51,520 Well, let's take a little look about how we create local transforms without Sploitago. 130 00:07:51,720 --> 00:07:53,060 Because I've seen a lot on the Internet. 131 00:07:55,280 --> 00:07:56,940 Before Sploitago, the nightmare. 132 00:07:57,900 --> 00:07:59,680 This is our development checklist. 133 00:08:00,840 --> 00:08:05,800 So you've got to learn Maltago's local transform spec, which is an XML messaging system. 134 00:08:06,200 --> 00:08:14,540 You've got to develop the transform, input parsing logic, data mining logic, XML serialization, some debugging facilities if you need them. 135 00:08:14,780 --> 00:08:17,700 Then you need to install, configure, and maintain the transform. 136 00:08:17,960 --> 00:08:20,140 And optionally define an entity. 137 00:08:21,500 --> 00:08:22,900 So let's go through this. 138 00:08:22,900 --> 00:08:24,100 We write the code. 139 00:08:25,220 --> 00:08:26,900 If you can't see it, it's all right. 140 00:08:27,060 --> 00:08:27,980 I'll just explain it. 141 00:08:28,240 --> 00:08:30,560 So there's a little bit of parsing logic right there. 142 00:08:30,860 --> 00:08:32,260 There's some hard-coded XML. 143 00:08:32,640 --> 00:08:35,200 And this thing doesn't do much except say, hello, world. 144 00:08:36,960 --> 00:08:38,020 What about installation? 145 00:08:38,480 --> 00:08:39,680 Well, it's currently manual. 146 00:08:39,860 --> 00:08:41,840 You've got to go through the graphical user interface. 147 00:08:42,400 --> 00:08:47,380 And if you're really enthusiastic, you're going to want to do maybe 100 transforms. 148 00:08:47,480 --> 00:08:48,900 I don't know how enthusiastic you are. 149 00:08:49,080 --> 00:08:51,980 But this is a really painful process, and it can be really tedious. 150 00:08:51,980 --> 00:08:58,420 Not only that, if you want to apply that transform to different pieces of information, you've got to do this multiple times. 151 00:08:58,600 --> 00:08:59,600 It's really painful. 152 00:09:00,300 --> 00:09:03,460 So after splite, they go rainbows and lollipops. 153 00:09:04,880 --> 00:09:06,280 This is all you've got to do. 154 00:09:06,880 --> 00:09:11,320 Everything's being done except the data mining logic and optionally the entity spec. 155 00:09:12,900 --> 00:09:14,880 As Borat would say, wah-wah-wee-wah. 156 00:09:18,020 --> 00:09:18,800 The code. 157 00:09:19,020 --> 00:09:19,240 The code. 158 00:09:19,400 --> 00:09:20,940 You probably have a better time. 159 00:09:21,980 --> 00:09:22,800 I'm seeing this now. 160 00:09:22,940 --> 00:09:23,720 It's very short. 161 00:09:23,940 --> 00:09:27,120 And I've actually exaggerated the code here because I've put an on terminate. 162 00:09:27,340 --> 00:09:29,960 But this is exactly what the code looks like. 163 00:09:30,120 --> 00:09:31,240 It's very, very simple. 164 00:09:31,440 --> 00:09:34,620 I focused on making this as simple as possible. 165 00:09:37,900 --> 00:09:40,940 And so you're going to see a few annotations there. 166 00:09:41,100 --> 00:09:46,960 And that actually has to do with the way you're going to be able to install transforms in Maltego 167 00:09:46,960 --> 00:09:51,880 and configure them seamlessly without user interaction, without GUI interaction, 168 00:09:51,980 --> 00:09:52,420 nothing. 169 00:09:53,120 --> 00:09:54,440 It's a command line script. 170 00:09:54,960 --> 00:09:56,600 And this is what it looks like. 171 00:09:57,240 --> 00:09:58,340 Very simple. 172 00:09:58,980 --> 00:10:00,580 That's what I focused on. 173 00:10:01,280 --> 00:10:09,760 So here you can see the command mtginstall-p is your package name that you're going to 174 00:10:09,760 --> 00:10:10,260 be installing. 175 00:10:10,480 --> 00:10:14,220 So in splitego you're actually installing Python packages. 176 00:10:14,360 --> 00:10:19,700 And within those Python packages you actually have modules which have transforms. 177 00:10:20,540 --> 00:10:21,960 And then the problem is. 178 00:10:21,960 --> 00:10:24,420 The prefix here, the dash m, is actually a working directory. 179 00:10:24,680 --> 00:10:27,280 So if you have for Maltego, sorry. 180 00:10:27,380 --> 00:10:28,400 So this is the config directory. 181 00:10:28,840 --> 00:10:31,260 This is where Maltego keeps all of its state. 182 00:10:31,840 --> 00:10:36,440 So if you have multiple installs of Maltego, then this is where you pick the version. 183 00:10:36,820 --> 00:10:38,760 And then the dash w is the working directory. 184 00:10:39,100 --> 00:10:43,720 That's where the actual transform is working if it needs something on the file system. 185 00:10:44,960 --> 00:10:46,600 So let's look at the head to head. 186 00:10:47,360 --> 00:10:48,960 Which method would you rather use? 187 00:10:49,560 --> 00:10:50,920 47 lines of code? 188 00:10:51,340 --> 00:10:51,940 Versus 24? 189 00:10:53,740 --> 00:10:54,380 Graphical? 190 00:10:54,380 --> 00:10:55,580 Versus command line? 191 00:10:56,780 --> 00:10:58,200 Config is graphical. 192 00:10:59,540 --> 00:11:02,500 In splitego the config is code and file based. 193 00:11:03,660 --> 00:11:04,920 End to end development? 194 00:11:05,100 --> 00:11:06,300 Versus data mining logic? 195 00:11:06,760 --> 00:11:08,100 Barely reusable code? 196 00:11:08,260 --> 00:11:09,140 Versus super reusable? 197 00:11:09,440 --> 00:11:10,180 I don't know. 198 00:11:10,500 --> 00:11:13,240 I'd rather go with the right side. 199 00:11:13,920 --> 00:11:16,820 So why splitego? 200 00:11:17,000 --> 00:11:21,420 To take advantage of the core features that are available to you. 201 00:11:23,100 --> 00:11:25,420 It's an easy and extensible framework. 202 00:11:25,680 --> 00:11:26,880 You can do tons of stuff. 203 00:11:27,200 --> 00:11:28,920 You can extend it to your heart's desire. 204 00:11:29,340 --> 00:11:31,420 You don't even have to know XML. 205 00:11:31,740 --> 00:11:35,940 One of the common complaints that I get from developers, oh, we always have to do this 206 00:11:35,940 --> 00:11:38,820 XML serialization, it's a headache. 207 00:11:39,600 --> 00:11:41,220 I've taken care of all of that. 208 00:11:41,360 --> 00:11:42,800 I've done that all for you. 209 00:11:42,860 --> 00:11:43,880 So you don't have to do anything. 210 00:11:44,720 --> 00:11:46,440 Feature rich auxiliary modules. 211 00:11:46,700 --> 00:11:48,420 And you're going to see some things right now. 212 00:11:48,760 --> 00:11:49,200 What? 213 00:11:49,200 --> 00:11:55,400 The first demo showed was actually SCAPI integration for multigo local transforms. 214 00:11:56,300 --> 00:12:00,060 And I've provided you with some great transform debugging tools. 215 00:12:01,280 --> 00:12:08,040 And finally, some really good pen testing transforms that I hope you'll be able to use 216 00:12:08,040 --> 00:12:10,200 and maybe even add to your artillery. 217 00:12:12,720 --> 00:12:14,260 So we've got a scenario. 218 00:12:15,160 --> 00:12:18,900 Your colleague wants to know if there's any cool way of finding common services. 219 00:12:18,900 --> 00:12:19,660 This is across hosts. 220 00:12:20,900 --> 00:12:23,480 The answer is yes. 221 00:12:24,160 --> 00:12:27,320 And I'm going to show you right now. 222 00:12:34,080 --> 00:12:35,940 So just give me a second here. 223 00:12:36,100 --> 00:12:37,900 I'm just trying to hook up my second laptop. 224 00:12:40,640 --> 00:12:41,200 Okay. 225 00:12:41,840 --> 00:12:42,400 Okay. 226 00:13:01,520 --> 00:13:02,600 All right. 227 00:13:04,500 --> 00:13:05,700 So here we go. 228 00:13:08,440 --> 00:13:10,140 This is my target machine. 229 00:13:10,980 --> 00:13:11,660 Okay. 230 00:13:17,480 --> 00:13:18,220 All right. 231 00:13:18,220 --> 00:13:22,820 And right now, we'll just do a very short nmap-f. 232 00:13:23,260 --> 00:13:26,080 And you notice there that sudo actually popped up. 233 00:13:26,280 --> 00:13:32,100 That's because all the transform, the dispatcher itself, if you remember in the code before, 234 00:13:32,340 --> 00:13:34,040 there was an at super user annotation. 235 00:13:34,560 --> 00:13:40,140 And that annotation instructs dispatcher, which is responsible for executing the transform, 236 00:13:40,480 --> 00:13:43,440 that this transform needs to execute in super user mode. 237 00:13:43,700 --> 00:13:44,180 All right? 238 00:13:44,320 --> 00:13:45,500 So I've done that. 239 00:13:45,680 --> 00:13:47,840 And all it does is pops up sudo for you. 240 00:13:47,840 --> 00:13:49,600 So you can type in your cool little password. 241 00:13:51,300 --> 00:13:52,100 And off you go. 242 00:13:52,340 --> 00:13:53,440 And there are the results. 243 00:13:53,660 --> 00:13:54,520 It's not that exciting. 244 00:13:55,060 --> 00:13:58,500 But imagine this in larger networks. 245 00:13:58,980 --> 00:14:00,900 You can start to see common services. 246 00:14:01,400 --> 00:14:11,560 And from there, take the services, right click, do a service banner check using nmap. 247 00:14:12,060 --> 00:14:17,380 You can even right click on nmap report files and use amap. 248 00:14:19,700 --> 00:14:21,880 And that produce output as well. 249 00:14:22,240 --> 00:14:27,280 And here you see that my laptop is using post devo and mac o SX. 250 00:14:28,700 --> 00:14:32,560 Not only that, I've also integrated necs. 251 00:14:34,700 --> 00:14:35,780 Where are you necs? 252 00:14:36,120 --> 00:14:37,000 There you are. 253 00:14:44,940 --> 00:14:46,000 And so... 254 00:14:46,000 --> 00:14:46,540 Okay. 255 00:14:47,380 --> 00:14:59,580 policy that you want to run. And here is the proof that it's running. So nothing exciting 256 00:14:59,580 --> 00:15:16,320 yet. But there it is. Nessus and Nmap integration in Maltego. And another thing, too, that 257 00:15:16,320 --> 00:15:22,720 I've added. I've actually extended just the input parsing logic just a bit. If you look at the 258 00:15:22,720 --> 00:15:28,420 spec, it's a bit limited on what you can do. But essentially, let's say I wanted to add some more 259 00:15:28,420 --> 00:15:33,240 parameters, I wanted to pass some more parameters to a command line tool. Well, in this case, I 260 00:15:33,240 --> 00:15:43,020 know that SNMP is running. Come on, don't make me a liar. Where are you? Did I click it? 261 00:15:49,320 --> 00:16:14,600 One second. I can't see anything on this, so it's probably disappeared. There we go. 262 00:16:20,420 --> 00:16:27,440 So I can do a dash P161, and that's going to pass it to Nmap. So I'm just going to cheat a 263 00:16:27,440 --> 00:16:31,700 little bit because I know that service is actually running. And there you go. You got a UDP 264 00:16:31,700 --> 00:16:43,680 scan right there. . And so from here, you know, we could have done a service 265 00:16:43,680 --> 00:16:46,300 check. I know it's Nmap. But I'm going to pass it to Nmap. And I'm going to run the Nmap 266 00:16:46,320 --> 00:16:56,500 list. Let's just pretend this SNMP string is not there. I can do an SNMP brute force. And 267 00:16:56,500 --> 00:17:01,220 what this is going to do is, like every other transform, I've provided the ability to 268 00:17:01,220 --> 00:17:07,240 configure lists, to configure different options for this to run. And so here I've provided the 269 00:17:08,640 --> 00:17:16,180 regular Nmap word list. And there you go. You got your SNMP strings, community strings. And 270 00:17:16,180 --> 00:17:21,080 you'll notice that there's two of each. That's because I brute force both version 1 and version 271 00:17:21,080 --> 00:17:26,840 2c. And so pick, you know, pick your poison, right click, and I've got a whole bunch of 272 00:17:26,840 --> 00:17:34,440 transforms there to do some kind of mining from SNMP. Two location, two person, two routes. So 273 00:17:34,440 --> 00:17:39,420 what you can do is, if you figure out your SNMP community strings, you can recursively run 274 00:17:39,420 --> 00:17:44,620 this transform, and you can figure out the route out the door. Or you can figure out the other 275 00:17:44,620 --> 00:17:56,820 routers on the network. It's simple. So I'll just do it all. And there you go. Where is this? 276 00:18:02,340 --> 00:18:09,440 So our admin, administrator, our location, right here, right now, and the two routes that 277 00:18:09,440 --> 00:18:14,600 were detected were local host, because there's no real route out, and 0.0.0. Not what we're 278 00:18:14,600 --> 00:18:19,580 looking for. But this you can do over and over again. It's as simple as right click, run 279 00:18:19,580 --> 00:18:25,020 transform, and you're done. Really simple. And if you look at the code, I've provided some 280 00:18:26,040 --> 00:18:31,880 SNMP libs. So everything I've done to date, I've provided the libraries for you to use so that 281 00:18:31,880 --> 00:18:36,580 you can reuse them and you can do your own really cool transforms. I'm really encouraging people 282 00:18:36,580 --> 00:18:41,620 to try this framework out. I really want you guys to contribute as much as you can. I'd really 283 00:18:41,620 --> 00:18:42,540 be happy to see that. 284 00:18:42,540 --> 00:18:54,080 So that is the service discovery demo. Here's another scenario. The lazy firewall admin. So our 285 00:18:54,080 --> 00:19:01,280 client wants to know, is the firewall admin doing a good job of securing the DMZ? All right. 286 00:19:01,700 --> 00:19:10,280 Release the ARPs. So this is another SCAPI integration demo. So we're on a network. We're 287 00:19:12,540 --> 00:19:17,340 using the network, live source. I'm not sure if everyone's familiar here with IRS scan by 288 00:19:17,340 --> 00:19:28,240 OXID. But basically this does the same thing. It essentially ARP poisons the router's cache and 289 00:19:29,200 --> 00:19:37,000 spoofs the peers around you on the network, and sends SINs out to your destination. In this case, 290 00:19:37,020 --> 00:19:42,520 I've made the destination 4221 and I've also configured five ports. So it'll just run it, and we can 291 00:19:42,540 --> 00:19:47,460 shotgun blast ascend to these five ports and send back the response. So this is a really 292 00:19:47,460 --> 00:19:53,460 good way of measuring the firewall rules. And so here I'm going to just show it to you. 293 00:19:55,760 --> 00:20:04,100 One second. Lots of cable switching. Where's the cable? 294 00:20:22,220 --> 00:20:35,240 There we go. So I'm just going to be a bit lazy here. I'm going to put a location down, so 295 00:20:35,240 --> 00:20:42,520 DEF CON 20. Right click. What is my internal IP? POPCENT. And then I'm going to go to the 296 00:20:42,540 --> 00:20:52,140 network and pass it up. So now I know I'm on this network. Right click. And find ‑‑ where am 297 00:20:52,140 --> 00:21:00,660 I? To neighbors. So this is what the ‑‑ this will list basically ‑‑ this will find the active 298 00:21:00,660 --> 00:21:06,360 neighbors in your network. And so we found just one, which is the router, and that's fine. And 299 00:21:06,360 --> 00:21:12,500 then let's pretend ‑‑ let's just pretend that we found another one here. So let's put in 245. 300 00:21:17,060 --> 00:21:39,640 And we'll basically run the IRS scam. Come on. And there we go. So it's spoofed 245. And it 301 00:21:39,640 --> 00:21:42,520 returned the responses. And here if you don't have a password, you can just go to the 302 00:21:42,540 --> 00:21:47,540 URL address, and you just click on one of the port responses, you can see that the destination was 303 00:21:47,540 --> 00:21:56,020 4221, the source IP was 245, and the port status was that it timed out. So it gives you a reason 304 00:21:56,020 --> 00:22:03,720 why it timed out. And here's 53, which is known for 4221 that it is available, DNS, and there 305 00:22:03,720 --> 00:22:09,620 it's open. So this is a great way, if you have a whole bunch of IPs you want to measure what 306 00:22:09,620 --> 00:22:12,520 each server has access to in terms of the information that's being sent to the IP. The next thing 307 00:22:12,520 --> 00:22:18,100 of Internet access out to the Internet or maybe to another neighboring network. You can run 308 00:22:18,100 --> 00:22:23,880 this on a net block and you can actually get all of the results. Now you're going to ask me 309 00:22:23,880 --> 00:22:30,340 how do we actually put this in some sort of spreadsheet. So I've created the tool for that 310 00:22:30,340 --> 00:22:39,660 as well. So if we just do this, save our little graph. Come here. So can anybody, can you 311 00:22:39,660 --> 00:22:48,620 guys see this easily? I just want to make sure. Do I need to zoom in? Zoom in? I hear yes. So 312 00:22:48,620 --> 00:23:01,380 I'm going to zoom in. Sorry. All right. Is that better? That's not bad? A bit better? All 313 00:23:01,380 --> 00:23:09,640 right. Here. Cool? All right. So mtgx to csv and irs. All right. All right. All right. So 314 00:23:09,660 --> 00:23:21,520 let me just scan. It's going to pop out a graph, the graph results in csv format. And so 315 00:23:21,520 --> 00:23:35,180 let me zoom out. And there you go. And what you can do on top of that is if, let's say, for 316 00:23:35,180 --> 00:23:39,640 whatever reason you wanted to separate the entities by type, we can still do that. We can do 317 00:23:39,660 --> 00:23:50,480 that. So csv to sheets. Put in your graph. Oh. And prefix. And there you go. It separates the 318 00:23:50,480 --> 00:24:00,320 graph into separate sheets. And now you have separate csvs with common entities. And there's 319 00:24:00,320 --> 00:24:09,640 your report. . So I'm going to go ahead and show you how to do that. So you 320 00:24:13,560 --> 00:24:19,800 can see here, I'm going to go ahead and show you how to do that. There's more to learn. We've 321 00:24:19,800 --> 00:24:24,140 barely scratched the surface here. There's tons of stuff that I've built into this framework. And I 322 00:24:24,140 --> 00:24:28,960 really hope that, you know, I'm going to get the documentation out as soon as I can. Like every 323 00:24:28,960 --> 00:24:37,980 other developer, documentation comes last. But there's a lot of tools. Here, I'll just show you 324 00:24:39,660 --> 00:24:51,380 a little bit. So this is the way dispatcher works. So essentially it's a command line tool. You 325 00:24:51,380 --> 00:24:57,200 put in your parameters, which is the first parameter being the transform you want. So I'm 326 00:24:57,200 --> 00:25:02,880 going to do a what is my IP. And in this case there's no real parameter. And there you go. 327 00:25:03,020 --> 00:25:07,580 There's another way of actually visual ‑‑ seeing that your script is working. So in this case it 328 00:25:07,580 --> 00:25:09,640 takes the ugly XML that he was using on top of this. And that's going to be. So we've been doing this. And I'm going to go ahead and look at this 329 00:25:09,660 --> 00:25:16,400 humans aren't meant to read and puts it in a nice tree, graphical tree for you. So just for 330 00:25:16,400 --> 00:25:22,140 debugging purposes for those of you who are enthusiasts. I like this guy. He keeps 331 00:25:22,140 --> 00:25:32,460 clapping for me. Now I know who my real friend is. Here. So where to look for more 332 00:25:32,460 --> 00:25:38,660 information? Currently it's only, it's in the code. I'm going to get around to it. I'm going 333 00:25:38,660 --> 00:25:44,960 to put out a big document for your needs. I really want you to play around with it. Please, 334 00:25:45,160 --> 00:25:49,220 you know, drop me a line. I have my contact info at the end of this presentation, and it's on 335 00:25:49,220 --> 00:25:55,240 the DVD. The other point that I want to make, on the DVD there's a different presentation, and 336 00:25:55,240 --> 00:26:00,160 that presentation actually has more technical details, so you can actually reference that for 337 00:26:00,160 --> 00:26:04,900 your development needs. And what's next? You know, I'm going to set up the website, 338 00:26:05,160 --> 00:26:08,640 documentation, more evil transformers. So you're going to have a lot of fun with that. So I'm 339 00:26:08,640 --> 00:26:14,460 that is. And hopefully we're going to have a ‑‑ I'm looking forward to doing an online 340 00:26:14,460 --> 00:26:19,920 transform index kind of like Pi Pi where you guys can post your transform packages and people 341 00:26:19,920 --> 00:26:24,400 can share ideas. And it will be really easy. And some top secret stuff. It's also on the 342 00:26:24,400 --> 00:26:32,060 slides on the DVD. And last but not least, I'm looking for free labor. Anybody that wants to 343 00:26:32,060 --> 00:26:39,680 develop transform gurus, hackers, documenters, website designers, I like documenters. And 344 00:26:40,520 --> 00:26:50,180 pastry chefs, I like my stomach. Anyways, please feel free to drop me a line. In summary, 345 00:26:50,400 --> 00:27:01,080 Sploitego is an awesome framework. Awesome. And Uncle Sploitego needs your help. So thanks to 346 00:27:01,080 --> 00:27:02,040 Paterva. They've been really helpful. And thank you to all of you for joining us today. And 347 00:27:02,060 --> 00:27:08,820 really encouraging Andrew McPherson, Rolof Temming. Really great guys. Always a pleasure to 348 00:27:08,820 --> 00:27:14,220 work with them. And Signos and RCGT down in Canada for letting me come out to do the talk. I 349 00:27:14,220 --> 00:27:19,280 hope you enjoyed the talk. And I'll be in the Q&A if there's any questions or I could take 350 00:27:19,280 --> 00:27:29,160 some questions here. Email? Thank you.