1 00:00:06,560 --> 00:00:12,640 We're on a time schedule, so I'm going to be taking you through this whirlwind style, 2 00:00:12,920 --> 00:00:19,060 so hold on to your butts. I've got about 30 seconds for each of these slides up until 3 00:00:19,060 --> 00:00:22,880 I get to the examples, which are the fun part. I really want to get to the fun part. 4 00:00:22,880 --> 00:00:32,220 So, louder. Is that better? All right. Okay, so anyway, my name is Johnny Long, and basically 5 00:00:32,220 --> 00:00:37,900 the subtitle of this is really about hacking using search engines, going into a search 6 00:00:37,900 --> 00:00:43,920 engine, finding information about a site that's exploitable or interesting, otherwise amusing. 7 00:00:44,560 --> 00:00:50,260 So, let's go ahead and get started. Maybe. 8 00:00:52,040 --> 00:00:52,560 Okay. 9 00:00:52,880 --> 00:00:55,500 And just some idea of what we're going to be talking about here. Some of the things 10 00:00:55,500 --> 00:01:01,360 that we're going to learn to do with Google is to speak like Lido hackers, you know, because 11 00:01:01,360 --> 00:01:06,120 everybody has to know how to do that. We're going to use Google as a transparent proxy 12 00:01:06,120 --> 00:01:10,940 server. We're going to use Google to sneak past site security. We're going to use Google 13 00:01:10,940 --> 00:01:17,000 to find development sites, and we're also going to use Google to find exploitable files 14 00:01:17,000 --> 00:01:22,740 on systems or directories on systems that fall into certain categories, and these categories 15 00:01:22,740 --> 00:01:22,860 are going to be the ones that we're going to use. So, let's get started. 16 00:01:22,880 --> 00:01:26,580 These are somewhat arbitrary, but based on the stuff that I've found, they fall into 17 00:01:27,220 --> 00:01:33,100 operating system vulnerabilities, web server vulnerabilities, sensitive data in files, 18 00:01:33,260 --> 00:01:37,200 and sensitive data in directories, and we're going to see examples of all that, and we'll 19 00:01:37,200 --> 00:01:39,080 talk briefly about automating the process. 20 00:01:41,540 --> 00:01:46,500 The reason I chose Google is pretty straightforward, but Google gives us a lot of options that some 21 00:01:46,500 --> 00:01:51,840 search engines don't. As an aside, Yahoo offers the same options because Yahoo is Google. 22 00:01:51,840 --> 00:01:56,280 For all intents and purposes, they use the same search engines, but basically, we need 23 00:01:56,280 --> 00:02:01,100 some advanced search options. We need some ways to narrow down our hits, because as you're 24 00:02:01,100 --> 00:02:03,880 going to see, some of the hits are going to give us too many results to be useful. 25 00:02:04,460 --> 00:02:10,900 We need to have a caching feature that shows us downed pages. We need an instant response. 26 00:02:11,060 --> 00:02:15,760 We need to get a response quickly for our automated tools to work. We need some translation 27 00:02:15,760 --> 00:02:20,820 features, translating documents back into HTML that you might not be able to read natively, 28 00:02:20,820 --> 00:02:21,820 like a PDF. 29 00:02:21,820 --> 00:02:27,140 PDFs or Excel files, that sort of thing, and also web news, image, and FTP searches, 30 00:02:27,960 --> 00:02:30,360 and Google offers all that and more. 31 00:02:31,220 --> 00:02:35,300 This is not a new thing. This isn't something that I came up with. This is a bug track post 32 00:02:35,300 --> 00:02:42,180 from about two years ago. A guy named Vincent G, however you say that. I'm not French. 33 00:02:42,520 --> 00:02:47,080 He came up with this very interesting idea of using Google to find cool stuff, and his 34 00:02:47,080 --> 00:02:48,600 post looked like this. 35 00:02:48,720 --> 00:02:51,140 Put in index of slash admin. 36 00:02:51,820 --> 00:02:55,280 First, you're going to want to go to Google to find sites that have admin directory listings 37 00:02:55,280 --> 00:03:00,260 out on the web. Pretty straightforward stuff. The only thing he specifically launched against 38 00:03:00,260 --> 00:03:04,620 Google is down there on the fourth example where he uses file type. He was actually 39 00:03:04,620 --> 00:03:06,140 going out against Excel files. 40 00:03:06,860 --> 00:03:14,400 Basically, what I've done is I've taken this and sort of run with it. First of all, this 41 00:03:14,400 --> 00:03:19,040 is very important for any self-respecting hacker, is to use Google in hacker speak. 42 00:03:19,040 --> 00:03:22,900 speak. So if you want to use Google in your native language, you have to go here and do 43 00:03:22,900 --> 00:03:30,780 your search. Sort of stupid, but you can't resist. There is this book that talks about 44 00:03:30,780 --> 00:03:36,060 Google hacking, even though I somewhat disagree with the title. If I had written the book, 45 00:03:36,100 --> 00:03:40,580 it wouldn't necessarily be the way it was. It'd be about real hacking. Then I'd be in 46 00:03:40,580 --> 00:03:48,180 trouble and I'd need a lawyer like Jennifer Granik. Is she here? Google is a proxy. This 47 00:03:48,180 --> 00:03:52,400 is kind of cool. Google offers a translation service, so you can go from English to French, 48 00:03:52,460 --> 00:03:57,040 French to English, Spanish, and all that stuff. What happens if you actually take that translation 49 00:03:57,040 --> 00:04:03,860 service and turn it back on itself? For example, here's how the normal translation looks. Translating 50 00:04:03,860 --> 00:04:09,480 the DEF CON page from English into Spanish gives us a page that looks like this. You 51 00:04:09,480 --> 00:04:14,140 can see everything is sort of in Spanish. The URLs that that gives you looks a little 52 00:04:14,140 --> 00:04:18,160 bit like this. The part that I'm going to bring your attention to is right at the bottom 53 00:04:18,180 --> 00:04:26,640 of the URL there, where we see lang pair equals EN pipe US. I'm sorry, EN ES. This is translating 54 00:04:26,640 --> 00:04:31,520 from English to Spanish. What happens if we turn the translation back on itself and translate 55 00:04:31,520 --> 00:04:36,720 from English to English? An interesting thing happens. Google does nothing with the page. 56 00:04:37,080 --> 00:04:41,580 It assumes you made some sort of mistake and just feeds the page back to you. The beauty 57 00:04:41,580 --> 00:04:47,100 is you just proxied that hit off of Google. You used Google as a proxy server. Google 58 00:04:47,100 --> 00:04:48,140 grabbed the page for you. 59 00:04:49,340 --> 00:04:55,100 Kind of neat. There's a couple places that you can go to get a nice little form to do 60 00:04:55,100 --> 00:05:00,980 this in an automated fashion. On Wox.org and also on my site, I've got a little box there 61 00:05:00,980 --> 00:05:07,180 so you can bounce off of a Google proxy to browse a site. It is transparent. Keep that 62 00:05:07,180 --> 00:05:11,200 in mind for all you proxy freaks out there. It's not going to anonymize you, but it's 63 00:05:11,200 --> 00:05:16,900 another step in the chain that could help anonymize you. Finding development sites. 64 00:05:16,900 --> 00:05:24,060 This is pretty straightforward. The idea is you want to find corporate web pages or interesting 65 00:05:24,060 --> 00:05:29,060 web pages that aren't where they're supposed to be. For example, an anonymous telephone 66 00:05:29,060 --> 00:05:38,220 company. Oops. Never mind. Verizon. Basically, this site right here is not on Verizon's web 67 00:05:38,220 --> 00:05:43,180 servers. It's on the developer's web servers. The web developers put this page together 68 00:05:43,180 --> 00:05:46,880 in order to sell it to Verizon and go, here's what your web page is going to look like. 69 00:05:46,900 --> 00:05:52,660 All the code is in there. As we can tell, not only do we find it from Google, we can 70 00:05:52,660 --> 00:05:57,400 crawl around that page where we actually found the development code. I actually used Photoshop 71 00:05:57,400 --> 00:06:03,940 on this one. Sorry. Crawl around with Google on the site where we actually found the development 72 00:06:03,940 --> 00:06:09,240 site, poke around long enough, and eventually you'll find PayDirt in most cases. In this 73 00:06:09,240 --> 00:06:16,680 case, PayDirt is the actual source code of the web page. The HTML, the JSP scripts, and 74 00:06:16,680 --> 00:06:16,880 the development code. 75 00:06:16,900 --> 00:06:21,200 The developers were kind enough to include it all in a tarball. You download the tarball, 76 00:06:21,860 --> 00:06:25,900 open up all the source, and basically you've got Verizon's web page. 77 00:06:28,860 --> 00:06:34,320 Bypassing authentication. Here's another cool Google trick. The idea is pretty straightforward. 78 00:06:34,600 --> 00:06:40,440 We got this company, thinice.com. I hope they're not actually here because it got fixed by 79 00:06:40,440 --> 00:06:46,260 itself. I really meant to call, but I sort of forgot. Stuff sort of happens that way. 80 00:06:46,260 --> 00:06:50,720 Anyway, thinice.com has this nice little authentication that comes up when you try 81 00:06:50,720 --> 00:06:58,360 to browse their web page. Using Google to actually search for information about thinice.com, 82 00:06:58,440 --> 00:07:02,600 we find some interesting links. This gives us an idea of what some of the hierarchy 83 00:07:02,600 --> 00:07:08,300 looks like on the page. We see a search PHP script and a member PHP script. Searching 84 00:07:08,300 --> 00:07:14,340 around a little more, we eventually get to a cached link of thinice.com. If we click 85 00:07:14,340 --> 00:07:15,240 on the cached link. 86 00:07:15,240 --> 00:07:22,180 It gives us what the web page looks like without authentication. Google actually got 87 00:07:22,180 --> 00:07:27,240 past the authentication mechanism. It's not really magic and Google doesn't put values 88 00:07:27,240 --> 00:07:32,200 in there and just try something randomly. The authentication mechanism was broken when 89 00:07:32,200 --> 00:07:37,300 Google crawled the site and cached it for us. What we're seeing is the results of that. 90 00:07:37,720 --> 00:07:44,460 Bottom line is, we're actually past the authentication and now we're seeing not only directories, 91 00:07:44,460 --> 00:07:45,220 but again, sources. 92 00:07:45,240 --> 00:07:49,120 The source code for the site. Again, this was another example where they were kind enough 93 00:07:49,120 --> 00:07:54,340 to include it all in a tarball we could download. This one is fixed. Those of you on the wireless 94 00:07:54,340 --> 00:07:55,180 network, be good. 95 00:07:59,100 --> 00:08:03,280 Some ideas about finding some files using Google. There's some things that we need to 96 00:08:03,280 --> 00:08:08,280 talk about. Basically, some search terms that are unique to Google. You can get information 97 00:08:08,280 --> 00:08:15,220 about those on this link, google.com slash APIs. To give you an idea of sort of how to 98 00:08:15,220 --> 00:08:19,860 do this, I'm going to show you how this works. A very simple search, like cd ls bash 99 00:08:19,860 --> 00:08:26,800 history ssh. It seems like disjointed terms, but anybody that's looked at bash history 100 00:08:26,800 --> 00:08:32,760 files knows cd ls ssh are commands that will show up in those history files. Let's 101 00:08:32,760 --> 00:08:38,500 do an interesting search. The end result of one of those searches is a live bash history 102 00:08:38,500 --> 00:08:43,060 file. This is the file that records commands when somebody's sitting at a command prompt. 103 00:08:43,820 --> 00:08:50,500 Why is it on the web? I have no clue, but that's not our problem. It's theirs. Because 104 00:08:50,500 --> 00:08:52,480 we're being good and we're not surfing there right now, right? 105 00:08:53,240 --> 00:08:57,620 Basically, here we go. We've got this guy. He's actually ssh-ing out to a few sites and 106 00:08:57,620 --> 00:09:04,540 telnet-ing out to a few sites. How's that for security? Running trace routes. To take 107 00:09:04,540 --> 00:09:07,880 this a little bit farther, don't just stick with the search results. Dig a little bit 108 00:09:07,880 --> 00:09:11,560 farther with the web server. You can find some more interesting stuff, like for example, 109 00:09:11,680 --> 00:09:13,040 this Nick FTP. 110 00:09:13,060 --> 00:09:19,240 Any file, which lists the firewall username and password that his FTP program uses to 111 00:09:19,240 --> 00:09:26,400 get out to the net. In addition, we've got his ssh-known-hosts file. Again, all found 112 00:09:26,400 --> 00:09:32,840 through Google. This shouldn't be on the web. We will talk more about that site. 113 00:09:33,920 --> 00:09:38,740 That was a simple search using disjointed words. A little more complex is using phrases. 114 00:09:39,080 --> 00:09:43,040 The beauty is in using phrases that are unique, that are going to get us interesting results. 115 00:09:43,060 --> 00:09:48,960 Like this one. Error occurred while processing request. That sounds pretty benign. 116 00:09:49,200 --> 00:09:54,100 It's actually a cold fusion error message that generates instead of the pretty HTML 117 00:09:54,100 --> 00:09:58,540 that you're used to seeing on a site. The cold fusion error message itself actually 118 00:09:58,540 --> 00:10:05,280 has interesting information, like the real host full path where the web server is sitting. 119 00:10:05,660 --> 00:10:09,160 Any idea what the operating system is of this particular web server? 120 00:10:10,660 --> 00:10:11,300 Yes. 121 00:10:11,300 --> 00:10:13,140 You all laughed. That was correct. 122 00:10:16,180 --> 00:10:19,860 Now, here's just a hacker's dream, and this one's just too good to be true. 123 00:10:20,260 --> 00:10:24,420 Let's do a search for enter unix command, in quotes. 124 00:10:25,200 --> 00:10:30,300 I know. You think I'm kidding, right? I'm not. 125 00:10:31,880 --> 00:10:36,300 Notice I typed in uname into enter unix command, and it gave me the result. 126 00:10:36,680 --> 00:10:41,280 Somebody actually put on the web a CGI interface that lets you type in unix commands. 127 00:10:41,300 --> 00:10:44,480 and get results. How convenient is this? 128 00:10:46,180 --> 00:10:47,500 This could come in handy. 129 00:10:48,940 --> 00:10:51,940 All right. Some special characters that you should probably be aware of. 130 00:10:53,260 --> 00:10:57,480 Plus and minus, pretty straightforward. Ands and nots, just like other search engines. 131 00:10:57,920 --> 00:11:02,480 A period is a wild card of sorts. I haven't completely figured it out, but most of the time 132 00:11:02,480 --> 00:11:07,940 you can use a period like you'd use an asterisk, or I should say a question mark in Unix, 133 00:11:08,040 --> 00:11:08,980 meaning any character. 134 00:11:09,940 --> 00:11:15,060 The dash, when it's in quotes, doesn't necessarily mean not, like other search engines. 135 00:11:15,280 --> 00:11:17,800 What it can mean when it's in quotes is a space. 136 00:11:18,220 --> 00:11:22,260 This is all very confusing. I think they did this to confuse us, so we wouldn't figure this out. 137 00:11:22,920 --> 00:11:23,720 But we did. 138 00:11:25,060 --> 00:11:30,860 To give you an example, here's a simple example of a specific Google search. 139 00:11:31,160 --> 00:11:33,340 Using specific Google keywords. 140 00:11:33,680 --> 00:11:35,780 The keyword here is site. 141 00:11:35,980 --> 00:11:38,960 This says, only search sites that end in .gov. 142 00:11:38,980 --> 00:11:41,260 And contain the word boobs. 143 00:11:42,760 --> 00:11:45,540 Get your mind out of the gutter. I was talking about politicians. 144 00:11:47,280 --> 00:11:48,800 Check out the results. 145 00:11:49,420 --> 00:11:56,260 Here we have a gov site, ncwg.cap.gov, talking about inside for access only natural boobs. 146 00:11:56,860 --> 00:11:58,480 Those aren't politicians, folks. 147 00:11:59,680 --> 00:12:04,520 Or, for example, if you want to use site to do crawling, this doesn't mean DEF CON is vulnerable. 148 00:12:04,780 --> 00:12:05,440 It's just an example. 149 00:12:05,820 --> 00:12:07,140 Use the site keyword. 150 00:12:07,140 --> 00:12:09,140 So we're going to look at DEFCON.org. 151 00:12:09,280 --> 00:12:12,120 And we're going to search DEFCON.org for the word DEFCON. 152 00:12:12,600 --> 00:12:16,800 The results that we get back give us an idea of how DEFCON.org is mapped out. 153 00:12:16,940 --> 00:12:19,940 It gives us an idea of the directories, where some of the files are. 154 00:12:20,440 --> 00:12:21,600 It can be pretty handy. 155 00:12:24,240 --> 00:12:29,580 Another thing to do is use a site keyword with a common file extension. 156 00:12:29,820 --> 00:12:31,420 In this case, we went after a GIF. 157 00:12:32,280 --> 00:12:36,280 So site colon .gov space GIF. 158 00:12:36,280 --> 00:12:41,040 GIF will give you sites that actually have directory listings where there are GIF files. 159 00:12:41,500 --> 00:12:44,940 When you get directory listings, those are good things because you can sort of crawl around. 160 00:12:48,120 --> 00:12:49,000 Date searching. 161 00:12:49,240 --> 00:12:50,840 I'm going to skip this because we're short on time. 162 00:12:51,760 --> 00:12:55,740 In title, however, is another Google-specific search, which is very important. 163 00:12:56,060 --> 00:13:00,520 This says, look for the following word in the title of the web page. 164 00:13:01,640 --> 00:13:04,820 This says, don't look for the word actually down in the text. 165 00:13:04,820 --> 00:13:06,600 This is very important. 166 00:13:06,880 --> 00:13:11,520 For example, in URL is basically the same thing, but it's in the URL. 167 00:13:11,740 --> 00:13:14,520 Search for a specific word inside the URL. 168 00:13:14,880 --> 00:13:19,020 For example, in URL admin gives us one of many hits. 169 00:13:19,200 --> 00:13:28,520 This one shows an actual IP map of a very prominent university and how all their workstations are laid out. 170 00:13:28,700 --> 00:13:33,220 The second one, in URL admin, says find the word admin in the URL, 171 00:13:33,220 --> 00:13:39,500 but also find the words users and mbox on that page in addition to the URL. 172 00:13:39,740 --> 00:13:43,060 Here we actually have a mailbox file for an administrator on a site. 173 00:13:43,700 --> 00:13:47,280 And the third one, in URL admin with users and passwords. 174 00:13:48,060 --> 00:13:49,860 That one's pretty killer. 175 00:13:50,060 --> 00:13:52,740 There we actually have usernames and encrypted passwords. 176 00:13:55,260 --> 00:13:58,880 We're going to have a lot more examples, so that's why I'm hurrying to get to the good stuff. 177 00:13:59,400 --> 00:14:00,640 Here's an interesting one. 178 00:14:00,760 --> 00:14:01,880 File type XLS. 179 00:14:01,880 --> 00:14:07,600 Let's find Excel spreadsheets that have the words checking account and credit card in them. 180 00:14:08,580 --> 00:14:12,100 I mean, this isn't rocket science, folks, but here we go. 181 00:14:12,220 --> 00:14:15,360 Credit card balance information, deposits, withdrawals. 182 00:14:15,780 --> 00:14:18,840 Actually, the numbers were in there, but I have to do some editing. 183 00:14:21,160 --> 00:14:28,460 An interesting side effect to all of this is not just looking for stuff that's dropped dead. 184 00:14:28,540 --> 00:14:30,080 Oh, look what I found on this page. 185 00:14:30,080 --> 00:14:34,480 But it's sort of harvesting some of the data and using it creatively. 186 00:14:34,680 --> 00:14:41,420 For example, we can find operating system and web server versions about our targets using Google. 187 00:14:42,760 --> 00:14:47,320 Here's a search in title, welcome to Windows 2000 internet services. 188 00:14:48,160 --> 00:14:52,200 Windows 2000 puts that for you in the title of the default web page. 189 00:14:52,640 --> 00:14:58,860 So if you search for that, you're going to find sites that are actually running a default web page on a Windows 2000 box. 190 00:15:00,080 --> 00:15:00,800 Yes, they are out there. 191 00:15:02,440 --> 00:15:03,740 Or under construction. 192 00:15:04,780 --> 00:15:09,380 Whatever you do, don't type under construction into Google just the way it is because you'll just get dumped on. 193 00:15:09,600 --> 00:15:10,440 It's just going to be ugly. 194 00:15:10,960 --> 00:15:16,420 But if you look for under construction in the title and the phrase does not currently have, 195 00:15:17,100 --> 00:15:20,380 see the phrase in there, does not currently have a default page, 196 00:15:20,660 --> 00:15:23,740 what you're getting is another Windows-based default server. 197 00:15:24,220 --> 00:15:30,060 It looks like a normal under construction page, but Microsoft in their infinite wisdom changed the text a little bit. 198 00:15:30,080 --> 00:15:31,580 Maybe it was a copyright thing or something. 199 00:15:32,040 --> 00:15:33,900 We can actually find servers this way. 200 00:15:34,540 --> 00:15:35,380 Or how about this? 201 00:15:35,580 --> 00:15:38,280 In title, welcome to IIS 4.0. 202 00:15:39,660 --> 00:15:40,980 Where's that Zone H guy? 203 00:15:42,200 --> 00:15:45,580 I'm going to talk to him because this is even easier than defacing. 204 00:15:47,200 --> 00:15:48,360 IIS 4.0. 205 00:15:49,200 --> 00:15:49,680 Scary. 206 00:15:50,000 --> 00:15:51,520 At least they installed the option pack, right? 207 00:15:54,020 --> 00:15:56,240 Generally, OpenBSD and Apache is a good combination. 208 00:15:56,960 --> 00:15:58,300 Scalp, forgot about that one. 209 00:15:58,440 --> 00:16:00,060 But it was vulnerable for a little bit. 210 00:16:00,080 --> 00:16:06,700 Well, let's say you went out there and you actually found Apache OpenBSD servers when the scalp exploit was released. 211 00:16:07,380 --> 00:16:10,960 Not necessarily a good thing to make public if there's a vulnerability. 212 00:16:11,580 --> 00:16:15,540 And everybody loves these little powered by things that they put at the bottom of their site. 213 00:16:15,780 --> 00:16:16,680 So we use them. 214 00:16:18,580 --> 00:16:24,220 Getting a little more into the weeds, since there's so many flavors of different types of web servers, especially Apache, 215 00:16:24,760 --> 00:16:28,700 here's a way that you can search for Apache by specific versions, 216 00:16:28,700 --> 00:16:31,360 which is very important if you're looking to exploit the site. 217 00:16:31,500 --> 00:16:33,000 For example, Apache 1.2.6. 218 00:16:33,520 --> 00:16:36,760 Look for in title, test page for Apache, and it worked. 219 00:16:37,440 --> 00:16:39,800 They put that little thing there that says it worked. 220 00:16:39,920 --> 00:16:40,980 That's their default page. 221 00:16:41,240 --> 00:16:44,100 You find that page, you found an Apache 1.2.6 server. 222 00:16:45,040 --> 00:16:47,520 How about Apache 1.3.0 to 1.3.9? 223 00:16:47,940 --> 00:16:49,580 They changed the page a little bit. 224 00:16:50,140 --> 00:16:50,900 It worked. 225 00:16:51,000 --> 00:16:52,580 The Apache web server is installed. 226 00:16:52,880 --> 00:16:53,940 It was very creative. 227 00:16:54,180 --> 00:16:56,080 Helps us narrow down the version number. 228 00:16:56,820 --> 00:16:58,560 1.3.0 to 1.3.9. 229 00:16:58,700 --> 00:17:01,400 How about 1.3.11 to 1.3.26? 230 00:17:02,620 --> 00:17:05,280 Seeing this instead of the web page you expected. 231 00:17:06,080 --> 00:17:08,840 Again, default Apache install boxes. 232 00:17:09,440 --> 00:17:14,660 These people were smart enough to install Apache, but weren't smart enough to change the default page. 233 00:17:15,420 --> 00:17:17,940 What are the odds that they weren't smart enough to lock it down? 234 00:17:20,940 --> 00:17:25,580 Apache 2.0, we get a little more towards the top of the iceberg here as far as security. 235 00:17:26,020 --> 00:17:28,300 But again, the default web page. 236 00:17:28,300 --> 00:17:29,640 Makes it easier to search for. 237 00:17:32,800 --> 00:17:37,160 Another way that we can actually get this information is at the bottom of directory listings. 238 00:17:37,700 --> 00:17:42,380 I'm sure you've run into in your surfing web pages that the default page is missing. 239 00:17:42,440 --> 00:17:46,200 You get this or the index file is missing and you get a directory listing. 240 00:17:46,500 --> 00:17:49,520 At the bottom of the directory listing, the server throws out its tag. 241 00:17:49,780 --> 00:17:51,720 Let's use Google to search for that tag. 242 00:17:52,700 --> 00:17:54,720 There it is in black and white. 243 00:17:54,740 --> 00:17:56,380 Apache 1.3.11 server. 244 00:17:56,700 --> 00:17:58,020 Gives us the version number. 245 00:17:58,740 --> 00:18:04,520 According to Google, here's some statistics on how many servers are actually running these specific versions of Apache. 246 00:18:04,900 --> 00:18:08,480 And have open directory listings for you to browse. 247 00:18:08,940 --> 00:18:12,040 Sorry, I formatted it as a number because it looks more impressive with more zeros. 248 00:18:16,160 --> 00:18:19,260 119,000 people running Apache 1.3.6. 249 00:18:19,680 --> 00:18:23,380 151,000 servers running Apache 1.3.3. 250 00:18:23,420 --> 00:18:26,940 Not only are they running it, but they're running it with a directory listing open. 251 00:18:26,940 --> 00:18:28,580 Good stats. 252 00:18:30,840 --> 00:18:32,320 Excel is my friend sometimes. 253 00:18:32,920 --> 00:18:37,020 Here's some really esoteric versions of Apache that Google helped me find on the web. 254 00:18:37,740 --> 00:18:41,480 Like 1.3.26 plus interserver. 255 00:18:41,880 --> 00:18:43,480 How many people are running that one? 256 00:18:43,840 --> 00:18:45,020 That's got to have some problems. 257 00:18:45,400 --> 00:18:46,400 A lot of these are development. 258 00:18:46,680 --> 00:18:47,980 Most of these were beta. 259 00:18:48,720 --> 00:18:51,900 But we've got 64,000, 69,000. 260 00:18:51,900 --> 00:18:53,440 Lots of targets to choose from. 261 00:18:53,820 --> 00:18:55,200 And using the same techniques. 262 00:18:55,280 --> 00:18:56,920 Here's some more common Apache versions. 263 00:18:56,920 --> 00:18:58,640 Again, that Google helped us find. 264 00:18:58,960 --> 00:19:03,700 You don't have to send a single packet to the target to figure out the web server that they're running. 265 00:19:03,880 --> 00:19:05,940 Or to do statistical information about it. 266 00:19:06,060 --> 00:19:08,260 You just pull it off of Google and use Google's cache. 267 00:19:09,220 --> 00:19:10,660 Google's cache gives it to you. 268 00:19:10,720 --> 00:19:11,680 You never touch the site. 269 00:19:15,320 --> 00:19:16,880 Another way to use Google. 270 00:19:18,840 --> 00:19:21,580 Finding targets for vulnerabilities that are released. 271 00:19:21,700 --> 00:19:22,940 Finding zero-day targets. 272 00:19:23,120 --> 00:19:26,320 It's one thing to have a zero-day exploit, but you've got to have something to use it against. 273 00:19:27,620 --> 00:19:30,740 For example, here's a vulnerability that hit the street. 274 00:19:30,900 --> 00:19:31,740 Thank you, packet storm. 275 00:19:32,580 --> 00:19:33,820 Send a thank you out there. 276 00:19:34,520 --> 00:19:37,040 Here we have unhappycgi.txt. 277 00:19:37,560 --> 00:19:43,640 And this little guy works against the normal underscore HTML dot CGI script. 278 00:19:44,480 --> 00:19:48,840 So basically what we do is we know that this exploit works against that CGI script. 279 00:19:48,980 --> 00:19:51,100 Now we just have to find that script on the web. 280 00:19:53,340 --> 00:19:54,560 How about a Google search? 281 00:19:54,740 --> 00:19:55,360 In URL. 282 00:19:55,360 --> 00:19:57,540 Normal underscore HTML dot CGI. 283 00:19:58,400 --> 00:20:04,660 212 sites found running this CGI script the day the exploit's released. 284 00:20:05,000 --> 00:20:06,720 That Google finds for us. 285 00:20:07,100 --> 00:20:08,880 It doesn't get any easier than that. 286 00:20:10,100 --> 00:20:11,740 Script kiddies everywhere rejoice. 287 00:20:16,400 --> 00:20:20,940 The other thing that's definitely worth talking about is we've seen some interesting pages. 288 00:20:22,400 --> 00:20:24,240 We've seen some interesting examples. 289 00:20:24,240 --> 00:20:35,300 But the bottom line is Google just gives us this way of finding interesting files inside sensitive directories and finding sensitive data inside interesting files. 290 00:20:37,060 --> 00:20:41,860 And the easiest way to do this is with the directory listings that we just talked about. 291 00:20:42,240 --> 00:20:44,960 If you have a directory listing, you get a list of files. 292 00:20:45,220 --> 00:20:49,800 If you're looking for a specific file, where better to look than a directory listing? 293 00:20:50,200 --> 00:20:50,760 Okay. 294 00:20:51,280 --> 00:20:52,620 So this technique. 295 00:20:54,820 --> 00:20:59,840 Actually uses the directory listing itself as a way to search for vulnerable files. 296 00:21:00,540 --> 00:21:01,880 Look at the syntax here. 297 00:21:02,580 --> 00:21:03,200 In title. 298 00:21:04,020 --> 00:21:05,480 Index dot of. 299 00:21:05,620 --> 00:21:07,640 Remember the dot was a space or any character. 300 00:21:08,040 --> 00:21:13,320 What we're looking for is web pages that come back to us and have the words index of in the title. 301 00:21:13,920 --> 00:21:16,540 Index of in the title means it's a directory listing. 302 00:21:17,980 --> 00:21:18,840 Still with me? 303 00:21:20,380 --> 00:21:22,600 Throw another word after the index. 304 00:21:22,600 --> 00:21:24,360 The index of like backup. 305 00:21:24,920 --> 00:21:26,700 Here's an example of one thing that we get. 306 00:21:27,340 --> 00:21:30,120 Here's a site that actually made backup files. 307 00:21:30,620 --> 00:21:34,240 Put them in a web accessible directory named backup. 308 00:21:34,580 --> 00:21:36,000 And Google crawled them. 309 00:21:36,460 --> 00:21:39,000 So now all we have to do is ask Google for that file. 310 00:21:39,920 --> 00:21:41,700 We look for the directory listing. 311 00:21:41,840 --> 00:21:42,720 Here's a backup directory. 312 00:21:42,900 --> 00:21:43,620 And there's the files. 313 00:21:46,860 --> 00:21:49,340 See all the names listed down the left-hand side there. 314 00:21:50,320 --> 00:21:50,800 Okay. 315 00:21:52,100 --> 00:21:52,580 All right. 316 00:21:52,580 --> 00:21:54,420 How about another interesting one? 317 00:21:54,560 --> 00:21:55,000 In title. 318 00:21:55,140 --> 00:21:57,580 Index of dot htpassword. 319 00:21:58,500 --> 00:21:58,960 Okay. 320 00:21:59,000 --> 00:22:01,100 These are people that have directory listings out there. 321 00:22:01,180 --> 00:22:03,620 That means their main web page is missing. 322 00:22:03,860 --> 00:22:06,100 The file for their main web page is missing. 323 00:22:06,360 --> 00:22:09,560 They got a directory listing when Google browsed them. 324 00:22:09,660 --> 00:22:11,460 And this file is sitting in that directory. 325 00:22:12,920 --> 00:22:14,220 We'll have more of these to come. 326 00:22:17,240 --> 00:22:22,560 The obvious approach to all this is sort of automating the process. 327 00:22:22,560 --> 00:22:25,560 You know, it's one thing to sit there at Google and just type your stuff in. 328 00:22:25,920 --> 00:22:27,540 Automation for this is just mindless. 329 00:22:27,700 --> 00:22:29,140 I mean, it's just incredibly easy. 330 00:22:29,820 --> 00:22:34,500 What you do is you take a CGI scanner, any CGI scanner that's got a list of vulnerabilities, 331 00:22:34,780 --> 00:22:37,620 CGI-based vulnerabilities, and you steal their list. 332 00:22:38,160 --> 00:22:38,600 Okay. 333 00:22:38,620 --> 00:22:44,060 You grab out all the interesting files, all the CGI scripts that are vulnerable, and you 334 00:22:44,060 --> 00:22:46,340 use that in an automated fashion. 335 00:22:46,500 --> 00:22:47,740 Something like this. 336 00:22:48,840 --> 00:22:50,620 We have a list of CGI scripts. 337 00:22:50,860 --> 00:22:51,220 Okay. 338 00:22:53,320 --> 00:22:54,220 Little shell. 339 00:22:54,560 --> 00:22:55,040 Okay. 340 00:22:55,120 --> 00:22:55,660 Smoke and mirrors. 341 00:22:55,880 --> 00:22:56,160 Poof. 342 00:22:56,780 --> 00:22:57,300 Okay. 343 00:22:57,340 --> 00:22:57,940 Run some shell. 344 00:22:58,040 --> 00:23:02,520 That shell script actually works, so I'll fear my coding skills. 345 00:23:03,400 --> 00:23:06,040 You get a nice little output that looks something like this. 346 00:23:06,160 --> 00:23:11,880 It's basically just a web page that you can browse that lists sites that actually had 347 00:23:11,880 --> 00:23:14,620 the vulnerable files in that list. 348 00:23:14,740 --> 00:23:15,920 Again, this is from Google. 349 00:23:16,060 --> 00:23:19,520 This isn't you sitting down and running a CGI scanner against your target. 350 00:23:19,700 --> 00:23:21,200 This is you going out there. 351 00:23:21,200 --> 00:23:25,680 This is you going out to Google, automating queries that come back with lists of vulnerable 352 00:23:26,020 --> 00:23:28,460 servers that have vulnerable CGI scripts. 353 00:23:29,160 --> 00:23:33,200 Of course, when you click on each of these, it takes you to the Google results page, and 354 00:23:33,200 --> 00:23:33,980 you just take your pick. 355 00:23:36,520 --> 00:23:37,960 Enter Google dorks. 356 00:23:38,220 --> 00:23:39,340 My name for it. 357 00:23:40,340 --> 00:23:41,280 Idiotic people. 358 00:23:42,160 --> 00:23:45,180 Inept or foolish people, as revealed by Google. 359 00:23:45,380 --> 00:23:48,280 These are people that you just don't know any better. 360 00:23:48,440 --> 00:23:49,880 I don't really want to call them stupid. 361 00:23:49,880 --> 00:23:51,640 They're just dorks. 362 00:23:51,640 --> 00:23:52,540 They didn't know any better. 363 00:23:52,780 --> 00:23:56,740 What I did is I just put a collection of these together and gave a running commentary. 364 00:23:57,300 --> 00:23:58,980 Why this is a bad thing. 365 00:23:59,140 --> 00:24:04,700 Why it's bad that sites running Microsoft personal web services shouldn't be accessible 366 00:24:04,700 --> 00:24:06,400 through Google and be discovered. 367 00:24:06,840 --> 00:24:10,380 I put up a little page to categorize that stuff. 368 00:24:12,060 --> 00:24:19,520 Taking the automation thing one step further, Michael Zalewski came out with this very interesting 369 00:24:19,520 --> 00:24:19,860 article. 370 00:24:19,880 --> 00:24:22,460 This article in FRAC 5710 called Rise of the Robots. 371 00:24:22,620 --> 00:24:27,900 His theory was there are search engines that are going out there every single day. 372 00:24:28,080 --> 00:24:29,300 They're crawling sites. 373 00:24:29,640 --> 00:24:33,520 They pick up links on the sites that they crawl, and they follow those links. 374 00:24:33,820 --> 00:24:38,560 When they follow those links, they grab more links, and they follow those links to more 375 00:24:38,560 --> 00:24:39,160 and more sites. 376 00:24:39,300 --> 00:24:40,920 That's basically how robots work. 377 00:24:41,820 --> 00:24:46,140 What happens if you put malicious links on your web page? 378 00:24:46,380 --> 00:24:49,860 For example, links that are designed to attack other robots. 379 00:24:49,860 --> 00:24:50,000 They're sites. 380 00:24:50,840 --> 00:24:53,000 CGI scripts are a good example of this. 381 00:24:55,040 --> 00:24:57,940 Watering these down a little bit, just to give you an idea of how it works. 382 00:24:59,020 --> 00:25:06,360 Some host CGI bin script.pearl, and then we have our little dot dot backslash security 383 00:25:06,660 --> 00:25:08,380 problem, which breaks out of the web directory. 384 00:25:08,840 --> 00:25:12,460 What happens when a web server comes to your page and sees that link? 385 00:25:13,120 --> 00:25:15,860 The default behavior is it's going to follow that link. 386 00:25:16,180 --> 00:25:19,800 If it follows that link, it exploited the target. 387 00:25:19,800 --> 00:25:20,840 If it was vulnerable. 388 00:25:21,860 --> 00:25:25,220 All you did was stand up a web page with vulnerable links. 389 00:25:25,660 --> 00:25:26,660 Spiders came along. 390 00:25:26,960 --> 00:25:27,880 They crawled it. 391 00:25:27,980 --> 00:25:29,480 They picked up a malicious link. 392 00:25:29,680 --> 00:25:31,280 They launched it against the target. 393 00:25:32,100 --> 00:25:33,560 They did the work for you. 394 00:25:33,800 --> 00:25:35,200 That was Zalewski's idea. 395 00:25:36,360 --> 00:25:38,040 He tested it, and it worked. 396 00:25:38,260 --> 00:25:44,880 Not only did it work, but a lot of web browsers would happily follow links to non-http ports. 397 00:25:45,540 --> 00:25:49,380 For example, they would follow links to telnet ports. 398 00:25:49,800 --> 00:25:51,780 They would follow links to SSH ports. 399 00:25:52,540 --> 00:25:55,780 This wasn't strictly a web problem. 400 00:25:56,360 --> 00:26:01,540 Web bots would pick up whatever you gave them in whatever format you gave them, and it would 401 00:26:01,540 --> 00:26:02,200 follow them. 402 00:26:02,560 --> 00:26:05,740 This method could be used to attack non-web based services. 403 00:26:10,340 --> 00:26:17,880 Anyway, the idea there is, if you can do all this through Google, why not automate the 404 00:26:17,880 --> 00:26:18,300 process? 405 00:26:18,300 --> 00:26:22,560 Upload malicious bots to web servers every time you attack one that changes their web 406 00:26:22,560 --> 00:26:22,840 page. 407 00:26:22,980 --> 00:26:26,440 Instead of defacing it, you drop attack links to your next targets. 408 00:26:26,960 --> 00:26:31,120 You go back to Google after Google has done all this, and you harvest the results from 409 00:26:31,120 --> 00:26:31,780 the search engine. 410 00:26:32,400 --> 00:26:36,080 Bottom line is, Google did all the work for you and brought the results back. 411 00:26:39,460 --> 00:26:42,300 The question is, well, what can you do? 412 00:26:43,100 --> 00:26:43,540 Nothing. 413 00:26:43,820 --> 00:26:44,580 Thanks for coming. 414 00:26:46,500 --> 00:26:47,240 Just kidding. 415 00:26:47,240 --> 00:26:49,040 There is some stuff you can do. 416 00:26:50,020 --> 00:26:51,540 This really isn't Google's fault. 417 00:26:51,680 --> 00:26:55,820 Google is king of the world as far as search engines, and they can really do no wrong. 418 00:26:57,080 --> 00:26:59,340 This isn't really a Google problem. 419 00:27:00,560 --> 00:27:03,880 Countless people have called them and said, you can't crawl us anymore. 420 00:27:04,160 --> 00:27:05,720 We have a robots.txt file. 421 00:27:05,920 --> 00:27:08,060 Well, Google doesn't care about those. 422 00:27:10,380 --> 00:27:13,560 The bottom line is, you have to be proactive with your own sites. 423 00:27:13,660 --> 00:27:16,960 If you've got a site that you want to lock down, a site that you control, that you care 424 00:27:17,240 --> 00:27:19,880 about, you need to figure out what Google knows about that site. 425 00:27:20,280 --> 00:27:24,440 You need to use these sorts of techniques against your own page to see if you're vulnerable. 426 00:27:24,700 --> 00:27:26,220 If you're vulnerable, fix it. 427 00:27:26,560 --> 00:27:29,040 Who cares if there's a Google cache in some cases? 428 00:27:29,080 --> 00:27:30,020 Just fix your site. 429 00:27:30,780 --> 00:27:35,000 The best thing you can do is to watch my web page, because that would make me happy. 430 00:27:35,800 --> 00:27:36,420 All right. 431 00:27:36,460 --> 00:27:37,100 Just kidding. 432 00:27:37,840 --> 00:27:38,500 All right. 433 00:27:38,580 --> 00:27:39,320 The grand finale. 434 00:27:39,720 --> 00:27:41,340 I think I'm okay on time. 435 00:27:41,520 --> 00:27:43,700 I'm aiming to be five minutes early here. 436 00:27:43,700 --> 00:27:47,460 Basically, what I'm going to do is I'm going to show you some examples of this technique 437 00:27:47,460 --> 00:27:50,240 in action and show you how it works. 438 00:27:51,760 --> 00:27:53,080 That was a bad example. 439 00:27:55,660 --> 00:27:56,320 Come back. 440 00:27:57,000 --> 00:27:57,620 All right. 441 00:27:58,760 --> 00:28:01,700 In title, index of page.cfm. 442 00:28:02,300 --> 00:28:02,820 What the? 443 00:28:03,080 --> 00:28:03,660 Hold on. 444 00:28:03,760 --> 00:28:04,340 Technical difficulties. 445 00:28:05,100 --> 00:28:05,540 Okay. 446 00:28:05,580 --> 00:28:11,840 If you put this Google search in, basically what you get is web servers that have page.cfm, 447 00:28:11,860 --> 00:28:12,840 which is exploitable. 448 00:28:13,240 --> 00:28:13,680 Okay? 449 00:28:13,700 --> 00:28:19,300 You can basically throw an invalid page ID into any of these sites that have this problem, 450 00:28:19,380 --> 00:28:20,340 and you can exploit them. 451 00:28:20,960 --> 00:28:21,040 Okay? 452 00:28:21,120 --> 00:28:23,240 One example of an exploitable site. 453 00:28:24,880 --> 00:28:25,740 This one's funny. 454 00:28:26,240 --> 00:28:28,260 Index of dead.letter. 455 00:28:28,740 --> 00:28:30,960 This is what happens when your mail program dies. 456 00:28:31,040 --> 00:28:32,200 It creates dead.letter. 457 00:28:33,400 --> 00:28:37,140 You can see here that we're reading somebody's mailbox, and it says, 458 00:28:37,240 --> 00:28:39,000 thank you very much, and I can read Chinese. 459 00:28:39,160 --> 00:28:40,120 Well, thank you very much. 460 00:28:40,120 --> 00:28:40,900 I can read your email. 461 00:28:42,280 --> 00:28:42,680 Simple. 462 00:28:42,860 --> 00:28:43,060 Easy. 463 00:28:44,360 --> 00:28:45,240 Here's a bad one. 464 00:28:45,620 --> 00:28:48,400 In title, index of master.password. 465 00:28:48,480 --> 00:28:52,860 Somebody that's got a directory listing and has a master.password file sitting in that 466 00:28:52,860 --> 00:28:53,300 directory. 467 00:28:55,220 --> 00:28:56,300 Translation, that's bad. 468 00:28:57,020 --> 00:28:57,860 Bad thing. 469 00:29:00,080 --> 00:29:01,400 Let's get a little more complex. 470 00:29:01,760 --> 00:29:03,260 In title, index of. 471 00:29:03,540 --> 00:29:08,980 We're looking for directory listings again, but we want to look for pwd.db, password, 472 00:29:09,220 --> 00:29:11,540 and we don't want to look for pam.conf. 473 00:29:11,840 --> 00:29:13,680 The reason I threw that in there is we don't want to look for pwd.db. 474 00:29:13,680 --> 00:29:15,740 We don't want to find source dumps for password. 475 00:29:16,580 --> 00:29:21,320 If you put this search in without the minus pam.conf, 476 00:29:21,380 --> 00:29:25,700 you find all the sites that have the password program source, 477 00:29:25,880 --> 00:29:27,020 which we're not interested in. 478 00:29:27,480 --> 00:29:30,560 For example, this particular search found us some sites, 479 00:29:30,640 --> 00:29:33,220 and one of the files that we could actually find was a group file, 480 00:29:33,380 --> 00:29:37,520 a live group file from a government site. 481 00:29:39,920 --> 00:29:40,400 Sorry. 482 00:29:40,900 --> 00:29:41,780 Throat's getting dry. 483 00:29:42,440 --> 00:29:45,960 Trivia question, not to steal the thunder from Hacker Jeopardy. 484 00:29:46,180 --> 00:29:49,620 What's the Unix password file called? 485 00:29:50,060 --> 00:29:51,060 It's an easy one. 486 00:29:53,480 --> 00:29:54,120 Password? 487 00:29:54,180 --> 00:29:55,420 P-A-S-S-W-D? 488 00:29:56,560 --> 00:29:57,180 Okay. 489 00:29:57,300 --> 00:29:58,060 ETSY password. 490 00:29:58,440 --> 00:30:00,180 Let's actually find some live examples. 491 00:30:00,880 --> 00:30:04,180 In title, index of dot dot ETSY password. 492 00:30:04,540 --> 00:30:07,060 The dot dot leaves room for a space and a slash, 493 00:30:07,340 --> 00:30:10,960 so we're finding directory listings of ETSY directories 494 00:30:10,960 --> 00:30:13,060 that contain password files. 495 00:30:13,400 --> 00:30:14,500 Here's one example. 496 00:30:15,720 --> 00:30:17,380 What the heck is dot C-L? 497 00:30:18,180 --> 00:30:21,760 Okay, here's another example. 498 00:30:22,680 --> 00:30:27,340 Index of password from M-I-T. 499 00:30:32,140 --> 00:30:33,280 Sorry, I'm jealous. 500 00:30:33,360 --> 00:30:34,020 I don't have a degree. 501 00:30:36,340 --> 00:30:37,360 Call me bitter. 502 00:30:37,960 --> 00:30:38,720 All right. 503 00:30:38,780 --> 00:30:40,700 Index of dot dot ETSY password. 504 00:30:40,700 --> 00:30:41,420 Yet again. 505 00:30:41,980 --> 00:30:42,460 Okay. 506 00:30:42,560 --> 00:30:44,640 Another active password file. 507 00:30:47,100 --> 00:30:47,920 And again. 508 00:30:48,500 --> 00:30:49,860 This time on an org site. 509 00:30:51,060 --> 00:30:52,020 And again. 510 00:30:52,880 --> 00:30:54,020 Another com site. 511 00:30:55,440 --> 00:30:55,920 Okay. 512 00:30:56,740 --> 00:30:57,600 And again. 513 00:30:57,680 --> 00:30:59,280 This one done a little bit differently. 514 00:30:59,460 --> 00:31:01,280 Again, we did the minus pam dot com, 515 00:31:01,480 --> 00:31:03,300 but this one's actually a dot gov site. 516 00:31:03,520 --> 00:31:06,480 Not only did we get password, we got P-W-D dot D-B, 517 00:31:06,580 --> 00:31:07,620 another password format. 518 00:31:07,820 --> 00:31:08,700 A group file. 519 00:31:08,700 --> 00:31:13,280 And an FTP messages day file from dot gov. 520 00:31:15,860 --> 00:31:16,380 Okay. 521 00:31:16,460 --> 00:31:17,540 How about another interesting file? 522 00:31:17,680 --> 00:31:19,020 Index of ETSY hosts. 523 00:31:19,240 --> 00:31:21,680 ETSY host files are always filled with interesting stuff. 524 00:31:22,280 --> 00:31:22,800 Okay. 525 00:31:22,940 --> 00:31:25,940 So here's an ETSY host file from some site on the, 526 00:31:27,240 --> 00:31:28,720 was it the Netherlands? 527 00:31:30,100 --> 00:31:30,740 All right. 528 00:31:30,760 --> 00:31:32,940 I hear you all whining, but they don't have passwords. 529 00:31:33,800 --> 00:31:34,320 Okay. 530 00:31:34,320 --> 00:31:35,500 They're all shadowed. 531 00:31:35,720 --> 00:31:36,400 All right. 532 00:31:36,420 --> 00:31:38,640 Well, let's look for password files that have passwords. 533 00:31:38,640 --> 00:31:39,840 There's a lot of passwords in them, just to make you happy. 534 00:31:40,220 --> 00:31:44,160 Look for index of ETSY hosts and look at other files in that directory. 535 00:31:44,300 --> 00:31:48,180 Here's a password file that's actually got the encrypted passwords in them. 536 00:31:48,300 --> 00:31:49,900 Run it through a password cracker. 537 00:31:49,980 --> 00:31:50,840 It's on the internet. 538 00:31:51,200 --> 00:31:52,240 Google found it. 539 00:31:52,360 --> 00:31:54,280 It shouldn't be on the internet, first of all. 540 00:31:54,340 --> 00:31:55,720 But it is. 541 00:31:57,400 --> 00:31:58,220 Here's another one. 542 00:31:58,300 --> 00:32:01,520 In title, index of auth user file dot text. 543 00:32:01,820 --> 00:32:04,280 Not only do we have passwords and usernames, 544 00:32:04,320 --> 00:32:06,140 but we've got email addresses on this one. 545 00:32:06,260 --> 00:32:07,520 Again, live files. 546 00:32:07,520 --> 00:32:09,940 This is actually from a shopping cart program. 547 00:32:11,400 --> 00:32:13,460 How about WSFTP any files? 548 00:32:14,300 --> 00:32:17,160 Host names, user IDs, and encoded passwords. 549 00:32:18,140 --> 00:32:21,940 Some poor schmuck's entire list of everywhere he FTPs to, 550 00:32:22,040 --> 00:32:24,120 including his usernames and his encoded passwords, 551 00:32:24,400 --> 00:32:25,480 which can be broken. 552 00:32:27,380 --> 00:32:31,580 How about administrators dot PWD, user IDs and encrypted passwords? 553 00:32:33,120 --> 00:32:34,600 I'm not really picking on the UK, 554 00:32:34,760 --> 00:32:36,560 but it seems like I've got a lot of examples from there. 555 00:32:37,520 --> 00:32:38,620 People dot list files. 556 00:32:39,720 --> 00:32:41,120 Usernames, encrypted passwords. 557 00:32:42,540 --> 00:32:45,440 Here's a couple examples of pass list files 558 00:32:45,440 --> 00:32:46,800 that are actually found on the internet. 559 00:32:46,960 --> 00:32:48,680 Again, usernames and encrypted passwords. 560 00:32:49,160 --> 00:32:50,460 These can all be cracked. 561 00:32:50,640 --> 00:32:53,200 They shouldn't be available to web servers. 562 00:32:54,200 --> 00:32:55,620 Okay, another trivia question. 563 00:32:56,000 --> 00:32:59,720 Most common UNIX file used for web-based authentication? 564 00:33:01,660 --> 00:33:02,860 HT password. 565 00:33:02,980 --> 00:33:03,500 Very good. 566 00:33:04,100 --> 00:33:05,200 I know, it's easy. 567 00:33:05,960 --> 00:33:07,500 How about HT password? 568 00:33:07,500 --> 00:33:09,160 These are password files that you can get from Google. 569 00:33:09,360 --> 00:33:11,620 These things are supposed to authenticate users 570 00:33:11,620 --> 00:33:12,840 that come from your site. 571 00:33:13,060 --> 00:33:15,900 Users are not supposed to be able to look at this file. 572 00:33:16,360 --> 00:33:16,920 Why? 573 00:33:17,200 --> 00:33:19,700 Because the usernames and passwords are in there. 574 00:33:20,040 --> 00:33:22,700 The web server is supposed to block this crap. 575 00:33:23,480 --> 00:33:27,400 Okay, but this shows us some sites like Harvard 576 00:33:30,160 --> 00:33:34,040 actually have problems and can't seem to keep that under control. 577 00:33:35,520 --> 00:33:37,280 Other sites have problems, too. 578 00:33:37,500 --> 00:33:38,120 Here's another one. 579 00:33:38,180 --> 00:33:39,380 User ID, encrypted password. 580 00:33:39,780 --> 00:33:41,980 More user IDs and encrypted passwords. 581 00:33:42,060 --> 00:33:44,680 Again, these are all web-based authentication files. 582 00:33:45,040 --> 00:33:48,160 You use these usernames and these passwords to access these websites. 583 00:33:48,500 --> 00:33:49,820 Google found them for us. 584 00:33:51,940 --> 00:33:52,500 More. 585 00:33:53,740 --> 00:33:54,580 Lots of stuff. 586 00:33:55,340 --> 00:33:56,480 Another trivia question. 587 00:33:56,880 --> 00:34:03,540 What is the one file in PGP that you want to keep secret? 588 00:34:04,520 --> 00:34:05,500 One file. 589 00:34:07,060 --> 00:34:08,020 Secret keyring? 590 00:34:09,540 --> 00:34:10,500 Secring.pgp? 591 00:34:10,980 --> 00:34:12,280 Here's a way to keep it secret. 592 00:34:12,380 --> 00:34:13,300 Let's put it on the web. 593 00:34:15,980 --> 00:34:17,300 God bless America. 594 00:34:22,000 --> 00:34:23,220 Another one from MIT. 595 00:34:23,620 --> 00:34:24,380 God bless America. 596 00:34:24,820 --> 00:34:25,180 All right. 597 00:34:25,600 --> 00:34:26,760 Another trivia question. 598 00:34:27,140 --> 00:34:29,980 What is the most sensitive file on a Unix system? 599 00:34:32,500 --> 00:34:32,980 Shadow. 600 00:34:33,060 --> 00:34:34,080 I hear it out there. 601 00:34:34,220 --> 00:34:35,200 ETSY shadow file. 602 00:34:35,500 --> 00:34:38,060 How about putting some ETSY shadow files out on the internet? 603 00:34:40,880 --> 00:34:43,340 Yes, this one is live. 604 00:34:48,820 --> 00:34:49,820 Some more stuff. 605 00:34:50,040 --> 00:34:52,620 I hear you all whining and complaining, but the encrypted passwords. 606 00:34:53,240 --> 00:34:55,360 How about unencrypted clear text passwords? 607 00:34:55,540 --> 00:34:56,440 Would that be good enough for you? 608 00:34:59,900 --> 00:35:01,860 Usernames and unencrypted passwords. 609 00:35:02,120 --> 00:35:03,500 Index of pass list. 610 00:35:03,500 --> 00:35:05,040 This will give it to you. 611 00:35:05,560 --> 00:35:09,760 How about Excel files with usernames, password, and email? 612 00:35:13,320 --> 00:35:15,040 Clear text, folks. 613 00:35:15,380 --> 00:35:18,740 Don't have to run John the Ripper or any of that garbage. 614 00:35:22,360 --> 00:35:23,560 Config.php. 615 00:35:24,560 --> 00:35:25,800 That's a great one. 616 00:35:26,140 --> 00:35:30,400 Username, database host, and clear text password files. 617 00:35:30,760 --> 00:35:33,400 Config.php should never come out on the web. 618 00:35:33,400 --> 00:35:34,880 It should be blocked at the web server. 619 00:35:35,060 --> 00:35:36,140 It should just not be out there. 620 00:35:36,480 --> 00:35:37,780 Database clear text passwords. 621 00:35:37,900 --> 00:35:38,440 Bad news. 622 00:35:38,660 --> 00:35:40,000 It's not just one example. 623 00:35:40,600 --> 00:35:48,020 There's quite a few of them and more and more and more. 624 00:35:48,260 --> 00:35:50,760 This is not an isolated thing. 625 00:35:50,980 --> 00:35:52,360 These things are everywhere. 626 00:35:54,100 --> 00:35:57,440 Usernames, hosts, unencrypted password. 627 00:35:57,820 --> 00:35:58,760 Last trivia question. 628 00:35:59,120 --> 00:36:03,040 The most sensitive and personal nine-digit number. 629 00:36:03,040 --> 00:36:04,940 In your life. 630 00:36:06,260 --> 00:36:07,960 Social security number. 631 00:36:08,520 --> 00:36:09,320 Very good. 632 00:36:10,340 --> 00:36:13,500 I'm not going to give you the actual Google phrases that caught these, 633 00:36:13,600 --> 00:36:15,300 but I'm just going to give them to you as examples. 634 00:36:15,820 --> 00:36:19,880 Excel spreadsheets with a couple names and social security numbers. 635 00:36:20,740 --> 00:36:23,520 I used Photoshop to make them a little bit unreadable. 636 00:36:26,060 --> 00:36:28,640 There are a couple of these out there. 637 00:36:28,680 --> 00:36:30,840 Very isolated or maybe not. 638 00:36:31,400 --> 00:36:33,020 How about a couple thousand of these? 639 00:36:33,040 --> 00:36:34,560 A few thousand names and social security numbers. 640 00:36:35,000 --> 00:36:36,060 Let's make it worse. 641 00:36:36,260 --> 00:36:41,060 How about a few thousand more names, social security numbers, and phone numbers? 642 00:36:41,920 --> 00:36:45,120 This one actually came from a university. 643 00:36:45,420 --> 00:36:46,520 It's a student list. 644 00:36:47,120 --> 00:36:47,640 Usernames. 645 00:36:48,340 --> 00:36:49,800 We've got usernames in here. 646 00:36:49,900 --> 00:36:51,960 We've got socs, phone numbers, names. 647 00:36:53,240 --> 00:36:54,120 Sky's the limit. 648 00:36:56,780 --> 00:36:58,160 Some links to check out. 649 00:36:58,260 --> 00:37:00,100 There are other people that are doing work in this arena. 650 00:37:00,360 --> 00:37:02,500 I try to have a little more fun with it. 651 00:37:02,500 --> 00:37:04,620 You know, the standard white paper people. 652 00:37:07,260 --> 00:37:08,660 Keep an eye on my site. 653 00:37:08,760 --> 00:37:12,620 I like to taunt people that have these difficulties on a fairly regular basis 654 00:37:12,620 --> 00:37:14,820 and post the results of them on my web page. 655 00:37:14,980 --> 00:37:16,180 Feel free to check that out. 656 00:37:17,560 --> 00:37:20,120 I'm going to actually not do Q&A. 657 00:37:20,400 --> 00:37:22,320 I'm going to do the same thing as the previous speaker 658 00:37:22,320 --> 00:37:26,820 and go out by the pool if it's not flooding to save some time. 659 00:37:27,060 --> 00:37:29,080 Special thanks to a few people. 660 00:37:29,180 --> 00:37:30,160 Jen, Mac, Tramp, Peanut. 661 00:37:31,100 --> 00:37:32,000 That's my family. 662 00:37:32,080 --> 00:37:32,600 Isn't that nice? 663 00:37:32,840 --> 00:37:33,820 Told them I'd do that. 664 00:37:34,640 --> 00:37:35,240 Thanks, guys.