1 00:00:09,980 --> 00:00:10,400 The American Pronunciation Guide Presents ''How to Pronounce Okay'' 2 00:00:10,400 --> 00:00:13,760 Entered and sat down, so we're going to get going. 3 00:00:16,660 --> 00:00:18,200 Guys at the back, can you hear me okay? 4 00:00:19,260 --> 00:00:21,000 Come on. No? 5 00:00:22,400 --> 00:00:24,160 Alright, what if I speak like this? 6 00:00:25,160 --> 00:00:26,300 Really? That loud? 7 00:00:27,260 --> 00:00:28,260 Still can't hear me? 8 00:00:28,780 --> 00:00:29,180 Higher? 9 00:00:30,620 --> 00:00:31,020 Okay. 10 00:00:32,000 --> 00:00:34,980 Let's move the microphone now. 11 00:00:35,860 --> 00:00:38,140 So, if I speak like this, can you hear me okay? 12 00:00:39,060 --> 00:00:40,580 Yes. Just about, huh? 13 00:00:40,940 --> 00:00:43,220 Alright, well I'll try and remember to speak loud. 14 00:00:44,220 --> 00:00:47,240 If I stray into my old habits of speaking lower, 15 00:00:47,400 --> 00:00:52,500 just, you know, tell me to raise the sound, the volume. 16 00:00:52,920 --> 00:00:55,180 I don't know where to put this so that we don't get the feedback. 17 00:00:57,360 --> 00:00:59,720 Welcome to Hacking from the Palm of Your Hand. 18 00:00:59,920 --> 00:01:03,920 As you can tell from the title, this is all about palms. 19 00:01:06,040 --> 00:01:06,920 Too many mics. 20 00:01:08,640 --> 00:01:09,820 My name is Paul Klipp. 21 00:01:09,920 --> 00:01:11,420 I'm a consultant at Aztec. 22 00:01:12,320 --> 00:01:13,740 I've been there for about a year. 23 00:01:13,900 --> 00:01:16,940 Before that, I used to work in a system integration firm, 24 00:01:17,080 --> 00:01:20,300 both building online systems and then securing them. 25 00:01:20,620 --> 00:01:25,160 So, this presentation is part, hey, here are some of the questions. 26 00:01:25,160 --> 00:01:28,360 Some of the core things that are already there for the Palm platform related to hacking 27 00:01:28,980 --> 00:01:33,840 and also part tool release and a little bit of ideas about the future, 28 00:01:33,980 --> 00:01:36,360 about, you know, how the tool can be enhanced. 29 00:01:36,700 --> 00:01:38,960 So, before we start, let's do a quick poll. 30 00:01:39,260 --> 00:01:41,160 How many people have PDAs in the audience? 31 00:01:42,660 --> 00:01:44,520 Wow. Okay. 32 00:01:44,980 --> 00:01:49,440 How many people have Palm pilots or Palm OS-based PDAs? 33 00:01:49,900 --> 00:01:53,240 I will not move close to the desk 34 00:01:53,240 --> 00:01:55,100 and try not to fall off backstage either. 35 00:01:55,960 --> 00:02:02,100 Of those Palm-based devices, how many of them have wireless or network capability? 36 00:02:02,520 --> 00:02:03,440 You know, 802.11. 37 00:02:04,100 --> 00:02:05,120 Wow. Okay. 38 00:02:05,220 --> 00:02:05,840 Quite a few. 39 00:02:06,480 --> 00:02:07,000 Cool. 40 00:02:07,420 --> 00:02:08,660 So, we'll get started. 41 00:02:09,720 --> 00:02:10,680 This is the agenda. 42 00:02:10,900 --> 00:02:15,020 Quick talk about goals and we're going to really talk about past, present, and future. 43 00:02:15,260 --> 00:02:16,140 Past meaning... 44 00:02:16,980 --> 00:02:17,740 Thank you. 45 00:02:18,160 --> 00:02:24,260 Past meaning some of the tools that have been developed recently or not so recently 46 00:02:24,260 --> 00:02:25,060 that... 47 00:02:25,160 --> 00:02:27,540 that basically have to do with hacking and security. 48 00:02:30,340 --> 00:02:32,360 Present is all about Austin. 49 00:02:32,540 --> 00:02:37,020 Austin is a vulnerability scanner that we'll be talking about in some detail 50 00:02:37,020 --> 00:02:40,200 about how it was built, some of the design criteria, what it can do. 51 00:02:40,240 --> 00:02:41,020 We'll show some demos. 52 00:02:41,580 --> 00:02:44,140 And then future, just ideas on where to go with it. 53 00:02:44,680 --> 00:02:45,040 Okay? 54 00:02:46,500 --> 00:02:47,760 So, quick goals. 55 00:02:49,020 --> 00:02:51,020 Obviously, a review of Palm as a hacking platform. 56 00:02:52,940 --> 00:02:54,700 We'll walk through, you know, 57 00:02:54,700 --> 00:02:55,400 what it... 58 00:02:55,400 --> 00:02:59,720 what it takes to build a Palm-based vulnerability scanner, you know, 59 00:02:59,740 --> 00:03:01,060 or at least one way to do it, right? 60 00:03:01,140 --> 00:03:02,320 Because there are lots of different ways. 61 00:03:03,060 --> 00:03:04,320 I'll move back again. 62 00:03:05,440 --> 00:03:08,900 Obviously, one of the goals is to release a tool to the public. 63 00:03:09,340 --> 00:03:11,740 And finally, the obligatory have fun. 64 00:03:13,040 --> 00:03:14,820 So, let's start with the past. 65 00:03:15,340 --> 00:03:15,920 All right. 66 00:03:15,960 --> 00:03:17,000 Oh, we have a trivia question. 67 00:03:17,520 --> 00:03:19,420 Who knows what this... 68 00:03:19,420 --> 00:03:21,020 what the first Palm pilot was called? 69 00:03:22,180 --> 00:03:22,980 1,000. 70 00:03:22,980 --> 00:03:23,700 1,000. 71 00:03:23,700 --> 00:03:24,360 1,000. 72 00:03:24,440 --> 00:03:24,740 Yes. 73 00:03:25,140 --> 00:03:25,540 And? 74 00:03:25,820 --> 00:03:26,500 How much... 75 00:03:26,500 --> 00:03:27,640 How much memory did it have? 76 00:03:29,080 --> 00:03:29,480 128k. 77 00:03:30,000 --> 00:03:30,400 128k? 78 00:03:32,440 --> 00:03:32,840 512k. 79 00:03:33,260 --> 00:03:34,200 Well, I've... 80 00:03:34,200 --> 00:03:34,660 Yeah. 81 00:03:34,800 --> 00:03:35,020 I... 82 00:03:35,560 --> 00:03:36,080 512 is... 83 00:03:36,520 --> 00:03:38,800 512 is what I've seen, but I think 128 was... 84 00:03:38,800 --> 00:03:39,460 was before that. 85 00:03:39,640 --> 00:03:40,760 So, yeah. 86 00:03:40,860 --> 00:03:41,480 A long time ago. 87 00:03:41,560 --> 00:03:42,400 Who had a Pilot 1000? 88 00:03:43,920 --> 00:03:44,320 Wow. 89 00:03:44,500 --> 00:03:45,200 Some diehards. 90 00:03:45,300 --> 00:03:46,420 Who still has a Pilot 1000? 91 00:03:47,840 --> 00:03:48,500 All right. 92 00:03:48,580 --> 00:03:49,160 Two people here. 93 00:03:51,280 --> 00:03:52,180 So, let's keep going. 94 00:03:52,360 --> 00:03:52,620 So... 95 00:03:53,700 --> 00:03:55,420 The Palm platform has really been in transition. 96 00:03:55,700 --> 00:03:56,800 I think a lot of people know this. 97 00:03:56,800 --> 00:03:57,800 I'm not going to spend much time. 98 00:03:57,980 --> 00:03:59,080 You've got the old and the new, right? 99 00:03:59,400 --> 00:04:02,280 The old is all based on the 68,000 core processors. 100 00:04:02,680 --> 00:04:04,240 They call it the Dragon Ball processor. 101 00:04:04,280 --> 00:04:11,580 It's basically the 68,000 plus a bunch of additional circuits to basically give you 102 00:04:11,580 --> 00:04:13,240 a small... 103 00:04:13,240 --> 00:04:16,240 make it possible for you to build a small form factor computer. 104 00:04:17,280 --> 00:04:18,660 You can see the speeds, et cetera. 105 00:04:19,060 --> 00:04:21,440 Sometimes you get color screens, sometimes you don't. 106 00:04:21,940 --> 00:04:26,180 Most of them, or all of them, will have either serial or USB and infrared. 107 00:04:27,580 --> 00:04:30,700 And, really, you're looking at Palm OS 4 and below. 108 00:04:31,300 --> 00:04:33,140 4 is really the transitional OS. 109 00:04:33,480 --> 00:04:37,040 Palm basically said, if your app runs on 4, we'll make sure it runs on 5. 110 00:04:37,660 --> 00:04:43,280 5 and beyond, 6 will be, I think, released this year or is in the works at least, if 111 00:04:43,280 --> 00:04:46,100 not this year, early next year, all running on ARM processor. 112 00:04:46,320 --> 00:04:49,420 So, I don't know what the max speed is. 113 00:04:49,560 --> 00:04:51,260 These things go very high. 114 00:04:51,440 --> 00:04:56,620 As far as I can see from some of the iPacks that use them as well. 115 00:04:56,860 --> 00:04:58,120 So, this is a RISC processor. 116 00:04:58,760 --> 00:04:59,840 Obviously, a lot faster. 117 00:05:00,020 --> 00:05:06,100 You basically get more RAM, better screens, color, USB, IR, expansion slots. 118 00:05:06,360 --> 00:05:07,800 Some of the older Palms had them, too. 119 00:05:08,000 --> 00:05:09,020 Compact flash, SDIO. 120 00:05:09,780 --> 00:05:13,520 For this presentation, we're going to be focusing on the old stuff. 121 00:05:14,300 --> 00:05:15,460 Two reasons for that. 122 00:05:15,540 --> 00:05:18,400 One, there's tons of old stuff out there. 123 00:05:18,440 --> 00:05:20,680 Way more than any Palm OS 5. 124 00:05:22,260 --> 00:05:24,120 I don't have any Palm pilots or Palm devices. 125 00:05:24,600 --> 00:05:28,580 And the other reason is I don't have an OS 5 Palm device. 126 00:05:28,780 --> 00:05:31,620 And so, I kind of developed it on the platform I have. 127 00:05:33,680 --> 00:05:35,900 Why don't we talk a little bit about security tools. 128 00:05:36,060 --> 00:05:44,680 And what I'm going to do here is welcome our friend, a developer's friend, an excellent tool called the Palm Open Source Emulator. 129 00:05:44,980 --> 00:05:47,960 This is basically, actually, how many people know about this? 130 00:05:49,100 --> 00:05:49,540 Okay. 131 00:05:49,540 --> 00:05:51,740 So, maybe about 20%. 132 00:05:52,280 --> 00:05:59,660 This is an emulator for the 68,000 based Palm OSes. 133 00:05:59,780 --> 00:06:01,980 You basically, it's the shell. 134 00:06:02,100 --> 00:06:02,680 It's the hardware. 135 00:06:02,800 --> 00:06:03,560 It emulates the hardware. 136 00:06:03,760 --> 00:06:04,680 You download ROMs. 137 00:06:05,100 --> 00:06:06,460 You can get them from Palm for free. 138 00:06:06,480 --> 00:06:07,440 You can sign up as a developer. 139 00:06:07,560 --> 00:06:08,900 You can get them from Handspring, as well. 140 00:06:09,080 --> 00:06:15,720 You basically download the emulator, download the ROMs, put the two together, and you have a Palm development environment. 141 00:06:16,040 --> 00:06:19,520 It's way faster developing on this than having to download stuff to your Palm. 142 00:06:19,540 --> 00:06:22,080 Try it out, and then, you know, make changes. 143 00:06:22,800 --> 00:06:24,060 You can have skins for it. 144 00:06:24,100 --> 00:06:28,340 So, this is actually the skin for the Treo 300, which is the device I have. 145 00:06:29,540 --> 00:06:31,380 It is the third generation Treo. 146 00:06:31,500 --> 00:06:36,300 I like it a lot, except from a manufacturing perspective, it's not as reliable as you'd want it to be. 147 00:06:37,120 --> 00:06:46,060 The nice thing about it is that this Treo is on Sprint, which has a 1X RTT 3G network, which means that you get pretty good bandwidth. 148 00:06:46,160 --> 00:06:47,000 I can use it as a modem. 149 00:06:47,000 --> 00:06:49,000 Maybe get 80K a second. 150 00:06:49,620 --> 00:06:51,240 So, it's not bad from a cell phone. 151 00:06:52,780 --> 00:06:54,180 Let's go back to security tools. 152 00:06:55,100 --> 00:06:55,700 Password generators. 153 00:06:55,960 --> 00:06:57,720 There are a bunch of password generators out there. 154 00:06:57,820 --> 00:06:59,520 Two I find kind of fun. 155 00:06:59,620 --> 00:07:00,480 One is called PassGen. 156 00:07:00,600 --> 00:07:02,440 I'm not going to show you all these tools, but they're kind of fun. 157 00:07:03,280 --> 00:07:07,960 If you click on default, well, basically, you know, you give it valid characters and give it different options. 158 00:07:08,180 --> 00:07:08,980 You can generate. 159 00:07:09,440 --> 00:07:10,600 It will generate your passwords. 160 00:07:11,040 --> 00:07:14,140 If ever you want to have a password, you can type with your left hand only. 161 00:07:14,420 --> 00:07:15,240 You click left. 162 00:07:15,240 --> 00:07:19,940 And it only uses the characters from the left hand side of the keyboard or the right hand side of the keyboard. 163 00:07:20,040 --> 00:07:25,980 So, if you need, you know, if you're looking for that really hard to crack password, this is kind of interesting. 164 00:07:26,260 --> 00:07:31,340 The other one, Passphrase, basically comes up with random words that you can start to string together to build a passphrase. 165 00:07:32,260 --> 00:07:42,000 If you're looking for encryption, right now, you know, the Palm OS, especially 4 and 3, and I'm guessing 5 as well, is basically, you know, it's not really DMCA friendly. 166 00:07:42,840 --> 00:07:44,520 There's no memory protection, whatever. 167 00:07:45,240 --> 00:07:47,380 It's a copy bit that is easy to flip. 168 00:07:47,500 --> 00:07:48,460 Well, we'll show you. 169 00:07:48,500 --> 00:07:49,680 We'll show that very briefly. 170 00:07:50,220 --> 00:07:54,040 If you want to encrypt something, CryptoPad is a replacement from the MemoPad. 171 00:07:54,260 --> 00:07:55,560 It's a very, very good program. 172 00:07:55,700 --> 00:07:57,600 It's up on SourceForge, which tells you that it's free. 173 00:07:57,660 --> 00:07:59,420 Most of these programs are either free or shareware. 174 00:08:00,200 --> 00:08:03,580 Secret is another place that will, another basically encrypted MemoPad. 175 00:08:03,700 --> 00:08:12,020 The nice thing about it is that it has a convert, so you can update your secrets on the PC, on the Mac, and then download them to your pilot. 176 00:08:12,020 --> 00:08:17,100 There are a bunch of password crackers that have been written by some of the AdState guys. 177 00:08:17,680 --> 00:08:20,600 One was to crack the Cisco passwords. 178 00:08:21,100 --> 00:08:22,780 Another one is a tool called NotSync. 179 00:08:23,020 --> 00:08:27,820 It's kind of funny because there's actually a development environment, I think, called NotSync now. 180 00:08:28,100 --> 00:08:35,060 Basically, what NotSync does, not a very nice tool, but you really have to work at it to get somebody's password with it. 181 00:08:35,460 --> 00:08:38,680 What you have to do is you start NotSync, and then you say to someone, 182 00:08:38,840 --> 00:08:39,960 Hey, Bob. 183 00:08:40,400 --> 00:08:42,000 Would you mind starting a network? 184 00:08:42,000 --> 00:08:44,540 Would you mind starting an infrared hot sync and just point it at my pilot? 185 00:08:45,180 --> 00:08:53,180 If Bob does that, then the first thing that gets sent over is the lock password, 186 00:08:53,300 --> 00:08:56,840 the password that you can set to basically secure some of your records on the Palm. 187 00:08:57,780 --> 00:09:00,680 Up to Palm OS 4, it was easily crackable. 188 00:09:02,260 --> 00:09:05,040 If you're in need of fun, you can do this. 189 00:09:05,140 --> 00:09:05,620 I did this. 190 00:09:07,400 --> 00:09:09,500 I forewarned the gentleman, and I told him, 191 00:09:09,560 --> 00:09:10,660 Hey, let's try it out. 192 00:09:10,700 --> 00:09:11,400 He's a security guy. 193 00:09:12,140 --> 00:09:13,320 We got his password. 194 00:09:13,500 --> 00:09:14,280 His comment was, 195 00:09:14,440 --> 00:09:15,160 Oh, crap. 196 00:09:15,300 --> 00:09:17,480 I guess I need to change my Windows password as well now. 197 00:09:20,480 --> 00:09:21,960 Don't use the same passwords. 198 00:09:22,140 --> 00:09:22,840 Not a good idea. 199 00:09:23,720 --> 00:09:25,320 Plus, I mean, he must have been like, 200 00:09:25,480 --> 00:09:27,680 If they're like my Windows passwords, they're long, right? 201 00:09:27,780 --> 00:09:28,300 Oh, crap. 202 00:09:28,660 --> 00:09:32,300 The time I password every time I want to see a record or look up a phone number. 203 00:09:34,640 --> 00:09:36,220 Another thing, more dialer, TBA. 204 00:09:37,220 --> 00:09:38,500 That's actually pretty neat. 205 00:09:38,580 --> 00:09:40,660 It was written by a gentleman called Kingpin. 206 00:09:40,740 --> 00:09:41,680 He used to work at AdStake. 207 00:09:41,680 --> 00:09:46,060 Very, very well versed in the area of handheld devices. 208 00:09:46,520 --> 00:09:48,460 This is actually a complete wall dialer. 209 00:09:48,540 --> 00:09:50,980 You can basically configure it. 210 00:09:51,020 --> 00:09:55,980 You can give it prefixes, masks, and start time, end times, all sorts of stuff. 211 00:09:56,620 --> 00:10:00,620 I haven't tried it with my Treo, but theoretically, it should actually work. 212 00:10:00,740 --> 00:10:03,320 This is actually maybe a really small wall dialing platform. 213 00:10:03,960 --> 00:10:04,540 All right. 214 00:10:04,960 --> 00:10:06,380 Enough about security tools. 215 00:10:07,520 --> 00:10:08,400 Communication tools. 216 00:10:08,580 --> 00:10:09,820 I'm not going to go through all of these. 217 00:10:11,040 --> 00:10:11,480 Telnet. 218 00:10:11,880 --> 00:10:14,640 Telnet is useful not just for telnetting to hosts, 219 00:10:14,780 --> 00:10:16,400 but also by a serial port. 220 00:10:16,700 --> 00:10:21,340 If ever you happen to be in a hosting facility 221 00:10:21,340 --> 00:10:23,320 and you have a serial cable with you 222 00:10:23,320 --> 00:10:25,660 and you plug it in, you plug one end into your palm, 223 00:10:25,740 --> 00:10:27,760 the other end into a, let's say, Cisco device, 224 00:10:27,980 --> 00:10:30,140 you can maybe access console that way. 225 00:10:31,440 --> 00:10:32,380 SSH is available. 226 00:10:33,200 --> 00:10:35,280 Freeware, only V1, which is kind of sad. 227 00:10:35,900 --> 00:10:39,000 I believe there is a commercial version by F-Secure that does V2. 228 00:10:39,820 --> 00:10:40,520 Web and mail. 229 00:10:40,640 --> 00:10:41,700 Again, this is all free. 230 00:10:42,560 --> 00:10:44,280 Eudora has a very nice suite. 231 00:10:44,400 --> 00:10:46,480 We'll see Eudora Web briefly in action. 232 00:10:47,040 --> 00:10:48,160 They're all free. 233 00:10:48,200 --> 00:10:49,840 The nice thing about Eudora Web is when you're... 234 00:10:50,500 --> 00:10:54,200 A lot of the browsers on the palm basically go through a proxy. 235 00:10:54,340 --> 00:10:57,560 The proxy reformats the content and everything. 236 00:10:57,660 --> 00:11:01,140 Eudora Web is a text-only browser, and it goes directly. 237 00:11:01,280 --> 00:11:02,260 It uses no proxy. 238 00:11:02,300 --> 00:11:06,080 It goes right to the source, so you see exactly what kind of HTML comes back. 239 00:11:06,280 --> 00:11:08,560 When you're doing tests and things, that's pretty useful. 240 00:11:10,040 --> 00:11:11,580 Mergic Ping is actually pretty cool. 241 00:11:11,680 --> 00:11:14,580 It's a ping utility that has a ton of options. 242 00:11:14,660 --> 00:11:19,160 You can specify retries, timeouts, the contents of the ping packages, 243 00:11:19,320 --> 00:11:21,280 whether you want to flood ping, 244 00:11:21,860 --> 00:11:25,060 which I'm not quite sure on a device with this amount of bandwidth 245 00:11:25,060 --> 00:11:28,920 what flood ping really means, but you can. 246 00:11:29,000 --> 00:11:29,520 You can try. 247 00:11:31,740 --> 00:11:33,240 FTP exists also. 248 00:11:33,320 --> 00:11:35,640 There's a bunch of infrared tools as well, 249 00:11:37,600 --> 00:11:39,340 like an infrared monitor. 250 00:11:39,340 --> 00:11:43,300 If you believe that some evil agency is trying to monitor you, 251 00:11:43,300 --> 00:11:45,420 unfortunately, as you can tell, 252 00:11:45,500 --> 00:11:49,740 this digital or virtual palm doesn't really have an IR port, 253 00:11:49,900 --> 00:11:53,040 but basically what it will do is it will tell you how much IR is coming in. 254 00:11:53,800 --> 00:11:57,680 If you believe someone is trying to monitor or emit infrared, 255 00:11:59,340 --> 00:12:00,380 this is a tool to use. 256 00:12:01,760 --> 00:12:06,420 The last one on the list is Omni Remote, 257 00:12:06,600 --> 00:12:08,080 which is a commercial tool, 258 00:12:08,080 --> 00:12:09,740 but it was featured a while back 259 00:12:09,740 --> 00:12:19,760 because people were using it to basically record the unlock sequence on car keys. 260 00:12:20,220 --> 00:12:22,240 A lot of car keys work in radio frequency. 261 00:12:22,440 --> 00:12:23,300 Some of them work in IR. 262 00:12:23,500 --> 00:12:27,080 What people would do is they'd just be standing around your car 263 00:12:27,080 --> 00:12:29,460 with a Palm Pilot pointing at your key 264 00:12:29,460 --> 00:12:32,200 or surreptitiously record that. 265 00:12:33,040 --> 00:12:36,540 Apparently, on some models, I'm guessing it must have been older models of IR, 266 00:12:36,700 --> 00:12:36,860 right? 267 00:12:36,860 --> 00:12:39,520 Because typically these codes change every time you use them. 268 00:12:40,420 --> 00:12:41,660 You could actually replay it, 269 00:12:41,680 --> 00:12:43,420 so you could steal cars with your Palm Pilot. 270 00:12:44,020 --> 00:12:45,080 Not a good thing to do. 271 00:12:45,760 --> 00:12:47,340 And finally, Palm Czar. 272 00:12:47,620 --> 00:12:48,620 Anybody uses this? 273 00:12:50,440 --> 00:12:51,640 Good, I made that one up. 274 00:12:51,780 --> 00:12:53,240 But it sounds good, doesn't it? 275 00:12:55,100 --> 00:12:57,580 So if you see it, you heard it here first. 276 00:12:59,420 --> 00:13:04,220 And you can probably download one MP3 before your palm fills up. 277 00:13:04,880 --> 00:13:05,280 All right. 278 00:13:05,280 --> 00:13:07,960 I'm moving rather quickly because there's a lot of stuff to go through. 279 00:13:09,620 --> 00:13:10,260 Dev tools. 280 00:13:10,500 --> 00:13:12,460 I'm a big fan of reverse Polish notation, 281 00:13:12,560 --> 00:13:14,100 so I like LPN. 282 00:13:14,820 --> 00:13:16,680 It's shareware, but it's cool. 283 00:13:17,980 --> 00:13:19,840 Long time is actually a neat little tool. 284 00:13:19,960 --> 00:13:23,200 I often find myself looking at logs with Unix time in it, 285 00:13:23,240 --> 00:13:25,500 and this is a very nice tool. 286 00:13:25,560 --> 00:13:27,860 I can just plug in a Unix time or say, 287 00:13:27,940 --> 00:13:29,240 hey, what day are we today? 288 00:13:29,320 --> 00:13:30,360 What Unix time are we today? 289 00:13:30,620 --> 00:13:32,600 And so it'll calculate stuff for me, 290 00:13:32,660 --> 00:13:33,540 just small stuff, 291 00:13:33,540 --> 00:13:35,080 but it comes in handy. 292 00:13:36,120 --> 00:13:36,560 Files. 293 00:13:36,700 --> 00:13:37,700 Oops, I should do this. 294 00:13:38,380 --> 00:13:41,220 Files is actually a really cool free program. 295 00:13:41,620 --> 00:13:42,840 I can find it here. 296 00:13:42,900 --> 00:13:43,240 There we go. 297 00:13:43,840 --> 00:13:45,540 And it does a lot of things. 298 00:13:45,720 --> 00:13:47,600 So you can basically view all the files 299 00:13:47,600 --> 00:13:51,460 that are on your palm, I should say. 300 00:13:51,900 --> 00:13:56,260 And let's take the Austin Network Library. 301 00:13:56,600 --> 00:13:57,460 You can look at details. 302 00:13:57,860 --> 00:14:00,720 You can modify things like the creator ID, 303 00:14:00,800 --> 00:14:02,880 which is the unique ID for the library. 304 00:14:02,880 --> 00:14:05,600 You can set attributes, take away attributes. 305 00:14:05,800 --> 00:14:06,740 You see this copy protect. 306 00:14:07,860 --> 00:14:08,780 If this is set, 307 00:14:09,320 --> 00:14:12,580 Palm OS is programmed not to allow you to beam anything. 308 00:14:13,040 --> 00:14:16,020 So if you see files like this, 309 00:14:16,080 --> 00:14:17,660 you can easily unprotect them. 310 00:14:19,880 --> 00:14:23,040 Honestly, it's been a long time since I saw anybody still use that 311 00:14:23,040 --> 00:14:25,960 because I think a lot of people know that it's really, 312 00:14:26,100 --> 00:14:31,680 like I said, it's not quite the DRM platform of the future. 313 00:14:31,680 --> 00:14:37,400 The cool thing about it is that it also has an editor, right? 314 00:14:37,500 --> 00:14:38,220 So you can view. 315 00:14:39,800 --> 00:14:41,720 You've got a hex editor and you can view. 316 00:14:41,760 --> 00:14:42,960 You can make modifications to stuff. 317 00:14:43,180 --> 00:14:45,740 So now we're starting to get into more of the hacking stuff 318 00:14:45,740 --> 00:14:48,500 where if you're looking at files and you want to make changes, 319 00:14:48,620 --> 00:14:49,580 this is one way to do it. 320 00:14:49,740 --> 00:14:52,280 Right there, you can go in, make whatever changes, 321 00:14:52,360 --> 00:14:52,960 see what happens. 322 00:14:55,080 --> 00:14:58,200 The next tool that we have, Resource Edit, is another way. 323 00:14:58,920 --> 00:15:01,360 The way Palm applications work is, 324 00:15:01,680 --> 00:15:04,680 a Palm file is actually called a database. 325 00:15:05,060 --> 00:15:07,920 And inside that database, there are multiple resources. 326 00:15:08,340 --> 00:15:09,960 Some are code, some are text, 327 00:15:10,140 --> 00:15:12,080 kind of like a lot of executables. 328 00:15:12,520 --> 00:15:15,660 So what Resource Edit does is it allows you to edit resources. 329 00:15:16,160 --> 00:15:18,560 So if we take, I don't know, let's take, 330 00:15:22,920 --> 00:15:23,940 let's try Datebook. 331 00:15:24,500 --> 00:15:25,700 So we open Datebook. 332 00:15:26,020 --> 00:15:28,220 You can see all the different resources it has. 333 00:15:28,340 --> 00:15:29,580 See Mbar? That's a menu bar. 334 00:15:29,760 --> 00:15:30,700 So we can open that. 335 00:15:32,040 --> 00:15:36,240 And we can see that the menu bar has three different kind of menus. 336 00:15:36,380 --> 00:15:37,340 You can open that. 337 00:15:37,620 --> 00:15:39,280 And you can see what menus there are. 338 00:15:39,320 --> 00:15:39,940 And you can change them. 339 00:15:40,840 --> 00:15:42,200 So obviously if you're in, 340 00:15:42,720 --> 00:15:44,240 I probably wouldn't change Appointment 341 00:15:44,240 --> 00:15:46,460 because you're looking at a ROM application right now. 342 00:15:46,560 --> 00:15:48,500 But you can change a lot of things. 343 00:15:48,600 --> 00:15:50,040 The cool thing about Resource Edit 344 00:15:50,040 --> 00:15:53,160 is that it will allow you to edit icons, 345 00:15:53,340 --> 00:15:54,420 like bitmaps and stuff. 346 00:15:55,200 --> 00:15:57,340 And I can find, oh, here we go. 347 00:15:57,400 --> 00:15:58,280 Why don't we look at something. 348 00:16:00,340 --> 00:16:02,580 We have Disassembler. 349 00:16:03,140 --> 00:16:04,460 Which is kind of cool, right? 350 00:16:04,540 --> 00:16:05,380 So you're on your palm. 351 00:16:05,520 --> 00:16:08,620 You're like, whoa, I think I know what this program is doing. 352 00:16:08,680 --> 00:16:11,140 Or, damn it, I want infinite lives in this game. 353 00:16:13,380 --> 00:16:17,100 So you fire up Resource Edit. 354 00:16:17,560 --> 00:16:18,820 You go look at the code. 355 00:16:18,920 --> 00:16:20,260 And you think, ah, that's it. 356 00:16:20,340 --> 00:16:21,400 It's a branch not equal. 357 00:16:21,780 --> 00:16:22,700 Usually it's that. 358 00:16:22,780 --> 00:16:23,820 You've got to change a branch. 359 00:16:24,200 --> 00:16:27,960 You've got to basically get rid of a test or jump over a test. 360 00:16:28,420 --> 00:16:29,740 So you think you've found it. 361 00:16:30,000 --> 00:16:31,940 Now, here the issue is you have to know 362 00:16:31,940 --> 00:16:34,940 how to assemble 68,000 in your head. 363 00:16:35,000 --> 00:16:35,680 Well, maybe, actually. 364 00:16:35,760 --> 00:16:37,720 We'll see another tool that might help us there. 365 00:16:37,900 --> 00:16:39,220 But if you did know the opcode, 366 00:16:39,380 --> 00:16:40,480 you go back to Files. 367 00:16:40,500 --> 00:16:41,700 You go patch the binary. 368 00:16:41,940 --> 00:16:43,700 And then you get to play your game 369 00:16:43,700 --> 00:16:44,560 until the batteries run out. 370 00:16:45,480 --> 00:16:46,740 So, very cool tool. 371 00:16:46,960 --> 00:16:47,860 This is shareware. 372 00:16:48,260 --> 00:16:49,200 Files is freeware. 373 00:16:49,480 --> 00:16:51,320 I think this is like 15 bucks. 374 00:16:53,120 --> 00:16:54,560 So, very, very neat tool. 375 00:16:54,920 --> 00:16:56,480 The last kind of, I think, 376 00:16:56,480 --> 00:16:59,600 the tour de force of, you know, dev tools 377 00:16:59,600 --> 00:17:02,080 and kind of hackerish stuff on the palm 378 00:17:02,080 --> 00:17:03,040 is Onboard C. 379 00:17:03,240 --> 00:17:06,660 Onboard C is like a complete C development environment 380 00:17:06,660 --> 00:17:07,680 that runs on the palm. 381 00:17:08,140 --> 00:17:09,360 It's really impressive stuff. 382 00:17:09,520 --> 00:17:11,660 It's not completely, you know, NCC. 383 00:17:11,840 --> 00:17:12,960 There are a few restrictions. 384 00:17:13,500 --> 00:17:16,460 But literally, you are coding C. 385 00:17:16,760 --> 00:17:20,740 So, I had it create like a hello world. 386 00:17:20,820 --> 00:17:21,880 And I called it hello world dot C. 387 00:17:21,900 --> 00:17:23,200 And it appended a dot C to it. 388 00:17:23,400 --> 00:17:25,440 So, that we can do. 389 00:17:25,440 --> 00:17:26,060 We can go to edit. 390 00:17:26,460 --> 00:17:26,960 Oh, no. 391 00:17:27,080 --> 00:17:28,900 We don't want to go to resource editor. 392 00:17:29,180 --> 00:17:29,520 Sorry. 393 00:17:31,060 --> 00:17:34,560 We, let me go back to Onboard C. 394 00:17:34,700 --> 00:17:38,080 What I really want to do is just edit the code. 395 00:17:39,860 --> 00:17:40,420 There we go. 396 00:17:41,700 --> 00:17:43,200 So, this is the editor that comes with it. 397 00:17:43,280 --> 00:17:44,320 Also freeware source edit. 398 00:17:44,980 --> 00:17:46,120 And you can see this is, 399 00:17:46,220 --> 00:17:47,800 hopefully if you can read this from the back. 400 00:17:47,820 --> 00:17:49,220 Can you guys read this all the way from the back? 401 00:17:50,040 --> 00:17:50,380 Yeah? 402 00:17:50,760 --> 00:17:51,380 Oh, okay. 403 00:17:51,440 --> 00:17:51,840 That's good. 404 00:17:52,080 --> 00:17:53,860 So, here it is. 405 00:17:53,880 --> 00:17:54,960 Here's the application, right? 406 00:17:55,440 --> 00:17:55,620 Hello world dot C code. 407 00:17:55,880 --> 00:17:56,960 You could compile it on your desktop. 408 00:17:57,040 --> 00:17:58,280 You can do it right there on the palm. 409 00:17:59,880 --> 00:18:01,740 So, if we go back to Onboard C. 410 00:18:02,200 --> 00:18:02,900 Oops, sorry. 411 00:18:03,040 --> 00:18:04,580 If we go back to Onboard C. 412 00:18:07,140 --> 00:18:08,960 And we click on hello world. 413 00:18:09,000 --> 00:18:09,800 And we say build. 414 00:18:10,300 --> 00:18:10,840 Here we go. 415 00:18:10,900 --> 00:18:11,460 Building header. 416 00:18:11,900 --> 00:18:12,260 Compiling. 417 00:18:12,660 --> 00:18:13,300 Here we go. 418 00:18:13,340 --> 00:18:13,680 It built. 419 00:18:14,520 --> 00:18:16,820 And we can go to unfiled. 420 00:18:16,900 --> 00:18:17,860 See if we have an application. 421 00:18:18,060 --> 00:18:18,220 Yes. 422 00:18:18,260 --> 00:18:19,120 Hello world dot C. 423 00:18:20,480 --> 00:18:21,060 Here we go. 424 00:18:21,220 --> 00:18:22,600 That's the application we just built. 425 00:18:22,820 --> 00:18:24,740 So, you can literally develop C code on your palm. 426 00:18:25,860 --> 00:18:29,540 In my opinion, you've got to have a masochistic streak to do that. 427 00:18:29,700 --> 00:18:34,800 Because if you code like I do, which is you make mistakes, 428 00:18:35,380 --> 00:18:37,820 then you're going to be crashing your palm all over the place. 429 00:18:38,140 --> 00:18:40,780 Because this is not a very forgiving environment, right? 430 00:18:40,860 --> 00:18:43,120 You have bus errors and all sorts of stuff. 431 00:18:44,740 --> 00:18:45,980 But it's still very cool. 432 00:18:46,040 --> 00:18:46,420 Yes, question? 433 00:18:47,200 --> 00:18:49,000 How bad is your time in the MEA? 434 00:18:49,900 --> 00:18:54,260 Oh, well, on the MEA you're not so much a masochist, 435 00:18:54,260 --> 00:18:57,020 but you're really looking for the difficult way to do it. 436 00:18:57,040 --> 00:18:59,180 Because what you do on the, instead of using the emulator, 437 00:18:59,240 --> 00:19:02,560 we'll actually talk about the tools development environment on the PC. 438 00:19:03,080 --> 00:19:06,640 And you develop them on the PC and just upload it to the emulator and then run it there. 439 00:19:07,440 --> 00:19:12,840 It would be less painful to do it on the emulator, but not recommended. 440 00:19:14,080 --> 00:19:15,320 But the emulator is awesome. 441 00:19:15,800 --> 00:19:22,040 And interestingly, as a side note, the emulator doesn't have an equivalent in OS5. 442 00:19:22,240 --> 00:19:23,920 In OS5 they have what they call is a simulator. 443 00:19:24,260 --> 00:19:27,840 And what they've done is they've compiled OS5 into native x86 code. 444 00:19:28,220 --> 00:19:32,540 I believe they've done it for the PowerPC as well, so you can run it on Mac OS. 445 00:19:32,940 --> 00:19:37,140 And the reason I'm guessing they've done that is it would have been way too much overhead 446 00:19:37,140 --> 00:19:45,580 to try and emulate a device that is running way faster than the old palms were, right? 447 00:19:45,660 --> 00:19:48,640 Because now you've got an ARM chip that's running at maybe 400 megahertz 448 00:19:48,640 --> 00:19:50,680 and it's expecting to run at that speed. 449 00:19:50,700 --> 00:19:54,240 And unless you have a really powerful PC, it's not going to look that good. 450 00:19:54,240 --> 00:19:56,400 So anyway, OS5 has a simulator. 451 00:19:57,060 --> 00:19:59,600 But to all intents and purposes, pretty much the same thing. 452 00:20:00,020 --> 00:20:07,280 So quick tour of some of the cool applications, or at least the applications I think are cool, on the palm. 453 00:20:07,500 --> 00:20:10,280 I had a question here earlier about, can we get these slides? 454 00:20:11,440 --> 00:20:14,020 The question is yes, but I'm not quite sure how. 455 00:20:14,900 --> 00:20:19,760 DEF CON has a copy, and I'm hoping that they either go on a CD or on the website. 456 00:20:20,000 --> 00:20:22,820 If that doesn't happen, I will bundle them. 457 00:20:24,240 --> 00:20:29,140 Yeah, pretty much the same ones you see here with the actual release of the tool. 458 00:20:29,380 --> 00:20:32,360 And so in a few days, you'll be able to download them there. 459 00:20:32,420 --> 00:20:34,400 They'll be included with the distribution of the tool. 460 00:20:34,920 --> 00:20:35,320 Okay? 461 00:20:36,240 --> 00:20:40,160 And right at the end of the press, to make sure that you stay because I know you want this tool, 462 00:20:41,100 --> 00:20:43,780 there is the URL for the tool. 463 00:20:46,680 --> 00:20:51,680 So I'm going to go quickly over this interesting hardware, things you might want to have or use 464 00:20:51,680 --> 00:20:54,060 if you're writing stuff for Palm OS. 465 00:20:54,240 --> 00:20:58,740 And cool things that people have done, like putting pilots in robots and things like that. 466 00:20:59,540 --> 00:21:00,800 The keyboard is kind of neat. 467 00:21:00,920 --> 00:21:02,240 There have been a lot of these folding keyboards. 468 00:21:02,440 --> 00:21:03,960 This keyboard, I actually have one. 469 00:21:04,040 --> 00:21:04,820 It works fairly well. 470 00:21:04,900 --> 00:21:07,040 The nice thing about it is that it doesn't use a connector. 471 00:21:07,280 --> 00:21:10,700 It uses a little arm that swings up and talks to your infrared port. 472 00:21:10,960 --> 00:21:16,460 So it actually works for Pocket PCs and Palms and other devices as long as you have the driver. 473 00:21:17,240 --> 00:21:23,720 So if you buy a keyboard, you don't have to give it up once you decide to change PDAs. 474 00:21:24,300 --> 00:21:25,040 All right. 475 00:21:25,180 --> 00:21:28,500 I couldn't resist some comic relief. 476 00:21:30,520 --> 00:21:38,140 This isn't all Dilbert about the handwriting recognition of the Palm, the original Palms. 477 00:21:39,660 --> 00:21:46,020 So some of you who have learned graffiti and maybe write graffiti better than they write normal handwriting will appreciate this. 478 00:21:47,440 --> 00:21:48,440 Let's go on. 479 00:21:48,480 --> 00:21:49,020 Okay, present. 480 00:21:49,200 --> 00:21:49,640 All right. 481 00:21:49,660 --> 00:21:50,620 Another trivia question. 482 00:21:50,820 --> 00:21:54,220 How many Palm OS handhelds are in the market today? 483 00:21:54,220 --> 00:21:55,060 According to Palm. 484 00:21:57,360 --> 00:22:00,540 And I'm guessing what in the market means just sold, right? 485 00:22:00,600 --> 00:22:01,660 Since the beginning of time. 486 00:22:02,260 --> 00:22:03,440 I've got to believe some of them are. 487 00:22:03,940 --> 00:22:04,320 Sorry. 488 00:22:04,580 --> 00:22:05,680 Four million. 489 00:22:05,860 --> 00:22:06,460 I have four million. 490 00:22:06,560 --> 00:22:07,140 Do I hear more? 491 00:22:08,280 --> 00:22:08,880 Four million. 492 00:22:08,900 --> 00:22:09,400 Going once. 493 00:22:10,180 --> 00:22:10,860 Five million. 494 00:22:11,000 --> 00:22:11,900 You guys are way too low. 495 00:22:12,480 --> 00:22:13,300 Do I hear more? 496 00:22:13,620 --> 00:22:14,280 How much? 497 00:22:14,400 --> 00:22:14,880 38 million. 498 00:22:15,240 --> 00:22:15,560 38. 499 00:22:15,760 --> 00:22:15,900 Okay. 500 00:22:15,980 --> 00:22:16,440 That's too high. 501 00:22:16,520 --> 00:22:19,020 24 is what they say, which is still pretty cool. 502 00:22:19,320 --> 00:22:22,440 So 24 million is what they claim. 503 00:22:22,500 --> 00:22:23,780 And I'm assuming they're counting. 504 00:22:23,780 --> 00:22:32,340 They're counting Palm OS devices, not just Palm handhelds, but Sony, Handspring, Handera, Kyocera, all the rest. 505 00:22:34,360 --> 00:22:37,880 So now we're going to talk about the Palm vulnerability scanner, right? 506 00:22:38,640 --> 00:22:41,340 So the first question you may ask is, why write it? 507 00:22:41,800 --> 00:22:43,460 Well, it's a good question. 508 00:22:43,740 --> 00:22:47,520 I mean, Palm isn't exactly a really powerful platform. 509 00:22:49,140 --> 00:22:50,580 So a couple answers. 510 00:22:50,740 --> 00:22:51,920 One, I thought it would be fun. 511 00:22:53,300 --> 00:22:55,720 Two, it's kind of the reverse Everest answer. 512 00:22:56,060 --> 00:22:57,680 It's like, why did you climb Everest? 513 00:22:57,760 --> 00:22:58,400 Because it was there? 514 00:22:58,620 --> 00:23:03,900 Well, I wrote this because nothing was there, or at least I don't know of any other scanners. 515 00:23:06,220 --> 00:23:11,360 Potentially, it could be useful if you're on the road, or in some cases, you'll see what you can do with it. 516 00:23:11,880 --> 00:23:21,880 Obviously, if you're going to do any sort of serious security work, you are not going to hand in a report to clients that was purely done on a Palm OS-based vulnerability scanner. 517 00:23:23,260 --> 00:23:24,140 But you'll see. 518 00:23:24,240 --> 00:23:24,660 It's kind of cool. 519 00:23:24,840 --> 00:23:26,460 So what did I originally want to do? 520 00:23:26,520 --> 00:23:27,960 I wanted to do TCP UDP scanning. 521 00:23:28,740 --> 00:23:34,740 I wanted to support multiple hosts and ports, and do banner grabbing, and save results in some kind of reusable format. 522 00:23:35,600 --> 00:23:39,720 And if I can read the last text, yes, standalone. 523 00:23:39,940 --> 00:23:45,860 It needed to be, so one idea was, you know, kind of, if you think about the Nessus route, Nessus has a client and a server, right? 524 00:23:45,920 --> 00:23:50,320 Well, why not put a server out there somewhere and then write little client interfaces to it? 525 00:23:50,420 --> 00:23:51,860 Well, I wanted to have something that was real. 526 00:23:51,880 --> 00:23:53,560 It was just relying on the Palm and nothing else. 527 00:23:55,200 --> 00:23:56,940 So, and you ask, what about other scanners? 528 00:23:56,980 --> 00:23:57,800 Are you sure there are none? 529 00:23:58,580 --> 00:24:08,160 Not entirely, but other than a mention of an Nmap port for the Palm in 2000, someone was claiming to be working on it. 530 00:24:08,200 --> 00:24:09,500 I never saw anything released. 531 00:24:10,500 --> 00:24:16,340 So, of course, you know, a little different programs here, but that's about as close as I've seen. 532 00:24:17,660 --> 00:24:20,020 Anybody, will anybody gainsay that statement? 533 00:24:21,880 --> 00:24:23,640 Okay, so maybe I did do enough research. 534 00:24:23,920 --> 00:24:29,640 My goodness, I was happy that no one said, wait a minute, ISS has a Palm-based vulnerability scanner. 535 00:24:31,080 --> 00:24:33,600 So, if you're going to write something, right, you've got to choose development environment. 536 00:24:34,860 --> 00:24:37,720 There are tons of development environments for the Palm. 537 00:24:37,960 --> 00:24:41,560 Almost any language has been ported to the Palm in some form or fashion. 538 00:24:41,780 --> 00:24:46,120 You either develop it on the PC, on your Palm, on all the rest. 539 00:24:46,300 --> 00:24:50,040 It's all the, there's tons of stuff. 540 00:24:50,040 --> 00:24:56,000 So, I decided, well, I'm going to go for, what do I need, right? 541 00:24:56,140 --> 00:24:56,800 Technical features. 542 00:24:57,400 --> 00:24:58,780 Well, I want to leverage the Palm UI. 543 00:24:59,180 --> 00:25:00,220 I want to be responsive. 544 00:25:01,080 --> 00:25:02,940 I kind of want to be able to extend it. 545 00:25:03,320 --> 00:25:05,140 And I'd like to be able to develop it on the PC. 546 00:25:05,260 --> 00:25:07,520 I just don't want a language that forces me to develop on the Palm. 547 00:25:08,200 --> 00:25:10,100 It would be nice to be able to develop it on the Palm. 548 00:25:11,380 --> 00:25:15,160 And most important, I want to reuse other components, which really means I want to be lazy, right? 549 00:25:15,240 --> 00:25:19,180 Because if I can interface with something else that's already written, that's less work for me. 550 00:25:19,180 --> 00:25:25,880 So, you'll find that the reuse other components or the laziness factor will influence a lot of design decisions. 551 00:25:26,420 --> 00:25:28,000 So, anyway, look at that spinning. 552 00:25:28,580 --> 00:25:29,920 Finally, I chose Pocket C. 553 00:25:32,400 --> 00:25:33,220 I'll tell you why. 554 00:25:33,820 --> 00:25:36,700 So, Pocket C is like this interpreted C-like language. 555 00:25:37,400 --> 00:25:38,560 C-like is good, right? 556 00:25:38,620 --> 00:25:41,380 Because a lot of us program in C and it's pretty accessible. 557 00:25:43,120 --> 00:25:46,160 It does all the memory management for strings and stuff for you. 558 00:25:46,220 --> 00:25:47,680 It allows you to do multidimensional arrays. 559 00:25:47,680 --> 00:25:48,940 It's a little bit of a hack. 560 00:25:49,120 --> 00:25:51,100 You can do structs as well with a minor hack. 561 00:25:51,260 --> 00:25:51,960 It's reasonably fast. 562 00:25:52,380 --> 00:25:53,160 Developed on the Palm. 563 00:25:53,280 --> 00:25:55,680 It actually has a Palm development environment. 564 00:25:56,560 --> 00:25:58,880 Sorry, a PC development environment. 565 00:25:59,520 --> 00:26:01,620 And you can obviously do it on the Palm as well. 566 00:26:01,700 --> 00:26:02,460 And it's extensible. 567 00:26:02,680 --> 00:26:04,000 And you can see the Hello World, right? 568 00:26:04,240 --> 00:26:08,040 What's not to love in a language that makes Hello World look like a C program? 569 00:26:09,700 --> 00:26:11,380 Any Pocket PC programmers here? 570 00:26:12,720 --> 00:26:14,240 Anybody programmed in Pocket PC? 571 00:26:15,820 --> 00:26:16,260 Nobody? 572 00:26:16,880 --> 00:26:17,460 All right. 573 00:26:17,680 --> 00:26:18,240 Well, maybe that'll change. 574 00:26:19,240 --> 00:26:21,240 You can extend Pocket PC in a couple of ways. 575 00:26:21,700 --> 00:26:23,880 One is through just what they call the include files. 576 00:26:24,080 --> 00:26:26,840 You basically include .h files, but you put code in there. 577 00:26:27,040 --> 00:26:30,920 And you can create different modules, which is what we did for Austin. 578 00:26:31,300 --> 00:26:33,900 And you can also create native libraries, which you can interface to, 579 00:26:33,960 --> 00:26:34,780 which is also what we did. 580 00:26:35,760 --> 00:26:38,240 Must-have library for Pocket PC is called Pocket Toolbox. 581 00:26:38,480 --> 00:26:41,080 It basically allows you to access all the Palm OS GUI functions. 582 00:26:42,760 --> 00:26:47,120 So, that is a very, very key feature 583 00:26:47,120 --> 00:26:47,860 to be able to do. 584 00:26:47,960 --> 00:26:51,880 It has some database functions, graphic functions, a lot of stuff that I'm not using in this program. 585 00:26:52,200 --> 00:26:53,540 But a really useful tool. 586 00:26:53,580 --> 00:26:57,440 It's free as long as when you release a tool, you kind of let Joe know. 587 00:26:57,540 --> 00:26:59,180 You say, hey, Joe, I just released something. 588 00:26:59,560 --> 00:27:03,960 And you bundle, you know, you make sure that people know how to get to his site. 589 00:27:04,740 --> 00:27:08,640 So, you might want to, you might be wondering, well, you've been talking about Austin, right? 590 00:27:08,700 --> 00:27:09,800 What does Austin stand for? 591 00:27:10,200 --> 00:27:12,760 So, that's what it stands for officially. 592 00:27:14,640 --> 00:27:16,920 Unofficially, what it really stands for is, 593 00:27:16,920 --> 00:27:21,220 well, you know how in the Matrix 2, Trinity is hacking into the computers and stuff 594 00:27:21,220 --> 00:27:24,980 and choosing these cool SSH CRC vulnerabilities. 595 00:27:25,880 --> 00:27:29,840 Well, a friend of mine was talking and saying, well, it's a pity Austin Powers doesn't have anything, right? 596 00:27:29,980 --> 00:27:31,540 I mean, Austin Powers doesn't have anything. 597 00:27:31,680 --> 00:27:34,300 He doesn't get to, like, hack into networks and stuff. 598 00:27:34,580 --> 00:27:37,480 So, we're joking around about how it would be cool that Austin would say, 599 00:27:37,680 --> 00:27:40,280 Dr. Evil, beam me your contact info, baby. 600 00:27:40,580 --> 00:27:44,060 And while Dr. Evil was doing that, Austin was really scanning his network. 601 00:27:46,040 --> 00:27:46,840 So, unofficially, 602 00:27:46,920 --> 00:27:48,780 it's all named after Austin Powers. 603 00:27:49,260 --> 00:27:51,000 And I think Austin likes it. 604 00:27:51,360 --> 00:27:52,620 Yes, he likes it. 605 00:27:52,780 --> 00:27:55,460 Why don't we have a quick demo of Austin right now 606 00:27:55,460 --> 00:27:57,960 so you can kind of see how it works. 607 00:27:58,080 --> 00:28:03,960 And then we'll talk a little bit about the structure of the program, the architecture. 608 00:28:04,640 --> 00:28:06,100 So, here is Austin. 609 00:28:07,380 --> 00:28:11,280 And I will also, while we're talking, start up a... 610 00:28:11,800 --> 00:28:12,800 Anybody use VMware? 611 00:28:14,580 --> 00:28:15,480 Yeah, yeah. 612 00:28:15,480 --> 00:28:17,220 Very cool program, isn't it? 613 00:28:17,280 --> 00:28:20,720 VMware creates these little virtual computers inside your computer. 614 00:28:21,020 --> 00:28:24,700 And I happen to have one, which is a Windows 2K server, 615 00:28:24,860 --> 00:28:26,160 which I use for a bunch of things. 616 00:28:26,340 --> 00:28:28,640 So, I'm going to start one up, and that's actually what we're going to be scanning. 617 00:28:29,160 --> 00:28:32,320 What I'm also going to do with the Windows 2K server, 618 00:28:32,480 --> 00:28:35,640 because I don't really have very much listening on UDP and I want to do a UDP scan, 619 00:28:36,040 --> 00:28:40,080 I will use a Netcat listener that's just going to listen on a port. 620 00:28:42,080 --> 00:28:44,260 And when someone tries to read it, 621 00:28:44,260 --> 00:28:45,880 it's going to just send back some information. 622 00:28:46,380 --> 00:28:48,620 Okay, that way we'll actually get something. 623 00:28:49,640 --> 00:28:52,160 So, you guys want to see the command for Netcat? 624 00:28:52,320 --> 00:28:53,000 Or you don't care? 625 00:28:54,900 --> 00:28:55,600 I'm going to... 626 00:28:55,600 --> 00:28:56,360 Oh, okay. 627 00:28:56,460 --> 00:28:57,340 I had to let's see it. 628 00:28:58,520 --> 00:29:01,940 So, here, just so you can kind of see, I'm not quite cheating. 629 00:29:01,980 --> 00:29:03,600 Here is our little Windows 2K box. 630 00:29:05,380 --> 00:29:06,780 And here is my Netcat. 631 00:29:06,880 --> 00:29:08,720 So, we're listening on port 2000. 632 00:29:09,060 --> 00:29:09,480 All right? 633 00:29:11,000 --> 00:29:13,780 So, first thing to do is find the mouse. 634 00:29:14,480 --> 00:29:15,620 Move this out of the way. 635 00:29:16,240 --> 00:29:16,740 All right. 636 00:29:16,780 --> 00:29:18,580 So, the Austin interface. 637 00:29:22,080 --> 00:29:23,920 So, you can enter one or more hosts. 638 00:29:24,460 --> 00:29:30,440 I'm going to enter the IP address of our host here, 199.129. 639 00:29:30,460 --> 00:29:31,780 I believe I typed in correctly. 640 00:29:32,160 --> 00:29:36,260 If you want to put multiple hosts, you can, you know, put www.yahoo. 641 00:29:36,840 --> 00:29:38,340 You can, you know, have commas. 642 00:29:38,340 --> 00:29:40,080 If you want to use ranges, you can do that too. 643 00:29:40,460 --> 00:29:41,680 But we're not going to do that. 644 00:29:42,840 --> 00:29:43,560 For ports. 645 00:29:44,260 --> 00:29:46,060 You can basically specify them right here. 646 00:29:46,120 --> 00:29:47,240 There's another way to specify them. 647 00:29:47,300 --> 00:29:48,100 We'll talk about that later. 648 00:29:48,340 --> 00:29:50,060 I'm just going to toss in a few. 649 00:29:50,160 --> 00:29:52,980 Let's do 135 to 139 since it's in the Windows box. 650 00:29:55,240 --> 00:29:56,580 Let's do 443. 651 00:29:56,880 --> 00:29:58,460 And let's not forget 2000. 652 00:29:58,940 --> 00:29:59,300 Oops. 653 00:29:59,560 --> 00:29:59,920 2000. 654 00:30:00,160 --> 00:30:00,480 All right. 655 00:30:00,760 --> 00:30:02,960 So, we're going to do UDP and TCP. 656 00:30:03,920 --> 00:30:05,020 And let's do a banner grab. 657 00:30:05,600 --> 00:30:06,100 All right. 658 00:30:06,100 --> 00:30:10,440 So, basically, what this will do is it's going to try and connect to these ports with UDP, TCP. 659 00:30:11,400 --> 00:30:13,540 And it's going to try and do a banner grab. 660 00:30:13,540 --> 00:30:17,860 Now, banner grab, you'll see in the preferences that you can specify the string it's going to send. 661 00:30:18,020 --> 00:30:23,800 Right now, by default, it sends an options HTTP command, which is kind of useful because a lot of things talk HTTP. 662 00:30:23,980 --> 00:30:25,800 And you might as well see what comes back. 663 00:30:25,960 --> 00:30:28,500 The options command basically tells you all the HTTP verbs. 664 00:30:28,700 --> 00:30:33,500 If the server supports it, it will tell you all the HTTP verbs that the server recognizes. 665 00:30:34,480 --> 00:30:34,840 Whoops. 666 00:30:35,280 --> 00:30:38,040 And that is the emulator context menu, which we don't really need. 667 00:30:38,380 --> 00:30:39,300 So, we hit. 668 00:30:39,360 --> 00:30:39,660 We start. 669 00:30:39,780 --> 00:30:40,120 Scan. 670 00:30:40,900 --> 00:30:43,320 And with a bit of luck, it says scanning. 671 00:30:43,540 --> 00:30:45,340 It's found 80 open, 135. 672 00:30:46,080 --> 00:30:52,700 That's trying 36, 37, 38, 39 is open as well, 443. 673 00:30:52,840 --> 00:30:53,400 And that's it. 674 00:30:53,420 --> 00:30:53,640 Okay. 675 00:30:53,900 --> 00:30:54,720 So, great. 676 00:30:54,800 --> 00:30:55,420 Scan is complete. 677 00:30:56,180 --> 00:31:01,940 Here is one of the first laziness principles in action. 678 00:31:02,200 --> 00:31:08,360 This little button here down at the bottom, which looks like a filing cabinet, goes to a program called PilotDB. 679 00:31:08,560 --> 00:31:10,920 PilotDB is a free GPL database. 680 00:31:12,020 --> 00:31:16,700 Which is what Austin writes its scans in. 681 00:31:17,000 --> 00:31:18,340 You'll see there are a couple other databases. 682 00:31:18,520 --> 00:31:19,440 We'll talk about those later. 683 00:31:20,400 --> 00:31:22,760 But the one thing you have to do is kind of rescan databases. 684 00:31:22,920 --> 00:31:24,220 And you can see there's a new database here. 685 00:31:26,900 --> 00:31:32,460 Unfortunately, there's a limitation with the pocket toolbox in the size of the actual database I can use. 686 00:31:32,520 --> 00:31:36,640 So, I put in a timestamp and then as much of the IP address as I can fit. 687 00:31:36,940 --> 00:31:38,760 And I need to ask Joe to extend it. 688 00:31:38,840 --> 00:31:40,320 So, if we click here, you can see. 689 00:31:40,320 --> 00:31:40,440 Okay. 690 00:31:40,520 --> 00:31:41,200 We found a port. 691 00:31:41,420 --> 00:31:42,380 Open port on 80. 692 00:31:42,700 --> 00:31:43,880 These are the open ones. 693 00:31:44,020 --> 00:31:48,840 So, here you can see all the different things we found. 694 00:31:49,140 --> 00:31:51,120 This is what gets logged. 695 00:31:51,980 --> 00:31:53,560 And right here is the banner. 696 00:31:53,720 --> 00:31:54,080 Okay. 697 00:31:54,340 --> 00:31:56,580 Microsoft IIS 5.0. 698 00:31:56,920 --> 00:31:57,720 And all the rest. 699 00:31:57,980 --> 00:31:58,360 Okay. 700 00:31:58,400 --> 00:32:02,280 So, if we scroll down here, we're actually seeing all the different open ports. 701 00:32:02,400 --> 00:32:03,340 You see no banner there. 702 00:32:03,520 --> 00:32:06,500 There's one byte banner that came back here. 703 00:32:07,180 --> 00:32:09,060 And then UDP 2000. 704 00:32:09,060 --> 00:32:12,140 We got a hello world back, which is what was in my file. 705 00:32:13,600 --> 00:32:15,460 So, that basically gives you the results. 706 00:32:16,780 --> 00:32:20,720 So, a couple reasons why using PilotDB. 707 00:32:21,020 --> 00:32:23,160 Well, obviously, one, it's great, right? 708 00:32:23,380 --> 00:32:28,960 As long as I write the results in PilotDB, I don't have to write an interface for you to access it. 709 00:32:29,060 --> 00:32:31,740 Plus, it's a database program, so you can search on things. 710 00:32:31,880 --> 00:32:36,800 And you can manipulate the columns and stuff to show different information. 711 00:32:37,380 --> 00:32:38,640 The other reason is. 712 00:32:38,640 --> 00:32:44,180 Once you sync this to your desktop, there are tools to convert these files into CSVs. 713 00:32:44,540 --> 00:32:49,060 So, once you have a common separated value file, you can do whatever you want with it. 714 00:32:49,260 --> 00:32:52,740 So, you can integrate that into other information. 715 00:32:54,140 --> 00:32:57,640 So, let's go back to port 80, right? 716 00:32:57,680 --> 00:32:58,360 We're like, oh, okay. 717 00:32:58,420 --> 00:32:59,100 Well, that's kind of interesting. 718 00:32:59,600 --> 00:33:03,700 We had here Microsoft IIS. 719 00:33:03,940 --> 00:33:06,440 So, let's go to another feature of Austin. 720 00:33:06,760 --> 00:33:08,620 Let's actually do a URL search. 721 00:33:08,640 --> 00:33:08,740 We're going to scan. 722 00:33:10,180 --> 00:33:12,580 So, we'll use the vulnerability database here. 723 00:33:12,760 --> 00:33:17,020 The vulnerability database is actually rather a grand term because it's really a URL scanning database. 724 00:33:18,780 --> 00:33:22,840 Typically, what you do is you'd fire off the whole thing, but just to show you different. 725 00:33:23,020 --> 00:33:24,700 We're going to select which test we want to do. 726 00:33:25,020 --> 00:33:27,380 If there's an IIS web server, we'll do this. 727 00:33:27,960 --> 00:33:31,460 Here is just a quick test to check whether debug.asp is there. 728 00:33:31,600 --> 00:33:33,660 You can see I haven't really used this checkbox. 729 00:33:33,800 --> 00:33:38,080 It's kind of there to say, well, if this is a DOS or a check that might DOS the server, 730 00:33:38,640 --> 00:33:39,640 at least let people know. 731 00:33:41,440 --> 00:33:46,420 Method, head or get, HTTP method to request the URL. 732 00:33:47,980 --> 00:33:51,600 Match, R colon colon basically says look for 200, right? 733 00:33:51,660 --> 00:33:52,840 Look for a return code of 200. 734 00:33:53,220 --> 00:33:55,940 And then here's what to say if there are issues. 735 00:33:57,300 --> 00:33:59,740 So, go further down, different vulnerabilities. 736 00:34:00,400 --> 00:34:03,860 And here's one on the infamous Unicode one. 737 00:34:03,960 --> 00:34:08,620 Here we're doing a get, and we're trying to match these characters inside the URL. 738 00:34:08,640 --> 00:34:10,940 Inside the results. 739 00:34:11,820 --> 00:34:15,500 So, what we'll do now is we've selected these. 740 00:34:15,700 --> 00:34:18,900 Why don't we just select port 80, which we know that's the web server. 741 00:34:19,400 --> 00:34:20,840 Let's forget about UDP right now. 742 00:34:20,920 --> 00:34:22,060 Let's click on URL scan. 743 00:34:24,280 --> 00:34:24,940 All right. 744 00:34:25,020 --> 00:34:26,520 So, it says scanning complete. 745 00:34:27,860 --> 00:34:33,740 And what we want to do is rescan databases. 746 00:34:35,500 --> 00:34:36,960 And nothing, right? 747 00:34:36,960 --> 00:34:37,820 It found nothing. 748 00:34:38,240 --> 00:34:39,300 So, that's kind of disappointing. 749 00:34:40,100 --> 00:34:41,360 So, we go back to Austin. 750 00:34:41,740 --> 00:34:43,200 We can enter the interactive mode. 751 00:34:43,300 --> 00:34:47,080 Like, I could have sworn that debug.asp was there. 752 00:34:47,780 --> 00:34:49,720 So, you can basically type in the URL. 753 00:34:50,600 --> 00:34:52,240 Or type in the IP address, I should say. 754 00:34:53,500 --> 00:34:54,780 Let me know if I make a mistake. 755 00:34:54,920 --> 00:34:55,980 It's kind of hard to see it from here. 756 00:34:57,700 --> 00:35:03,760 And let's actually verify that this, that the debug.asp is not there. 757 00:35:06,360 --> 00:35:07,860 So, http://1.1.1. 758 00:35:08,360 --> 00:35:08,800 Oops. 759 00:35:09,060 --> 00:35:09,680 Double return. 760 00:35:10,260 --> 00:35:10,860 All right. 761 00:35:11,040 --> 00:35:15,760 So, oh, thank you. 762 00:35:16,640 --> 00:35:17,080 Yeah. 763 00:35:18,300 --> 00:35:18,740 Good. 764 00:35:18,920 --> 00:35:19,940 I'm glad that you noticed. 765 00:35:20,380 --> 00:35:21,240 So, let's connect. 766 00:35:22,200 --> 00:35:22,880 Let's send. 767 00:35:23,640 --> 00:35:26,300 And, oh, we get a whole page back. 768 00:35:27,600 --> 00:35:28,860 And what do we get? 769 00:35:28,980 --> 00:35:29,680 We get a 404. 770 00:35:29,760 --> 00:35:30,260 All right. 771 00:35:30,460 --> 00:35:33,740 Now, I have a suspicion that instead of, 772 00:35:33,760 --> 00:35:37,260 instead of debug.asp, this might be an infamous, 773 00:35:37,740 --> 00:35:40,120 the infamous vulnerability debugging.text, 774 00:35:42,260 --> 00:35:44,980 which you guys may not have heard about, but is really bad. 775 00:35:45,300 --> 00:35:47,860 So, we'll see if we find that on the server. 776 00:35:49,060 --> 00:35:50,280 And we do a head. 777 00:35:50,860 --> 00:35:51,980 And, yes, we get a 200. 778 00:35:52,700 --> 00:35:56,820 This server, by the way, is one of the training servers that we use. 779 00:35:56,920 --> 00:35:57,660 It's got an application. 780 00:35:57,860 --> 00:35:58,580 I won't show it to you now, 781 00:35:58,640 --> 00:36:00,720 but it's got an application called AddStake Bovine Products. 782 00:36:02,120 --> 00:36:03,740 And it also has, of course, 783 00:36:03,760 --> 00:36:06,560 a file called debugging.text on it that explains to you SQL injection. 784 00:36:07,180 --> 00:36:10,360 So, since we know this, like, okay, let's disconnect. 785 00:36:11,200 --> 00:36:13,940 Let's go back to the database. 786 00:36:14,640 --> 00:36:16,620 We can do a quick modification here. 787 00:36:17,640 --> 00:36:22,200 Debug.asp can become debugging.text. 788 00:36:23,180 --> 00:36:25,560 And instead of doing head, we're going to do a get. 789 00:36:26,640 --> 00:36:29,380 And we're going to look for a colleague of mine, 790 00:36:29,480 --> 00:36:31,940 who I hope is not in the audience, otherwise he'll be upset with me. 791 00:36:31,940 --> 00:36:33,080 Look for his name. 792 00:36:33,520 --> 00:36:36,400 So, if we find a document written by Mr. Hawthorne, 793 00:36:36,480 --> 00:36:37,540 we're in trouble, right? 794 00:36:37,620 --> 00:36:39,160 So, we want to match on Hawthorne. 795 00:36:40,700 --> 00:36:41,580 And that's it. 796 00:36:41,660 --> 00:36:42,300 I'll leave that. 797 00:36:42,940 --> 00:36:43,880 Go back to Austin. 798 00:36:44,380 --> 00:36:46,880 You see that Austin remembers the settings you gave it. 799 00:36:46,900 --> 00:36:48,760 So, we'll run this again. 800 00:36:49,620 --> 00:36:50,780 And it's banner grabbing. 801 00:36:51,000 --> 00:36:51,320 Okay. 802 00:36:53,100 --> 00:36:54,420 And we re-scan databases. 803 00:36:54,540 --> 00:36:56,060 You always have to do that because... 804 00:36:56,060 --> 00:36:56,940 Oh, there we go. 805 00:36:57,080 --> 00:36:57,980 We have a word vulnerability. 806 00:36:58,480 --> 00:36:58,840 Cool. 807 00:36:58,920 --> 00:37:01,180 So, that kind of gives you a feel for Austin. 808 00:37:02,100 --> 00:37:03,480 What you can do now is, 809 00:37:03,580 --> 00:37:04,640 you can kind of... 810 00:37:04,640 --> 00:37:05,600 If you want to, 811 00:37:05,600 --> 00:37:07,160 if you want to see what the page looks like, 812 00:37:07,240 --> 00:37:09,700 you can grab the URL, copy it, 813 00:37:09,800 --> 00:37:12,200 and go to, let's say, our favorite program, 814 00:37:13,180 --> 00:37:13,920 Eudora Web. 815 00:37:15,300 --> 00:37:16,380 I haven't run this before, 816 00:37:16,500 --> 00:37:17,520 so we're going to agree to the license. 817 00:37:18,260 --> 00:37:19,120 Say, visit. 818 00:37:22,920 --> 00:37:24,540 And I will paste it in. 819 00:37:26,140 --> 00:37:27,040 And say, okay. 820 00:37:28,120 --> 00:37:28,800 And there we go. 821 00:37:28,920 --> 00:37:31,560 And that, actually, Eudora went and downloaded the information. 822 00:37:31,560 --> 00:37:33,060 You can see it's from Mr. Hawthorne. 823 00:37:33,200 --> 00:37:34,700 And it's a SQL injection demonstration. 824 00:37:37,080 --> 00:37:37,960 So, that's it. 825 00:37:38,060 --> 00:37:40,420 That is, in a nutshell, most of Austin. 826 00:37:42,120 --> 00:37:45,380 And now, let's get back to the press. 827 00:37:47,700 --> 00:37:48,340 All right. 828 00:37:51,460 --> 00:37:51,880 Yes. 829 00:37:52,020 --> 00:37:52,340 All right. 830 00:37:52,840 --> 00:37:54,580 So, very briefly, Austin architecture. 831 00:37:55,000 --> 00:37:56,340 You can kind of see how it's written. 832 00:37:56,700 --> 00:37:58,340 Obviously, Palm hardware, Palm OS. 833 00:37:59,340 --> 00:37:59,760 And... 834 00:38:00,400 --> 00:38:03,080 Then we've got Pocket C, which is a runtime, 835 00:38:03,320 --> 00:38:05,780 with two native libraries. 836 00:38:06,320 --> 00:38:09,140 I'm not going to spend much time on the blue stuff. 837 00:38:09,300 --> 00:38:10,420 That's written in Pocket C. 838 00:38:10,560 --> 00:38:12,520 I'm going to spend a little bit of time on the network library. 839 00:38:12,820 --> 00:38:14,540 Because even if you don't care about Austin, 840 00:38:14,720 --> 00:38:18,200 if you do want to develop stuff with Pocket C or network stuff, 841 00:38:18,420 --> 00:38:22,100 you can actually use the net library on your own 842 00:38:22,100 --> 00:38:23,340 and do a bunch of stuff with it. 843 00:38:23,740 --> 00:38:24,920 So, tools to develop Austin. 844 00:38:25,080 --> 00:38:26,240 We talked about the emulator. 845 00:38:26,660 --> 00:38:28,540 Pocket C desktop environment. 846 00:38:29,180 --> 00:38:31,420 PRC Tools is what includes all the GCC tools. 847 00:38:32,160 --> 00:38:32,780 Thank you. 848 00:38:33,440 --> 00:38:37,820 PRC Tools has GCC and a bunch of other tools to create Palm executables. 849 00:38:37,880 --> 00:38:38,400 All free. 850 00:38:38,700 --> 00:38:39,500 Palm SDK. 851 00:38:39,920 --> 00:38:44,980 And then the Pilot Resource Compiler is used to compile 852 00:38:45,580 --> 00:38:47,700 those little resource files that describe GUIs. 853 00:38:49,000 --> 00:38:51,900 So, the Palm OS network library is actually pretty cool. 854 00:38:52,040 --> 00:38:53,160 It's actually fairly comprehensive. 855 00:38:53,360 --> 00:38:54,520 It supports TCP, UDP. 856 00:38:54,680 --> 00:38:56,640 You can have raw sockets available as well. 857 00:38:57,800 --> 00:38:58,520 Some of the things that you can do. 858 00:38:58,520 --> 00:38:59,020 Some of the lessons learned. 859 00:38:59,180 --> 00:39:00,640 Close the sockets as soon as possible. 860 00:39:01,340 --> 00:39:04,080 The sockets, you know, you've got about six to play with. 861 00:39:04,580 --> 00:39:06,640 If you use up six sockets and you're not closing them, 862 00:39:07,960 --> 00:39:11,600 everything stops until some of those sockets get closed. 863 00:39:11,960 --> 00:39:13,680 So, make sure you close them all the time. 864 00:39:16,560 --> 00:39:21,360 And you do have a Berkeley interface into the network library calls. 865 00:39:21,420 --> 00:39:23,860 So, you can do socket and open and bind and all of these things. 866 00:39:23,960 --> 00:39:26,880 But using the actual Palm OS calls gives you a lot more flexibility. 867 00:39:28,520 --> 00:39:29,880 I'm going to skip over the native library. 868 00:39:30,180 --> 00:39:30,820 You can kind of see. 869 00:39:30,860 --> 00:39:32,820 This is an example of actual native C code. 870 00:39:34,460 --> 00:39:38,020 This is a quick example of what it would take to program ahead. 871 00:39:38,240 --> 00:39:40,660 So, just go to a web server. 872 00:39:41,580 --> 00:39:43,320 Ask for an IP address and port. 873 00:39:43,460 --> 00:39:44,120 Go to the web server. 874 00:39:44,180 --> 00:39:44,400 Connect. 875 00:39:45,040 --> 00:39:46,340 Actually, there's a mistake there. 876 00:39:46,380 --> 00:39:47,460 See, I'm connecting on port 80. 877 00:39:47,540 --> 00:39:49,840 But I should be connecting on the port that was specified. 878 00:39:51,200 --> 00:39:52,000 Write something. 879 00:39:52,300 --> 00:39:53,000 Read something. 880 00:39:53,520 --> 00:39:54,460 And close the socket. 881 00:39:54,620 --> 00:39:56,160 So, really simple code right now. 882 00:39:56,580 --> 00:39:56,980 Two. 883 00:39:57,860 --> 00:40:01,720 You don't have to write TCP code or network-based codes in Pocket C 884 00:40:01,720 --> 00:40:04,040 once you have the wonderful Austin Net Library. 885 00:40:06,080 --> 00:40:07,780 A lot of lessons learned about net libraries. 886 00:40:08,000 --> 00:40:10,820 It was about native libraries for the Pocket C. 887 00:40:10,860 --> 00:40:12,760 It was painful because there isn't much documentation. 888 00:40:13,220 --> 00:40:15,160 If you're going to be doing it, I suggest you download. 889 00:40:15,380 --> 00:40:16,540 By the way, Austin is GPL. 890 00:40:17,320 --> 00:40:19,120 So, feel free to download it. 891 00:40:19,160 --> 00:40:19,680 Look at the code. 892 00:40:19,820 --> 00:40:20,220 Use it. 893 00:40:20,340 --> 00:40:21,220 Make changes to it. 894 00:40:21,320 --> 00:40:24,640 And then, you know, tell everybody about the wonderful improvements you've made. 895 00:40:24,640 --> 00:40:27,380 So, you can definitely reuse the Austin Net Library. 896 00:40:28,080 --> 00:40:30,240 And make sure you look at the make file and stuff like that. 897 00:40:30,320 --> 00:40:32,560 Because it took me a while to get everything working correctly. 898 00:40:33,020 --> 00:40:35,220 And there really isn't much documentation. 899 00:40:35,880 --> 00:40:40,160 Especially around passing some of the more complex structures between Pocket C and C. 900 00:40:41,200 --> 00:40:41,820 Database access. 901 00:40:41,960 --> 00:40:43,260 We talked about that a little bit. 902 00:40:44,300 --> 00:40:46,020 We actually support two database formats. 903 00:40:46,740 --> 00:40:49,020 But is what I'd recommend. 904 00:40:51,480 --> 00:40:54,620 There are three types of databases we use. 905 00:40:54,620 --> 00:40:57,300 We use preferences, web volumes, and results. 906 00:40:57,760 --> 00:40:58,980 You've seen the web volumes. 907 00:40:59,060 --> 00:40:59,680 You've seen the results. 908 00:41:01,660 --> 00:41:03,480 Really, the other preferences. 909 00:41:03,900 --> 00:41:12,380 The preferences of Austin, I should say, are basically places where you can say, 910 00:41:12,460 --> 00:41:13,900 Okay, well this is the banner I want to use. 911 00:41:14,220 --> 00:41:18,220 And if you don't want to specify TCP ports, you can actually specify them here. 912 00:41:18,280 --> 00:41:24,100 If you leave the ports field blank, you can actually select different ports to check here. 913 00:41:24,620 --> 00:41:30,440 So if you're doing the same kind of scans all over the place, you can just create one entry here. 914 00:41:30,500 --> 00:41:31,420 Put in the ports you want. 915 00:41:31,500 --> 00:41:32,320 And then make sure it's selected. 916 00:41:32,660 --> 00:41:33,640 And that will get used. 917 00:41:34,000 --> 00:41:38,540 You can have banners and different banner entries and stuff like that. 918 00:41:38,600 --> 00:41:46,120 And then there are different, basically, preferences you can set. 919 00:41:46,280 --> 00:41:47,580 And each preference has a description. 920 00:41:47,720 --> 00:41:52,080 So if you're playing around with Austin, you can go in there and just see what it does and mess around. 921 00:41:52,480 --> 00:41:54,060 See what changes. 922 00:41:55,900 --> 00:41:56,640 It's very nice. 923 00:41:56,740 --> 00:41:59,800 I mean, you really get a lot of benefit from using this stuff. 924 00:41:59,860 --> 00:42:04,440 Because, hey, the whole database manager is there and I didn't have to do very much for it. 925 00:42:05,160 --> 00:42:10,080 Graphical user interfaces could be a complete talk in and of itself. 926 00:42:10,860 --> 00:42:12,100 So we're not going to go there. 927 00:42:13,540 --> 00:42:16,740 You can see, basically, I put in a little bit of how you would define one. 928 00:42:16,860 --> 00:42:19,820 You can see the different tags that you use. 929 00:42:19,880 --> 00:42:20,740 Like, hey, I want a button. 930 00:42:20,820 --> 00:42:21,820 And here's why I want it. 931 00:42:21,840 --> 00:42:22,480 And here's the ID. 932 00:42:22,800 --> 00:42:23,840 And in your code. 933 00:42:23,920 --> 00:42:24,540 In your event code. 934 00:42:24,620 --> 00:42:26,920 You basically wait for an event to happen. 935 00:42:27,300 --> 00:42:31,160 And when it does, you look at the ID and you can say, oh, someone clicked on scan. 936 00:42:31,400 --> 00:42:33,280 So that's basically how it happens. 937 00:42:34,180 --> 00:42:34,720 Schedule scanning. 938 00:42:34,960 --> 00:42:36,900 There are two buttons that I didn't really show in Austin. 939 00:42:38,220 --> 00:42:39,520 Schedule scan and NASL scan. 940 00:42:40,020 --> 00:42:41,000 NASL scan is future. 941 00:42:41,080 --> 00:42:41,660 It doesn't work. 942 00:42:41,720 --> 00:42:42,280 It's not enabled. 943 00:42:44,420 --> 00:42:45,840 It's a nice silhouette. 944 00:42:46,560 --> 00:42:47,180 Schedule scanning. 945 00:42:47,340 --> 00:42:54,140 Basically, Pockety will tell the pump to go to sleep and wake up at whatever intervals you set and then run the scan. 946 00:42:54,140 --> 00:42:59,720 So if you want to scan, like, for a week on end, it's kind of a fun feature that was cheap to add, so I added it. 947 00:43:00,220 --> 00:43:05,680 If you want to scan once a day for a week, you can just, you know, leave your pilot plugged in. 948 00:43:05,940 --> 00:43:10,880 And every day it will wake up and run a scan and then go back to sleep again. 949 00:43:12,380 --> 00:43:13,440 So tying it all together. 950 00:43:14,160 --> 00:43:16,960 Basically, if you want to create an application, this is typically what you do. 951 00:43:17,060 --> 00:43:18,180 You have source code and icons. 952 00:43:18,940 --> 00:43:20,060 And a creator ID. 953 00:43:20,140 --> 00:43:21,620 You have to register one from Palm. 954 00:43:22,840 --> 00:43:24,120 Otherwise, you know, you could have calls. 955 00:43:24,120 --> 00:43:24,440 You could have conflicts. 956 00:43:24,560 --> 00:43:27,280 And if people have multiple creator IDs, the Palm OS gets confused. 957 00:43:27,560 --> 00:43:28,520 So you get one from Palm. 958 00:43:28,680 --> 00:43:31,440 You run it through the Palm desktop, the Pockety desktop environment. 959 00:43:31,700 --> 00:43:33,460 That creates an executable. 960 00:43:34,000 --> 00:43:36,880 You take the resource compiler, the resource definitions. 961 00:43:37,000 --> 00:43:38,140 You run it through the resource compiler. 962 00:43:38,300 --> 00:43:39,180 That creates a file. 963 00:43:39,340 --> 00:43:43,760 You can combine that with a program called Par into a file called Austin. 964 00:43:43,880 --> 00:43:45,360 You could also bundle in the network library. 965 00:43:45,720 --> 00:43:52,780 I left everything split apart in the distribution so people can mess with different files, you know, more easily. 966 00:43:52,780 --> 00:43:54,540 But that's how you basically integrate everything. 967 00:43:56,600 --> 00:44:00,840 So very different, very different tack now. 968 00:44:00,960 --> 00:44:03,500 I'm going to talk to you about tools that a friend of mine has written. 969 00:44:03,660 --> 00:44:05,380 Who has a Sony Ericsson P800? 970 00:44:07,400 --> 00:44:08,080 Two people. 971 00:44:08,240 --> 00:44:08,640 All right. 972 00:44:08,740 --> 00:44:09,620 Oh, no, three people. 973 00:44:09,760 --> 00:44:10,160 Excellent. 974 00:44:10,200 --> 00:44:11,080 So some of you have it. 975 00:44:12,120 --> 00:44:19,800 A colleague of ours called Ollie Whitehouse, which is a very skilled security guy, knows a ton of stuff. 976 00:44:20,000 --> 00:44:20,880 Very good developer. 977 00:44:21,040 --> 00:44:22,320 He's written a bunch of different tools. 978 00:44:22,780 --> 00:44:24,540 So that's a little bit about the P800. 979 00:44:24,720 --> 00:44:27,760 Basically, it's a, you know, cell phone, GSM-based. 980 00:44:27,980 --> 00:44:29,640 Ollie lives in London, so he's all GSM. 981 00:44:31,620 --> 00:44:35,120 And runs the Symbian OS, right? 982 00:44:35,280 --> 00:44:37,880 So different tools he developed. 983 00:44:38,040 --> 00:44:40,780 One is NETSCAN, TCP-EDP port scanner. 984 00:44:42,040 --> 00:44:48,140 Kind of like, kind of a combination of, well, Austin is kind of a combination of that and mobile pen tester. 985 00:44:48,540 --> 00:44:52,240 So mobile pen tester is a little bit like Austin, although it's a little bit more powerful in some features. 986 00:44:52,240 --> 00:44:55,620 Can do NETSCAN, can do some PDA cat, which is like a net cat. 987 00:44:56,280 --> 00:44:59,780 And there you can see Ollie's hand playing with his phone. 988 00:45:02,540 --> 00:45:14,100 There's also, he also wrote a tool called PDA Zap, which is a tool that will basically download all your memory so you can use it for instant response or forensics. 989 00:45:15,160 --> 00:45:15,600 All right. 990 00:45:15,620 --> 00:45:17,500 You can get them at the AtStake website. 991 00:45:17,740 --> 00:45:18,640 And you can see Ollie. 992 00:45:18,960 --> 00:45:20,800 If ever you meet Ollie, you can say, hi, Ollie. 993 00:45:20,800 --> 00:45:21,740 I saw you at DEF CON. 994 00:45:22,540 --> 00:45:30,960 And if you want to see Ollie in person, he is speaking at the Chaos Communication Camp in August. 995 00:45:31,080 --> 00:45:32,860 Anybody going to the Chaos Communication Camp? 996 00:45:34,060 --> 00:45:34,520 No. 997 00:45:34,680 --> 00:45:35,620 Well, that's a disappointment. 998 00:45:36,280 --> 00:45:36,860 All right. 999 00:45:36,880 --> 00:45:38,320 I have a trivia question for you. 1000 00:45:39,640 --> 00:45:41,220 Who can tell me what that is? 1001 00:45:41,380 --> 00:45:49,260 And the person who guesses what that is first gets a Compaq Speedpack cellular PC card free. 1002 00:45:49,720 --> 00:45:51,000 No, no, no, no, no. 1003 00:45:51,180 --> 00:45:55,780 AtStake employees may not reply. 1004 00:45:56,360 --> 00:45:56,800 . 1005 00:45:58,700 --> 00:45:59,840 Sorry, say it again. 1006 00:46:00,420 --> 00:46:01,180 Ericsson Hotline. 1007 00:46:01,660 --> 00:46:02,500 Ericsson Hotline. 1008 00:46:03,560 --> 00:46:10,720 That's kind of annoying because I don't know if my, what, I know I've been told what this is because I had no idea. 1009 00:46:11,060 --> 00:46:12,880 But I don't know what the make and model is. 1010 00:46:13,340 --> 00:46:14,880 So what is Ericsson Hotline? 1011 00:46:14,980 --> 00:46:15,420 What is it? 1012 00:46:16,300 --> 00:46:16,740 . 1013 00:46:17,220 --> 00:46:17,720 It was a mobile phone. 1014 00:46:19,040 --> 00:46:20,320 It was a mobile phone. 1015 00:46:21,080 --> 00:46:21,480 Ancient. 1016 00:46:21,580 --> 00:46:21,760 Ancient. 1017 00:46:21,760 --> 00:46:22,000 All right. 1018 00:46:22,020 --> 00:46:24,040 I think the gentleman, I think the gentleman has it. 1019 00:46:24,500 --> 00:46:25,140 All right. 1020 00:46:25,140 --> 00:46:26,540 It is a very ancient mobile phone. 1021 00:46:26,640 --> 00:46:27,560 It's Ollie's kind of joke. 1022 00:46:27,640 --> 00:46:28,880 But all right. 1023 00:46:31,580 --> 00:46:32,620 So very good. 1024 00:46:33,780 --> 00:46:34,380 All right. 1025 00:46:35,780 --> 00:46:37,500 Who knows what caption goes with this? 1026 00:46:37,540 --> 00:46:38,320 Congratulations, sir. 1027 00:46:39,060 --> 00:46:39,460 . 1028 00:46:40,080 --> 00:46:40,760 Come on. 1029 00:46:40,920 --> 00:46:42,000 Someone remember this. 1030 00:46:42,060 --> 00:46:42,280 This is. 1031 00:46:42,380 --> 00:46:42,760 . 1032 00:46:42,760 --> 00:46:43,180 Pullman's Palm. 1033 00:46:43,640 --> 00:46:44,160 Pullman's Palm. 1034 00:46:44,240 --> 00:46:44,440 Close. 1035 00:46:44,620 --> 00:46:45,020 Close. 1036 00:46:45,220 --> 00:46:45,620 . 1037 00:46:46,320 --> 00:46:46,720 Pullman's Palm. 1038 00:46:46,720 --> 00:46:47,520 Redneck PDA. 1039 00:46:47,940 --> 00:46:48,260 Yes. 1040 00:46:48,680 --> 00:46:49,000 Yeah. 1041 00:46:49,020 --> 00:46:50,240 So that's the redneck PDA. 1042 00:46:50,720 --> 00:46:51,040 . 1043 00:46:51,840 --> 00:46:55,320 This, by the way, will not be in the official presentation if ever I put it in there. 1044 00:46:56,120 --> 00:46:56,440 . 1045 00:46:56,440 --> 00:46:56,920 All right. 1046 00:46:56,980 --> 00:46:58,620 Let's briefly talk about the future. 1047 00:47:00,180 --> 00:47:05,860 By the way, if anybody works for Palm here, I would love to get in on the beta trials for the new Treo 600. 1048 00:47:06,460 --> 00:47:06,920 Thank you. 1049 00:47:07,600 --> 00:47:07,920 . 1050 00:47:09,300 --> 00:47:10,680 So the idea here, NASL scanning. 1051 00:47:10,840 --> 00:47:11,940 You saw the checkbox. 1052 00:47:12,020 --> 00:47:12,700 You know, why do it? 1053 00:47:13,080 --> 00:47:16,180 NASL, for those of you who don't know, is the NASA's attack simulation language. 1054 00:47:16,180 --> 00:47:21,700 It's what's used to write about 95% of the NASL scripts. 1055 00:47:23,960 --> 00:47:26,360 Basically, if you look at NASL in Pocket C, there's a lot of similarity. 1056 00:47:27,020 --> 00:47:29,420 It's another interpreted C-like languages. 1057 00:47:30,740 --> 00:47:37,100 And one thing I'm looking at is to see whether it would be possible to write a translator that would translate the NASL into Pocket C. 1058 00:47:37,540 --> 00:47:38,860 And, yep, we're done. 1059 00:47:40,320 --> 00:47:44,660 NASL into Pocket C and then run it on Austin. 1060 00:47:44,800 --> 00:47:45,640 So that would be kind of cool. 1061 00:47:45,640 --> 00:47:47,160 Other ideas for features. 1062 00:47:47,320 --> 00:47:52,080 I think we could create custom IP packets, given the fact that we can do raw IP. 1063 00:47:52,760 --> 00:47:55,020 And there are a bunch of other things, other support. 1064 00:47:55,260 --> 00:47:57,560 If you guys have suggestions, you can e-mail them to me. 1065 00:47:58,900 --> 00:48:00,220 So thumbs up, thumbs down. 1066 00:48:00,280 --> 00:48:01,340 Did we achieve the goals? 1067 00:48:03,040 --> 00:48:03,400 Yes? 1068 00:48:05,440 --> 00:48:05,800 Yeah. 1069 00:48:05,900 --> 00:48:06,160 Okay. 1070 00:48:06,280 --> 00:48:07,080 You don't count, Fred. 1071 00:48:07,300 --> 00:48:08,320 Fred's a colleague of mine. 1072 00:48:08,420 --> 00:48:09,180 He's being difficult. 1073 00:48:09,680 --> 00:48:10,220 All right. 1074 00:48:10,280 --> 00:48:11,060 Well, thanks for listening. 1075 00:48:11,880 --> 00:48:13,040 The URL is down there. 1076 00:48:13,080 --> 00:48:14,480 You can just grab it from the tool section. 1077 00:48:14,480 --> 00:48:17,880 And if you have any questions, since we're out of time, just come find me. 1078 00:48:18,440 --> 00:48:21,180 I may not hang out at the pool, but I'm here the rest of the DEF CON. 1079 00:48:21,680 --> 00:48:22,140 Thanks a lot. 1080 00:48:24,760 --> 00:48:25,040 Thanks.