1 00:00:00,000 --> 00:00:01,560 Okay, so what am I going to talk about today? 2 00:00:01,720 --> 00:00:03,640 I'm going to talk about hacking internet kiosks. 3 00:00:04,840 --> 00:00:06,680 It's pretty much my favorite subject these days. 4 00:00:06,780 --> 00:00:09,300 I want to cover over what is an internet kiosk 5 00:00:09,300 --> 00:00:11,600 and a kiosk software security model. 6 00:00:11,700 --> 00:00:14,020 Pretty much how these things tick, how they work. 7 00:00:15,180 --> 00:00:18,420 Then I want to talk about some vulnerabilities in kiosk software 8 00:00:18,420 --> 00:00:21,760 and vulnerabilities in the core kiosk security model. 9 00:00:22,400 --> 00:00:23,960 Vulnerabilities in how these things are designed. 10 00:00:24,380 --> 00:00:26,480 Why kiosks are fundamentally insecure. 11 00:00:26,480 --> 00:00:26,840 Unsecured. 12 00:00:27,620 --> 00:00:29,800 And pretty much, I'm going to show you how you can hack 13 00:00:29,800 --> 00:00:33,140 any Windows internet kiosk in less than 120 seconds. 14 00:00:34,260 --> 00:00:34,700 Guaranteed. 15 00:00:35,600 --> 00:00:37,280 That shit pops shells. 16 00:00:39,180 --> 00:00:39,780 Thank you. 17 00:00:41,480 --> 00:00:43,320 Then we have a Defcon exclusive. 18 00:00:43,520 --> 00:00:45,200 I'm going to be releasing a couple of tools, 19 00:00:45,520 --> 00:00:48,040 some things that are quite cutting edge, quite new and funky. 20 00:00:48,640 --> 00:00:50,340 Then we have some live demos up here. 21 00:00:50,520 --> 00:00:51,960 And hopefully if we have time, 22 00:00:52,100 --> 00:00:55,280 I'm going to hack two commercial internet kiosks 23 00:00:55,280 --> 00:00:56,360 that I have virtualized. 24 00:00:56,480 --> 00:00:57,400 On my laptop up here. 25 00:00:58,200 --> 00:01:00,420 Then after this talk, you're welcome to go 26 00:01:01,280 --> 00:01:02,780 rape and pillage throughout Vegas. 27 00:01:05,680 --> 00:01:06,280 All right. 28 00:01:06,940 --> 00:01:12,420 So one of the downsides of living in New Zealand is 29 00:01:12,420 --> 00:01:14,180 I spend a hell of a lot of time in airports. 30 00:01:14,820 --> 00:01:15,220 Stopovers. 31 00:01:15,340 --> 00:01:17,680 And last year, I spent eight hours in Hong Kong. 32 00:01:17,880 --> 00:01:19,500 And I was sitting there after this flight. 33 00:01:20,080 --> 00:01:21,640 And I was like scratching my head. 34 00:01:21,800 --> 00:01:24,000 And I didn't really know what to do sitting in this airport. 35 00:01:24,140 --> 00:01:26,020 And I saw this internet kiosk sitting in the corner. 36 00:01:26,480 --> 00:01:29,640 And I actually saw a queue of these Asian businessmen 37 00:01:29,640 --> 00:01:30,860 waiting to use the kiosk. 38 00:01:30,860 --> 00:01:33,760 I thought to myself, man, that kiosk is real popular. 39 00:01:34,360 --> 00:01:36,600 And I thought, I wonder if I could hack it. 40 00:01:36,760 --> 00:01:39,540 I wonder if I could go to the kiosk or loan party it. 41 00:01:39,740 --> 00:01:41,720 I thought, oh, man, that would be pretty cool. 42 00:01:41,840 --> 00:01:43,960 That's a good way to kill time at a stopover, right? 43 00:01:45,540 --> 00:01:48,300 And then something kind of dawned on me. 44 00:01:48,340 --> 00:01:50,400 And I realized that, oh, these kiosks are really popular. 45 00:01:50,500 --> 00:01:51,620 I see these everywhere. 46 00:01:51,740 --> 00:01:52,600 People obviously use them. 47 00:01:52,680 --> 00:01:54,180 But I rarely hear about them. 48 00:01:54,540 --> 00:01:56,120 You know, I don't often. 49 00:01:56,480 --> 00:02:00,080 I see publications and security focus on how to hack kiosks. 50 00:02:00,220 --> 00:02:03,880 You know, BugTrack, I don't really see postings on latest kiosk vulnerabilities. 51 00:02:04,420 --> 00:02:08,500 So it dawned on me that we have a very popular service 52 00:02:08,500 --> 00:02:10,560 which has very poor security visibility. 53 00:02:10,980 --> 00:02:14,600 And this, of course, equals a very, very good attack target. 54 00:02:14,960 --> 00:02:16,960 That's why I said, you know, right here, right now, 55 00:02:17,080 --> 00:02:20,380 I want to find every possible method of hacking an internet kiosk. 56 00:02:20,380 --> 00:02:23,900 And I want to become the fucking king of internet kiosk hacking. 57 00:02:24,920 --> 00:02:26,320 Because I don't think there's anyone else. 58 00:02:26,480 --> 00:02:28,080 I don't think there's anyone else out there who is the king of internet kiosk hacking. 59 00:02:29,240 --> 00:02:29,720 All right. 60 00:02:29,760 --> 00:02:32,740 So when I got back to New Zealand, I started to keep my eye out for kiosks. 61 00:02:32,800 --> 00:02:33,780 And I basically found them everywhere. 62 00:02:34,100 --> 00:02:37,440 I found them in airports, train stations, libraries, DVD rental stores, 63 00:02:37,880 --> 00:02:43,980 corporate building lobbies, convenience stores, post office, cafes, hospitals, motels, hotels, and universities. 64 00:02:44,700 --> 00:02:47,060 Now, while I've been in Vegas, I've been walking up and down the strip, 65 00:02:47,180 --> 00:02:50,840 and every casino here has at least five or ten kiosks. 66 00:02:50,980 --> 00:02:53,260 There are kiosks out in the lobby out there. 67 00:02:53,940 --> 00:02:56,180 Hands up if you've used those kiosks. 68 00:02:57,820 --> 00:02:58,820 I wouldn't. 69 00:03:00,280 --> 00:03:01,600 I've used them too. 70 00:03:04,500 --> 00:03:11,540 Okay, now, I think this is primarily because you don't really need a quad-core Xeon to run a kiosk. 71 00:03:11,680 --> 00:03:17,060 You know, you can have really cheap, shitty technology sitting in the corner of your office and set up a kiosk. 72 00:03:17,060 --> 00:03:21,060 So we have kiosks now everywhere because, you know, you can build one for $100, $200. 73 00:03:23,140 --> 00:03:24,940 That's my pictures of kiosks here. 74 00:03:26,680 --> 00:03:28,800 Okay, so my initial observations of kiosks. 75 00:03:28,820 --> 00:03:33,740 Well, from a hardware perspective, kiosks are usually built in these really tough, rugged, hard-shell cases. 76 00:03:34,060 --> 00:03:36,120 They're usually fiberglass or wooden shell. 77 00:03:36,640 --> 00:03:42,620 They have a lack of physical access to the computer case, so you can't access the floppy drive, DVD, USB, or FireWire. 78 00:03:42,800 --> 00:03:49,160 The kiosk is usually also bolted to the ground, or it's padlocked, or it has a big, secure lock on it attaching it to something. 79 00:03:49,460 --> 00:03:53,740 Generally, the idea is that the general public, i.e., you and me, we're evil hackers, 80 00:03:53,920 --> 00:03:56,160 and the kiosk vendor does not trust us. 81 00:03:56,480 --> 00:04:02,280 So every attempt is made to make sure the kiosk cannot be stolen or just generally messed with. 82 00:04:03,820 --> 00:04:10,400 Now, from a software point of view, the majority of kiosks, I've noticed, actually run commercial kiosk software on Windows. 83 00:04:10,740 --> 00:04:16,360 Now, I have noticed that Linux and BSD kiosks exist, but Windows is far more popular. 84 00:04:16,440 --> 00:04:17,280 It just outweighs it. 85 00:04:18,300 --> 00:04:22,580 Basically, there are 44 commercial Windows kiosk products on the market. 86 00:04:22,740 --> 00:04:26,400 The Windows kiosk market is actually a multi-billion. 87 00:04:26,480 --> 00:04:27,480 It's a million-dollar industry. 88 00:04:27,600 --> 00:04:28,680 It's absolutely huge. 89 00:04:29,180 --> 00:04:35,020 And it's basically marketed as being able to turn that old, shitty computer in the back of your office into instant revenue. 90 00:04:35,240 --> 00:04:42,020 You go out and you buy my $59 shareware app, you install it on your crappy computer, and instantly you can make some money. 91 00:04:42,980 --> 00:04:47,520 Now, these kiosks are essentially Windows-skinned. 92 00:04:48,320 --> 00:04:53,360 So a kiosk browser will implement standard Internet Explorer libraries. 93 00:04:53,580 --> 00:04:56,460 I'm talking WinHTTP.dll and MWP. 94 00:04:58,040 --> 00:05:03,180 And the Windows is so drastically skinned to feel like a kiosk, or to look like a kiosk. 95 00:05:03,300 --> 00:05:07,780 You can usually still tell that these things are Windows, but it doesn't really look like Windows. 96 00:05:08,040 --> 00:05:09,340 You know, it looks bastardized. 97 00:05:09,360 --> 00:05:11,020 It looks kind of gimped or changed. 98 00:05:13,800 --> 00:05:18,300 So I realized that kiosk software is really the best attack target. 99 00:05:18,600 --> 00:05:21,420 I was thinking, you know, maybe I can try some hardware hacks on these things. 100 00:05:21,540 --> 00:05:25,920 But then I thought, well, sitting in, you know, the Hong Kong airport in my eight-hour stopover, 101 00:05:25,920 --> 00:05:30,060 with a pair of bolt cutters, probably isn't going to work so well when I want to hack with the kiosk. 102 00:05:31,140 --> 00:05:35,880 So I determined that I need to be able to walk up to any Internet kiosk, and I need to pop shell quickly. 103 00:05:36,460 --> 00:05:41,200 I need explore.exe to pop up, or cmd or command.com, and time limited, you know. 104 00:05:41,420 --> 00:05:43,300 I don't want to be there for an hour and a half hacking. 105 00:05:43,660 --> 00:05:45,400 I have to do this in less than five minutes. 106 00:05:45,460 --> 00:05:46,960 I have to do this really, really fast. 107 00:05:47,680 --> 00:05:49,700 That and these kiosks cost money. 108 00:05:50,340 --> 00:05:52,440 And I don't want to spend money on this shit. 109 00:05:53,260 --> 00:05:55,360 Okay, so I've spent the last 16 months. 110 00:05:55,920 --> 00:05:59,540 I've been researching methods of penetrating kiosk software. 111 00:05:59,740 --> 00:06:05,500 What I did was I virtualized the top ten most popular Windows kiosk products in VMware. 112 00:06:06,240 --> 00:06:10,180 I detailed and compared the security model of each of the kiosks. 113 00:06:10,180 --> 00:06:14,380 Basically, you see what each kiosk defends against and how it works, 114 00:06:14,480 --> 00:06:16,740 and then compared it against all the other kiosks. 115 00:06:16,980 --> 00:06:21,160 But then I researched new methods of compromising these Internet kiosks. 116 00:06:21,160 --> 00:06:23,360 And I developed a kiosk attack methodology. 117 00:06:23,720 --> 00:06:25,900 Basically, a whole set of tests you can do. 118 00:06:25,920 --> 00:06:28,720 You can do it on a kiosk that is pretty much guaranteed to pop shell. 119 00:06:29,200 --> 00:06:35,380 And my startling result, of course, 10 out of 10 of my kiosks, 100% success rate, you know, they all die. 120 00:06:36,660 --> 00:06:38,140 Okay, so the kiosk security model. 121 00:06:39,040 --> 00:06:43,960 Now, kiosk software implements security by two distinct approaches. 122 00:06:44,720 --> 00:06:47,540 Firstly, they try and reduce available host functionality. 123 00:06:48,220 --> 00:06:52,540 So this is a disallowing native OS functionality that can be used maliciously. 124 00:06:52,620 --> 00:06:54,640 So an example of this would be disabling command prompt. 125 00:06:54,880 --> 00:06:55,880 You do this by... 126 00:06:55,920 --> 00:06:58,680 You do this by setting a registry key for disable CMD. 127 00:06:58,720 --> 00:07:03,660 And if you try and run cmd.exe, it'll pop up and say command prompt has been disabled, so you can't run it. 128 00:07:04,280 --> 00:07:05,760 There are many other examples of this. 129 00:07:05,860 --> 00:07:09,220 Disabling task manager, disabling regedit, things like that. 130 00:07:09,820 --> 00:07:14,300 And the second approach is jailing the user into a secure kiosk browser application. 131 00:07:14,920 --> 00:07:17,840 So you're essentially stuck inside this kiosk browser, right? 132 00:07:18,440 --> 00:07:20,220 The kiosk browser is ran in full screen. 133 00:07:20,480 --> 00:07:24,080 You don't have any ability to minimize, close, or get rid of the browser. 134 00:07:24,400 --> 00:07:25,720 The start bar, the train, 135 00:07:25,920 --> 00:07:27,360 is usually removed or hidden. 136 00:07:27,540 --> 00:07:29,200 And the only thing you can do is browse the web. 137 00:07:29,700 --> 00:07:32,860 This doesn't mean that the operating system isn't there anymore. 138 00:07:33,080 --> 00:07:34,440 There's still windows under this. 139 00:07:34,560 --> 00:07:36,220 You just can't access it. 140 00:07:36,320 --> 00:07:39,440 You can't physically click on something that'll give you windows. 141 00:07:41,840 --> 00:07:43,040 Here's an example. 142 00:07:43,120 --> 00:07:43,780 Here's a screenshot for you. 143 00:07:43,820 --> 00:07:44,660 This is site kiosk. 144 00:07:44,760 --> 00:07:46,320 This actually looks very similar to windows. 145 00:07:46,620 --> 00:07:50,780 If you notice the tray bar and the start button, it looks a bit different. 146 00:07:50,920 --> 00:07:51,980 It looks quite custom. 147 00:07:52,300 --> 00:07:55,660 And you see that the start menu has site kiosk on there. 148 00:07:55,920 --> 00:07:58,440 And you only have one option, and that's to open up a new browser window. 149 00:07:59,380 --> 00:08:02,920 So you're pretty much trapped inside this sort of user interface. 150 00:08:04,340 --> 00:08:05,200 Here's another example. 151 00:08:05,240 --> 00:08:06,200 This is net stop kiosk. 152 00:08:06,260 --> 00:08:08,740 This is actually the kiosk that is used down in the lobby, just out there. 153 00:08:08,940 --> 00:08:11,360 This has a custom task bar. 154 00:08:11,520 --> 00:08:14,940 This actually doesn't have any buttons or pop-ups, anything at all. 155 00:08:15,080 --> 00:08:18,440 The kiosk application is ran as a full screen desktop application. 156 00:08:19,060 --> 00:08:20,900 You don't have any ability to close it. 157 00:08:21,320 --> 00:08:23,840 And you can only browse the internet using this. 158 00:08:24,120 --> 00:08:25,820 It doesn't give you the ability to... 159 00:08:25,920 --> 00:08:29,020 ...launch other applications, or click on things, or really do anything interesting. 160 00:08:35,620 --> 00:08:36,580 Alright, so... 161 00:08:37,480 --> 00:08:40,980 These kiosk browsers actually proactively monitor your usage. 162 00:08:41,320 --> 00:08:44,120 They're trying to defend against malicious hackers like us. 163 00:08:44,440 --> 00:08:48,680 So, a kiosk contains numerous blank lists of prohibited activity. 164 00:08:49,220 --> 00:08:51,820 So if you try and do something sneaky, the kiosk will stop you. 165 00:08:52,040 --> 00:08:55,900 For example, in site kiosk, if you try and pop up the internet browser... 166 00:08:55,900 --> 00:08:59,500 ...and you browse to C colon slash, it'll pop up this little message box saying... 167 00:08:59,500 --> 00:09:02,020 ...accessing this URL is prohibited, and it won't let you. 168 00:09:03,120 --> 00:09:07,120 Kiosks also monitor all the in-focus modal dialogs that pop up. 169 00:09:07,420 --> 00:09:13,880 So, if you try and pop up a save file dialog, it'll detect that window has popped up... 170 00:09:13,880 --> 00:09:15,300 ...and instantly close it for you. 171 00:09:15,380 --> 00:09:21,220 It'll send a WN close message to the dialog ID of the window that pops up, and it closes, it goes away. 172 00:09:21,480 --> 00:09:24,800 So this really limits what you can do with the kiosk, using the browser. 173 00:09:25,900 --> 00:09:28,260 Again, this is another method of reducing functionality. 174 00:09:30,340 --> 00:09:32,160 Kiosks also implement API hooking. 175 00:09:32,320 --> 00:09:35,720 So they hook native OS API calls which can be used maliciously. 176 00:09:35,780 --> 00:09:38,800 Things like kill process, get command line W, alloc console. 177 00:09:39,360 --> 00:09:43,800 I mean, how are you ever going to be able to run cmd.exe if you can't call alloc console? 178 00:09:44,820 --> 00:09:47,400 The kiosk browser is usually ran in a high security zone. 179 00:09:47,620 --> 00:09:49,260 So file downloads are all disabled. 180 00:09:49,920 --> 00:09:52,980 Browser scripting, pop-ups, ActiveX, all disabled. 181 00:09:53,700 --> 00:09:55,860 And typically, there's usually a watchdog. 182 00:09:55,900 --> 00:10:04,480 There's usually a watchdog timer that'll run, and maybe every four or five minutes, the kiosk will enumerate all of the active windows and processes, and see if you're trying to do anything malicious. 183 00:10:04,780 --> 00:10:10,200 See if there's a copy of cmd running, or anything that you shouldn't be doing, and it'll kill that process instantly. 184 00:10:13,620 --> 00:10:16,600 Now, the kiosks also implement a custom keyboard driver. 185 00:10:16,740 --> 00:10:19,780 So they disable all the window shortcut key combinations. 186 00:10:20,480 --> 00:10:24,920 So if you try and do things like control, shift, escape, to try and pop up the task manager. 187 00:10:25,920 --> 00:10:28,860 Or, you know, you'll find that the modifier keys are actually unmapped. 188 00:10:28,960 --> 00:10:32,380 So control, tab, alt, start, the function keys, they don't exist. 189 00:10:32,520 --> 00:10:33,080 They don't work. 190 00:10:33,900 --> 00:10:35,460 You'll find you have a custom mouse. 191 00:10:35,620 --> 00:10:37,340 So you don't actually have a right mouse button. 192 00:10:37,420 --> 00:10:38,660 You only have a left mouse button. 193 00:10:38,840 --> 00:10:43,340 Again, more methods of reducing how you can actually interact with the kiosk. 194 00:10:43,340 --> 00:10:47,600 It's limiting you, so you can only click on shit with the left mouse button in Google. 195 00:10:48,680 --> 00:10:51,620 A good example of this is that picture of the keyboard just up there. 196 00:10:51,720 --> 00:10:53,480 That's a very common kiosk keyboard. 197 00:10:53,660 --> 00:10:55,680 And you see that it's missing a whole lot of keys. 198 00:10:55,900 --> 00:10:57,340 It's missing all the good keys. 199 00:11:00,500 --> 00:11:02,700 Alright, so hacking kiosk software. 200 00:11:04,100 --> 00:11:07,980 Now, the kiosk security model is based on reducing functionality. 201 00:11:08,360 --> 00:11:12,020 It's limiting functionality that can be used to escape the kiosk browser. 202 00:11:12,700 --> 00:11:15,680 So exploiting a kiosk requires invoking functionality. 203 00:11:16,120 --> 00:11:20,800 We need to cause applications or functionality to spawn or pop up on screen. 204 00:11:21,060 --> 00:11:25,560 And we need to use that invoked functionality to then escape the kiosk jail. 205 00:11:26,400 --> 00:11:29,640 We want to spawn a command prompt, and then essentially get back to Windows. 206 00:11:30,020 --> 00:11:33,300 We want to get out of the kiosk, kill the kiosk, get rid of it. 207 00:11:33,660 --> 00:11:36,080 Now, kiosks implement blacklists, as I said. 208 00:11:36,880 --> 00:11:39,160 Blacklists, by nature, are never actually 100%. 209 00:11:39,660 --> 00:11:42,760 You can never have a blacklist that will cover every possible permutation. 210 00:11:43,160 --> 00:11:44,400 The downfall of a blacklist. 211 00:11:45,020 --> 00:11:48,600 We only need one method of escaping the kiosk software jail. 212 00:11:48,720 --> 00:11:50,080 We just need one command shell. 213 00:11:50,240 --> 00:11:51,020 That's all we need. 214 00:11:52,080 --> 00:11:55,340 And this basically means that, yeah, kiosks are very hackable. 215 00:11:55,900 --> 00:11:58,240 Okay, so what are the available kiosk input vectors? 216 00:11:59,600 --> 00:12:04,040 The first thing I did when I was looking at hacking these kiosks was I did some threat modeling. 217 00:12:04,240 --> 00:12:08,800 And I basically worked out every which way I can communicate or interact with the kiosk. 218 00:12:08,860 --> 00:12:10,080 These are my input vectors. 219 00:12:10,200 --> 00:12:14,100 And then the question is, how can I use these input vectors to then invoke functionality? 220 00:12:14,700 --> 00:12:16,540 So we have two main streams of input. 221 00:12:16,840 --> 00:12:18,280 Firstly, we have physical input. 222 00:12:18,500 --> 00:12:20,640 So this is interacting with the kiosk GUI. 223 00:12:20,720 --> 00:12:22,660 This is using the keyboard or the mouse. 224 00:12:23,400 --> 00:12:25,020 Clicking on buttons, graphics, menus. 225 00:12:25,020 --> 00:12:27,580 Typing values into text input fields. 226 00:12:27,920 --> 00:12:29,520 And secondly, we have remote input. 227 00:12:29,760 --> 00:12:32,240 So this is browsing a website from the kiosk terminal. 228 00:12:32,480 --> 00:12:35,520 Can I use remote content to interact with my kiosk at all? 229 00:12:37,840 --> 00:12:39,160 Okay, so what do we need to do? 230 00:12:39,240 --> 00:12:41,500 Well, firstly, we need to escape the kiosk graphical jail. 231 00:12:41,680 --> 00:12:44,500 We need to minimize or close the kiosk browser application. 232 00:12:45,000 --> 00:12:46,460 And we want to pop a command shell. 233 00:12:46,660 --> 00:12:49,160 Then we need to kill the kiosk browser process. 234 00:12:49,420 --> 00:12:53,320 So, like, task kill for slash im kiosk browser dot exe. 235 00:12:53,400 --> 00:12:54,580 And then we need to, uh, 236 00:12:54,700 --> 00:12:55,000 we need to, uh, 237 00:12:55,000 --> 00:12:56,680 re-enable or get back 238 00:12:56,680 --> 00:12:58,760 the real Windows start bar. 239 00:12:58,920 --> 00:13:00,460 And essentially get back to Windows. 240 00:13:00,680 --> 00:13:03,260 I want to have a convergent Windows XP sitting there 241 00:13:03,260 --> 00:13:04,740 where the kiosk used to be. 242 00:13:04,980 --> 00:13:07,340 I reckon from there I can pretty much do anything I want. 243 00:13:07,500 --> 00:13:09,020 You know, you can do anything with Windows. 244 00:13:09,880 --> 00:13:10,740 And then secondly, 245 00:13:10,900 --> 00:13:13,940 I need to start downloading additional binaries to the kiosk. 246 00:13:14,020 --> 00:13:15,840 So I might want to download a port scanner, 247 00:13:16,200 --> 00:13:18,800 a Metasploit, a rootkit, Trojan or Keylogger. 248 00:13:18,900 --> 00:13:21,080 You know, I want to then infect the kiosk 249 00:13:21,080 --> 00:13:23,200 and start continuing my ownage. 250 00:13:30,220 --> 00:13:30,860 Okay, so, 251 00:13:30,940 --> 00:13:33,020 let's say you find a kiosk in your local mall. 252 00:13:33,620 --> 00:13:35,340 And there's a big sign up saying, uh, 253 00:13:35,480 --> 00:13:37,760 one dollar for one hour of internet usage. 254 00:13:38,480 --> 00:13:39,840 You have to use the dollar. 255 00:13:39,920 --> 00:13:40,820 You have to insert a dollar. 256 00:13:41,020 --> 00:13:42,960 I haven't found any tricks like bypass the whole 257 00:13:42,960 --> 00:13:45,760 money requiring-ness of a kiosk. 258 00:13:46,260 --> 00:13:47,320 So you shove in your dollar, 259 00:13:47,400 --> 00:13:49,700 and you find you're trapped inside this kiosk browser. 260 00:13:50,040 --> 00:13:51,780 You know, the right mouse button has been disabled. 261 00:13:51,880 --> 00:13:53,120 You have a custom keyboard, 262 00:13:53,120 --> 00:13:55,180 and certain keys have been removed. 263 00:13:55,600 --> 00:13:57,260 You know, this feels like a Windows OS. 264 00:13:57,440 --> 00:13:58,600 You can see, like, some of the icons, 265 00:13:58,720 --> 00:14:00,140 some of the graphics are very similar. 266 00:14:00,880 --> 00:14:02,860 But it has a very custom design layout. 267 00:14:03,120 --> 00:14:06,340 Maybe the start bar is labeled the Super Kiosk Start Bar, 268 00:14:06,420 --> 00:14:07,380 or some shit like that. 269 00:14:08,500 --> 00:14:11,540 And you only have one visible button to start browsing. 270 00:14:12,000 --> 00:14:13,760 So the first thing you do is, well, you start browsing. 271 00:14:15,660 --> 00:14:17,260 Okay, so the first thing you're going to try and do 272 00:14:17,260 --> 00:14:19,740 is browse the local file system using the kiosk browser. 273 00:14:19,840 --> 00:14:22,140 This is the most obvious attack, the most obvious exploit. 274 00:14:22,140 --> 00:14:24,020 So a local Windows user, 275 00:14:24,260 --> 00:14:25,700 i.e. a person sitting on a keyboard, 276 00:14:25,920 --> 00:14:28,040 is capable of accessing the file system, 277 00:14:28,120 --> 00:14:29,060 because you're a local user. 278 00:14:29,340 --> 00:14:32,000 So kiosk software must explicitly block 279 00:14:32,000 --> 00:14:33,320 local browser attempts. 280 00:14:34,980 --> 00:14:37,420 Now, you can see in that screenshot there 281 00:14:37,420 --> 00:14:40,440 that if I type C colon backslash Windows backslash, 282 00:14:40,460 --> 00:14:41,940 it pops up a little message box saying, 283 00:14:41,980 --> 00:14:43,040 sorry, this drive is not available. 284 00:14:43,580 --> 00:14:45,400 Now, the good thing about Windows is that 285 00:14:45,400 --> 00:14:48,600 it's basically designed for fat-fingered idiots, right? 286 00:14:49,360 --> 00:14:51,800 It's catering for people who mistype shit 287 00:14:51,800 --> 00:14:52,440 when they're drunk. 288 00:14:54,160 --> 00:14:58,240 So maybe C colon backslash Windows backslash is blocked, 289 00:14:58,440 --> 00:15:02,060 but what about C colon forward slash Windows backslash? 290 00:15:02,200 --> 00:15:07,320 What about file colon forward slash forward slash C colon forward slash Windows? 291 00:15:08,260 --> 00:15:10,080 So I got a little table there 292 00:15:10,080 --> 00:15:12,260 of all the possible permutations that I could come up with. 293 00:15:12,460 --> 00:15:16,060 And you can see now how blacklists start failing really fast, 294 00:15:16,720 --> 00:15:18,860 because the blacklist probably only blocks one, 295 00:15:18,920 --> 00:15:20,120 maybe two of those examples, 296 00:15:20,120 --> 00:15:21,780 maybe three, maybe four. 297 00:15:22,060 --> 00:15:23,940 What about environment variables, 298 00:15:24,100 --> 00:15:26,380 typing things like percent winder percent? 299 00:15:26,860 --> 00:15:29,040 You know, that doesn't have any backslashes or C 300 00:15:29,040 --> 00:15:30,660 or anything like that in it, you know. 301 00:15:30,940 --> 00:15:34,600 So these tricks, that bypasses actually quite a few kiosks. 302 00:15:36,000 --> 00:15:38,420 We can use common dialogs to hack kiosks. 303 00:15:38,460 --> 00:15:39,660 This is a relatively known trick. 304 00:15:39,820 --> 00:15:43,120 So Windows contains common dialog libraries. 305 00:15:43,580 --> 00:15:46,200 These are things like saving a file, opening a file, 306 00:15:46,340 --> 00:15:47,960 selecting a font, choosing a color. 307 00:15:48,540 --> 00:15:50,040 These come from com.dos. 308 00:15:50,120 --> 00:15:53,240 This is comdlg32.dll, the common Windows dialog library. 309 00:15:53,540 --> 00:15:57,840 Now comdlg32.dll implements common Windows controls. 310 00:15:58,200 --> 00:16:01,060 These controls come from comctl32.dll. 311 00:16:01,260 --> 00:16:03,800 Now the file open and file save dialog 312 00:16:03,800 --> 00:16:06,500 contain what's called the file view control. 313 00:16:07,220 --> 00:16:11,280 This is the same control that actually Windows Explorer uses. 314 00:16:12,140 --> 00:16:15,480 The file view control provides full Explorer functionality. 315 00:16:15,900 --> 00:16:19,060 So essentially a file open dialog equals Explorer, 316 00:16:19,060 --> 00:16:21,380 because it's the same control being used. 317 00:16:21,700 --> 00:16:23,700 And we can use that to launch processes. 318 00:16:25,300 --> 00:16:26,060 And you see this. 319 00:16:26,240 --> 00:16:30,780 So let's say you get to your kiosk and you see there's this pretty UI. 320 00:16:31,180 --> 00:16:34,560 My first thing I do is I go around and I click every single button, 321 00:16:34,640 --> 00:16:37,240 every single icon, every single graphic, everything I can. 322 00:16:37,300 --> 00:16:39,180 I just mash everything systematically. 323 00:16:40,400 --> 00:16:43,180 I basically see if I can invoke a file open dialog. 324 00:16:43,380 --> 00:16:46,860 Maybe there's an ability to send an email to a friend and attach a file. 325 00:16:47,040 --> 00:16:48,840 And when you attach a file, you pop up, 326 00:16:48,840 --> 00:16:51,000 the file open dialog, which has the file view control. 327 00:16:51,260 --> 00:16:55,860 And then you browse to C colon slash, right click cmd.exe and run it. 328 00:16:56,180 --> 00:16:58,960 If you find on some kiosk where you don't have the right click button, 329 00:16:59,200 --> 00:17:03,600 you can drag another file onto cmd.exe and cmd will spawn. 330 00:17:03,800 --> 00:17:04,440 Let's do it again. 331 00:17:07,580 --> 00:17:09,740 Now the Internet Explorer image toolbar. 332 00:17:10,600 --> 00:17:14,960 This is actually a toolbar that hovers in the top left whenever you click a really large image. 333 00:17:15,620 --> 00:17:18,820 And each icon of this toolbar can invoke a command. 334 00:17:18,840 --> 00:17:23,960 This will allow you to invoke a file save, file print, file mail to, 335 00:17:24,160 --> 00:17:26,780 and open my pictures in Explorer. 336 00:17:26,880 --> 00:17:28,060 It will directly spawn Explorer. 337 00:17:28,500 --> 00:17:32,000 Now, if the kiosk is written using Internet Explorer libraries, 338 00:17:32,360 --> 00:17:36,480 this toolbar is present because it's part of the Internet Explorer libraries. 339 00:17:36,820 --> 00:17:38,220 So it's a pretty easy test to do. 340 00:17:38,260 --> 00:17:41,560 You click a really large image somewhere on the kiosk, 341 00:17:41,560 --> 00:17:42,960 and you see this toolbar pops up. 342 00:17:43,180 --> 00:17:44,900 If it does, you win. 343 00:17:45,140 --> 00:17:47,440 In the case of the file print example, 344 00:17:47,440 --> 00:17:52,660 you can use file print to then say print to a file and spawn a file open dialog. 345 00:17:52,920 --> 00:17:53,500 Same trick. 346 00:17:53,640 --> 00:17:54,440 You get another common dialog. 347 00:17:54,640 --> 00:17:55,220 You win. 348 00:17:57,460 --> 00:17:58,800 Okay, so using the keyboard. 349 00:17:58,960 --> 00:18:01,400 Keyboard shortcuts can be used to access the host OS. 350 00:18:01,800 --> 00:18:05,540 So another good check is to see if a custom keyboard driver is present. 351 00:18:06,200 --> 00:18:11,040 Although a lot of keyboards, although a lot of kiosks do implement custom keyboard drivers, 352 00:18:11,260 --> 00:18:13,780 a lot of the more budget ones don't. 353 00:18:14,080 --> 00:18:16,440 So this is a pretty good trick, and it's very, very simple. 354 00:18:16,440 --> 00:18:18,520 And you can see the modifier keys are enabled. 355 00:18:18,780 --> 00:18:22,120 So I have a list of keyboard shortcuts here which will produce common dialogs. 356 00:18:22,120 --> 00:18:25,940 You've got Control-B, Control-I, Control-H, Control-L, O, P, S. 357 00:18:27,020 --> 00:18:30,680 And, of course, you also have kiosk-specific administrative shortcuts. 358 00:18:31,980 --> 00:18:37,300 So almost every kiosk product has a secret back door that allows an admin to log into it. 359 00:18:37,700 --> 00:18:41,520 It allows an admin to shut down the kiosk or make changes or basically unlock it. 360 00:18:41,820 --> 00:18:45,480 So all you do is you go to the keyboard and you mash your fingers over the whole thing. 361 00:18:45,480 --> 00:18:47,300 You try weird key combinations. 362 00:18:47,880 --> 00:18:49,500 Possibly something pops up in the menu. 363 00:18:49,600 --> 00:18:51,180 If it does, you win. 364 00:18:51,700 --> 00:18:53,720 Or, you know, you get a little further. 365 00:18:56,260 --> 00:18:57,840 Okay, browser security zones. 366 00:18:58,080 --> 00:19:02,160 So browser security model incorporates multiple security zones. 367 00:19:02,320 --> 00:19:03,700 I'm sure you're all well aware of this. 368 00:19:03,760 --> 00:19:10,040 So we have the restricted site zone, the internet zone, the intranet zone, and trusted sites. 369 00:19:10,280 --> 00:19:13,940 And each security zone adheres to a unique security policy. 370 00:19:13,940 --> 00:19:22,080 So the internet zone actually has less ability to interact with the kiosk and may be locked down by the kiosk browser. 371 00:19:22,340 --> 00:19:26,640 But the trusted sites and the intranet zone actually have more access. 372 00:19:28,380 --> 00:19:36,060 So as a local user on a keyboard, you're actually available, you're allowed to access all security zones. 373 00:19:37,040 --> 00:19:39,360 But the URLs must be typed into the entry bar. 374 00:19:39,600 --> 00:19:43,920 So a pretty cool trick you can do with this is by using the about plugable browser. 375 00:19:43,940 --> 00:19:47,260 This is a plugable protocol handler which belongs to the trusted site security zone. 376 00:19:47,760 --> 00:19:51,820 Now, this plugable protocol handler actually suffers from a cross-site scripting vulnerability. 377 00:19:52,340 --> 00:20:00,620 What this means is that you can render arbitrary content in the trusted site security zone remotely or as a user on a kiosk. 378 00:20:00,760 --> 00:20:08,600 So one of the things we can do is by typing about colon less than input percent 20 type equals file greater than, 379 00:20:08,660 --> 00:20:10,900 you can pop up a file browse dialog. 380 00:20:11,540 --> 00:20:13,920 That's a file browse dialog from within the kiosk. 381 00:20:13,940 --> 00:20:18,440 And you can see that the kiosk probably isn't going to detect that or be aware of that. 382 00:20:18,560 --> 00:20:20,300 This isn't a very well-known trick. 383 00:20:21,480 --> 00:20:27,220 And this gets around any kiosk that is only protecting or defending the intranet zone, which most kiosks do. 384 00:20:29,540 --> 00:20:31,220 All right, just another note on that. 385 00:20:31,340 --> 00:20:33,640 Another thing you can do is linking to the file system. 386 00:20:33,780 --> 00:20:38,460 So the intranet zone can't actually link back into the own file system of the browser, 387 00:20:38,560 --> 00:20:40,840 but while the trusted sites zone can. 388 00:20:40,840 --> 00:20:45,280 So perhaps the kiosk might block or detect the common dialog popping up. 389 00:20:45,380 --> 00:20:48,140 But if you can follow a link to the file system, then you win again. 390 00:20:48,840 --> 00:20:53,800 That trick works against actually quite a few kiosks, including site kiosk, the first kiosk I showed you. 391 00:20:57,120 --> 00:20:58,860 Okay, now the shell protocol handler. 392 00:20:59,000 --> 00:21:01,480 The shell handler provides access to Windows web folders. 393 00:21:01,680 --> 00:21:06,360 These URLs, things like shell colon profile, shell colon program files, things like that. 394 00:21:06,480 --> 00:21:10,820 Each URL you type in will spawn explorer.exe and browse the particular web folder. 395 00:21:10,820 --> 00:21:15,440 So a good thing to check is the shell handler blocked by the kiosk. 396 00:21:15,480 --> 00:21:16,200 Can we access that? 397 00:21:16,340 --> 00:21:18,260 If you can, you know, you win. 398 00:21:19,560 --> 00:21:20,580 What about this? 399 00:21:20,980 --> 00:21:26,120 If you type shell colon colon colon squiggly bracket longguid squiggly bracket, 400 00:21:26,360 --> 00:21:29,840 you can actually invoke a web folder by the class ID. 401 00:21:30,640 --> 00:21:35,020 So this particular thing is invoking the control panel inside Internet Explorer. 402 00:21:35,640 --> 00:21:39,980 So you can bypass any ACLs that may exist on control.exe. 403 00:21:39,980 --> 00:21:43,080 If the kiosk is trying to block you from accessing the control panel, 404 00:21:43,280 --> 00:21:47,120 by just popping the control directly inside Internet Explorer. 405 00:21:47,660 --> 00:21:48,900 I love IE. 406 00:21:50,520 --> 00:21:55,460 All right, so the downside to physical input vectors. 407 00:21:59,280 --> 00:22:04,000 So I realized pretty quickly that kiosk software is designed to not trust the guy on the keyboard. 408 00:22:04,500 --> 00:22:07,340 You know, when people write these apps and they sell them, 409 00:22:07,460 --> 00:22:09,840 they're sold as being a secure solution. 410 00:22:11,200 --> 00:22:14,240 And a kiosk user is actually the most obvious security threat. 411 00:22:14,640 --> 00:22:16,000 You know, when I'm sitting in the airport, 412 00:22:17,020 --> 00:22:20,480 the guy who wrote the kiosk software is trying to defend against me. 413 00:22:20,600 --> 00:22:25,000 He's trying to defend against the guy who's bored who wants to hack the kiosk. 414 00:22:25,360 --> 00:22:30,860 So my research concluded that physical inputs are actually not that successful. 415 00:22:31,260 --> 00:22:35,000 I was getting a 40 to 50 percent chance of popping shell on a kiosk. 416 00:22:35,080 --> 00:22:36,260 It's like 40 to 50 percent. 417 00:22:36,320 --> 00:22:37,200 That's not good enough. 418 00:22:37,420 --> 00:22:39,300 I'm not the king of kiosk hacking yet. 419 00:22:40,660 --> 00:22:45,820 So I also realized that a lot of the techniques that I've just told you are actually not that original. 420 00:22:46,300 --> 00:22:47,480 Most of these things have been published. 421 00:22:47,960 --> 00:22:51,560 You know, if you Google kiosk hacking, you'll see all the things I've told you. 422 00:22:51,980 --> 00:22:53,340 And that's just not good enough. 423 00:22:53,540 --> 00:22:55,820 You know, if you're going to come to DEF CON, if you're going to come release something, 424 00:22:56,080 --> 00:22:56,840 you've got to have ODE. 425 00:22:57,260 --> 00:22:59,680 You've got to have some cool tricks that no one else has ever seen before. 426 00:22:59,900 --> 00:23:00,240 Right? 427 00:23:00,620 --> 00:23:00,980 Yeah. 428 00:23:01,480 --> 00:23:01,840 Yeah. 429 00:23:02,080 --> 00:23:02,420 ODE. 430 00:23:02,780 --> 00:23:03,060 Woo. 431 00:23:04,460 --> 00:23:04,820 Okay. 432 00:23:04,900 --> 00:23:08,440 So I made a really subtle discovery during my research 433 00:23:08,440 --> 00:23:09,900 that remote websites, 434 00:23:09,900 --> 00:23:12,880 are actually not factored into the kiosk security model. 435 00:23:13,260 --> 00:23:14,060 It's like, ooh. 436 00:23:14,660 --> 00:23:15,900 Ooh, that's fun. 437 00:23:16,900 --> 00:23:21,040 Websites are actually trusted more than the dude on the kiosk. 438 00:23:21,160 --> 00:23:22,020 It's like, whoa. 439 00:23:22,640 --> 00:23:23,880 It's getting better and better. 440 00:23:24,260 --> 00:23:27,720 This is because the kiosks rely on the default browser security model. 441 00:23:28,280 --> 00:23:32,800 None of the kiosk vendors have actually taken into account a potential malicious website. 442 00:23:36,180 --> 00:23:39,840 So, what available remote input vectors do we have? 443 00:23:39,900 --> 00:23:43,580 This is content visited from a kiosk terminal, hosted on a remote website. 444 00:23:43,720 --> 00:23:45,140 So we have browser scripting languages. 445 00:23:45,340 --> 00:23:46,020 We have VBScript. 446 00:23:46,100 --> 00:23:46,600 We've got JavaScript. 447 00:23:46,920 --> 00:23:47,860 We've got Java applets. 448 00:23:48,020 --> 00:23:48,800 We've got ActiveX. 449 00:23:49,000 --> 00:23:51,160 We've got ClickOnce, which is part of .NET. 450 00:23:51,500 --> 00:23:52,840 We have protocol handlers. 451 00:23:53,060 --> 00:23:54,540 We have file type handlers. 452 00:23:54,740 --> 00:23:55,520 We've got Flash. 453 00:23:55,680 --> 00:23:56,400 We've got Director. 454 00:23:56,740 --> 00:23:57,660 We've got Acrobat. 455 00:23:57,740 --> 00:23:58,380 We've got RealMedia. 456 00:23:58,480 --> 00:23:59,120 We've got QuickTime. 457 00:23:59,280 --> 00:24:00,440 We've got Windows Media Player. 458 00:24:00,740 --> 00:24:05,300 We've got a hell of a lot more attack vectors than we did being a physical user on a kiosk. 459 00:24:07,620 --> 00:24:08,920 So, I said to myself, 460 00:24:08,920 --> 00:24:10,980 I need a kiosk hacking website. 461 00:24:11,640 --> 00:24:12,860 That's pretty much going to be the money. 462 00:24:12,920 --> 00:24:16,700 I need an online tool that you can visit from an internet kiosk. 463 00:24:17,060 --> 00:24:20,860 And it provides content for you to escape a kiosk jail. 464 00:24:21,500 --> 00:24:23,200 So I wrote this thing I called ICAT. 465 00:24:23,380 --> 00:24:25,620 The Interactive Kiosk Attack Tool. 466 00:24:25,920 --> 00:24:27,080 It's the first of its kind. 467 00:24:27,280 --> 00:24:29,540 Nothing else exists like this as far as I know. 468 00:24:30,020 --> 00:24:32,500 It's a new method of hacking internet kiosks. 469 00:24:32,920 --> 00:24:34,120 And this is very fast. 470 00:24:34,920 --> 00:24:37,440 ICAT can pop shell in less than 120 seconds. 471 00:24:37,440 --> 00:24:44,340 And I found that I also have a 95 to 100% success rate using my remote methods. 472 00:24:44,860 --> 00:24:47,440 The rest of this talk will detail all the methods in ICAT. 473 00:24:47,480 --> 00:24:48,400 I'll go through it all. 474 00:24:48,540 --> 00:24:51,140 But this is officially being launched now at DEF CON. 475 00:24:51,260 --> 00:24:51,940 DEF CON 16. 476 00:24:52,200 --> 00:24:57,560 This is available live on the internet at icat.ha.cked.net. 477 00:24:57,660 --> 00:24:58,940 icat.hack.net. 478 00:24:59,580 --> 00:25:01,360 And you can use this anywhere. 479 00:25:01,480 --> 00:25:01,980 This is free. 480 00:25:02,020 --> 00:25:02,840 This is freely available. 481 00:25:03,040 --> 00:25:04,240 This is all good stuff. 482 00:25:06,360 --> 00:25:06,820 Okay. 483 00:25:06,820 --> 00:25:08,120 So what can ICAT do? 484 00:25:09,460 --> 00:25:10,800 Firstly, I thought to myself, 485 00:25:10,980 --> 00:25:12,140 while I'm sitting at a kiosk, 486 00:25:12,200 --> 00:25:14,980 I'd really like to know what kiosk I'm sitting at. 487 00:25:15,280 --> 00:25:18,520 I'd really like to know what's on the kiosk and what I can do with the kiosk. 488 00:25:19,000 --> 00:25:21,400 So I wrote this little JavaScript app 489 00:25:21,400 --> 00:25:25,060 which detects all of the installed applications on a kiosk. 490 00:25:25,660 --> 00:25:27,920 I use the resource protocol handler 491 00:25:27,920 --> 00:25:31,580 to pull out bitmap resources out of an executable 492 00:25:31,580 --> 00:25:35,040 and I verify the height of the extracted bitmap. 493 00:25:35,040 --> 00:25:37,620 So if I can prove the bitmap exists 494 00:25:38,140 --> 00:25:39,260 from the executable, 495 00:25:39,300 --> 00:25:40,360 then I know the executable exists. 496 00:25:40,600 --> 00:25:41,500 If the executable exists, 497 00:25:41,660 --> 00:25:42,780 then I know the app is installed. 498 00:25:43,740 --> 00:25:45,560 So ICAT is capable of detecting 499 00:25:45,560 --> 00:25:48,240 about 15 or 20 commercial kiosk products 500 00:25:48,240 --> 00:25:51,620 and about 40 or 50 installed applications. 501 00:25:52,420 --> 00:25:55,400 So you can see on a little screenshot on the far right, 502 00:25:56,060 --> 00:25:59,200 it's detected the kiosk platform is NetStop Pro Kiosk. 503 00:25:59,360 --> 00:26:01,780 It's detected that I have Windows Media Player 11 installed, 504 00:26:02,000 --> 00:26:04,920 NetMeeting, .NET Framework 1, 2, MSN Messenger, 505 00:26:04,920 --> 00:26:05,600 and MovieMaker. 506 00:26:05,760 --> 00:26:07,020 This is really important for me 507 00:26:07,020 --> 00:26:07,920 because this tells me 508 00:26:07,920 --> 00:26:09,960 what attack vectors I now have available, 509 00:26:10,160 --> 00:26:12,880 what input vectors are installed on this kiosk 510 00:26:12,880 --> 00:26:15,880 and how I can now further define or focus my attacks. 511 00:26:19,200 --> 00:26:21,720 ICAT can also display local browser variables. 512 00:26:22,400 --> 00:26:23,780 So just using JavaScript, 513 00:26:24,080 --> 00:26:26,820 I can pull out all the navigator dot 514 00:26:27,420 --> 00:26:30,120 like app version and app name variables 515 00:26:30,120 --> 00:26:33,440 and basically determine what software the kiosk is written on. 516 00:26:33,440 --> 00:26:37,640 So msinet and winhttp.dll 517 00:26:37,640 --> 00:26:39,900 actually display Internet Explorer app versions. 518 00:26:40,180 --> 00:26:42,220 So I can visit this page on ICAT 519 00:26:42,220 --> 00:26:44,340 and it'll tell me if the kiosk is based on IE 520 00:26:44,340 --> 00:26:46,580 or if it's based on a custom browser control. 521 00:26:46,900 --> 00:26:48,900 This gives me more information about the attack target, 522 00:26:49,060 --> 00:26:50,320 about what I'm trying to do. 523 00:26:51,040 --> 00:26:54,160 This can also detect the presence of the .NET CLR. 524 00:26:54,220 --> 00:26:57,320 You'll see in the navigator app version 525 00:26:57,320 --> 00:26:58,940 that if .NET is installed, 526 00:26:59,220 --> 00:27:01,140 it appends itself into the app version. 527 00:27:01,240 --> 00:27:03,340 So you can see that this particular kiosk 528 00:27:03,440 --> 00:27:04,940 has .NET CLR 2 installed. 529 00:27:05,740 --> 00:27:08,100 I can also display remote server variables. 530 00:27:08,360 --> 00:27:10,600 So I can discover the remote IP address 531 00:27:10,600 --> 00:27:11,560 of the kiosk terminal. 532 00:27:12,140 --> 00:27:13,620 Pretty handy thing to know, right? 533 00:27:16,080 --> 00:27:19,580 ICAT also contains all common browser dialogues in one place. 534 00:27:19,880 --> 00:27:21,240 So you can just click down a list, 535 00:27:21,360 --> 00:27:22,240 things pop up, 536 00:27:22,280 --> 00:27:23,820 and you can see if they're blocked or not. 537 00:27:24,140 --> 00:27:26,580 So I have a file open, file print, file save as, 538 00:27:26,880 --> 00:27:29,880 and a print preview dialogue that'll pop up. 539 00:27:30,520 --> 00:27:31,640 This is pretty handy. 540 00:27:31,720 --> 00:27:33,100 This saves the guesswork 541 00:27:33,100 --> 00:27:35,960 and really decreases the time involved in hacking a kiosk. 542 00:27:40,500 --> 00:27:43,620 We can also use Flash to invoke common dialogues. 543 00:27:44,020 --> 00:27:46,580 So Adobe Flash is the most widely used 544 00:27:46,580 --> 00:27:47,560 as a plugin in the world. 545 00:27:47,820 --> 00:27:49,100 According to the Adobe website, 546 00:27:49,260 --> 00:27:52,380 there's something like 720 million browsers 547 00:27:52,380 --> 00:27:53,720 with Flash currently installed. 548 00:27:54,220 --> 00:27:56,780 And ActionScript 3 is capable of invoking 549 00:27:56,780 --> 00:27:59,320 three unique file open dialogues. 550 00:27:59,820 --> 00:28:01,640 These are select file for upload, 551 00:28:01,720 --> 00:28:02,920 select files for upload, 552 00:28:03,100 --> 00:28:05,480 and select location for download by site name. 553 00:28:05,780 --> 00:28:07,960 Now the dialogue title in these cases 554 00:28:07,960 --> 00:28:09,300 are actually very important. 555 00:28:09,480 --> 00:28:11,140 Because when a kiosk is monitoring 556 00:28:11,140 --> 00:28:12,860 all of the windows that pops up, 557 00:28:14,200 --> 00:28:17,460 it's verifying the dialogue names against the blacklist. 558 00:28:17,640 --> 00:28:19,760 So if I can pop up a common dialogue 559 00:28:19,760 --> 00:28:21,720 which has a unique dialogue title, 560 00:28:22,080 --> 00:28:23,900 then it might evade the blacklist. 561 00:28:24,480 --> 00:28:27,140 So the Flash dialogues are not the standard, 562 00:28:27,220 --> 00:28:28,860 i.e. choose file dialogues. 563 00:28:29,640 --> 00:28:32,140 So that bypasses quite a few blacklists. 564 00:28:32,140 --> 00:28:35,220 But they still contain the same file view control. 565 00:28:35,540 --> 00:28:36,800 So you still get the same functionality, 566 00:28:37,040 --> 00:28:38,240 you just defeat the blacklist. 567 00:28:38,420 --> 00:28:39,100 Thanks, Flash. 568 00:28:41,200 --> 00:28:44,580 Okay, we can also try and spawn applications on the kiosk. 569 00:28:44,860 --> 00:28:47,580 So can we cause an application or process 570 00:28:47,580 --> 00:28:49,120 to launch on the kiosk? 571 00:28:49,380 --> 00:28:52,200 Perhaps the spawn application contains a common dialogue. 572 00:28:53,040 --> 00:28:54,780 Perhaps we can use that application 573 00:28:54,780 --> 00:28:57,820 to then provide additional access to the kiosk 574 00:28:57,820 --> 00:28:59,360 or further compromise the host. 575 00:29:00,300 --> 00:29:02,120 So ICAT tries to invoke a common dialogue 576 00:29:02,140 --> 00:29:04,360 to invoke the default Windows URI handlers. 577 00:29:04,500 --> 00:29:07,160 It'll try and invoke call-to, gopher, HCP, telnet, 578 00:29:08,220 --> 00:29:10,180 tm3270, rlogin, LDAP, news, and mail-to. 579 00:29:10,680 --> 00:29:16,120 Now essentially, if you click the href link 580 00:29:16,120 --> 00:29:17,860 that I have on screen there to the mail link, 581 00:29:18,360 --> 00:29:22,300 the default Windows mail-to URI handler will spawn. 582 00:29:22,740 --> 00:29:24,760 In most cases, this is Outlook Express. 583 00:29:25,120 --> 00:29:26,840 So we can get Outlook Express to pop up. 584 00:29:27,460 --> 00:29:30,460 We can also try and spawn third-party URI handlers. 585 00:29:30,460 --> 00:29:34,500 MMS, Skype, SIP, Play, Steam, QuickTime, 586 00:29:34,600 --> 00:29:35,340 you know, the list goes on. 587 00:29:35,440 --> 00:29:37,060 Whatever is installed on the kiosk, 588 00:29:37,080 --> 00:29:38,240 we can make that pop up 589 00:29:38,240 --> 00:29:41,120 and potentially use that app to then escape the kiosk jail. 590 00:29:41,420 --> 00:29:43,220 It's all about invoking functionality, 591 00:29:43,260 --> 00:29:44,420 getting shit to pop up, 592 00:29:44,480 --> 00:29:46,800 getting something other than browsing the internet. 593 00:29:49,260 --> 00:29:51,020 Okay, here's an example using the HCP, 594 00:29:51,180 --> 00:29:53,320 the Help and Support Center in Windows. 595 00:29:53,380 --> 00:29:54,320 So if you click the link, 596 00:29:54,380 --> 00:29:57,600 the href http://dummy link, 597 00:29:58,380 --> 00:30:00,300 you can get Help and Support Center. 598 00:30:00,460 --> 00:30:03,240 And basically, you can use the Help and Support Center 599 00:30:03,240 --> 00:30:05,300 to then invoke a command prompt. 600 00:30:05,560 --> 00:30:07,700 And how you use it is you basically search for 601 00:30:07,700 --> 00:30:10,080 using the app you want to launch. 602 00:30:10,360 --> 00:30:12,200 So if you search for using command prompt, 603 00:30:12,480 --> 00:30:14,860 it'll pop up this page on how to use the command prompt, 604 00:30:14,980 --> 00:30:15,660 which is really handy. 605 00:30:16,620 --> 00:30:18,740 And then you'll see in there on the far right 606 00:30:18,740 --> 00:30:21,100 the little link that says open the command prompt. 607 00:30:21,420 --> 00:30:24,800 You notice that you can click that with the left mouse button only. 608 00:30:25,380 --> 00:30:26,920 So this is quite cool 609 00:30:26,920 --> 00:30:28,940 because most kiosks don't have a right mouse button. 610 00:30:29,120 --> 00:30:30,220 So this provides a... 611 00:30:30,220 --> 00:30:31,340 a good method of... 612 00:30:31,340 --> 00:30:32,040 of doing that. 613 00:30:32,140 --> 00:30:33,100 And the same for Notepad 614 00:30:33,100 --> 00:30:34,480 or pretty much any Windows app. 615 00:30:34,640 --> 00:30:35,800 You can just search for using 616 00:30:35,800 --> 00:30:37,980 a then app name that you want to launch. 617 00:30:38,120 --> 00:30:39,160 Bang, you got it. 618 00:30:41,040 --> 00:30:42,740 Okay, so ICAP provides links 619 00:30:42,740 --> 00:30:44,820 to over a hundred different URI handlers. 620 00:30:45,180 --> 00:30:47,100 So you can just click, click, click down the list 621 00:30:47,100 --> 00:30:47,760 and see what pops up. 622 00:30:48,240 --> 00:30:49,800 You can determine which handlers 623 00:30:49,800 --> 00:30:51,460 are covered by the kiosk blacklist 624 00:30:51,460 --> 00:30:55,020 and use the invoke handler to escape the kiosk itself. 625 00:30:55,580 --> 00:30:59,360 I've also implemented automatic execution of URI handlers. 626 00:30:59,360 --> 00:31:01,680 So by using DHTML and JavaScript 627 00:31:01,680 --> 00:31:04,360 I can sequentially invoke all of these handlers. 628 00:31:05,240 --> 00:31:06,760 So you don't even have to click down the list. 629 00:31:06,960 --> 00:31:07,700 You just click once 630 00:31:07,700 --> 00:31:08,900 and the shit just pops up. 631 00:31:08,940 --> 00:31:10,300 It just spawns fucking everywhere. 632 00:31:10,880 --> 00:31:11,740 And you win! 633 00:31:15,520 --> 00:31:16,320 Thank you. 634 00:31:20,580 --> 00:31:22,040 Okay, ICAP also contains 635 00:31:22,540 --> 00:31:25,640 all of the physical input vectors 636 00:31:25,640 --> 00:31:26,400 that I was talking about before, 637 00:31:26,460 --> 00:31:27,340 the URLs to type, 638 00:31:27,420 --> 00:31:28,640 all the different permutations 639 00:31:28,640 --> 00:31:30,140 of typing in C colon windows, 640 00:31:30,760 --> 00:31:32,120 all the shell handlers, 641 00:31:32,240 --> 00:31:36,700 and also the GUID shell handlers 642 00:31:36,700 --> 00:31:37,440 that I told you about. 643 00:31:37,560 --> 00:31:38,620 Because obviously you're not going to be able to 644 00:31:38,620 --> 00:31:40,800 remember the GUID of the control panel 645 00:31:40,800 --> 00:31:42,220 when you're sitting at the kiosk. 646 00:31:42,380 --> 00:31:44,620 I can barely remember my name in the morning. 647 00:31:44,660 --> 00:31:45,660 I'm not going to remember a GUID. 648 00:31:47,660 --> 00:31:49,780 Okay, so we can also invoke applications 649 00:31:49,780 --> 00:31:51,540 using file type handlers. 650 00:31:52,060 --> 00:31:53,540 Now if you click on a file 651 00:31:53,540 --> 00:31:55,040 such as test.myfile, 652 00:31:55,180 --> 00:31:58,420 Windows will spawn the myfile file handler. 653 00:31:59,300 --> 00:32:01,560 Now, Internet Explorer actually supports 654 00:32:02,060 --> 00:32:03,360 promptless handler execution. 655 00:32:03,860 --> 00:32:06,060 An example of this is Windows Media Player. 656 00:32:06,400 --> 00:32:09,500 I think for seamless integration with a browser 657 00:32:09,500 --> 00:32:10,660 or some crap like that, 658 00:32:10,720 --> 00:32:12,740 if you click test.wmv, 659 00:32:12,900 --> 00:32:14,860 a Windows Media Player will just pop up. 660 00:32:14,960 --> 00:32:16,000 It won't actually ask you, 661 00:32:16,100 --> 00:32:17,980 hey, are you sure you want to launch 662 00:32:17,980 --> 00:32:18,720 Windows Media Player? 663 00:32:18,820 --> 00:32:19,520 It'll just spawn. 664 00:32:20,020 --> 00:32:21,860 Now this is really, really good for us. 665 00:32:22,040 --> 00:32:24,100 Because remember, kiosks are monitoring 666 00:32:24,100 --> 00:32:25,520 all the stuff that pops up. 667 00:32:25,700 --> 00:32:27,160 So if nothing pops up, 668 00:32:27,160 --> 00:32:28,620 it can't block it. 669 00:32:29,540 --> 00:32:31,320 So Windows Media Player becomes 670 00:32:31,320 --> 00:32:33,240 a pretty good trick. 671 00:32:33,920 --> 00:32:36,560 Now that's determined by this 672 00:32:36,560 --> 00:32:37,780 edit flag setting, 673 00:32:37,940 --> 00:32:40,080 which is a binary bit. 674 00:32:40,140 --> 00:32:41,560 If the third bit is one, 675 00:32:41,720 --> 00:32:43,320 then you don't get any prompt that pops up. 676 00:32:43,500 --> 00:32:44,840 And I found a bunch of different apps 677 00:32:44,840 --> 00:32:46,240 that basically don't prompt 678 00:32:46,240 --> 00:32:48,160 or don't ask you anything 679 00:32:48,160 --> 00:32:48,960 before they launch. 680 00:32:49,040 --> 00:32:49,620 They just spawn. 681 00:32:50,880 --> 00:32:53,640 And of course, kiosks fail to detect 682 00:32:53,640 --> 00:32:54,780 these things when they launch. 683 00:32:55,460 --> 00:32:56,960 So I can't, again, 684 00:32:57,160 --> 00:32:58,360 use this DHTML and JavaScript 685 00:32:58,360 --> 00:33:00,780 to invoke 108 unique file handlers. 686 00:33:01,160 --> 00:33:03,140 So I have a list of every possible 687 00:33:03,140 --> 00:33:05,540 file extension I could think of. 688 00:33:05,920 --> 00:33:07,600 And it'll try and invoke all of them. 689 00:33:07,860 --> 00:33:09,840 So again, you can possibly get 108 690 00:33:09,840 --> 00:33:11,660 different things just popping up. 691 00:33:12,100 --> 00:33:12,800 Which is good. 692 00:33:12,880 --> 00:33:13,700 You win again. 693 00:33:16,240 --> 00:33:18,520 Okay, ICAT and Windows Media Player files. 694 00:33:18,860 --> 00:33:19,600 So I thought to myself, 695 00:33:19,780 --> 00:33:20,580 man, this is really cool. 696 00:33:20,660 --> 00:33:22,020 Windows Media Player spawns 697 00:33:22,020 --> 00:33:23,120 without asking me anything. 698 00:33:23,280 --> 00:33:24,320 I gotta expand this. 699 00:33:24,500 --> 00:33:26,360 I gotta get some cool tricks out of this. 700 00:33:26,360 --> 00:33:30,080 So Windows Media Player will silently launch 701 00:33:30,080 --> 00:33:31,900 the .asx file format. 702 00:33:32,020 --> 00:33:33,360 These are the playlist files, right? 703 00:33:33,740 --> 00:33:36,020 Who here knew that you can have a playlist 704 00:33:36,020 --> 00:33:37,600 which is web-enabled? 705 00:33:39,660 --> 00:33:40,840 Oh yeah, a couple people. 706 00:33:41,060 --> 00:33:41,740 Cool, cool, cool. 707 00:33:41,860 --> 00:33:42,920 All right, so it's a pretty, 708 00:33:43,100 --> 00:33:44,740 I didn't really know you could do this, 709 00:33:44,820 --> 00:33:46,160 but you can see in the screenshot 710 00:33:46,160 --> 00:33:48,260 at the top on the right, 711 00:33:48,340 --> 00:33:50,940 I have a playlist that basically says, 712 00:33:51,180 --> 00:33:53,660 hey, I have web content that's available here. 713 00:33:54,500 --> 00:33:55,840 So the .asx file, 714 00:33:55,840 --> 00:33:57,540 that I have available on ICAT, 715 00:33:57,680 --> 00:33:59,500 will actually cause Windows Media Player 716 00:33:59,500 --> 00:34:01,900 to pop up and then launch a browser 717 00:34:01,900 --> 00:34:04,580 inside itself and re-browse ICAT, 718 00:34:04,760 --> 00:34:05,700 which is my tool. 719 00:34:05,800 --> 00:34:07,740 Now this is a really good trick 720 00:34:07,740 --> 00:34:09,440 because when you can get Windows Media Player 721 00:34:09,440 --> 00:34:10,760 to act as a browser, 722 00:34:10,940 --> 00:34:12,420 it essentially gives you a browser 723 00:34:12,420 --> 00:34:15,260 with a lower security control than the kiosk. 724 00:34:15,600 --> 00:34:18,660 So you decrease the level of paranoia 725 00:34:18,660 --> 00:34:20,820 that's implemented in these kiosks. 726 00:34:20,820 --> 00:34:22,560 And you can then use Windows Media Player 727 00:34:22,560 --> 00:34:24,540 to hack the kiosk again 728 00:34:24,540 --> 00:34:25,700 through its browser. 729 00:34:25,920 --> 00:34:27,000 Go through the same process. 730 00:34:27,080 --> 00:34:28,220 You click everything in ICAT, 731 00:34:28,320 --> 00:34:29,680 different shit pops up. 732 00:34:29,860 --> 00:34:30,720 You win again. 733 00:34:30,960 --> 00:34:32,140 You can use Windows Media Player 734 00:34:32,140 --> 00:34:33,000 for your advantage. 735 00:34:33,800 --> 00:34:35,360 The only disadvantage on this 736 00:34:35,360 --> 00:34:37,220 is the dialogue that pops up that says, 737 00:34:37,340 --> 00:34:39,180 this enhanced content you're about to play 738 00:34:39,180 --> 00:34:40,800 uses the following web page. 739 00:34:41,120 --> 00:34:42,680 You should only open web pages 740 00:34:42,680 --> 00:34:43,800 from sources that you trust. 741 00:34:44,240 --> 00:34:46,020 Of course, you trust ICAT, right. 742 00:34:46,320 --> 00:34:49,560 And no kiosk blocks that dialogue. 743 00:34:49,940 --> 00:34:50,680 Well, that's pretty handy. 744 00:34:53,280 --> 00:34:55,200 Okay, so ICAT and Office documents. 745 00:34:55,960 --> 00:34:57,080 So I realized, hey, 746 00:34:57,180 --> 00:34:58,720 Office documents are pretty cool. 747 00:34:58,820 --> 00:35:00,640 You know, Office is this amazing platform 748 00:35:00,640 --> 00:35:02,080 that can do all sorts of crazy stuff. 749 00:35:02,220 --> 00:35:03,200 What can I do with Office? 750 00:35:03,620 --> 00:35:07,320 So I realized that if you have an Office file viewer 751 00:35:07,320 --> 00:35:08,920 installed on a kiosk, 752 00:35:08,960 --> 00:35:10,320 you pretty much win. 753 00:35:10,660 --> 00:35:12,640 And you win because in an Office document, 754 00:35:12,800 --> 00:35:14,460 you can embed an object. 755 00:35:14,880 --> 00:35:16,600 So I thought, well, if I can embed an object, 756 00:35:16,820 --> 00:35:18,480 why don't I embed an executable? 757 00:35:18,620 --> 00:35:20,340 Why don't I embed CMD? 758 00:35:21,040 --> 00:35:29,460 So I have doc files, docx, xlx, xlsb, xlsm, and xlsx, 759 00:35:29,660 --> 00:35:32,040 which all contain embedded CMD files. 760 00:35:32,560 --> 00:35:36,840 So if you use the ICAT file handler invocation trick 761 00:35:36,840 --> 00:35:38,260 and you find that Office pops up, 762 00:35:38,360 --> 00:35:40,460 you may get a document which says something like this, 763 00:35:40,480 --> 00:35:43,100 cmd.exe embedded within a doc file. 764 00:35:43,440 --> 00:35:44,580 And then you double click it, 765 00:35:44,640 --> 00:35:47,000 and the open package contents box pops up 766 00:35:47,000 --> 00:35:49,140 and it says, warning you very specifically, 767 00:35:49,440 --> 00:35:50,620 this package you're about to open, 768 00:35:50,620 --> 00:35:52,400 will run a program containing this package. 769 00:35:52,600 --> 00:35:53,820 That program could do anything. 770 00:35:54,280 --> 00:35:55,920 It may harm your computer. 771 00:35:56,100 --> 00:35:58,140 Well, I don't really care about the kiosk. 772 00:35:58,360 --> 00:35:58,820 Okay! 773 00:36:05,020 --> 00:36:08,080 I've got a whole lot more file handler tricks like this, 774 00:36:08,140 --> 00:36:09,480 but I don't really want to detail all of them. 775 00:36:09,520 --> 00:36:11,440 I have 108 files in ICAT. 776 00:36:11,600 --> 00:36:13,240 So basically I'm just going to say that ICAT 777 00:36:13,240 --> 00:36:15,900 will try and spawn the most useful file possible 778 00:36:15,900 --> 00:36:18,280 to make your hacking attempt easier, 779 00:36:18,480 --> 00:36:19,780 smoother, and faster. 780 00:36:22,280 --> 00:36:22,720 Okay! 781 00:36:23,060 --> 00:36:24,640 ICAT and Java applets. 782 00:36:25,560 --> 00:36:28,540 Okay, so side Java applets can execute local processes. 783 00:36:28,980 --> 00:36:29,740 Did anyone know this? 784 00:36:29,900 --> 00:36:30,140 Yeah? 785 00:36:30,240 --> 00:36:31,060 Most people knew this? 786 00:36:31,260 --> 00:36:31,820 No one? 787 00:36:31,920 --> 00:36:32,180 All right. 788 00:36:33,000 --> 00:36:34,700 So who knew that you can actually get 789 00:36:34,700 --> 00:36:36,340 a Java signing cert for free? 790 00:36:37,360 --> 00:36:38,180 That's pretty good. 791 00:36:38,300 --> 00:36:39,420 I'm a bit of a cheap ass. 792 00:36:40,060 --> 00:36:42,540 So you can detect if a JRE is installed 793 00:36:42,540 --> 00:36:44,760 by using the ICAT reconnaissance trick, 794 00:36:44,840 --> 00:36:46,860 the first thing I showed you. 795 00:36:47,000 --> 00:36:48,700 And that'll basically tell you if Java is installed. 796 00:36:48,900 --> 00:36:49,940 Now if Java is installed, 797 00:36:50,780 --> 00:36:54,940 you can use ICAT to then spawn different Java applets. 798 00:36:55,040 --> 00:36:57,620 And those Java applets will try and do different things again. 799 00:36:58,480 --> 00:37:00,660 So, of course, you can spawn CND, 800 00:37:00,800 --> 00:37:02,060 you can spawn Notepad, 801 00:37:02,160 --> 00:37:03,540 you can spawn RedJetted, 802 00:37:03,760 --> 00:37:04,940 you can spawn Command.com. 803 00:37:05,300 --> 00:37:07,120 And this little dialog box pops up. 804 00:37:07,160 --> 00:37:08,740 It says warning dash security. 805 00:37:09,040 --> 00:37:10,480 The application you're about to run, yadda yadda. 806 00:37:10,620 --> 00:37:12,440 No key else blocked that dialog. 807 00:37:12,920 --> 00:37:14,340 So again, you win! 808 00:37:15,160 --> 00:37:16,940 One of the things I included in here 809 00:37:18,120 --> 00:37:20,360 was Jython by PDP, 810 00:37:20,360 --> 00:37:21,060 from GNU Citizen. 811 00:37:21,300 --> 00:37:22,980 I don't know if PDP's in the house. 812 00:37:23,120 --> 00:37:24,020 PDP in the house? 813 00:37:24,840 --> 00:37:25,240 Nope? 814 00:37:25,360 --> 00:37:25,620 All right. 815 00:37:25,720 --> 00:37:29,120 So Jython is essentially Java inside an applet, 816 00:37:29,200 --> 00:37:30,320 which is pretty powerful. 817 00:37:30,560 --> 00:37:31,160 No, sorry. 818 00:37:31,380 --> 00:37:33,680 Jython is Python inside an applet. 819 00:37:34,180 --> 00:37:37,160 So you can invoke Jython from ICAT 820 00:37:37,160 --> 00:37:39,640 and get a full Python terminal 821 00:37:39,640 --> 00:37:41,660 inside Java inside the kiosk. 822 00:37:41,720 --> 00:37:44,020 You can then use Python to just start executing 823 00:37:44,020 --> 00:37:46,300 whatever Python code you want to start running 824 00:37:46,300 --> 00:37:48,320 and further own the kiosk from within Java, 825 00:37:48,480 --> 00:37:49,560 which is pretty handy. 826 00:37:51,620 --> 00:37:53,340 Okay, what about ActiveX? 827 00:37:54,140 --> 00:37:55,380 Now, safe for scripting, 828 00:37:55,400 --> 00:37:57,500 ActiveX can be used to compromise a kiosk. 829 00:37:57,540 --> 00:37:57,980 Well, duh. 830 00:37:58,360 --> 00:38:00,160 So we can have an unsafe method 831 00:38:00,160 --> 00:38:01,980 within an ActiveX control. 832 00:38:02,200 --> 00:38:05,100 So object.execute cmd.exe. 833 00:38:05,360 --> 00:38:06,560 So the question is, 834 00:38:06,580 --> 00:38:09,060 can we install a malicious ActiveX on a kiosk? 835 00:38:09,200 --> 00:38:11,140 So what I did was I wrote an ActiveX. 836 00:38:11,240 --> 00:38:13,680 It has one method exported called execute, 837 00:38:13,980 --> 00:38:16,240 and it'll execute any executable you give it. 838 00:38:16,320 --> 00:38:18,540 I wouldn't suggest installing this 839 00:38:18,540 --> 00:38:19,580 on your desktop computer. 840 00:38:19,580 --> 00:38:22,080 This is a very insecure ActiveX, right? 841 00:38:22,120 --> 00:38:23,480 But it fulfills the purpose 842 00:38:23,480 --> 00:38:24,840 of what we're trying to do 843 00:38:24,840 --> 00:38:27,040 of executing processes on a kiosk. 844 00:38:27,860 --> 00:38:29,520 Now, installing an ActiveX 845 00:38:29,520 --> 00:38:31,520 requires administrative authority. 846 00:38:31,900 --> 00:38:33,520 So if you have admin rights 847 00:38:33,520 --> 00:38:34,880 and you can install an ActiveX, 848 00:38:34,900 --> 00:38:36,040 then you're pretty fucking lucky. 849 00:38:36,220 --> 00:38:37,820 And props, you got it. 850 00:38:38,220 --> 00:38:40,720 But the chances are this isn't gonna work. 851 00:38:40,800 --> 00:38:43,420 This isn't a very highly reliable method. 852 00:38:43,880 --> 00:38:45,980 Now, I have noticed that ActiveX 853 00:38:45,980 --> 00:38:47,960 and the way ActiveX is written and deployed 854 00:38:47,960 --> 00:38:49,020 is essentially changing 855 00:38:49,020 --> 00:38:50,300 with Internet Explorer 8. 856 00:38:50,540 --> 00:38:52,080 So as of Internet Explorer 8, 857 00:38:52,220 --> 00:38:53,980 you will not need admin rights 858 00:38:53,980 --> 00:38:55,280 to install an ActiveX, 859 00:38:55,400 --> 00:38:56,800 because technically an ActiveX 860 00:38:56,800 --> 00:38:58,040 will no longer be installed, 861 00:38:59,520 --> 00:39:00,980 which can potentially mean 862 00:39:00,980 --> 00:39:02,060 that in a few years' time, 863 00:39:02,240 --> 00:39:03,800 when kiosks start being based 864 00:39:03,800 --> 00:39:05,140 on Internet Explorer 8 libraries, 865 00:39:05,420 --> 00:39:07,320 this trick will come in very, very handy 866 00:39:07,320 --> 00:39:08,420 and will be very powerful 867 00:39:08,420 --> 00:39:10,380 and get you lots of shells and pwnage. 868 00:39:12,700 --> 00:39:13,200 Okay. 869 00:39:13,820 --> 00:39:14,640 Click once. 870 00:39:18,800 --> 00:39:22,340 So, click once is .NET 2.0 plus technology. 871 00:39:22,940 --> 00:39:25,460 Who here actually knew what click once was? 872 00:39:26,580 --> 00:39:28,520 Well, okay, like four or five hands. 873 00:39:28,620 --> 00:39:28,860 All right. 874 00:39:28,880 --> 00:39:29,560 This is good. 875 00:39:29,920 --> 00:39:31,600 I don't even know about this. 876 00:39:31,660 --> 00:39:32,980 I don't even know that you could do this with .NET. 877 00:39:33,080 --> 00:39:35,280 So this is called online application deployment. 878 00:39:36,160 --> 00:39:38,420 It uses the .application file handler. 879 00:39:38,720 --> 00:39:41,320 Essentially it means you click a .application file 880 00:39:41,320 --> 00:39:44,360 and .NET just downloads stuff and starts running it. 881 00:39:44,360 --> 00:39:45,540 Well, that's really cool, 882 00:39:45,680 --> 00:39:47,720 because you don't need admin rights. 883 00:39:47,920 --> 00:39:51,280 You can do this with an unsigned application 884 00:39:51,280 --> 00:39:53,560 and you can execute with full trust. 885 00:39:54,040 --> 00:39:55,680 I know CAS isn't implemented, 886 00:39:55,820 --> 00:39:57,120 the code access security policy. 887 00:39:57,640 --> 00:39:59,320 So essentially you can do pretty much 888 00:39:59,320 --> 00:40:00,120 whatever the fuck you want, 889 00:40:00,260 --> 00:40:02,800 and that includes running binaries, 890 00:40:02,900 --> 00:40:04,840 doing, well, pretty much anything. 891 00:40:05,380 --> 00:40:06,620 Now, users are warned. 892 00:40:06,680 --> 00:40:08,280 You get this dialog box that pops up that says, 893 00:40:08,360 --> 00:40:10,700 application run dash security warning. 894 00:40:10,980 --> 00:40:13,600 Again, no kiosks were able to detect 895 00:40:13,600 --> 00:40:14,900 this dialog box. 896 00:40:15,180 --> 00:40:17,440 So if .NET is installed, you win. 897 00:40:17,660 --> 00:40:20,180 Now, this is particularly important 898 00:40:20,180 --> 00:40:23,540 because many kiosks are now written in .NET, 899 00:40:23,760 --> 00:40:25,980 which means the CLR is present 900 00:40:25,980 --> 00:40:28,080 and .NET 2 is installed. 901 00:40:28,800 --> 00:40:31,920 So this is basically one click, you got shell. 902 00:40:32,220 --> 00:40:35,480 This is, I found this to be the most powerful, 903 00:40:35,740 --> 00:40:39,080 the easiest, the fucking bomb. 904 00:40:39,420 --> 00:40:40,680 It really works. 905 00:40:40,760 --> 00:40:42,040 This is Uber. 906 00:40:42,180 --> 00:40:43,380 So I said to myself, you know, 907 00:40:43,380 --> 00:40:45,980 .NET is this powerful attack vector. 908 00:40:46,120 --> 00:40:47,060 What can I do with this? 909 00:40:47,120 --> 00:40:50,400 How can I really expand online application deployment 910 00:40:50,400 --> 00:40:53,520 to fully compromise kiosks and do it faster, 911 00:40:53,600 --> 00:40:54,060 do it better? 912 00:40:55,020 --> 00:40:57,420 So I wrote a whole bunch of apps. 913 00:40:57,860 --> 00:40:58,920 First thing I wrote, 914 00:40:59,000 --> 00:41:01,640 I wrote the iCAT embedded web browser. 915 00:41:01,980 --> 00:41:04,080 The idea behind this is that you click a link 916 00:41:04,080 --> 00:41:06,020 and it'll spawn up a new web browser. 917 00:41:06,180 --> 00:41:08,220 It'll spawn a web browser that doesn't have 918 00:41:08,220 --> 00:41:10,420 the same paranoid security restrictions 919 00:41:10,420 --> 00:41:11,760 that the kiosk has. 920 00:41:11,860 --> 00:41:13,300 The similar trick to using Windows Media 921 00:41:13,380 --> 00:41:14,240 Player as a web browser. 922 00:41:14,440 --> 00:41:15,840 You can then use that web browser 923 00:41:15,840 --> 00:41:17,580 to then further compromise the kiosk. 924 00:41:17,680 --> 00:41:18,600 It works pretty good. 925 00:41:19,480 --> 00:41:21,580 Or you can just use it to browse to websites 926 00:41:21,580 --> 00:41:24,020 that may be prohibited or banned from the kiosk. 927 00:41:24,340 --> 00:41:27,420 It just gives you basically a version or a refresh of IE. 928 00:41:28,220 --> 00:41:30,880 Then I wrote the iCAT application executor. 929 00:41:31,080 --> 00:41:33,660 The idea behind this is the ability to spawn 930 00:41:33,660 --> 00:41:35,580 any executable you want. 931 00:41:35,700 --> 00:41:37,600 So you can say, I want to pop up CMD. 932 00:41:37,740 --> 00:41:39,620 I want to pop up Notepad, command.com. 933 00:41:40,320 --> 00:41:41,780 It also supports macros. 934 00:41:41,780 --> 00:41:44,720 You can say, I want to spawn every useful application 935 00:41:44,720 --> 00:41:45,560 on this system. 936 00:41:45,660 --> 00:41:47,540 And it'll spawn 62 applications. 937 00:41:47,900 --> 00:41:49,540 Everything from the on-screen keyboard 938 00:41:49,540 --> 00:41:52,980 to task manager, regmon, the help control panel, 939 00:41:53,220 --> 00:41:56,360 command.com, cmd.exe, everything. 940 00:41:56,580 --> 00:41:58,000 It just does absolutely everything. 941 00:41:59,240 --> 00:42:01,460 Then I thought to myself, well, gee, 942 00:42:01,600 --> 00:42:03,480 since I'm getting now pretty good at writing .net, 943 00:42:03,680 --> 00:42:06,020 maybe I should write a token hijacker. 944 00:42:06,160 --> 00:42:08,000 So I wrote the iCAT token pincher. 945 00:42:08,180 --> 00:42:10,720 Now, recently token hijacking has become 946 00:42:10,720 --> 00:42:11,820 a very hip subject. 947 00:42:12,040 --> 00:42:14,580 It's kind of like the new, in, cool thing to do. 948 00:42:14,820 --> 00:42:19,000 The idea is that you can have a user on a Windows system 949 00:42:19,000 --> 00:42:22,340 which has what's called the SE impersonate privilege. 950 00:42:22,920 --> 00:42:25,360 Now, this is typically network service users 951 00:42:25,360 --> 00:42:28,980 or users that have slightly more rights than a user 952 00:42:28,980 --> 00:42:32,740 but not full admin rights, such as maybe a power user. 953 00:42:33,500 --> 00:42:37,160 Now, the SE impersonate privilege allows you to impersonate 954 00:42:37,160 --> 00:42:40,700 any available system tokens that may be online. 955 00:42:40,720 --> 00:42:43,360 On the system, maybe on the kiosk or the terminal. 956 00:42:43,780 --> 00:42:46,660 So the iCAT access token pincher will enumerate 957 00:42:46,660 --> 00:42:48,460 all of the system tokens that are available 958 00:42:48,460 --> 00:42:51,900 and then pop you a system shell, which is pretty good 959 00:42:51,900 --> 00:42:54,940 if you have the SE impersonate privilege. 960 00:42:55,760 --> 00:42:58,420 And it'll spawn cmd.exe under the context 961 00:42:58,420 --> 00:42:59,500 of the privilege token. 962 00:43:00,280 --> 00:43:03,240 This is loosely based on a script that came from 963 00:43:03,240 --> 00:43:04,740 Insomnia Security, Brett Moore. 964 00:43:04,960 --> 00:43:06,620 He released something called Insomnia Shell, 965 00:43:06,760 --> 00:43:10,700 which was a .aspx token impersonator. 966 00:43:10,700 --> 00:43:14,260 And I sort of adapted it and modified it 967 00:43:14,260 --> 00:43:17,420 and rewrote it a bit into the iCAT access token pincher. 968 00:43:17,540 --> 00:43:19,040 So props to Brett. 969 00:43:20,940 --> 00:43:23,500 Okay, so who here has ever crashed a web browser? 970 00:43:23,680 --> 00:43:24,320 Put your hand up. 971 00:43:25,020 --> 00:43:26,920 Yeah, I wanted that response. 972 00:43:27,540 --> 00:43:29,100 Web browsers are pretty crap, aren't they? 973 00:43:29,140 --> 00:43:31,100 So what about crashing a kiosk? 974 00:43:31,160 --> 00:43:34,680 I call this emo kiosking or kiosk self-mutilation. 975 00:43:37,980 --> 00:43:40,680 All right, so if we can create an unhandled app 976 00:43:40,680 --> 00:43:43,180 with an exception in the kiosk browser, we win. 977 00:43:45,680 --> 00:43:46,600 Why do we win? 978 00:43:46,680 --> 00:43:48,540 Well, the kiosk browser crashes. 979 00:43:48,920 --> 00:43:50,440 Pops up that little dialogue and says, 980 00:43:50,520 --> 00:43:52,500 oh, no, I've had an exception. I've crashed. 981 00:43:52,600 --> 00:43:53,040 Oh, no. 982 00:43:53,500 --> 00:43:54,660 Other than there's the desktop. 983 00:43:56,440 --> 00:43:57,600 That's pretty easy, right? 984 00:43:57,700 --> 00:43:58,920 I mean, you win. 985 00:43:59,240 --> 00:44:01,280 This is, I think, one of the only situations 986 00:44:01,280 --> 00:44:03,760 where an application crash is actually 987 00:44:03,760 --> 00:44:05,460 a really highly critical vulnerability 988 00:44:05,460 --> 00:44:08,200 because it completely escapes the kiosk jail. 989 00:44:09,300 --> 00:44:10,780 So what I did in ICAP was 990 00:44:12,820 --> 00:44:15,680 I found a whole bunch of really common exploits 991 00:44:15,680 --> 00:44:19,540 that affect winhtp.dll and msinet.ocx 992 00:44:19,540 --> 00:44:21,060 that cause crash situations. 993 00:44:21,580 --> 00:44:23,240 You know, you can't get EIP. 994 00:44:23,400 --> 00:44:24,720 You can't pop a shell. 995 00:44:24,900 --> 00:44:26,220 But everything just crashes. 996 00:44:26,960 --> 00:44:28,800 And I added all of them into ICAP. 997 00:44:29,340 --> 00:44:31,000 So essentially, you can just click down a list 998 00:44:31,000 --> 00:44:32,080 and see if the kiosk crashes. 999 00:44:32,480 --> 00:44:34,880 This is good if you just want to be a real asshole 1000 00:44:34,880 --> 00:44:35,740 and crash a kiosk. 1001 00:44:36,500 --> 00:44:39,460 And this is the fastest, easiest method 1002 00:44:39,460 --> 00:44:40,520 for escaping a kiosk. 1003 00:44:40,840 --> 00:44:42,160 And it's fairly reliable. 1004 00:44:42,220 --> 00:44:44,100 I found about 40% of kiosks crashed 1005 00:44:44,100 --> 00:44:45,000 in some way or another. 1006 00:44:45,560 --> 00:44:49,220 I mean, that's not 100%, but it's something, right? 1007 00:44:49,300 --> 00:44:50,020 It's something. 1008 00:44:50,940 --> 00:44:53,760 But then I thought, 1009 00:44:53,840 --> 00:44:55,220 what about browser plugins? 1010 00:44:56,960 --> 00:44:58,660 Ooh, bet I can crash those. 1011 00:44:59,260 --> 00:45:00,480 So I thought to myself, 1012 00:45:00,660 --> 00:45:02,800 well, what's the most common browser plugin in the world? 1013 00:45:02,880 --> 00:45:05,200 Well, 720 million desktops 1014 00:45:05,200 --> 00:45:06,460 have the Flash plugin installed. 1015 00:45:06,960 --> 00:45:08,720 Oh, well, I should focus on Flash. 1016 00:45:09,120 --> 00:45:11,600 So I performed a file format fuzzing 1017 00:45:11,600 --> 00:45:13,080 on the SWF file format. 1018 00:45:13,240 --> 00:45:14,680 Essentially trying to find 1019 00:45:15,200 --> 00:45:17,060 an SWF file 1020 00:45:17,060 --> 00:45:19,280 that would reliably crash a browser. 1021 00:45:19,420 --> 00:45:20,080 Any browser. 1022 00:45:20,400 --> 00:45:22,580 And it turns out, I found a few. 1023 00:45:22,940 --> 00:45:24,500 You can actually crash, 1024 00:45:24,580 --> 00:45:27,180 you can crash a browser very, very reliably with Flash. 1025 00:45:27,520 --> 00:45:30,260 The exploits I found are immediately unexploitable. 1026 00:45:30,380 --> 00:45:32,660 These are not shell-popping Oday, 1027 00:45:32,740 --> 00:45:34,060 but they crash. 1028 00:45:34,060 --> 00:45:35,080 It crashes a browser. 1029 00:45:35,440 --> 00:45:36,920 So I created what I call 1030 00:45:36,920 --> 00:45:39,980 the iCat AutoMagic Flash Crasher. 1031 00:45:40,440 --> 00:45:43,420 So if the Flash plugin is installed on the kiosk, 1032 00:45:43,460 --> 00:45:45,540 iCat can crash it, guaranteed, 1033 00:45:45,720 --> 00:45:46,920 because it's Oday. 1034 00:45:47,240 --> 00:45:49,040 Hey, it works! 1035 00:45:50,640 --> 00:46:00,480 So the trick then is really, 1036 00:46:00,560 --> 00:46:02,560 does the kiosk detect the unhandled exception 1037 00:46:02,560 --> 00:46:03,940 and respawn, 1038 00:46:04,100 --> 00:46:05,680 or does it just present the desktop? 1039 00:46:05,940 --> 00:46:08,560 So some kiosks detect the unhandled exception. 1040 00:46:08,980 --> 00:46:12,280 They hook the SE unhandled exception filter 1041 00:46:12,280 --> 00:46:13,040 and they say, 1042 00:46:13,220 --> 00:46:14,720 well, you know, shit, something bad happened, 1043 00:46:14,780 --> 00:46:16,240 I better respawn the kiosk and continue. 1044 00:46:16,480 --> 00:46:18,500 But a lot of the really cheaper products just don't, 1045 00:46:18,500 --> 00:46:19,220 and they just crash, 1046 00:46:19,280 --> 00:46:19,940 and you get the desktop, 1047 00:46:20,100 --> 00:46:20,840 and you win. 1048 00:46:24,240 --> 00:46:26,340 Okay, so let's assume something works. 1049 00:46:26,600 --> 00:46:27,340 Out of that list, 1050 00:46:27,540 --> 00:46:29,120 I can guarantee something works. 1051 00:46:29,540 --> 00:46:32,060 And let's say you have access to the kiosk file system. 1052 00:46:32,060 --> 00:46:33,720 Maybe a command shell spawned. 1053 00:46:33,720 --> 00:46:35,280 Maybe a common dialog popped up. 1054 00:46:36,020 --> 00:46:36,380 Maybe... 1055 00:46:36,380 --> 00:46:37,540 Five minutes. 1056 00:46:38,180 --> 00:46:39,640 All right, I'm going to have to move. 1057 00:46:40,100 --> 00:46:42,120 All right, so maybe a command shell popped up. 1058 00:46:42,160 --> 00:46:43,320 Common dialog, Java, et cetera. 1059 00:46:43,580 --> 00:46:44,060 So what now? 1060 00:46:44,120 --> 00:46:47,160 Now you need to download additional tools and binaries to the kiosk. 1061 00:46:47,500 --> 00:46:50,560 So how do you download files in a tool-less environment? 1062 00:46:51,340 --> 00:46:53,820 So the kiosk isn't going to have wget installed, right? 1063 00:46:54,320 --> 00:46:55,820 File downloads are likely to be disabled. 1064 00:46:56,080 --> 00:46:57,620 So how do you download stuff on a kiosk 1065 00:46:57,620 --> 00:46:58,820 that won't really let you download stuff? 1066 00:46:59,600 --> 00:47:00,440 Okay, so old school. 1067 00:47:00,440 --> 00:47:01,300 Downloading files in Windows. 1068 00:47:01,460 --> 00:47:03,340 You can download files using a common dialog. 1069 00:47:03,600 --> 00:47:05,500 If you could pop up a file open dialog, 1070 00:47:05,820 --> 00:47:10,760 you can type in http://websitecmd.exe, 1071 00:47:11,440 --> 00:47:12,340 and it'll download it. 1072 00:47:12,340 --> 00:47:14,760 It'll save it into the temporary internet files folder, 1073 00:47:14,900 --> 00:47:16,300 as you can see in the screenshot from below. 1074 00:47:17,360 --> 00:47:20,020 This downloads any file type or size. 1075 00:47:21,080 --> 00:47:22,900 You can use Flash to download files. 1076 00:47:23,260 --> 00:47:25,220 So most kiosks disable file downloads 1077 00:47:25,220 --> 00:47:26,580 within the browser's security policy. 1078 00:47:26,800 --> 00:47:28,840 So going into IE tools, internet options, 1079 00:47:29,020 --> 00:47:29,480 custom level, 1080 00:47:30,440 --> 00:47:31,280 disable what you see in the screenshot. 1081 00:47:31,760 --> 00:47:34,400 You can use the Flash file reference object 1082 00:47:34,400 --> 00:47:35,680 to download files, 1083 00:47:35,980 --> 00:47:39,300 and it bypasses the browser security policy. 1084 00:47:39,480 --> 00:47:41,640 Flash doesn't actually validate the browser security policy, 1085 00:47:41,780 --> 00:47:43,160 and it'll download files for you. 1086 00:47:43,220 --> 00:47:45,660 This completely bypasses browser security. 1087 00:47:46,200 --> 00:47:47,620 This is, again, another ODE trick. 1088 00:47:47,860 --> 00:47:50,560 This is unpublished and works very, very effectively. 1089 00:47:51,240 --> 00:47:52,920 You can use Notepad to download files. 1090 00:47:53,180 --> 00:47:54,620 You can go file open in Notepad 1091 00:47:54,620 --> 00:47:55,780 and just download a text file. 1092 00:47:56,020 --> 00:47:57,380 It has to be 7-bit safe. 1093 00:47:57,680 --> 00:47:59,240 It can't download 8-bit data, 1094 00:47:59,240 --> 00:48:00,580 but you can download files using Notepad. 1095 00:48:00,760 --> 00:48:03,160 You can use file save and upload content 1096 00:48:03,160 --> 00:48:04,020 to a remote website. 1097 00:48:04,600 --> 00:48:06,860 So if you find an interesting log file on a kiosk, 1098 00:48:06,880 --> 00:48:09,140 you can upload that using Notepad to a remote website. 1099 00:48:09,440 --> 00:48:10,080 Another cool trick. 1100 00:48:11,500 --> 00:48:12,700 Okay, so the number one problem. 1101 00:48:12,860 --> 00:48:15,180 Kiosk hacking is a tool-less environment. 1102 00:48:15,460 --> 00:48:15,980 So I thought to myself, 1103 00:48:16,160 --> 00:48:18,680 ICAT needs to provide tools for kiosk hacking. 1104 00:48:19,040 --> 00:48:20,620 So I have a whole bunch of tools there. 1105 00:48:21,120 --> 00:48:23,020 I'm going to try and run really fast this present now 1106 00:48:23,020 --> 00:48:24,380 so we can actually do a demo at the end. 1107 00:48:24,520 --> 00:48:25,880 So I'm not going to explain what these tools do, 1108 00:48:26,300 --> 00:48:27,640 but as you can see on the list, 1109 00:48:27,640 --> 00:48:29,160 I got things to enable start bars, 1110 00:48:29,480 --> 00:48:30,240 pop up things, 1111 00:48:30,640 --> 00:48:31,360 run things, 1112 00:48:31,720 --> 00:48:32,560 pretty much everything. 1113 00:48:32,800 --> 00:48:34,440 They're available as .exe, .zip 1114 00:48:34,440 --> 00:48:35,820 and use the flash download method, 1115 00:48:36,000 --> 00:48:38,380 so you can just bypass the browser security policy crap. 1116 00:48:39,020 --> 00:48:41,080 And they're also available using VBScript 1117 00:48:41,080 --> 00:48:41,880 and 7-bit safe, 1118 00:48:42,060 --> 00:48:43,300 so you can download them using Notepad, 1119 00:48:43,400 --> 00:48:44,040 which is pretty handy. 1120 00:48:47,860 --> 00:48:48,860 I'm just going to skip this. 1121 00:48:49,000 --> 00:48:50,020 I really want to reach the demo. 1122 00:48:50,120 --> 00:48:51,200 I want to show you guys some shell. 1123 00:48:52,100 --> 00:48:53,260 Okay, so using ICAT. 1124 00:48:53,600 --> 00:48:55,760 ICAT is a tool designed to aid penetration testing 1125 00:48:55,760 --> 00:48:56,460 in kiosk hacking. 1126 00:48:56,580 --> 00:48:57,340 You can use it to configure 1127 00:48:57,640 --> 00:48:58,280 your own kiosk securely. 1128 00:48:58,500 --> 00:48:59,160 It's real good. 1129 00:48:59,840 --> 00:49:01,300 One thing I want to say is 1130 00:49:01,300 --> 00:49:03,000 don't be a dick and attack the server. 1131 00:49:03,220 --> 00:49:04,500 Don't try and crash anything. 1132 00:49:04,860 --> 00:49:07,000 Help me make this the best kiosk hacking tool 1133 00:49:07,000 --> 00:49:07,620 in the world. 1134 00:49:08,180 --> 00:49:08,960 Submit me feedback. 1135 00:49:09,540 --> 00:49:11,980 Also, ICAT is going to be open sourced real soon. 1136 00:49:12,800 --> 00:49:14,460 So I'm going to release ICAT Portable, 1137 00:49:14,520 --> 00:49:16,620 so you can download it onto a USB disk, 1138 00:49:16,760 --> 00:49:17,680 plug it into a kiosk. 1139 00:49:17,720 --> 00:49:19,260 If you're a security consultant working on site, 1140 00:49:19,340 --> 00:49:20,240 you don't have internet access. 1141 00:49:21,360 --> 00:49:22,240 Okay, so the demos. 1142 00:49:22,880 --> 00:49:25,420 Okay, so I know I said I can hack an internet kiosk 1143 00:49:25,420 --> 00:49:26,400 in less than 120 seconds, 1144 00:49:26,400 --> 00:49:28,540 so here, let's put the proof of the pudding. 1145 00:49:29,760 --> 00:49:31,120 I may not do a lot of talking. 1146 00:49:32,080 --> 00:49:32,700 Just watch. 1147 00:49:36,620 --> 00:49:40,440 Okay, so here I have a kiosk. 1148 00:49:40,720 --> 00:49:42,080 Let me just full screen this. 1149 00:49:42,400 --> 00:49:43,060 Can you guys hear me? 1150 00:49:44,560 --> 00:49:47,340 All right, so I'm going to Google real fast 1151 00:49:47,340 --> 00:49:48,300 for ICAT Paul Craig. 1152 00:49:49,300 --> 00:49:50,100 Here's ICAT. 1153 00:49:50,500 --> 00:49:51,700 ICAT, whoa, here's ICAT. 1154 00:49:51,720 --> 00:49:52,340 Check out that picture. 1155 00:49:52,400 --> 00:49:52,760 Oh, yeah. 1156 00:49:54,600 --> 00:49:55,880 All right, so firstly, 1157 00:49:55,880 --> 00:49:56,620 installed applications. 1158 00:49:57,640 --> 00:49:59,720 This kiosk is running KioWare kiosk, 1159 00:49:59,720 --> 00:50:00,700 basic kiosk. 1160 00:50:00,820 --> 00:50:02,160 I can see I have all this shit installed. 1161 00:50:02,320 --> 00:50:04,220 I have .NET 1, I have .NET 2, 1162 00:50:04,320 --> 00:50:05,480 I have Windows Media Player, 1163 00:50:05,660 --> 00:50:06,420 things like that. 1164 00:50:07,200 --> 00:50:08,280 So let's go down. 1165 00:50:08,420 --> 00:50:10,060 Let's see if I can pop up a common dialog. 1166 00:50:13,220 --> 00:50:14,640 Okay, so can I pop up a file? 1167 00:50:14,900 --> 00:50:15,500 Open dialog. 1168 00:50:15,840 --> 00:50:16,740 No, nothing happens. 1169 00:50:16,920 --> 00:50:18,260 It's blocking the dialog from popping up. 1170 00:50:18,380 --> 00:50:18,820 Oh, shit. 1171 00:50:18,960 --> 00:50:19,320 Oh, no. 1172 00:50:20,160 --> 00:50:21,620 But I know .NET is installed 1173 00:50:21,620 --> 00:50:23,220 because they told me .NET is installed. 1174 00:50:23,720 --> 00:50:25,240 So I can click on this, 1175 00:50:25,240 --> 00:50:28,100 and I'm going to run my ICAT click-once tools. 1176 00:50:28,340 --> 00:50:30,420 I'm going to run the ICAT application executor. 1177 00:50:30,460 --> 00:50:32,000 So I have a help system here as well, 1178 00:50:32,040 --> 00:50:33,100 using DHTML pop-ups. 1179 00:50:33,140 --> 00:50:34,660 It'll basically tell you what all of the tools do. 1180 00:50:34,980 --> 00:50:35,720 Watch the application. 1181 00:50:37,620 --> 00:50:38,780 And that's okay. 1182 00:50:38,880 --> 00:50:39,400 Don't worry about that. 1183 00:50:39,480 --> 00:50:39,600 Whoo! 1184 00:50:40,260 --> 00:50:41,720 Okay, now I have a bit of a rule here. 1185 00:50:41,760 --> 00:50:42,440 Whenever I pop shell, 1186 00:50:42,640 --> 00:50:44,400 you clap like wild walruses, okay? 1187 00:50:45,200 --> 00:50:45,740 All right? 1188 00:50:45,920 --> 00:50:46,360 All right? 1189 00:50:47,160 --> 00:50:47,540 .NET. 1190 00:50:49,340 --> 00:50:49,720 Execute. 1191 00:50:51,140 --> 00:50:51,820 Hey, shell. 1192 00:50:54,420 --> 00:50:56,740 Now I'm going to run command-shell-detours. 1193 00:50:56,880 --> 00:50:58,720 Command-shell-detours will try and invoke a shell 1194 00:50:58,720 --> 00:51:00,700 through 17 different command invocation methods. 1195 00:51:00,940 --> 00:51:04,180 This will bypass anyone that's trying to block cmd.exe or command.com. 1196 00:51:04,300 --> 00:51:06,380 I use win.com, loadfix.exe. 1197 00:51:06,420 --> 00:51:07,320 I use start. 1198 00:51:07,460 --> 00:51:10,580 I use every possible method on Windows to invoke a cmd.exe. 1199 00:51:11,160 --> 00:51:12,960 And shell, shell, shell, shell! 1200 00:51:22,180 --> 00:51:23,180 How much time do I have now? 1201 00:51:24,380 --> 00:51:24,720 One. 1202 00:51:24,960 --> 00:51:25,300 One! 1203 00:51:25,940 --> 00:51:26,280 . 1204 00:51:30,240 --> 00:51:32,380 Okay, I'm going to try and do one more kiosk. 1205 00:51:33,280 --> 00:51:34,480 This is Internet Kiosk Pro. 1206 00:51:35,340 --> 00:51:35,680 . 1207 00:51:37,060 --> 00:51:37,400 What? 1208 00:51:37,940 --> 00:51:38,280 . 1209 00:51:39,740 --> 00:51:40,080 . 1210 00:51:40,080 --> 00:51:40,720 . 1211 00:51:40,720 --> 00:51:40,980 . 1212 00:51:40,980 --> 00:51:41,380 . 1213 00:51:41,380 --> 00:51:41,540 . 1214 00:51:41,540 --> 00:51:41,720 . 1215 00:51:41,720 --> 00:51:41,760 . 1216 00:51:41,760 --> 00:51:41,820 . 1217 00:51:41,820 --> 00:51:41,900 . 1218 00:51:41,900 --> 00:51:41,980 . 1219 00:51:41,980 --> 00:51:42,000 . 1220 00:51:51,820 --> 00:51:52,060 . 1221 00:51:54,020 --> 00:51:54,640 . 1222 00:52:03,620 --> 00:52:04,240 . 1223 00:52:04,240 --> 00:52:04,740 . 1224 00:52:04,740 --> 00:52:05,120 . 1225 00:52:05,120 --> 00:52:05,860 . 1226 00:52:05,860 --> 00:52:05,880 . 1227 00:52:05,880 --> 00:52:05,940 . 1228 00:52:05,940 --> 00:52:05,960 . 1229 00:52:05,960 --> 00:52:05,980 . 1230 00:52:05,980 --> 00:52:06,660 . 1231 00:52:06,660 --> 00:52:06,700 . 1232 00:52:06,700 --> 00:52:06,760 . 1233 00:52:07,660 --> 00:52:08,280 . 1234 00:52:08,280 --> 00:52:08,340 . 1235 00:52:08,340 --> 00:52:08,400 . 1236 00:52:08,400 --> 00:52:09,380 . 1237 00:52:10,760 --> 00:52:11,380 . 1238 00:52:21,820 --> 00:52:26,800 commercial deal. Oh, damn, that doesn't work out. What about using Flash? Wait for it. 1239 00:52:29,560 --> 00:52:30,480 Wait for it. 1240 00:52:44,580 --> 00:52:46,020 And shells for Africa. 1241 00:52:52,580 --> 00:52:56,020 That's the end of my talk. Thank you very much. Have fun owning kiosks.