The American Pronunciation Guide Presents ''How to Pronounce Okay'' Entered and sat down, so we're going to get going. Guys at the back, can you hear me okay? Come on. No? Alright, what if I speak like this? Really? That loud? Still can't hear me? Higher? Okay. Let's move the microphone now. So, if I speak like this, can you hear me okay? Yes. Just about, huh? Alright, well I'll try and remember to speak loud. If I stray into my old habits of speaking lower, just, you know, tell me to raise the sound, the volume. I don't know where to put this so that we don't get the feedback. Welcome to Hacking from the Palm of Your Hand. As you can tell from the title, this is all about palms. Too many mics. My name is Paul Klipp. I'm a consultant at Aztec. I've been there for about a year. Before that, I used to work in a system integration firm, both building online systems and then securing them. So, this presentation is part, hey, here are some of the questions. Some of the core things that are already there for the Palm platform related to hacking and also part tool release and a little bit of ideas about the future, about, you know, how the tool can be enhanced. So, before we start, let's do a quick poll. How many people have PDAs in the audience? Wow. Okay. How many people have Palm pilots or Palm OS-based PDAs? I will not move close to the desk and try not to fall off backstage either. Of those Palm-based devices, how many of them have wireless or network capability? You know, 802.11. Wow. Okay. Quite a few. Cool. So, we'll get started. This is the agenda. Quick talk about goals and we're going to really talk about past, present, and future. Past meaning... Thank you. Past meaning some of the tools that have been developed recently or not so recently that... that basically have to do with hacking and security. Present is all about Austin. Austin is a vulnerability scanner that we'll be talking about in some detail about how it was built, some of the design criteria, what it can do. We'll show some demos. And then future, just ideas on where to go with it. Okay? So, quick goals. Obviously, a review of Palm as a hacking platform. We'll walk through, you know, what it... what it takes to build a Palm-based vulnerability scanner, you know, or at least one way to do it, right? Because there are lots of different ways. I'll move back again. Obviously, one of the goals is to release a tool to the public. And finally, the obligatory have fun. So, let's start with the past. All right. Oh, we have a trivia question. Who knows what this... what the first Palm pilot was called? 1,000. 1,000. 1,000. Yes. And? How much... How much memory did it have? 128k. 128k? 512k. Well, I've... Yeah. I... 512 is... 512 is what I've seen, but I think 128 was... was before that. So, yeah. A long time ago. Who had a Pilot 1000? Wow. Some diehards. Who still has a Pilot 1000? All right. Two people here. So, let's keep going. So... The Palm platform has really been in transition. I think a lot of people know this. I'm not going to spend much time. You've got the old and the new, right? The old is all based on the 68,000 core processors. They call it the Dragon Ball processor. It's basically the 68,000 plus a bunch of additional circuits to basically give you a small... make it possible for you to build a small form factor computer. You can see the speeds, et cetera. Sometimes you get color screens, sometimes you don't. Most of them, or all of them, will have either serial or USB and infrared. And, really, you're looking at Palm OS 4 and below. 4 is really the transitional OS. Palm basically said, if your app runs on 4, we'll make sure it runs on 5. 5 and beyond, 6 will be, I think, released this year or is in the works at least, if not this year, early next year, all running on ARM processor. So, I don't know what the max speed is. These things go very high. As far as I can see from some of the iPacks that use them as well. So, this is a RISC processor. Obviously, a lot faster. You basically get more RAM, better screens, color, USB, IR, expansion slots. Some of the older Palms had them, too. Compact flash, SDIO. For this presentation, we're going to be focusing on the old stuff. Two reasons for that. One, there's tons of old stuff out there. Way more than any Palm OS 5. I don't have any Palm pilots or Palm devices. And the other reason is I don't have an OS 5 Palm device. And so, I kind of developed it on the platform I have. Why don't we talk a little bit about security tools. 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. This is basically, actually, how many people know about this? Okay. So, maybe about 20%. This is an emulator for the 68,000 based Palm OSes. You basically, it's the shell. It's the hardware. It emulates the hardware. You download ROMs. You can get them from Palm for free. You can sign up as a developer. You can get them from Handspring, as well. You basically download the emulator, download the ROMs, put the two together, and you have a Palm development environment. It's way faster developing on this than having to download stuff to your Palm. Try it out, and then, you know, make changes. You can have skins for it. So, this is actually the skin for the Treo 300, which is the device I have. It is the third generation Treo. I like it a lot, except from a manufacturing perspective, it's not as reliable as you'd want it to be. 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. I can use it as a modem. Maybe get 80K a second. So, it's not bad from a cell phone. Let's go back to security tools. Password generators. There are a bunch of password generators out there. Two I find kind of fun. One is called PassGen. I'm not going to show you all these tools, but they're kind of fun. If you click on default, well, basically, you know, you give it valid characters and give it different options. You can generate. It will generate your passwords. If ever you want to have a password, you can type with your left hand only. You click left. And it only uses the characters from the left hand side of the keyboard or the right hand side of the keyboard. So, if you need, you know, if you're looking for that really hard to crack password, this is kind of interesting. The other one, Passphrase, basically comes up with random words that you can start to string together to build a passphrase. 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. There's no memory protection, whatever. It's a copy bit that is easy to flip. Well, we'll show you. We'll show that very briefly. If you want to encrypt something, CryptoPad is a replacement from the MemoPad. It's a very, very good program. It's up on SourceForge, which tells you that it's free. Most of these programs are either free or shareware. Secret is another place that will, another basically encrypted MemoPad. 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. There are a bunch of password crackers that have been written by some of the AdState guys. One was to crack the Cisco passwords. Another one is a tool called NotSync. It's kind of funny because there's actually a development environment, I think, called NotSync now. Basically, what NotSync does, not a very nice tool, but you really have to work at it to get somebody's password with it. What you have to do is you start NotSync, and then you say to someone, Hey, Bob. Would you mind starting a network? Would you mind starting an infrared hot sync and just point it at my pilot? If Bob does that, then the first thing that gets sent over is the lock password, the password that you can set to basically secure some of your records on the Palm. Up to Palm OS 4, it was easily crackable. If you're in need of fun, you can do this. I did this. I forewarned the gentleman, and I told him, Hey, let's try it out. He's a security guy. We got his password. His comment was, Oh, crap. I guess I need to change my Windows password as well now. Don't use the same passwords. Not a good idea. Plus, I mean, he must have been like, If they're like my Windows passwords, they're long, right? Oh, crap. The time I password every time I want to see a record or look up a phone number. Another thing, more dialer, TBA. That's actually pretty neat. It was written by a gentleman called Kingpin. He used to work at AdStake. Very, very well versed in the area of handheld devices. This is actually a complete wall dialer. You can basically configure it. You can give it prefixes, masks, and start time, end times, all sorts of stuff. I haven't tried it with my Treo, but theoretically, it should actually work. This is actually maybe a really small wall dialing platform. All right. Enough about security tools. Communication tools. I'm not going to go through all of these. Telnet. Telnet is useful not just for telnetting to hosts, but also by a serial port. If ever you happen to be in a hosting facility and you have a serial cable with you and you plug it in, you plug one end into your palm, the other end into a, let's say, Cisco device, you can maybe access console that way. SSH is available. Freeware, only V1, which is kind of sad. I believe there is a commercial version by F-Secure that does V2. Web and mail. Again, this is all free. Eudora has a very nice suite. We'll see Eudora Web briefly in action. They're all free. The nice thing about Eudora Web is when you're... A lot of the browsers on the palm basically go through a proxy. The proxy reformats the content and everything. Eudora Web is a text-only browser, and it goes directly. It uses no proxy. It goes right to the source, so you see exactly what kind of HTML comes back. When you're doing tests and things, that's pretty useful. Mergic Ping is actually pretty cool. It's a ping utility that has a ton of options. You can specify retries, timeouts, the contents of the ping packages, whether you want to flood ping, which I'm not quite sure on a device with this amount of bandwidth what flood ping really means, but you can. You can try. FTP exists also. There's a bunch of infrared tools as well, like an infrared monitor. If you believe that some evil agency is trying to monitor you, unfortunately, as you can tell, this digital or virtual palm doesn't really have an IR port, but basically what it will do is it will tell you how much IR is coming in. If you believe someone is trying to monitor or emit infrared, this is a tool to use. The last one on the list is Omni Remote, which is a commercial tool, but it was featured a while back because people were using it to basically record the unlock sequence on car keys. A lot of car keys work in radio frequency. Some of them work in IR. What people would do is they'd just be standing around your car with a Palm Pilot pointing at your key or surreptitiously record that. Apparently, on some models, I'm guessing it must have been older models of IR, right? Because typically these codes change every time you use them. You could actually replay it, so you could steal cars with your Palm Pilot. Not a good thing to do. And finally, Palm Czar. Anybody uses this? Good, I made that one up. But it sounds good, doesn't it? So if you see it, you heard it here first. And you can probably download one MP3 before your palm fills up. All right. I'm moving rather quickly because there's a lot of stuff to go through. Dev tools. I'm a big fan of reverse Polish notation, so I like LPN. It's shareware, but it's cool. Long time is actually a neat little tool. I often find myself looking at logs with Unix time in it, and this is a very nice tool. I can just plug in a Unix time or say, hey, what day are we today? What Unix time are we today? And so it'll calculate stuff for me, just small stuff, but it comes in handy. Files. Oops, I should do this. Files is actually a really cool free program. I can find it here. There we go. And it does a lot of things. So you can basically view all the files that are on your palm, I should say. And let's take the Austin Network Library. You can look at details. You can modify things like the creator ID, which is the unique ID for the library. You can set attributes, take away attributes. You see this copy protect. If this is set, Palm OS is programmed not to allow you to beam anything. So if you see files like this, you can easily unprotect them. Honestly, it's been a long time since I saw anybody still use that because I think a lot of people know that it's really, like I said, it's not quite the DRM platform of the future. The cool thing about it is that it also has an editor, right? So you can view. You've got a hex editor and you can view. You can make modifications to stuff. So now we're starting to get into more of the hacking stuff where if you're looking at files and you want to make changes, this is one way to do it. Right there, you can go in, make whatever changes, see what happens. The next tool that we have, Resource Edit, is another way. The way Palm applications work is, a Palm file is actually called a database. And inside that database, there are multiple resources. Some are code, some are text, kind of like a lot of executables. So what Resource Edit does is it allows you to edit resources. So if we take, I don't know, let's take, let's try Datebook. So we open Datebook. You can see all the different resources it has. See Mbar? That's a menu bar. So we can open that. And we can see that the menu bar has three different kind of menus. You can open that. And you can see what menus there are. And you can change them. So obviously if you're in, I probably wouldn't change Appointment because you're looking at a ROM application right now. But you can change a lot of things. The cool thing about Resource Edit is that it will allow you to edit icons, like bitmaps and stuff. And I can find, oh, here we go. Why don't we look at something. We have Disassembler. Which is kind of cool, right? So you're on your palm. You're like, whoa, I think I know what this program is doing. Or, damn it, I want infinite lives in this game. So you fire up Resource Edit. You go look at the code. And you think, ah, that's it. It's a branch not equal. Usually it's that. You've got to change a branch. You've got to basically get rid of a test or jump over a test. So you think you've found it. Now, here the issue is you have to know how to assemble 68,000 in your head. Well, maybe, actually. We'll see another tool that might help us there. But if you did know the opcode, you go back to Files. You go patch the binary. And then you get to play your game until the batteries run out. So, very cool tool. This is shareware. Files is freeware. I think this is like 15 bucks. So, very, very neat tool. The last kind of, I think, the tour de force of, you know, dev tools and kind of hackerish stuff on the palm is Onboard C. Onboard C is like a complete C development environment that runs on the palm. It's really impressive stuff. It's not completely, you know, NCC. There are a few restrictions. But literally, you are coding C. So, I had it create like a hello world. And I called it hello world dot C. And it appended a dot C to it. So, that we can do. We can go to edit. Oh, no. We don't want to go to resource editor. Sorry. We, let me go back to Onboard C. What I really want to do is just edit the code. There we go. So, this is the editor that comes with it. Also freeware source edit. And you can see this is, hopefully if you can read this from the back. Can you guys read this all the way from the back? Yeah? Oh, okay. That's good. So, here it is. Here's the application, right? Hello world dot C code. You could compile it on your desktop. You can do it right there on the palm. So, if we go back to Onboard C. Oops, sorry. If we go back to Onboard C. And we click on hello world. And we say build. Here we go. Building header. Compiling. Here we go. It built. And we can go to unfiled. See if we have an application. Yes. Hello world dot C. Here we go. That's the application we just built. So, you can literally develop C code on your palm. In my opinion, you've got to have a masochistic streak to do that. Because if you code like I do, which is you make mistakes, then you're going to be crashing your palm all over the place. Because this is not a very forgiving environment, right? You have bus errors and all sorts of stuff. But it's still very cool. Yes, question? How bad is your time in the MEA? Oh, well, on the MEA you're not so much a masochist, but you're really looking for the difficult way to do it. Because what you do on the, instead of using the emulator, we'll actually talk about the tools development environment on the PC. And you develop them on the PC and just upload it to the emulator and then run it there. It would be less painful to do it on the emulator, but not recommended. But the emulator is awesome. And interestingly, as a side note, the emulator doesn't have an equivalent in OS5. In OS5 they have what they call is a simulator. And what they've done is they've compiled OS5 into native x86 code. I believe they've done it for the PowerPC as well, so you can run it on Mac OS. And the reason I'm guessing they've done that is it would have been way too much overhead to try and emulate a device that is running way faster than the old palms were, right? Because now you've got an ARM chip that's running at maybe 400 megahertz and it's expecting to run at that speed. And unless you have a really powerful PC, it's not going to look that good. So anyway, OS5 has a simulator. But to all intents and purposes, pretty much the same thing. So quick tour of some of the cool applications, or at least the applications I think are cool, on the palm. I had a question here earlier about, can we get these slides? The question is yes, but I'm not quite sure how. DEF CON has a copy, and I'm hoping that they either go on a CD or on the website. If that doesn't happen, I will bundle them. Yeah, pretty much the same ones you see here with the actual release of the tool. And so in a few days, you'll be able to download them there. They'll be included with the distribution of the tool. Okay? And right at the end of the press, to make sure that you stay because I know you want this tool, there is the URL for the tool. So I'm going to go quickly over this interesting hardware, things you might want to have or use if you're writing stuff for Palm OS. And cool things that people have done, like putting pilots in robots and things like that. The keyboard is kind of neat. There have been a lot of these folding keyboards. This keyboard, I actually have one. It works fairly well. The nice thing about it is that it doesn't use a connector. It uses a little arm that swings up and talks to your infrared port. So it actually works for Pocket PCs and Palms and other devices as long as you have the driver. So if you buy a keyboard, you don't have to give it up once you decide to change PDAs. All right. I couldn't resist some comic relief. This isn't all Dilbert about the handwriting recognition of the Palm, the original Palms. So some of you who have learned graffiti and maybe write graffiti better than they write normal handwriting will appreciate this. Let's go on. Okay, present. All right. Another trivia question. How many Palm OS handhelds are in the market today? According to Palm. And I'm guessing what in the market means just sold, right? Since the beginning of time. I've got to believe some of them are. Sorry. Four million. I have four million. Do I hear more? Four million. Going once. Five million. You guys are way too low. Do I hear more? How much? 38 million. 38. Okay. That's too high. 24 is what they say, which is still pretty cool. So 24 million is what they claim. And I'm assuming they're counting. They're counting Palm OS devices, not just Palm handhelds, but Sony, Handspring, Handera, Kyocera, all the rest. So now we're going to talk about the Palm vulnerability scanner, right? So the first question you may ask is, why write it? Well, it's a good question. I mean, Palm isn't exactly a really powerful platform. So a couple answers. One, I thought it would be fun. Two, it's kind of the reverse Everest answer. It's like, why did you climb Everest? Because it was there? Well, I wrote this because nothing was there, or at least I don't know of any other scanners. Potentially, it could be useful if you're on the road, or in some cases, you'll see what you can do with it. 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. But you'll see. It's kind of cool. So what did I originally want to do? I wanted to do TCP UDP scanning. I wanted to support multiple hosts and ports, and do banner grabbing, and save results in some kind of reusable format. And if I can read the last text, yes, standalone. 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? Well, why not put a server out there somewhere and then write little client interfaces to it? Well, I wanted to have something that was real. It was just relying on the Palm and nothing else. So, and you ask, what about other scanners? Are you sure there are none? Not entirely, but other than a mention of an Nmap port for the Palm in 2000, someone was claiming to be working on it. I never saw anything released. So, of course, you know, a little different programs here, but that's about as close as I've seen. Anybody, will anybody gainsay that statement? Okay, so maybe I did do enough research. My goodness, I was happy that no one said, wait a minute, ISS has a Palm-based vulnerability scanner. So, if you're going to write something, right, you've got to choose development environment. There are tons of development environments for the Palm. Almost any language has been ported to the Palm in some form or fashion. You either develop it on the PC, on your Palm, on all the rest. It's all the, there's tons of stuff. So, I decided, well, I'm going to go for, what do I need, right? Technical features. Well, I want to leverage the Palm UI. I want to be responsive. I kind of want to be able to extend it. And I'd like to be able to develop it on the PC. I just don't want a language that forces me to develop on the Palm. It would be nice to be able to develop it on the Palm. And most important, I want to reuse other components, which really means I want to be lazy, right? Because if I can interface with something else that's already written, that's less work for me. So, you'll find that the reuse other components or the laziness factor will influence a lot of design decisions. So, anyway, look at that spinning. Finally, I chose Pocket C. I'll tell you why. So, Pocket C is like this interpreted C-like language. C-like is good, right? Because a lot of us program in C and it's pretty accessible. It does all the memory management for strings and stuff for you. It allows you to do multidimensional arrays. It's a little bit of a hack. You can do structs as well with a minor hack. It's reasonably fast. Developed on the Palm. It actually has a Palm development environment. Sorry, a PC development environment. And you can obviously do it on the Palm as well. And it's extensible. And you can see the Hello World, right? What's not to love in a language that makes Hello World look like a C program? Any Pocket PC programmers here? Anybody programmed in Pocket PC? Nobody? All right. Well, maybe that'll change. You can extend Pocket PC in a couple of ways. One is through just what they call the include files. You basically include .h files, but you put code in there. And you can create different modules, which is what we did for Austin. And you can also create native libraries, which you can interface to, which is also what we did. Must-have library for Pocket PC is called Pocket Toolbox. It basically allows you to access all the Palm OS GUI functions. So, that is a very, very key feature to be able to do. It has some database functions, graphic functions, a lot of stuff that I'm not using in this program. But a really useful tool. It's free as long as when you release a tool, you kind of let Joe know. You say, hey, Joe, I just released something. And you bundle, you know, you make sure that people know how to get to his site. So, you might want to, you might be wondering, well, you've been talking about Austin, right? What does Austin stand for? So, that's what it stands for officially. Unofficially, what it really stands for is, well, you know how in the Matrix 2, Trinity is hacking into the computers and stuff and choosing these cool SSH CRC vulnerabilities. Well, a friend of mine was talking and saying, well, it's a pity Austin Powers doesn't have anything, right? I mean, Austin Powers doesn't have anything. He doesn't get to, like, hack into networks and stuff. So, we're joking around about how it would be cool that Austin would say, Dr. Evil, beam me your contact info, baby. And while Dr. Evil was doing that, Austin was really scanning his network. So, unofficially, it's all named after Austin Powers. And I think Austin likes it. Yes, he likes it. Why don't we have a quick demo of Austin right now so you can kind of see how it works. And then we'll talk a little bit about the structure of the program, the architecture. So, here is Austin. And I will also, while we're talking, start up a... Anybody use VMware? Yeah, yeah. Very cool program, isn't it? VMware creates these little virtual computers inside your computer. And I happen to have one, which is a Windows 2K server, which I use for a bunch of things. So, I'm going to start one up, and that's actually what we're going to be scanning. What I'm also going to do with the Windows 2K server, because I don't really have very much listening on UDP and I want to do a UDP scan, I will use a Netcat listener that's just going to listen on a port. And when someone tries to read it, it's going to just send back some information. Okay, that way we'll actually get something. So, you guys want to see the command for Netcat? Or you don't care? I'm going to... Oh, okay. I had to let's see it. So, here, just so you can kind of see, I'm not quite cheating. Here is our little Windows 2K box. And here is my Netcat. So, we're listening on port 2000. All right? So, first thing to do is find the mouse. Move this out of the way. All right. So, the Austin interface. So, you can enter one or more hosts. I'm going to enter the IP address of our host here, 199.129. I believe I typed in correctly. If you want to put multiple hosts, you can, you know, put www.yahoo. You can, you know, have commas. If you want to use ranges, you can do that too. But we're not going to do that. For ports. You can basically specify them right here. There's another way to specify them. We'll talk about that later. I'm just going to toss in a few. Let's do 135 to 139 since it's in the Windows box. Let's do 443. And let's not forget 2000. Oops. 2000. All right. So, we're going to do UDP and TCP. And let's do a banner grab. All right. So, basically, what this will do is it's going to try and connect to these ports with UDP, TCP. And it's going to try and do a banner grab. Now, banner grab, you'll see in the preferences that you can specify the string it's going to send. Right now, by default, it sends an options HTTP command, which is kind of useful because a lot of things talk HTTP. And you might as well see what comes back. The options command basically tells you all the HTTP verbs. If the server supports it, it will tell you all the HTTP verbs that the server recognizes. Whoops. And that is the emulator context menu, which we don't really need. So, we hit. We start. Scan. And with a bit of luck, it says scanning. It's found 80 open, 135. That's trying 36, 37, 38, 39 is open as well, 443. And that's it. Okay. So, great. Scan is complete. Here is one of the first laziness principles in action. This little button here down at the bottom, which looks like a filing cabinet, goes to a program called PilotDB. PilotDB is a free GPL database. Which is what Austin writes its scans in. You'll see there are a couple other databases. We'll talk about those later. But the one thing you have to do is kind of rescan databases. And you can see there's a new database here. Unfortunately, there's a limitation with the pocket toolbox in the size of the actual database I can use. So, I put in a timestamp and then as much of the IP address as I can fit. And I need to ask Joe to extend it. So, if we click here, you can see. Okay. We found a port. Open port on 80. These are the open ones. So, here you can see all the different things we found. This is what gets logged. And right here is the banner. Okay. Microsoft IIS 5.0. And all the rest. Okay. So, if we scroll down here, we're actually seeing all the different open ports. You see no banner there. There's one byte banner that came back here. And then UDP 2000. We got a hello world back, which is what was in my file. So, that basically gives you the results. So, a couple reasons why using PilotDB. Well, obviously, one, it's great, right? As long as I write the results in PilotDB, I don't have to write an interface for you to access it. Plus, it's a database program, so you can search on things. And you can manipulate the columns and stuff to show different information. The other reason is. Once you sync this to your desktop, there are tools to convert these files into CSVs. So, once you have a common separated value file, you can do whatever you want with it. So, you can integrate that into other information. So, let's go back to port 80, right? We're like, oh, okay. Well, that's kind of interesting. We had here Microsoft IIS. So, let's go to another feature of Austin. Let's actually do a URL search. We're going to scan. So, we'll use the vulnerability database here. The vulnerability database is actually rather a grand term because it's really a URL scanning database. Typically, what you do is you'd fire off the whole thing, but just to show you different. We're going to select which test we want to do. If there's an IIS web server, we'll do this. Here is just a quick test to check whether debug.asp is there. You can see I haven't really used this checkbox. It's kind of there to say, well, if this is a DOS or a check that might DOS the server, at least let people know. Method, head or get, HTTP method to request the URL. Match, R colon colon basically says look for 200, right? Look for a return code of 200. And then here's what to say if there are issues. So, go further down, different vulnerabilities. And here's one on the infamous Unicode one. Here we're doing a get, and we're trying to match these characters inside the URL. Inside the results. So, what we'll do now is we've selected these. Why don't we just select port 80, which we know that's the web server. Let's forget about UDP right now. Let's click on URL scan. All right. So, it says scanning complete. And what we want to do is rescan databases. And nothing, right? It found nothing. So, that's kind of disappointing. So, we go back to Austin. We can enter the interactive mode. Like, I could have sworn that debug.asp was there. So, you can basically type in the URL. Or type in the IP address, I should say. Let me know if I make a mistake. It's kind of hard to see it from here. And let's actually verify that this, that the debug.asp is not there. So, http://1.1.1. Oops. Double return. All right. So, oh, thank you. Yeah. Good. I'm glad that you noticed. So, let's connect. Let's send. And, oh, we get a whole page back. And what do we get? We get a 404. All right. Now, I have a suspicion that instead of, instead of debug.asp, this might be an infamous, the infamous vulnerability debugging.text, which you guys may not have heard about, but is really bad. So, we'll see if we find that on the server. And we do a head. And, yes, we get a 200. This server, by the way, is one of the training servers that we use. It's got an application. I won't show it to you now, but it's got an application called AddStake Bovine Products. And it also has, of course, a file called debugging.text on it that explains to you SQL injection. So, since we know this, like, okay, let's disconnect. Let's go back to the database. We can do a quick modification here. Debug.asp can become debugging.text. And instead of doing head, we're going to do a get. And we're going to look for a colleague of mine, who I hope is not in the audience, otherwise he'll be upset with me. Look for his name. So, if we find a document written by Mr. Hawthorne, we're in trouble, right? So, we want to match on Hawthorne. And that's it. I'll leave that. Go back to Austin. You see that Austin remembers the settings you gave it. So, we'll run this again. And it's banner grabbing. Okay. And we re-scan databases. You always have to do that because... Oh, there we go. We have a word vulnerability. Cool. So, that kind of gives you a feel for Austin. What you can do now is, you can kind of... If you want to, if you want to see what the page looks like, you can grab the URL, copy it, and go to, let's say, our favorite program, Eudora Web. I haven't run this before, so we're going to agree to the license. Say, visit. And I will paste it in. And say, okay. And there we go. And that, actually, Eudora went and downloaded the information. You can see it's from Mr. Hawthorne. And it's a SQL injection demonstration. So, that's it. That is, in a nutshell, most of Austin. And now, let's get back to the press. All right. Yes. All right. So, very briefly, Austin architecture. You can kind of see how it's written. Obviously, Palm hardware, Palm OS. And... Then we've got Pocket C, which is a runtime, with two native libraries. I'm not going to spend much time on the blue stuff. That's written in Pocket C. I'm going to spend a little bit of time on the network library. Because even if you don't care about Austin, if you do want to develop stuff with Pocket C or network stuff, you can actually use the net library on your own and do a bunch of stuff with it. So, tools to develop Austin. We talked about the emulator. Pocket C desktop environment. PRC Tools is what includes all the GCC tools. Thank you. PRC Tools has GCC and a bunch of other tools to create Palm executables. All free. Palm SDK. And then the Pilot Resource Compiler is used to compile those little resource files that describe GUIs. So, the Palm OS network library is actually pretty cool. It's actually fairly comprehensive. It supports TCP, UDP. You can have raw sockets available as well. Some of the things that you can do. Some of the lessons learned. Close the sockets as soon as possible. The sockets, you know, you've got about six to play with. If you use up six sockets and you're not closing them, everything stops until some of those sockets get closed. So, make sure you close them all the time. And you do have a Berkeley interface into the network library calls. So, you can do socket and open and bind and all of these things. But using the actual Palm OS calls gives you a lot more flexibility. I'm going to skip over the native library. You can kind of see. This is an example of actual native C code. This is a quick example of what it would take to program ahead. So, just go to a web server. Ask for an IP address and port. Go to the web server. Connect. Actually, there's a mistake there. See, I'm connecting on port 80. But I should be connecting on the port that was specified. Write something. Read something. And close the socket. So, really simple code right now. Two. You don't have to write TCP code or network-based codes in Pocket C once you have the wonderful Austin Net Library. A lot of lessons learned about net libraries. It was about native libraries for the Pocket C. It was painful because there isn't much documentation. If you're going to be doing it, I suggest you download. By the way, Austin is GPL. So, feel free to download it. Look at the code. Use it. Make changes to it. And then, you know, tell everybody about the wonderful improvements you've made. So, you can definitely reuse the Austin Net Library. And make sure you look at the make file and stuff like that. Because it took me a while to get everything working correctly. And there really isn't much documentation. Especially around passing some of the more complex structures between Pocket C and C. Database access. We talked about that a little bit. We actually support two database formats. But is what I'd recommend. There are three types of databases we use. We use preferences, web volumes, and results. You've seen the web volumes. You've seen the results. Really, the other preferences. The preferences of Austin, I should say, are basically places where you can say, Okay, well this is the banner I want to use. And if you don't want to specify TCP ports, you can actually specify them here. If you leave the ports field blank, you can actually select different ports to check here. So if you're doing the same kind of scans all over the place, you can just create one entry here. Put in the ports you want. And then make sure it's selected. And that will get used. You can have banners and different banner entries and stuff like that. And then there are different, basically, preferences you can set. And each preference has a description. So if you're playing around with Austin, you can go in there and just see what it does and mess around. See what changes. It's very nice. I mean, you really get a lot of benefit from using this stuff. Because, hey, the whole database manager is there and I didn't have to do very much for it. Graphical user interfaces could be a complete talk in and of itself. So we're not going to go there. You can see, basically, I put in a little bit of how you would define one. You can see the different tags that you use. Like, hey, I want a button. And here's why I want it. And here's the ID. And in your code. In your event code. You basically wait for an event to happen. And when it does, you look at the ID and you can say, oh, someone clicked on scan. So that's basically how it happens. Schedule scanning. There are two buttons that I didn't really show in Austin. Schedule scan and NASL scan. NASL scan is future. It doesn't work. It's not enabled. It's a nice silhouette. Schedule scanning. Basically, Pockety will tell the pump to go to sleep and wake up at whatever intervals you set and then run the scan. 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. If you want to scan once a day for a week, you can just, you know, leave your pilot plugged in. And every day it will wake up and run a scan and then go back to sleep again. So tying it all together. Basically, if you want to create an application, this is typically what you do. You have source code and icons. And a creator ID. You have to register one from Palm. Otherwise, you know, you could have calls. You could have conflicts. And if people have multiple creator IDs, the Palm OS gets confused. So you get one from Palm. You run it through the Palm desktop, the Pockety desktop environment. That creates an executable. You take the resource compiler, the resource definitions. You run it through the resource compiler. That creates a file. You can combine that with a program called Par into a file called Austin. You could also bundle in the network library. I left everything split apart in the distribution so people can mess with different files, you know, more easily. But that's how you basically integrate everything. So very different, very different tack now. I'm going to talk to you about tools that a friend of mine has written. Who has a Sony Ericsson P800? Two people. All right. Oh, no, three people. Excellent. So some of you have it. A colleague of ours called Ollie Whitehouse, which is a very skilled security guy, knows a ton of stuff. Very good developer. He's written a bunch of different tools. So that's a little bit about the P800. Basically, it's a, you know, cell phone, GSM-based. Ollie lives in London, so he's all GSM. And runs the Symbian OS, right? So different tools he developed. One is NETSCAN, TCP-EDP port scanner. Kind of like, kind of a combination of, well, Austin is kind of a combination of that and mobile pen tester. So mobile pen tester is a little bit like Austin, although it's a little bit more powerful in some features. Can do NETSCAN, can do some PDA cat, which is like a net cat. And there you can see Ollie's hand playing with his phone. 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. All right. You can get them at the AtStake website. And you can see Ollie. If ever you meet Ollie, you can say, hi, Ollie. I saw you at DEF CON. And if you want to see Ollie in person, he is speaking at the Chaos Communication Camp in August. Anybody going to the Chaos Communication Camp? No. Well, that's a disappointment. All right. I have a trivia question for you. Who can tell me what that is? And the person who guesses what that is first gets a Compaq Speedpack cellular PC card free. No, no, no, no, no. AtStake employees may not reply. . Sorry, say it again. Ericsson Hotline. Ericsson Hotline. 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. But I don't know what the make and model is. So what is Ericsson Hotline? What is it? . It was a mobile phone. It was a mobile phone. Ancient. Ancient. All right. I think the gentleman, I think the gentleman has it. All right. It is a very ancient mobile phone. It's Ollie's kind of joke. But all right. So very good. All right. Who knows what caption goes with this? Congratulations, sir. . Come on. Someone remember this. This is. . Pullman's Palm. Pullman's Palm. Close. Close. . Pullman's Palm. Redneck PDA. Yes. Yeah. So that's the redneck PDA. . This, by the way, will not be in the official presentation if ever I put it in there. . All right. Let's briefly talk about the future. By the way, if anybody works for Palm here, I would love to get in on the beta trials for the new Treo 600. Thank you. . So the idea here, NASL scanning. You saw the checkbox. You know, why do it? NASL, for those of you who don't know, is the NASA's attack simulation language. It's what's used to write about 95% of the NASL scripts. Basically, if you look at NASL in Pocket C, there's a lot of similarity. It's another interpreted C-like languages. 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. And, yep, we're done. NASL into Pocket C and then run it on Austin. So that would be kind of cool. Other ideas for features. I think we could create custom IP packets, given the fact that we can do raw IP. And there are a bunch of other things, other support. If you guys have suggestions, you can e-mail them to me. So thumbs up, thumbs down. Did we achieve the goals? Yes? Yeah. Okay. You don't count, Fred. Fred's a colleague of mine. He's being difficult. All right. Well, thanks for listening. The URL is down there. You can just grab it from the tool section. And if you have any questions, since we're out of time, just come find me. I may not hang out at the pool, but I'm here the rest of the DEF CON. Thanks a lot. Thanks.