1 00:00:05,700 --> 00:00:14,020 Howdy, I'm Wes Brown, and this is Scott Dunlop, and we have been working on this really last 2 00:00:14,020 --> 00:00:15,460 year or so. 3 00:00:16,240 --> 00:00:26,880 Some of you may have seen last year's presentation where we had a Lua-based prototype, but we 4 00:00:26,880 --> 00:00:33,120 are FML security, and we conduct research, development, and engineering of very interesting 5 00:00:33,120 --> 00:00:34,520 solutions and products. 6 00:00:35,020 --> 00:00:41,280 Many of them are available openly with the option to purchase an unencumbered license 7 00:00:41,280 --> 00:00:43,720 for integration into commercial products. 8 00:00:44,320 --> 00:00:51,060 The stuff you will find on the internet are all GPO or GPL, so you can download it and 9 00:00:51,060 --> 00:00:51,880 try it yourself. 10 00:00:54,520 --> 00:00:56,380 What is Mosquito? 11 00:00:56,580 --> 00:00:56,860 Mosquito is a mosquito. 12 00:00:56,880 --> 00:01:03,220 It is a virtual machine environment with a lightweight framework to deploy and run 13 00:01:03,220 --> 00:01:07,820 code remotely and securely in the context of penetration tests. 14 00:01:08,520 --> 00:01:18,000 It makes the best effort to ensure that communications are secure because historically, exploits 15 00:01:18,000 --> 00:01:25,600 have not tried to make sure that the communication is secure, and it can't always do so. 16 00:01:27,140 --> 00:01:34,280 Deployed code in a virtual machine is not stored outside of the process space, meaning 17 00:01:34,280 --> 00:01:35,960 it never hits the disk. 18 00:01:36,340 --> 00:01:39,940 When you have an exploit, it will not hit the disk. 19 00:01:40,140 --> 00:01:45,500 You have a methodology, it will not hit the disk unless God forbid you manage to swap. 20 00:01:48,420 --> 00:01:54,980 It protects the confidentiality and trade secrets of code that is deployed and run on 21 00:01:54,980 --> 00:01:55,460 the target. 22 00:01:55,600 --> 00:01:59,440 This could be an exploit or a methodology. 23 00:02:01,920 --> 00:02:03,700 Why do all this? 24 00:02:04,560 --> 00:02:11,940 Often it is desirable to leverage zero-day code, but doing so in an uncontrolled fashion 25 00:02:11,940 --> 00:02:13,480 can have repercussions. 26 00:02:13,860 --> 00:02:21,460 Like if you use zero-day code and somebody at the target managed to get ahold of the 27 00:02:21,460 --> 00:02:25,420 zero-day code, you might spread that around with something. 28 00:02:25,480 --> 00:02:25,580 That's not good. 29 00:02:26,420 --> 00:02:33,400 Many processes have trade secrets and methodologies distilled in the form of audit or exploit 30 00:02:33,400 --> 00:02:36,260 code that they would keep out of the hands. 31 00:02:36,700 --> 00:02:42,600 And for that reason, they would tend to keep it on their own machines that they can control. 32 00:02:43,300 --> 00:02:51,240 What Miskito lets you do is deploy the code you want to control on a victim machine and 33 00:02:51,240 --> 00:02:55,580 have a reasonable precaution of it being secure and secure. 34 00:02:55,580 --> 00:02:59,600 It's not safe from being reverse engineered and tampered with. 35 00:03:03,340 --> 00:03:11,600 As I've said before, Miskito uses a very strong cryptography to ensure that communication 36 00:03:12,000 --> 00:03:15,300 between the target and the console is secure. 37 00:03:16,080 --> 00:03:25,560 And more interestingly, it provides a dynamic remote institution environment allowing the 38 00:03:25,580 --> 00:03:25,740 user to interact with it. 39 00:03:25,740 --> 00:03:28,160 It's like modifications of code. 40 00:03:30,080 --> 00:03:34,760 How does this approach compare to the others historically? 41 00:03:35,880 --> 00:03:37,220 Shell code. 42 00:03:37,440 --> 00:03:44,740 Shell code is static, inflexible, low level, and targeted to one environment. 43 00:03:45,400 --> 00:03:48,500 It can break with patches or environment changes. 44 00:03:49,200 --> 00:03:54,820 Many exploits I have seen break between Windows service pack levels. 45 00:03:54,820 --> 00:04:02,940 And so you would have to refactor your exploit target towards that new service pack level. 46 00:04:04,880 --> 00:04:08,280 We also have syscall proxies. 47 00:04:08,460 --> 00:04:12,400 They're more flexible than shell code and higher level. 48 00:04:13,060 --> 00:04:17,340 However, the driving logic is on the attacker's side. 49 00:04:17,680 --> 00:04:20,940 The target doesn't have any of the driving logic. 50 00:04:21,760 --> 00:04:24,800 Because the console is being targeted. 51 00:04:24,800 --> 00:04:27,100 It's pushing syscalls to the target. 52 00:04:27,640 --> 00:04:31,880 What happens when the network is unreliable, it breaks. 53 00:04:32,300 --> 00:04:35,340 And that happens a lot. 54 00:04:36,300 --> 00:04:40,480 And syscalls are great if you just want to get a shell. 55 00:04:40,820 --> 00:04:47,560 But syscalls are very clumsy if you want to actually implement a program to run on 56 00:04:47,560 --> 00:04:47,940 the client. 57 00:04:49,560 --> 00:04:52,400 We also have DLL injection. 58 00:04:53,380 --> 00:04:54,320 We can implement. 59 00:04:54,320 --> 00:04:56,220 We can implement higher level features easily. 60 00:04:56,960 --> 00:05:00,380 Logic can be placed on the target side and run. 61 00:05:01,260 --> 00:05:03,480 But it is still static. 62 00:05:04,060 --> 00:05:05,720 And it's Windows only. 63 00:05:06,520 --> 00:05:10,920 When you write DLL injection code, it will run only on Windows. 64 00:05:12,180 --> 00:05:21,200 And taking the next step up, we have exploit compilers that are often compilers, written 65 00:05:21,200 --> 00:05:22,580 and scripting languages. 66 00:05:22,940 --> 00:05:24,300 Target to two or three. 67 00:05:24,300 --> 00:05:31,060 With assembler of a target platform allowing some level of abstraction at programming time. 68 00:05:31,600 --> 00:05:35,360 But they are still static at compile time. 69 00:05:36,380 --> 00:05:42,580 Once you compile them, once you've got them on the victim, you can't easily change them. 70 00:05:44,600 --> 00:05:49,540 So we come to lightweight application virtual machines. 71 00:05:50,280 --> 00:05:52,520 It can be very small. 72 00:05:52,880 --> 00:05:53,920 Most of them. 73 00:05:53,920 --> 00:05:57,660 It's 128K binary size and Linux. 74 00:05:58,820 --> 00:06:03,740 That's the whole virtual machine with all the libraries you need to run it. 75 00:06:04,760 --> 00:06:09,100 It can be even smaller with executable compression tricks. 76 00:06:10,300 --> 00:06:15,860 I would say we could get 64 to 80K with executable compression tricks. 77 00:06:16,620 --> 00:06:22,420 And more interestingly, it's wipe once, run anywhere. 78 00:06:23,000 --> 00:06:23,900 Cold, it's not. 79 00:06:23,920 --> 00:06:29,760 Cold running on a Linux VM will run on a Windows VM unaltered. 80 00:06:30,500 --> 00:06:34,240 You don't need to write custom code for your different platforms. 81 00:06:34,580 --> 00:06:41,900 While I've seen exploit code or attack code, you have to write it specific to the platform. 82 00:06:42,320 --> 00:06:45,200 But if you write it using Mosfm, you don't have to. 83 00:06:46,940 --> 00:06:52,320 And with Mosfm, we can use languages designed for the task. 84 00:06:52,920 --> 00:06:53,900 We have a lot of different languages. 85 00:06:53,920 --> 00:06:57,240 We created our own language called MosquitoList. 86 00:06:58,440 --> 00:07:06,980 Because we have the flexibility of creating our own language, we can have a language 87 00:07:06,980 --> 00:07:09,680 that's custom designed for this sort of problem. 88 00:07:11,600 --> 00:07:15,560 It provides a very nice orthogonal development environment. 89 00:07:17,620 --> 00:07:18,460 Dynamic. 90 00:07:18,960 --> 00:07:21,560 Code can be altered and updated. 91 00:07:21,760 --> 00:07:23,580 Even on a remote region. 92 00:07:23,920 --> 00:07:31,500 If you get a remote VM on a target, you can continue altering code there dynamically. 93 00:07:33,040 --> 00:07:40,620 So if you have an exploit that doesn't quite work on your target, you can modify it on 94 00:07:40,620 --> 00:07:45,680 the fly on the target and maybe get root level escalation or attack another machine 95 00:07:45,680 --> 00:07:46,360 on the network. 96 00:07:50,040 --> 00:07:53,120 There are several major components to Mosquito. 97 00:07:53,920 --> 00:08:00,000 We've got the core virtual machine, Mosfm, the small core, which is 128K. 98 00:08:00,300 --> 00:08:04,740 We've got the language, MosquitoList environment and libraries. 99 00:08:05,560 --> 00:08:11,500 We've got the console, which provides the user with the interface to manage and deploy 100 00:08:11,500 --> 00:08:12,040 drones. 101 00:08:12,660 --> 00:08:20,480 And we have a drone, which provides a remote process that contacts its match console and 102 00:08:20,480 --> 00:08:23,700 executes byte code and statements on its behalf. 103 00:08:25,360 --> 00:08:28,680 The virtual machine is production ready and stable. 104 00:08:28,980 --> 00:08:35,540 We are in beta 3, meaning we think we're ready for production, but we don't like to say it. 105 00:08:36,240 --> 00:08:39,440 Because we have had hundreds of people hammer it. 106 00:08:39,600 --> 00:08:42,400 And I'm sure you will find bugs, which we will gladly fix. 107 00:08:44,620 --> 00:08:46,520 It's easily extensible. 108 00:08:46,960 --> 00:08:50,140 We were able to implement Regex in a few hours. 109 00:08:50,480 --> 00:08:53,440 We just pulled in the BSD Regex library. 110 00:08:55,640 --> 00:08:58,040 It's pure NCC. 111 00:08:59,400 --> 00:09:02,220 It will run on anything, pretty much. 112 00:09:04,180 --> 00:09:12,560 We, for our development environment, we used OpenBSD, Mac OS X, Linux, and Windows. 113 00:09:13,360 --> 00:09:18,500 Some other people ported it to the MIPS, ARMS, and NIOS 2. 114 00:09:20,540 --> 00:09:22,680 You can run it on your wireless router. 115 00:09:28,460 --> 00:09:32,620 The 128K I mentioned is the virtual machine stub. 116 00:09:33,560 --> 00:09:37,260 It's the actual binary executable target to tourist platform. 117 00:09:38,380 --> 00:09:42,700 And we can attach byte code to the stubs. 118 00:09:43,660 --> 00:09:48,160 Programs and applications can be compiled and attached to stubs. 119 00:09:48,460 --> 00:09:52,020 So if you have a stubs for four different platforms. 120 00:09:53,440 --> 00:09:57,920 In one pass, build an executable for every platform you have. 121 00:09:59,860 --> 00:10:04,980 And it allows standalone executables with no external dependencies. 122 00:10:05,620 --> 00:10:12,160 If you've got an XML library, you've got an HTTP library, you've got a Regex library, 123 00:10:12,600 --> 00:10:17,760 you can have it all in one executable without having to install anything else on your target 124 00:10:17,760 --> 00:10:18,280 system. 125 00:10:20,800 --> 00:10:23,100 Dependencies are automatically resolved. 126 00:10:23,320 --> 00:10:23,420 You don't have to install anything else on your target system. 127 00:10:23,420 --> 00:10:30,280 When you use an import statement, Mosquito will automatically figure out what modules 128 00:10:30,280 --> 00:10:34,500 you need, compile it to byte code, and attach it to the virtual machine. 129 00:10:36,040 --> 00:10:46,280 We have integrated very strong cryptography using ECDNs for key exchange and AES for the 130 00:10:46,280 --> 00:10:48,240 communication itself. 131 00:10:51,480 --> 00:10:53,160 Now, MosquitoLisp. 132 00:10:53,420 --> 00:10:54,200 The language. 133 00:10:54,780 --> 00:11:00,960 It's a network-oriented and compact Lisp with strong influences from Scheme. 134 00:11:01,680 --> 00:11:04,700 It's designed for network applications. 135 00:11:05,300 --> 00:11:10,580 It's highly concurrent and provides simple and efficient network and process APIs. 136 00:11:11,680 --> 00:11:16,320 Over the last year, we have implemented our library function. 137 00:11:16,720 --> 00:11:22,320 We have over 300 primitive functions or 200 library functions in the standard library. 138 00:11:22,600 --> 00:11:23,400 Not only that. 139 00:11:23,400 --> 00:11:27,020 We are not including additional libraries specifically to Mosquit. 140 00:11:28,160 --> 00:11:30,940 We are well documented, or at least I like to think so. 141 00:11:33,480 --> 00:11:37,940 We have a complete reference manual for the functions that we have. 142 00:11:38,600 --> 00:11:40,820 How many programming languages can claim that? 143 00:11:44,520 --> 00:11:49,880 The language is sufficiently developed that we wrote the compiler in it. 144 00:11:50,940 --> 00:11:53,140 It is the Mosquito compiler. 145 00:11:53,400 --> 00:11:55,000 It's written in MosquitoLisp. 146 00:11:55,240 --> 00:11:58,920 The compiler compiles itself as part of the build process. 147 00:12:01,200 --> 00:12:05,080 We got all sorts of nice goodies in the standard library. 148 00:12:05,560 --> 00:12:07,860 It can be available on the drone if you like. 149 00:12:08,120 --> 00:12:09,500 You can have XML. 150 00:12:10,060 --> 00:12:13,540 You can have an in-memory database, queryable database. 151 00:12:14,000 --> 00:12:15,560 We have Regex support. 152 00:12:15,900 --> 00:12:17,340 We have InstaDB. 153 00:12:17,560 --> 00:12:21,180 All of that in this tiny little drone you can put on a remote host. 154 00:12:21,540 --> 00:12:22,900 I'm going to show you how it works. 155 00:12:22,900 --> 00:12:23,000 I'm going to show you how it works. 156 00:12:23,400 --> 00:12:30,580 One of the more powerful features of our language and environment is channels. 157 00:12:30,940 --> 00:12:33,760 It allows for abstracted communication. 158 00:12:34,870 --> 00:12:39,680 A cryptographic channel is provided for easy encryption. 159 00:12:40,280 --> 00:12:44,600 We transparently negotiate on top of channels. 160 00:12:45,020 --> 00:12:52,000 And it provides a layer of abstraction from an actual communication mechanism in use. 161 00:12:52,000 --> 00:13:00,100 Right now we use TCP, but there's no reason we can't use UDP, CMP, or DNS. 162 00:13:00,500 --> 00:13:04,200 It will not change any of your higher-level application or functions. 163 00:13:04,740 --> 00:13:11,120 All you have to do is write a little library to do it to guarantee a network connection. 164 00:13:11,660 --> 00:13:14,440 And Mosquito will take care of the rest of it. 165 00:13:16,120 --> 00:13:19,580 Programmers do not care about how communication is done. 166 00:13:20,960 --> 00:13:26,080 Processes and sockets have read and write channels that can be mapped to other channels. 167 00:13:26,720 --> 00:13:30,360 Some people keep thinking that we could use that for distributed computing. 168 00:13:30,980 --> 00:13:34,600 Well, we could, but it's not our goal, our target. 169 00:13:34,880 --> 00:13:39,740 But I wouldn't stop anyone from creating a distributed computing with this. 170 00:13:42,860 --> 00:13:49,480 The drone is a virtual machine with crypto and drone fixes. 171 00:13:49,480 --> 00:13:53,460 Its functionality is highly optimized to reduce size. 172 00:13:53,960 --> 00:13:57,660 It does not include the Mosquito-less bytecode compiler. 173 00:13:58,000 --> 00:13:59,840 It cannot compile things by itself. 174 00:14:00,220 --> 00:14:05,200 It stores and executes bytecode programs sent by the console. 175 00:14:05,760 --> 00:14:12,480 It can pull additional libraries from consoles over channels rather than embed in drone stub, 176 00:14:12,800 --> 00:14:14,140 including the compiler. 177 00:14:14,680 --> 00:14:17,580 If you have a drone, you inject the drone. 178 00:14:17,920 --> 00:14:19,460 You can start pulling the drone. 179 00:14:19,460 --> 00:14:26,180 You can start pulling libraries over the link to meet your circumstances. 180 00:14:26,700 --> 00:14:34,160 So you would put the minimum function needed to establish a connection to the console in 181 00:14:34,160 --> 00:14:34,460 the drone. 182 00:14:34,780 --> 00:14:40,040 And once the drone is in, you can pull in all the libraries you want over the network. 183 00:14:40,500 --> 00:14:43,720 This is to keep the drone as small as possible. 184 00:14:44,000 --> 00:14:48,680 And right after we bootstrap, we can expand the functionality. 185 00:14:50,280 --> 00:14:54,740 Bytecode sent by the console is only stored in process memory. 186 00:14:55,020 --> 00:15:00,300 When the console sends it to the drone, we do not write it to the disk. 187 00:15:00,740 --> 00:15:01,880 It's kept in memory. 188 00:15:03,000 --> 00:15:08,560 And even more neat, a drone can relay for a drone to the console. 189 00:15:09,560 --> 00:15:16,960 So if you have a console and you set up a connection to a drone, you inject it using 190 00:15:16,960 --> 00:15:17,640 an exploit. 191 00:15:19,460 --> 00:15:25,760 Then you can upload the exploit program to the drone and then inject it into another 192 00:15:25,760 --> 00:15:26,200 drone. 193 00:15:26,640 --> 00:15:30,960 And the drone will talk to the console through the drone in between. 194 00:15:31,560 --> 00:15:38,380 It's useful for attacking intranets and VMZ networks from an external network. 195 00:15:39,640 --> 00:15:42,280 You can puddle hop very easily with Mosquito. 196 00:15:45,280 --> 00:15:46,920 We have a console. 197 00:15:47,200 --> 00:15:48,880 It's just a virtual machine. 198 00:15:49,180 --> 00:15:49,440 It's just a virtual machine. 199 00:15:49,460 --> 00:15:52,800 Plus crypto, plus console functionality. 200 00:15:53,380 --> 00:15:58,100 It provides a local process to control deploy drones. 201 00:15:58,600 --> 00:16:01,680 It provides the full MosquitoLisp environment. 202 00:16:02,920 --> 00:16:10,140 It includes the compiler to compile MosquitoLips and statements and programs for the drone 203 00:16:10,140 --> 00:16:10,880 on the fly. 204 00:16:11,560 --> 00:16:16,280 We have an interface to interact with drones. 205 00:16:16,640 --> 00:16:19,440 And we can create drones on the fly. 206 00:16:19,440 --> 00:16:28,560 So if you begin a penetration test and you have no idea what your target is, you find 207 00:16:28,560 --> 00:16:29,600 a Windows machine. 208 00:16:29,980 --> 00:16:34,520 You can create a drone for the Windows machine right there with all your libraries. 209 00:16:38,340 --> 00:16:40,240 What can you use Mosquito for? 210 00:16:40,520 --> 00:16:46,300 You can refactor exploits into MosquitoLips for secure deployment on a target. 211 00:16:46,300 --> 00:16:52,340 Network and host recon code management and results over secure channel. 212 00:16:52,800 --> 00:16:59,300 If you have a remote support scanner, we can make sure that the data you send back to the 213 00:16:59,300 --> 00:17:02,020 console is not eavesdropped. 214 00:17:02,260 --> 00:17:05,360 It makes it safer for the client, actually. 215 00:17:06,900 --> 00:17:10,760 It simplifies deployment of auditing tool to host. 216 00:17:11,280 --> 00:17:15,440 All dependencies are included with the drone. 217 00:17:15,580 --> 00:17:16,280 And then it's just the user. 218 00:17:16,300 --> 00:17:17,480 managed by the console. 219 00:17:18,740 --> 00:17:24,800 You don't need to implement a ton of dependencies for in-map work-alike. 220 00:17:25,020 --> 00:17:28,280 You just drop a drone and you've got it running on anything. 221 00:17:31,800 --> 00:17:33,900 And here's the demonstration. 222 00:17:33,900 --> 00:17:42,780 You do not have to wait to see the story when you do the demonstration. 223 00:17:43,440 --> 00:17:44,040 Oh. 224 00:17:45,500 --> 00:17:46,420 . 225 00:17:47,900 --> 00:17:49,100 . 226 00:17:49,100 --> 00:17:50,580 . 227 00:17:50,580 --> 00:17:50,600 . 228 00:17:50,600 --> 00:17:52,320 . 229 00:18:04,080 --> 00:18:05,480 . 230 00:18:09,120 --> 00:18:09,900 . 231 00:18:10,520 --> 00:18:10,740 . 232 00:18:12,220 --> 00:18:13,620 . 233 00:18:13,620 --> 00:18:13,640 . 234 00:18:13,640 --> 00:18:13,660 . 235 00:18:13,660 --> 00:18:13,680 . 236 00:18:13,680 --> 00:18:15,600 . 237 00:18:15,600 --> 00:18:15,880 . 238 00:18:31,240 --> 00:18:31,940 . 239 00:18:33,900 --> 00:18:34,620 . 240 00:18:39,080 --> 00:18:39,900 . 241 00:18:40,420 --> 00:18:40,580 . 242 00:18:40,580 --> 00:18:40,720 . 243 00:18:40,720 --> 00:18:41,340 . 244 00:18:41,340 --> 00:18:41,420 . 245 00:18:41,420 --> 00:18:42,200 . 246 00:18:42,200 --> 00:18:43,760 . 247 00:18:43,760 --> 00:18:43,780 . 248 00:18:58,020 --> 00:18:59,360 . 249 00:18:59,360 --> 00:18:59,380 . 250 00:18:59,630 --> 00:19:00,300 . 251 00:19:00,300 --> 00:19:00,920 . 252 00:19:02,640 --> 00:19:04,040 . 253 00:19:04,040 --> 00:19:04,260 . 254 00:19:04,260 --> 00:19:05,540 . 255 00:19:05,540 --> 00:19:05,600 . 256 00:19:05,600 --> 00:19:05,680 . 257 00:19:05,680 --> 00:19:05,800 . 258 00:19:05,800 --> 00:19:07,340 . 259 00:19:07,340 --> 00:19:07,400 . 260 00:19:07,400 --> 00:19:09,720 . 261 00:19:09,720 --> 00:19:11,500 . 262 00:19:11,500 --> 00:19:12,980 . 263 00:19:12,980 --> 00:19:14,100 . 264 00:19:20,820 --> 00:19:21,380 . . 265 00:19:30,900 --> 00:19:31,420 . . 266 00:19:33,700 --> 00:19:34,260 . . 267 00:19:36,860 --> 00:19:37,280 . . 268 00:19:37,280 --> 00:19:37,320 . . 269 00:19:37,320 --> 00:19:37,360 . . 270 00:19:37,360 --> 00:19:37,400 . . 271 00:19:37,400 --> 00:19:37,420 . . 272 00:19:51,460 --> 00:19:52,860 Hmm. 273 00:20:36,000 --> 00:20:37,400 Well. 274 00:20:48,020 --> 00:20:54,700 Here, why don't you just, Wes, why don't you let me just have a virtual machine and I'll 275 00:20:54,700 --> 00:20:56,040 put a web server there. 276 00:21:03,360 --> 00:21:04,760 That's a really annoying beep, man. 277 00:21:32,640 --> 00:21:35,280 I'm glad we're not demoing VMware today. 278 00:21:35,360 --> 00:21:35,680 Yeah. 279 00:21:40,480 --> 00:21:41,800 Come on, let it go. 280 00:21:45,740 --> 00:21:46,160 Yeah. 281 00:21:51,220 --> 00:21:54,560 You didn't tell VMware to allocate a full gig for that image, did you? 282 00:21:55,860 --> 00:21:57,440 It's 3.84, but that's... 283 00:21:58,320 --> 00:21:59,780 Oh, wait, here we go. 284 00:22:15,600 --> 00:22:18,020 I'm going to do a little backup. 285 00:22:18,260 --> 00:22:18,320 Oh, wait. 286 00:22:23,300 --> 00:22:23,620 Oh. 287 00:22:25,640 --> 00:22:26,520 Oh. 288 00:22:27,100 --> 00:22:27,220 Oh. 289 00:22:27,220 --> 00:22:27,580 Oh. 290 00:22:28,120 --> 00:22:28,560 Oh. 291 00:22:28,560 --> 00:22:29,420 Oh. 292 00:22:29,420 --> 00:22:30,100 Oh. 293 00:22:30,100 --> 00:22:30,540 Oh. 294 00:22:30,540 --> 00:22:30,760 Oh. 295 00:22:31,860 --> 00:22:32,740 Oh. 296 00:22:37,800 --> 00:22:40,600 If you were a little closer, you could hear this thing paging like crazy. 297 00:22:46,900 --> 00:22:48,020 Yeah, I'm not a patient man. 298 00:22:53,360 --> 00:22:54,600 I'm kicking myself right now. 299 00:22:54,640 --> 00:22:57,260 They're asking, do you want to put the other laptop in the switch box? 300 00:22:57,800 --> 00:22:58,120 No. 301 00:23:27,300 --> 00:23:29,980 You started it loading out of their virtual machine? 302 00:23:30,180 --> 00:23:30,220 Yeah. 303 00:23:31,960 --> 00:23:35,820 Now Windows 2000's massively efficient boot up process is... 304 00:23:43,920 --> 00:23:45,460 Well, we'll give it an hour. 305 00:23:46,000 --> 00:23:46,520 Yeah. 306 00:23:48,280 --> 00:23:48,800 Yeah. 307 00:23:57,740 --> 00:23:59,840 Maybe you should shut down your BitTorrent clients. 308 00:24:14,940 --> 00:24:16,880 Well, at least the Linux image is being helpful. 309 00:24:27,480 --> 00:24:27,960 Well... 310 00:24:36,520 --> 00:24:37,000 Well... 311 00:24:37,000 --> 00:24:37,380 Well... 312 00:25:00,980 --> 00:25:02,300 It's still paging like mad. 313 00:25:02,400 --> 00:25:03,160 I don't think you can hear it. 314 00:25:03,680 --> 00:25:03,960 Yeah. 315 00:25:05,480 --> 00:25:05,760 Yeah. 316 00:25:11,140 --> 00:25:12,540 Yeah. 317 00:25:18,940 --> 00:25:20,340 Yeah. 318 00:25:21,400 --> 00:25:22,760 Yeah. 319 00:25:24,000 --> 00:25:24,340 Yeah. 320 00:25:25,240 --> 00:25:26,640 Yeah. 321 00:25:27,560 --> 00:25:28,960 Yeah. 322 00:25:28,960 --> 00:25:29,700 Yeah. 323 00:25:30,840 --> 00:25:32,240 Yeah. 324 00:25:34,220 --> 00:25:34,440 Yeah. 325 00:25:35,500 --> 00:25:36,900 Yeah. 326 00:25:36,900 --> 00:25:36,920 Yeah. 327 00:25:59,240 --> 00:26:01,160 I do have a flashy cursor, that's enough. 328 00:26:02,420 --> 00:26:04,280 Back away, before I break something else. 329 00:26:13,440 --> 00:26:13,920 Bam. 330 00:26:15,240 --> 00:26:16,000 All right. 331 00:26:16,500 --> 00:26:17,420 As we were. 332 00:26:20,460 --> 00:26:23,960 I tend to use make repl, because I really like rl-repl, and I can never remember the 333 00:26:23,960 --> 00:26:25,340 exact symbols file. 334 00:26:27,520 --> 00:26:29,040 Let's see, tcp server. 335 00:26:29,680 --> 00:26:30,160 Okay. 336 00:26:31,400 --> 00:26:34,100 What we're going to do is create a little tcp server real quick. 337 00:26:34,720 --> 00:26:35,520 Nothing fancy. 338 00:26:54,280 --> 00:26:55,480 Let's hope I gave it a port. 339 00:27:02,880 --> 00:27:06,420 Before anybody gets any clever ideas, no, my wireless is not on. 340 00:27:20,860 --> 00:27:21,840 I need coffee. 341 00:27:21,980 --> 00:27:22,500 Can you get me coffee? 342 00:27:26,780 --> 00:27:27,520 All right. 343 00:27:28,060 --> 00:27:30,620 As you can see, we spawned tcp server. 344 00:27:31,460 --> 00:27:35,780 Lambda is a funny way of just saying an anonymous function for those of you not familiar with 345 00:27:36,460 --> 00:27:36,700 lisp. 346 00:27:38,940 --> 00:27:40,000 So we spawned it. 347 00:27:40,060 --> 00:27:44,360 It kicked a process off in the background to listen to port 9911 for tcp connections. 348 00:27:45,380 --> 00:27:52,480 We did define C. All we did was we told it define C, bind it to a new tcp connection 349 00:27:52,480 --> 00:27:54,420 to local host port 9911. 350 00:27:55,300 --> 00:28:00,480 Now, the first thing we have to do, because the connection is asynchronous, we have to 351 00:28:00,480 --> 00:28:02,080 check to see that it actually has connected. 352 00:28:02,900 --> 00:28:03,340 Connects. 353 00:28:03,340 --> 00:28:03,680 Good. 354 00:28:04,680 --> 00:28:09,660 Now, we can do another wait, get the by message that we sent earlier. 355 00:28:11,140 --> 00:28:11,780 Or not. 356 00:28:15,500 --> 00:28:16,500 Let's take a look at why. 357 00:28:18,380 --> 00:28:18,820 . 358 00:28:18,820 --> 00:28:19,620 . 359 00:28:36,240 --> 00:28:37,820 No, that should be okay. 360 00:28:40,180 --> 00:28:40,760 . 361 00:28:44,440 --> 00:28:45,180 Let's see. 362 00:28:47,220 --> 00:28:47,800 Huh? 363 00:28:48,940 --> 00:28:49,460 . 364 00:28:50,000 --> 00:28:51,860 Oh, actually, that is correct. 365 00:28:52,040 --> 00:28:56,660 The single quote there actually is lisp for do not evaluate. 366 00:28:56,800 --> 00:29:02,180 If I just sent close here, I'd be sending the close function or whatever is bound to 367 00:29:02,180 --> 00:29:02,400 close. 368 00:29:04,480 --> 00:29:05,520 It's a little weird. 369 00:29:05,640 --> 00:29:06,960 It's how lisp likes to escape things. 370 00:29:09,200 --> 00:29:09,720 . 371 00:29:12,320 --> 00:29:13,680 Somebody else wants to try it. 372 00:29:13,680 --> 00:29:13,760 Okay. 373 00:29:17,520 --> 00:29:18,360 All right. 374 00:29:18,400 --> 00:29:19,180 Let's try that again. 375 00:29:23,200 --> 00:29:24,780 This is a little bit of insurance. 376 00:29:25,920 --> 00:29:26,760 Timeout C. 377 00:29:29,700 --> 00:29:30,580 That's reasonable. 378 00:29:31,940 --> 00:29:32,900 10,000. 379 00:29:38,520 --> 00:29:39,080 Oops. 380 00:29:39,400 --> 00:29:39,960 . 381 00:29:40,700 --> 00:29:41,100 . 382 00:29:44,420 --> 00:29:45,780 That gives us a timeout. 383 00:29:47,720 --> 00:29:48,820 Now we do another wait. 384 00:29:49,980 --> 00:29:50,840 Still no good. 385 00:29:51,440 --> 00:29:54,460 This is a good time for me to ask you what firewall policies you put on this thing. 386 00:29:54,980 --> 00:29:55,280 . 387 00:29:58,160 --> 00:29:59,080 You're sabotaging me. 388 00:29:59,120 --> 00:29:59,620 You know that, right? 389 00:30:00,280 --> 00:30:00,680 . 390 00:30:02,000 --> 00:30:02,400 Okay. 391 00:30:03,080 --> 00:30:03,800 That's no good. 392 00:30:04,240 --> 00:30:04,640 . 393 00:30:05,760 --> 00:30:07,920 Well, I've shown the interactive debugging capabilities. 394 00:30:08,460 --> 00:30:08,860 . 395 00:30:08,860 --> 00:30:09,520 . 396 00:30:14,860 --> 00:30:17,180 Did any of the other virtual machines manage to make it up? 397 00:30:17,980 --> 00:30:18,220 . 398 00:30:18,220 --> 00:30:19,880 That was a virtual machine that clashed. 399 00:30:21,480 --> 00:30:21,940 . 400 00:30:23,000 --> 00:30:24,060 Is the victim alive? 401 00:30:24,980 --> 00:30:25,440 . 402 00:30:27,440 --> 00:30:27,900 Oops. 403 00:30:29,180 --> 00:30:29,620 . 404 00:30:29,620 --> 00:30:29,940 . 405 00:30:29,940 --> 00:30:30,020 . 406 00:30:30,020 --> 00:30:30,220 . 407 00:30:30,220 --> 00:30:30,860 . 408 00:30:30,860 --> 00:30:30,900 . 409 00:30:32,240 --> 00:30:32,480 . 410 00:30:34,240 --> 00:30:34,480 . 411 00:30:35,360 --> 00:30:35,600 . 412 00:30:35,600 --> 00:30:35,620 . 413 00:30:40,320 --> 00:30:40,560 . 414 00:30:40,560 --> 00:30:40,580 . 415 00:30:50,260 --> 00:30:50,500 . 416 00:30:50,500 --> 00:30:50,560 . 417 00:30:50,560 --> 00:30:50,680 . 418 00:30:50,680 --> 00:30:50,780 . 419 00:30:50,780 --> 00:30:50,800 . 420 00:30:50,800 --> 00:30:50,860 . 421 00:30:50,860 --> 00:30:51,200 . 422 00:30:51,200 --> 00:30:51,240 . 423 00:30:51,240 --> 00:30:51,300 . 424 00:30:51,300 --> 00:30:51,640 . 425 00:30:51,640 --> 00:30:51,880 . 426 00:31:02,920 --> 00:31:04,360 About 190. 427 00:31:04,540 --> 00:31:06,400 What is that? 190, 130. 428 00:31:08,660 --> 00:31:09,380 Alright. 429 00:31:09,380 --> 00:31:09,540 Alright. 430 00:31:28,380 --> 00:31:28,920 190. 431 00:31:29,340 --> 00:31:32,520 Got 130. You can tell he's got the eidetic memory around here. 432 00:31:39,380 --> 00:31:40,960 And we get a bad request. 433 00:31:54,400 --> 00:31:56,160 The website crashed. 434 00:31:58,280 --> 00:32:02,280 A testament to IIS's reliability here. 435 00:32:04,020 --> 00:32:07,520 Actually, no, I got a bad request directly from the server. 436 00:32:18,240 --> 00:32:18,800 Okay. 437 00:32:18,800 --> 00:32:20,840 Now you get to guess how it filled up all your virtual machines 438 00:32:20,840 --> 00:32:21,680 for your test. 439 00:32:23,460 --> 00:32:27,060 Okay, we're back at the MOSREP console. 440 00:32:28,320 --> 00:32:33,380 And these are all the commands that we have in the MOSREP console 441 00:32:33,380 --> 00:32:34,240 right now. 442 00:32:34,240 --> 00:32:37,900 We have copy. 443 00:32:38,040 --> 00:32:41,240 We have drone. We have create a drone. 444 00:32:41,680 --> 00:32:42,860 We have fork. 445 00:32:44,580 --> 00:32:48,480 For example, do plus three five. 446 00:32:49,840 --> 00:32:54,280 And that gives you eight. And I will evaluate a LISP expression. 447 00:32:55,260 --> 00:32:56,400 We have 448 00:32:59,700 --> 00:33:01,540 recreate a drone 449 00:33:01,540 --> 00:33:02,700 on the file. 450 00:33:03,180 --> 00:33:04,880 ID platform. 451 00:33:06,200 --> 00:33:07,800 So we can do 452 00:33:10,160 --> 00:33:10,920 drone. 453 00:33:12,080 --> 00:33:13,560 Linux drone. 454 00:33:15,700 --> 00:33:18,860 ID Ubuntu drone. 455 00:33:19,180 --> 00:33:21,760 And then Linux x86. 456 00:33:22,480 --> 00:33:24,640 And I will specify the platform. 457 00:33:25,100 --> 00:33:25,920 We can do 458 00:33:26,720 --> 00:33:27,480 Darwin. 459 00:33:27,720 --> 00:33:29,640 Or we can do Windows. 460 00:33:30,020 --> 00:33:31,200 Or we can do 461 00:33:31,200 --> 00:33:31,520 Windows. 462 00:33:31,540 --> 00:33:32,380 Linux. 463 00:33:33,440 --> 00:33:35,260 But why are we doing Linux? 464 00:33:51,280 --> 00:33:53,380 But first we have to define 465 00:33:53,380 --> 00:33:55,360 the address that the drone 466 00:33:55,360 --> 00:33:57,280 knows to connect back to. 467 00:33:57,600 --> 00:33:59,100 Which is one dot nine 468 00:33:59,100 --> 00:34:01,300 one two nine 469 00:34:08,600 --> 00:34:10,080 Let's create a drone. 470 00:34:12,500 --> 00:34:13,300 Now let's create 471 00:34:13,300 --> 00:34:14,820 the console is listening 472 00:34:14,820 --> 00:34:15,480 the and 473 00:34:15,480 --> 00:34:17,540 point two six o seventy. 474 00:34:17,820 --> 00:34:19,620 So all we need to do is 475 00:34:19,620 --> 00:34:20,640 drone running. 476 00:34:22,300 --> 00:34:23,440 So let's 477 00:34:23,440 --> 00:34:25,240 start another terminal. 478 00:34:28,880 --> 00:34:29,980 And then 479 00:34:29,980 --> 00:34:30,620 use 480 00:34:30,620 --> 00:34:31,520 the 481 00:34:45,720 --> 00:34:52,020 That's the file with the virtual machine itself with the drone functionality attached 482 00:34:52,020 --> 00:34:53,020 in bytecode. 483 00:34:53,400 --> 00:34:57,640 So we just modded it, so let's run it. 484 00:34:58,600 --> 00:35:02,840 And now the drone has a cryptographic connection to the console. 485 00:35:05,140 --> 00:35:06,820 Oh, sure, it behaves for you. 486 00:35:07,220 --> 00:35:07,440 Yeah. 487 00:35:07,760 --> 00:35:15,360 And we did key change and all that while we did the connection. 488 00:35:15,820 --> 00:35:23,780 The drone is given a key, a one-time key that is used when it's connected to the console. 489 00:35:24,180 --> 00:35:26,840 No other drone will have that key. 490 00:35:29,160 --> 00:35:33,020 So we have a drone named Ubuntu drone. 491 00:35:34,480 --> 00:35:39,600 And it's listed in the list of nodes. 492 00:35:40,300 --> 00:35:44,080 There's a node command which shows all the drones that are connected. 493 00:35:45,300 --> 00:35:55,540 So we have a special command called on Ubuntu drone. 494 00:35:56,240 --> 00:35:57,160 What's that? 495 00:35:57,640 --> 00:36:00,200 Do plus three five. 496 00:36:02,500 --> 00:36:08,780 This looks simple, but it's doing a lot of magic behind the scenes to let this happen. 497 00:36:09,540 --> 00:36:14,840 What it was doing was it was taking the Lisp expression plus three five. 498 00:36:15,260 --> 00:36:18,020 It was compiling it to bytecode. 499 00:36:18,640 --> 00:36:25,780 It was taking this bytecode, transmitting it over the cryptographic connection to be 500 00:36:25,780 --> 00:36:27,620 executed on the drone. 501 00:36:27,620 --> 00:36:33,480 And then the drone passed by the result eight. 502 00:36:36,500 --> 00:36:43,840 So we have some pretty neat functions like fork. 503 00:36:48,390 --> 00:36:50,440 And it will spawn a new window. 504 00:36:50,740 --> 00:36:52,800 This will work on Mac OS X. 505 00:36:53,140 --> 00:36:56,640 This will work on Windows. 506 00:36:56,640 --> 00:37:03,900 We have some sort of platform native way of spawning windows on each of these platforms. 507 00:37:04,400 --> 00:37:08,880 But we just spawned a new window for that particular context. 508 00:37:09,440 --> 00:37:10,520 Ubuntu drone. 509 00:37:10,920 --> 00:37:15,660 So whenever you type a statement in that, it will happen on the drone itself rather 510 00:37:15,660 --> 00:37:16,560 than on the console. 511 00:37:17,600 --> 00:37:19,300 So we have plus. 512 00:37:24,960 --> 00:37:26,620 Do plus eight. 513 00:37:26,620 --> 00:37:26,960 Do plus eight five. 514 00:37:27,280 --> 00:37:27,600 Three five. 515 00:37:28,340 --> 00:37:28,940 All right. 516 00:37:31,420 --> 00:37:34,520 Now, we can create a new drone. 517 00:37:37,480 --> 00:37:38,320 Drone. 518 00:37:40,740 --> 00:37:45,420 Ubuntu drone to Linux. 519 00:37:46,440 --> 00:37:49,400 Drone to Ubuntu. 520 00:37:50,220 --> 00:37:52,820 Drone to Linux. 521 00:37:52,940 --> 00:37:53,740 It's 86. 522 00:37:57,500 --> 00:37:58,140 Whoops. 523 00:38:02,600 --> 00:38:04,720 I forgot to set the address. 524 00:38:16,500 --> 00:38:17,140 Okay. 525 00:38:17,300 --> 00:38:20,460 And now the drone is lifting on that port. 526 00:38:20,680 --> 00:38:21,680 Not the console. 527 00:38:22,340 --> 00:38:23,720 The drone is lifting. 528 00:38:23,720 --> 00:38:24,640 The drone is lifting on that port. 529 00:38:25,740 --> 00:38:28,440 So let's make a new terminal window. 530 00:38:44,020 --> 00:38:45,440 Set it to suitable. 531 00:38:49,520 --> 00:38:53,600 And now, the drone connected to the drone. 532 00:38:54,180 --> 00:38:56,840 And through the drone, it's talking to the console. 533 00:38:57,660 --> 00:38:59,220 So let's check out the console. 534 00:39:03,540 --> 00:39:04,580 There it is. 535 00:39:06,120 --> 00:39:11,420 And now, we can do on Ubuntu drone to... 536 00:39:11,420 --> 00:39:12,440 . 537 00:39:15,660 --> 00:39:17,100 On Ubuntu. 538 00:39:20,180 --> 00:39:21,820 Do plus three five. 539 00:39:23,660 --> 00:39:27,020 And now, what happened here is the bytecode was compiled. 540 00:39:27,520 --> 00:39:31,820 It was transmitted to the drone through the drone relay in between. 541 00:39:33,120 --> 00:39:38,460 And further, the drone in between doesn't know what's going on. 542 00:39:38,640 --> 00:39:41,840 Because the channel between the console and the second drone 543 00:39:41,840 --> 00:39:44,100 is its own cryptographic channel. 544 00:39:45,540 --> 00:39:48,800 Only the console has the keys for the drones. 545 00:39:49,140 --> 00:39:55,000 So even if you have intermediary drones and somebody intercepts the drones in between, 546 00:39:55,400 --> 00:39:56,440 no good. 547 00:39:56,840 --> 00:39:59,840 You don't have the keys for any of the other drones. 548 00:40:01,480 --> 00:40:04,580 And then, this is new. 549 00:40:07,340 --> 00:40:09,020 We have a proxy. 550 00:40:09,280 --> 00:40:10,820 A SOX proxy. 551 00:40:14,420 --> 00:40:20,000 On Ubuntu drone to proxy. 552 00:40:21,680 --> 00:40:24,340 And now, we have a SOX proxy running. 553 00:40:25,700 --> 00:40:27,980 So let's fire up Firefox. 554 00:40:49,300 --> 00:40:51,540 Let's go to preferences. 555 00:40:57,280 --> 00:41:03,060 And then, we can connect manual proxy connection. 556 00:41:03,800 --> 00:41:05,320 Local host. 557 00:41:05,540 --> 00:41:07,040 And we got... 558 00:41:07,840 --> 00:41:08,640 . 559 00:41:10,540 --> 00:41:11,640 . 560 00:41:12,110 --> 00:41:14,240 It's 2-7-2-4-1. 561 00:41:16,600 --> 00:41:17,700 . 562 00:41:18,640 --> 00:41:21,480 2-7-2-4-1. 563 00:41:22,540 --> 00:41:24,820 It's a SOX4 proxy. 564 00:41:26,170 --> 00:41:27,200 Just push OK. 565 00:41:30,400 --> 00:41:32,080 And then... 566 00:41:33,230 --> 00:41:33,780 . 567 00:41:42,740 --> 00:41:43,620 . 568 00:41:43,620 --> 00:41:44,480 . 569 00:41:46,620 --> 00:41:47,740 It's a little slow. 570 00:41:48,380 --> 00:41:48,820 . 571 00:41:50,760 --> 00:41:54,620 But this proxy was happening through two drones. 572 00:41:56,380 --> 00:42:00,720 So the proxy was originating from Ubuntu drone 2. 573 00:42:00,720 --> 00:42:01,000 . 574 00:42:02,540 --> 00:42:03,120 . 575 00:42:03,120 --> 00:42:04,800 So we can have a chain of drone, 576 00:42:04,940 --> 00:42:06,780 and you can proxy all the way through. 577 00:42:08,460 --> 00:42:09,040 . 578 00:42:09,040 --> 00:42:09,500 . 579 00:42:09,500 --> 00:42:10,060 . 580 00:42:13,180 --> 00:42:13,760 . 581 00:42:13,760 --> 00:42:19,200 We have a port scanner, too. 582 00:42:19,340 --> 00:42:19,600 . 583 00:42:22,120 --> 00:42:22,700 . 584 00:42:22,700 --> 00:42:22,800 . 585 00:42:23,440 --> 00:42:24,020 . 586 00:42:25,280 --> 00:42:25,860 . 587 00:42:25,860 --> 00:42:25,880 . 588 00:42:25,880 --> 00:42:39,900 to port 80 and then 192.168.190.130 and then 80. 589 00:42:47,100 --> 00:42:49,080 And then we got the port scanner. 590 00:42:49,080 --> 00:43:00,000 What it did was it sent a little program to the drone with an import statement to the 591 00:43:00,000 --> 00:43:03,140 drone's port scan library. 592 00:43:04,300 --> 00:43:12,020 And because our import is network transparent, it pulled the bytecode for the port scanner 593 00:43:12,360 --> 00:43:17,700 across the network to the drone before the drone didn't have a port scanner. 594 00:43:17,880 --> 00:43:18,760 But now it does. 595 00:43:18,760 --> 00:43:23,020 All we had to do was issue the client name. 596 00:43:23,360 --> 00:43:26,880 And we have the functionality on the drone that we did not have before. 597 00:43:28,800 --> 00:43:39,360 And then I wish I could demo you some of the really neat things that we have, a Win32 drone. 598 00:43:39,680 --> 00:43:42,160 But as you saw, the Windows VM crashed. 599 00:43:45,740 --> 00:43:47,560 But we have... 600 00:43:48,360 --> 00:43:56,960 Windows drones, we have Linux drones, we have Macintosh drones. 601 00:43:57,280 --> 00:44:02,220 And other people have compiled it for their wireless routers, too. 602 00:44:02,720 --> 00:44:05,340 So they could put a drone on their wireless router. 603 00:44:05,560 --> 00:44:07,300 And it was pretty neat to see. 604 00:44:14,780 --> 00:44:15,480 Hold on. 605 00:44:16,120 --> 00:44:17,360 You forgot to jump something. 606 00:44:17,420 --> 00:44:17,540 Okay. 607 00:44:17,560 --> 00:44:17,700 Go ahead. 608 00:44:26,180 --> 00:44:29,020 First of all, I hate having to type this over and over again. 609 00:44:30,200 --> 00:44:30,660 There. 610 00:44:37,220 --> 00:44:39,140 You do have NMAP installed, right? 611 00:44:40,220 --> 00:44:40,860 Maybe not. 612 00:44:41,480 --> 00:44:41,940 Nope. 613 00:44:42,860 --> 00:44:44,900 Boy, Ubuntu never has anything useful. 614 00:44:46,400 --> 00:44:47,320 All right. 615 00:44:47,360 --> 00:44:47,540 Thank you. 616 00:44:47,540 --> 00:44:49,020 Why do I need NMAP? 617 00:44:49,080 --> 00:44:49,940 I got the port scanner. 618 00:44:51,380 --> 00:44:52,380 I'd like to verify. 619 00:45:01,540 --> 00:45:03,280 Oh, you cheap little SOBs. 620 00:45:03,280 --> 00:45:05,220 You didn't actually use the standard N. All right. 621 00:45:07,280 --> 00:45:08,660 Well, that's in the wrong place. 622 00:45:10,000 --> 00:45:11,540 So you just do this, I guess. 623 00:45:15,640 --> 00:45:16,000 Or... 624 00:45:16,960 --> 00:45:17,320 Wanted. 625 00:45:17,320 --> 00:45:17,520 Wanted. 626 00:45:28,020 --> 00:45:28,560 Let's see. 627 00:45:29,700 --> 00:45:30,920 You're forgetting to put Alice on. 628 00:45:31,060 --> 00:45:31,280 Pardon? 629 00:45:31,680 --> 00:45:33,920 You did go back to your top and down. 630 00:45:34,420 --> 00:45:35,480 I suppose I could. 631 00:45:38,000 --> 00:45:39,640 Let's look at index HTML again. 632 00:45:39,960 --> 00:45:40,280 Oops. 633 00:45:42,800 --> 00:45:44,400 Need to get that failover code done. 634 00:45:46,660 --> 00:45:47,500 And it's right here. 635 00:45:47,500 --> 00:45:47,760 right there. 636 00:45:48,880 --> 00:45:52,100 The SH stuff works pretty well, but I wouldn't recommend 637 00:45:52,100 --> 00:45:53,400 trying to use VI through it. 638 00:45:55,160 --> 00:45:57,420 Anything that wants a pseudo-terminal, we 639 00:45:57,420 --> 00:45:58,100 don't support yet. 640 00:46:14,240 --> 00:46:18,920 And what you see is still an unfinished product. 641 00:46:19,120 --> 00:46:21,260 There's always features that we can add. 642 00:46:21,760 --> 00:46:25,420 So in the works, we have stuff in plans. 643 00:46:25,640 --> 00:46:27,720 We have what's just called FFI. 644 00:46:27,720 --> 00:46:34,040 And with the syscall FFI interface, we can abstract it 645 00:46:34,040 --> 00:46:35,880 out using Mosquito Lisp programs. 646 00:46:36,300 --> 00:46:40,920 So you have a form function in Windows that behaves similarly 647 00:46:40,920 --> 00:46:43,300 to a unit's postage call. 648 00:46:43,760 --> 00:46:47,000 We can just implement a Mosquito Lisp library to 649 00:46:47,000 --> 00:46:48,160 abstract that out. 650 00:46:48,560 --> 00:46:54,060 So when you write your methodologies, it will work on 651 00:46:54,060 --> 00:46:56,820 Windows and Linux, regardless of the platform 652 00:46:56,820 --> 00:46:57,500 difference. 653 00:46:58,820 --> 00:47:02,880 One of the neat things we're looking at is DOIL and SHARE 654 00:47:02,880 --> 00:47:08,720 library injection, so that we can insert a drone, and then we 655 00:47:08,720 --> 00:47:12,880 can pool additional binary level libraries over the wire. 656 00:47:13,560 --> 00:47:17,620 Right now, we can pool Mosquito Lisp bytecode, but we 657 00:47:17,620 --> 00:47:21,300 can't extend the functionality to a virtual machine. 658 00:47:21,740 --> 00:47:24,700 But we use DOIL and SHARE library injection. 659 00:47:25,160 --> 00:47:26,140 We can do that. 660 00:47:26,180 --> 00:47:27,460 We can add . . . 661 00:47:27,720 --> 00:47:31,900 We can add kernel drivers for packet sniffing and the like. 662 00:47:32,800 --> 00:47:40,660 One thing we're looking at is accessible compression techniques with a target size of a 64K payload 663 00:47:40,660 --> 00:47:42,140 for the virtual machine drone. 664 00:47:44,340 --> 00:47:51,860 Another thing we're looking at is additional transports, UDP, ICOMP, and CTP DNS. 665 00:47:52,400 --> 00:47:56,600 And of course, there are always core language and environment enhancements. 666 00:47:58,600 --> 00:48:04,600 Another thing we're looking at is in the work is Proboscis, which is the feeder tube 667 00:48:04,600 --> 00:48:05,540 of a Mosquito. 668 00:48:06,980 --> 00:48:12,600 Its only job is to pool a higher-level environment like Mosquito. 669 00:48:13,440 --> 00:48:20,880 We're thinking about making it a fourth virtual machine with an FFI syscall interface, and 670 00:48:20,880 --> 00:48:27,180 it abstracts out the low-level assembler, and it allows multi-architecture shell code, 671 00:48:27,180 --> 00:48:30,320 because fourth is very close to assembler. 672 00:48:30,620 --> 00:48:35,620 It's closer than C is, but it's still a pretty nice language to develop in. 673 00:48:35,940 --> 00:48:46,140 So we have a binary size of 2K binary around inline with exports, and we have hand-crafted 674 00:48:46,140 --> 00:48:50,860 assembler with relocatable code, so you can use it as any export. 675 00:48:52,160 --> 00:48:52,480 Okay. 676 00:48:53,480 --> 00:48:57,160 Another thing we're looking at in the works is iDubbbz. 677 00:48:57,180 --> 00:49:03,020 iDubbbz is a framework for network applications to generate, collect, and analyze network 678 00:49:03,020 --> 00:49:03,500 packets. 679 00:49:04,100 --> 00:49:10,440 It's a sophisticated library to classify packets and manipulating packet fields without 680 00:49:10,440 --> 00:49:15,040 forcing developers to resort to complicated structures and pointer arithmetic. 681 00:49:15,480 --> 00:49:22,120 It will extend multiple console drones with packet sniffer and generation functionality. 682 00:49:24,680 --> 00:49:27,100 These are our email addresses. 683 00:49:27,100 --> 00:49:32,480 And you can find us online at worldwidewebfmosaturity.com. 684 00:49:34,340 --> 00:49:40,940 All the code is available by LGP from worldwidewebfmosaturity.com. 685 00:49:41,340 --> 00:49:46,260 What you have on the DEVCON 614 CD is a beta 2. 686 00:49:46,560 --> 00:49:52,520 What we have on the site is beta 3, because we have been constantly improving it since 687 00:49:52,520 --> 00:49:56,000 we submitted it for the CD color. 688 00:49:56,240 --> 00:49:57,080 So, it's a beta 2. 689 00:49:57,100 --> 00:50:01,200 If you want to try Mosquito, I would encourage you to download it from our site. 690 00:50:02,600 --> 00:50:08,080 We also have a mailing list which you can find at our site for discussion and questions. 691 00:50:12,860 --> 00:50:14,360 Do you have any questions? 692 00:50:23,040 --> 00:50:23,680 Thanks. 693 00:50:26,180 --> 00:50:26,820 Thank you. 694 00:50:30,360 --> 00:50:34,500 As you may have noticed, Wes is deaf, so it's easier for me to handle the questions. 695 00:50:34,600 --> 00:50:40,100 He can't lip read from quite this distance, though I still think we should have brought 696 00:50:40,100 --> 00:50:40,640 binoculars. 697 00:50:42,440 --> 00:50:42,800 Hey. 698 00:50:43,040 --> 00:50:45,720 This is the first time I've ever heard of what you're working on. 699 00:50:45,940 --> 00:50:46,240 Sure. 700 00:50:46,340 --> 00:50:47,160 Sounds really cool. 701 00:50:48,160 --> 00:50:51,040 But I'm just curious, what happens if you lose the connection to a drone? 702 00:50:51,360 --> 00:50:52,880 Does it automatically try to reconnect back? 703 00:50:52,880 --> 00:50:56,020 Actually, I can demonstrate that it does not automatically try to reconnect. 704 00:50:56,020 --> 00:51:00,660 Let me see if I can safely find my way to another drone without causing another crash. 705 00:51:03,300 --> 00:51:04,620 Did leave the drones up, right? 706 00:51:05,100 --> 00:51:05,500 Yes. 707 00:51:06,500 --> 00:51:07,020 Let's see. 708 00:51:07,220 --> 00:51:08,640 Would the console please stand up? 709 00:51:12,560 --> 00:51:16,180 But actually, we engineered for that because it's fairly common. 710 00:51:18,740 --> 00:51:20,140 Oh, you killed it, didn't you? 711 00:51:23,300 --> 00:51:25,020 You caused me no end of trouble, Wes. 712 00:51:36,900 --> 00:51:38,100 All right. 713 00:51:40,300 --> 00:51:47,280 Okay, everything's running good, hunky dory. 714 00:51:48,340 --> 00:51:55,000 Now, on one, we will do exit, which is our brute force. 715 00:51:55,000 --> 00:51:56,280 I want to quit right now. 716 00:52:02,480 --> 00:52:03,360 That didn't work. 717 00:52:03,420 --> 00:52:04,320 What the heck? 718 00:52:04,540 --> 00:52:04,920 Yeah. 719 00:52:05,020 --> 00:52:06,260 Why is there a touchpad there? 720 00:52:08,840 --> 00:52:12,100 People should choose if they want a stick or a pad. 721 00:52:24,440 --> 00:52:24,920 Anyway. 722 00:52:24,940 --> 00:52:24,980 Okay. 723 00:52:25,000 --> 00:52:29,140 Anyway, now why are you scrolling? 724 00:52:31,060 --> 00:52:32,600 Wes, your console is drunk. 725 00:52:35,140 --> 00:52:37,320 All right, as you can see, we've lost connection because 726 00:52:37,320 --> 00:52:41,140 some bastard did a Control C. So what we do is we simply 727 00:52:41,140 --> 00:52:44,480 instruct the console that one will be reconnecting. 728 00:52:45,200 --> 00:52:46,080 We reinitiate. 729 00:52:49,800 --> 00:52:52,280 And as you can see, it's right there again. 730 00:52:52,280 --> 00:52:59,900 On one, do print, and as you can see down the corner, hi. 731 00:53:00,680 --> 00:53:03,520 The reason it does not re-affiliate immediately, and 732 00:53:03,520 --> 00:53:06,000 it doesn't automatically try to re-affiliate, is that each 733 00:53:06,000 --> 00:53:09,500 time a drone is reused on an untrusted network, it weakens 734 00:53:09,500 --> 00:53:11,040 the protections afforded. 735 00:53:13,520 --> 00:53:17,440 Because the first drone to successfully complete the 736 00:53:17,440 --> 00:53:18,740 affiliation wins. 737 00:53:18,940 --> 00:53:20,580 They're the one that the console will consider to be 738 00:53:20,580 --> 00:53:21,100 the actual drone. 739 00:53:21,200 --> 00:53:22,000 You have to do some verification. 740 00:53:22,000 --> 00:53:25,220 Afterwards, of course, just checking IP, 741 00:53:25,340 --> 00:53:26,020 config, or whatever. 742 00:53:28,660 --> 00:53:32,340 So if D1 goes down, if your drone goes down, and you do a 743 00:53:32,340 --> 00:53:35,360 recovery, it gives a new opportunity for an attacker 744 00:53:35,360 --> 00:53:36,980 and a man in the middle to try to complete the 745 00:53:36,980 --> 00:53:37,660 affiliation first. 746 00:53:38,820 --> 00:53:39,320 Thank you. 747 00:53:41,720 --> 00:53:43,600 So recover is a manual process. 748 00:53:43,800 --> 00:53:45,460 It's something you should do just when you know you're about 749 00:53:45,460 --> 00:53:46,880 ready to re-invoke the drone. 750 00:53:49,380 --> 00:53:49,780 OK. 751 00:53:49,980 --> 00:53:51,980 Well, so if you say, OK. 752 00:53:51,980 --> 00:53:53,480 You have a drone on a private network, and you're trying to 753 00:53:53,480 --> 00:53:56,560 connect, yet your console's externally accessible, and you 754 00:53:56,560 --> 00:53:59,040 lose a drone on the private network, and you have no way of 755 00:53:59,040 --> 00:54:01,740 getting back to it, it's pretty much a lost drone. 756 00:54:01,820 --> 00:54:03,260 You can't really . 757 00:54:03,260 --> 00:54:05,520 It is a lost drone, but you can get out there. 758 00:54:05,920 --> 00:54:07,620 Drones really don't store a lot of data. 759 00:54:07,740 --> 00:54:09,980 Any information that they report is collected and 760 00:54:09,980 --> 00:54:12,360 maintained by the console using an in-memory database. 761 00:54:12,700 --> 00:54:15,480 So for example, ports that you've found, other things. 762 00:54:16,120 --> 00:54:18,220 We have an expert system that we've been working on to 763 00:54:18,220 --> 00:54:20,380 implement a map-like functionality. 764 00:54:23,040 --> 00:54:25,420 And you can just go ahead and do the AIM app once you've 765 00:54:25,420 --> 00:54:27,960 managed to redeploy and re-establish a new drone. 766 00:54:28,740 --> 00:54:29,240 All right. 767 00:54:29,260 --> 00:54:29,560 Thank you. 768 00:54:29,700 --> 00:54:30,260 No problem. 769 00:54:32,520 --> 00:54:35,160 I was just sort of wondering, since you're 770 00:54:35,160 --> 00:54:38,020 running bytecode, and I know for some reason it might get 771 00:54:38,020 --> 00:54:42,020 mangled at the destination, what would happen if the 772 00:54:42,960 --> 00:54:43,940 bytecode would be bad? 773 00:54:44,180 --> 00:54:45,120 Like, would it crash? 774 00:54:45,300 --> 00:54:46,100 Is it a whole mess? 775 00:54:46,280 --> 00:54:47,840 Very possibly, the drone will crash. 776 00:54:48,020 --> 00:54:50,480 The console itself does not execute any bytecode on behalf 777 00:54:50,480 --> 00:54:51,120 of the drone. 778 00:54:51,980 --> 00:54:54,080 The console is pretty much insulated against that. 779 00:54:54,520 --> 00:54:57,560 The drone may crash, but first it would have to get past the 780 00:54:57,560 --> 00:54:59,800 integrity checks in the actual protocol. 781 00:55:00,380 --> 00:55:04,100 This is the CRC32 that's encrypted along with the rest 782 00:55:04,100 --> 00:55:04,620 of the stream. 783 00:55:05,400 --> 00:55:07,500 And that would be the first thing you'd notice, is that the 784 00:55:07,500 --> 00:55:09,360 actual connection would drop, and it would say that there's 785 00:55:09,360 --> 00:55:11,900 been an integrity problem, and that you need to re-establish 786 00:55:11,900 --> 00:55:12,620 the affiliation. 787 00:55:12,960 --> 00:55:13,360 Right. 788 00:55:13,480 --> 00:55:16,380 And that would mean that if the drone was in the middle of, I 789 00:55:16,380 --> 00:55:18,780 don't know, holding a certain resource at the destination or 790 00:55:18,780 --> 00:55:21,920 something, that would possibly lead to a deadlock or something? 791 00:55:21,980 --> 00:55:23,920 The console should handle it correctly. 792 00:55:24,220 --> 00:55:29,520 We use a cooperative multitasking system so that it's very hard to 793 00:55:29,520 --> 00:55:31,320 actually have a race condition in the console. 794 00:55:32,840 --> 00:55:35,720 Basically the commands are written in such a way that they 795 00:55:36,340 --> 00:55:39,080 constantly monitor for the event of a closed event. 796 00:55:39,580 --> 00:55:41,560 It says, okay, I've lost the TCP connection. 797 00:55:42,060 --> 00:55:43,560 The data I have is all I have. 798 00:55:43,980 --> 00:55:45,100 The command is incomplete. 799 00:55:45,800 --> 00:55:48,240 And all this is notified to you on the console. 800 00:55:48,660 --> 00:55:49,260 All right. 801 00:55:49,300 --> 00:55:50,000 Thank you very much. 802 00:55:50,140 --> 00:55:50,500 No problem. 803 00:55:50,500 --> 00:55:50,580 No problem. 804 00:55:54,720 --> 00:55:55,720 Anyone else? 805 00:55:58,860 --> 00:56:00,240 Do you have any questions? 806 00:56:01,940 --> 00:56:02,660 Sorry. 807 00:56:02,840 --> 00:56:03,880 Thank you very much. 808 00:56:04,460 --> 00:56:05,180 Thanks a lot. 809 00:56:06,300 --> 00:56:07,020 Thank you very much.