1 00:00:00,000 --> 00:00:02,380 Let's give it up for DEF CON, another good year. 2 00:00:07,660 --> 00:00:13,220 First I want to thank Dead Addict for being kind enough to switch slots with me. 3 00:00:13,280 --> 00:00:16,020 I wouldn't be up here if it wasn't for him, so let's give him a round of applause too. 4 00:00:20,160 --> 00:00:29,300 Okay, I have an hour's presentation, 178 slides, and I've got 45 minutes to do it. 5 00:00:30,120 --> 00:00:34,280 And I'm three minutes late, so hold on to your butts. 6 00:00:34,620 --> 00:00:36,180 But I do have quality swag. 7 00:00:36,580 --> 00:00:40,980 I'm not going to describe all the swag, but I have DVDs. 8 00:00:41,380 --> 00:00:45,980 Got two of them, quite possibly the worst hacking DVDs ever. 9 00:00:47,540 --> 00:00:48,120 What's that? 10 00:00:49,220 --> 00:00:51,660 This is brand new stuff, man. 11 00:00:52,540 --> 00:00:55,860 Zero day B-footage hacking stuff, okay? 12 00:00:57,520 --> 00:00:59,960 We got Game Over, and we got... 13 00:01:00,000 --> 00:01:00,880 We got Virtual Assassin. 14 00:01:01,700 --> 00:01:02,900 Smells wonderful. 15 00:01:03,620 --> 00:01:06,580 We have the Hacker Tracker board game. 16 00:01:10,400 --> 00:01:16,480 A strategic manhunt where hot clues and hacker profiles help you capture a cyber criminal. 17 00:01:17,100 --> 00:01:20,920 We got two copies of Security Warrior. 18 00:01:21,320 --> 00:01:26,420 You can get that signed by one of the co-authors, Seth Fogies in the audience, helping me out. 19 00:01:27,080 --> 00:01:29,760 We have a Starbucks wireless cardboard. 20 00:01:32,440 --> 00:01:37,620 And we have lots of t-shirts, but you guys got to answer questions to get it right. 21 00:01:37,780 --> 00:01:40,500 I need a show of hands as soon as I ask a question. 22 00:01:40,580 --> 00:01:44,160 The first hand I see gets a chance to answer it. 23 00:01:44,160 --> 00:01:45,680 You answer it right, you get the swag. 24 00:01:46,000 --> 00:01:46,520 All right? 25 00:01:46,580 --> 00:01:47,140 Fair enough? 26 00:01:47,340 --> 00:01:48,260 No calling out. 27 00:01:49,060 --> 00:01:50,220 Oh, that wasn't the question. 28 00:01:51,040 --> 00:01:51,620 All right. 29 00:01:52,440 --> 00:01:52,880 Let's go. 30 00:01:53,400 --> 00:01:54,660 First of all, who am I? 31 00:01:55,040 --> 00:01:57,480 Short on time, so let's make it short and sweet. 32 00:01:58,000 --> 00:01:58,400 Okay. 33 00:02:00,180 --> 00:02:02,180 Okay, we got to rephrase this, you guys. 34 00:02:03,860 --> 00:02:06,760 I'll tell you what the swag is, and then I'll ask the question, okay? 35 00:02:07,900 --> 00:02:08,600 Who's Johnny? 36 00:02:08,720 --> 00:02:09,520 Let's ask Google. 37 00:02:09,600 --> 00:02:11,180 Google says, do the query. 38 00:02:11,420 --> 00:02:13,220 Google space hacker, second hit. 39 00:02:13,720 --> 00:02:14,260 That's me. 40 00:02:15,240 --> 00:02:17,340 That's all I got to tell you for today, because it's a Google talk. 41 00:02:18,380 --> 00:02:18,740 Next. 42 00:02:19,260 --> 00:02:23,360 So what we're going to be talking about, we're going to be talking about how you can use Google to find sensitive information. 43 00:02:23,400 --> 00:02:26,320 Those of you that saw this last year sort of know the drill. 44 00:02:26,460 --> 00:02:29,720 We're going to go thin on technique and heavy on example. 45 00:02:29,720 --> 00:02:38,420 This is not new, 2001, Slashdot, the problem of search engines and secret data. 46 00:02:38,860 --> 00:02:40,940 I'm not showing you zero-day stuff here. 47 00:02:41,220 --> 00:02:42,840 We got zero-day examples, though. 48 00:02:43,060 --> 00:02:44,140 Is that the same thing? 49 00:02:45,180 --> 00:02:45,720 All right. 50 00:02:46,120 --> 00:02:49,660 Those of you that haven't used advanced operators, this is the magic. 51 00:02:49,800 --> 00:02:51,260 This is what makes this stuff happen. 52 00:02:51,600 --> 00:02:55,380 Advanced operators are more than the keywords that you type into Google. 53 00:02:55,660 --> 00:02:58,220 Advanced operators help you narrow down your search. 54 00:02:58,560 --> 00:02:59,700 And advanced operators are more than the keywords that you type into Google. 55 00:02:59,720 --> 00:03:03,780 An operator takes the form of operator, colon, search term, no spaces. 56 00:03:04,460 --> 00:03:05,620 Give you an example. 57 00:03:07,260 --> 00:03:13,860 Here's the site advanced operator, johnny.ihackstuff.com, colon, 80. 58 00:03:14,040 --> 00:03:15,860 All of that is site, okay? 59 00:03:16,000 --> 00:03:18,420 So use the site variable to find sites. 60 00:03:19,240 --> 00:03:24,380 In URL, it includes the site and everything after it, the entire URL. 61 00:03:24,520 --> 00:03:27,160 So if you just want to search URLs, use in URL. 62 00:03:29,920 --> 00:03:34,260 File type, anything after that dot, okay? 63 00:03:34,320 --> 00:03:35,380 This is the file extension. 64 00:03:35,780 --> 00:03:36,960 Parameters don't matter. 65 00:03:37,100 --> 00:03:40,460 You have question marks after the PHP, none of that stuff matters. 66 00:03:40,580 --> 00:03:42,340 The file type in this case is PHP. 67 00:03:42,860 --> 00:03:44,920 That's the only thing that file type finds. 68 00:03:46,540 --> 00:03:51,340 And in title, title of the web page, okay, up top in your browser. 69 00:03:52,000 --> 00:03:55,600 Let's talk about some slightly more advanced stuff, okay? 70 00:03:55,680 --> 00:03:58,240 This would be file type, colon, PHP. 71 00:03:58,240 --> 00:04:00,480 This is index dot PHP. 72 00:04:00,960 --> 00:04:02,780 So it found a PHP page. 73 00:04:04,460 --> 00:04:11,240 In title, colon, ihackstuff.com also finds this page because ihackstuff dot com, I'm 74 00:04:11,240 --> 00:04:12,900 sorry, ihackstuff is in the title. 75 00:04:15,340 --> 00:04:16,100 Num range. 76 00:04:17,420 --> 00:04:19,740 I'm not going to talk a whole lot about num range. 77 00:04:20,460 --> 00:04:22,500 I have a good job and I like my job. 78 00:04:23,560 --> 00:04:28,220 And if I tell you too much about num range, you're going to do really bad stuff with me. 79 00:04:28,220 --> 00:04:29,940 I guarantee it. 80 00:04:30,280 --> 00:04:34,340 If you have questions about slides later on and you're like, what query was that? 81 00:04:35,580 --> 00:04:38,680 Chances are it has something to do with num range, okay? 82 00:04:38,780 --> 00:04:39,860 But I didn't tell you that. 83 00:04:41,080 --> 00:04:43,060 Just use your imagination, okay? 84 00:04:43,400 --> 00:04:44,040 Num range. 85 00:04:44,240 --> 00:04:48,260 Find me a number in this range on a web page. 86 00:04:49,020 --> 00:04:51,200 Some of you are already thinking about it, I can see it. 87 00:04:53,860 --> 00:04:57,360 Find me the words Google masters in the text of the page. 88 00:04:57,360 --> 00:05:00,900 In text, looks at all the stuff that's on the web page as it's rendered. 89 00:05:01,280 --> 00:05:03,160 Okay, this does not look for stuff in the source. 90 00:05:03,920 --> 00:05:04,700 Very important. 91 00:05:05,640 --> 00:05:08,620 All right, let's move on to what has been termed as Google hacking. 92 00:05:08,840 --> 00:05:09,880 Very basic stuff. 93 00:05:10,720 --> 00:05:13,660 Find me the word admin in the URL of a web page. 94 00:05:14,620 --> 00:05:18,680 Combine that with find me the word orders in the URL of a web page. 95 00:05:19,560 --> 00:05:22,460 Combine that with find me file type PHP. 96 00:05:23,380 --> 00:05:26,380 The boxes that you see on the screen are your complete query. 97 00:05:26,380 --> 00:05:30,400 Type this query into Google, get amazing results. 98 00:05:30,940 --> 00:05:33,500 Here's order pages from e-commerce software. 99 00:05:33,860 --> 00:05:39,580 Shows you customer information, customer data, credit card information, how they bought it, 100 00:05:39,620 --> 00:05:40,240 whole nine yards. 101 00:05:41,620 --> 00:05:42,880 This is a benign one. 102 00:05:44,340 --> 00:05:45,040 All right. 103 00:05:46,060 --> 00:05:47,900 Search characters, pretty straightforward stuff. 104 00:05:48,080 --> 00:05:49,140 I'm going to fly through this stuff. 105 00:05:49,400 --> 00:05:51,200 You guys know how search engines work. 106 00:05:51,400 --> 00:05:53,520 This is just the stuff that's specific to Google. 107 00:05:53,840 --> 00:05:54,840 Very straightforward. 108 00:05:55,840 --> 00:05:56,360 All right. 109 00:05:57,900 --> 00:05:58,760 Info gathering. 110 00:05:58,900 --> 00:06:00,400 I'm going to fly through this stuff, too. 111 00:06:00,760 --> 00:06:03,300 Crawling a site is very easy with the site operator. 112 00:06:03,640 --> 00:06:07,500 If you want to find every single page Google knows about a particular site, every single 113 00:06:07,500 --> 00:06:11,600 page that they've crawled, use site, site colon Microsoft.com. 114 00:06:11,740 --> 00:06:15,920 Google has crawled 583,000 web pages from Microsoft alone. 115 00:06:17,960 --> 00:06:18,800 Server crawling. 116 00:06:19,140 --> 00:06:24,240 Once you lock onto a server, you can start narrowing down the subdomains on that particular 117 00:06:24,240 --> 00:06:24,760 server. 118 00:06:24,760 --> 00:06:32,100 For example, site Microsoft.com minus site www.Microsoft.com starts giving you subdomains 119 00:06:32,100 --> 00:06:32,880 other than www. 120 00:06:33,760 --> 00:06:34,780 Easy stuff. 121 00:06:35,760 --> 00:06:36,760 Directory listings. 122 00:06:37,000 --> 00:06:37,920 We've all seen them. 123 00:06:38,260 --> 00:06:42,560 Pretty boring, unless you're interested in getting information that you're not necessarily 124 00:06:42,560 --> 00:06:43,460 supposed to find. 125 00:06:43,680 --> 00:06:46,720 For example, server tags. 126 00:06:47,020 --> 00:06:49,700 Server tags at the bottom of an Apache index. 127 00:06:50,320 --> 00:06:51,860 This particular one. 128 00:06:52,860 --> 00:06:54,200 Entitle index.us. 129 00:06:54,200 --> 00:06:57,300 We're looking for index listings. 130 00:06:58,560 --> 00:07:01,260 Find the words Apache server at. 131 00:07:01,700 --> 00:07:04,440 That's the tagline that's at the bottom of the index page. 132 00:07:05,880 --> 00:07:11,200 Using that technique and these other techniques, you can start looking for web pages of a certain 133 00:07:11,660 --> 00:07:12,780 web software type. 134 00:07:13,160 --> 00:07:15,460 You can even narrow this down to specific versions. 135 00:07:16,040 --> 00:07:20,660 For example, if you've got this script kitty zero day exploit against Apache to something, 136 00:07:20,920 --> 00:07:23,440 you can use Google to find targets very easily. 137 00:07:24,200 --> 00:07:28,060 You can use that server tag at the bottom of the index, or you can use default server 138 00:07:28,060 --> 00:07:28,480 pages. 139 00:07:28,960 --> 00:07:31,600 Stuff that gets installed with your web server software. 140 00:07:32,400 --> 00:07:34,540 Like this Apache it worked page. 141 00:07:34,880 --> 00:07:36,640 You put this query into Google. 142 00:07:37,520 --> 00:07:42,820 Entitle test page for Apache and it worked in quotes, you're going to find default installs 143 00:07:42,820 --> 00:07:46,560 of Apache where they didn't even have the presence of mind to change the default page. 144 00:07:47,460 --> 00:07:48,580 You know what that means. 145 00:07:52,020 --> 00:07:52,680 All right. 146 00:07:52,740 --> 00:07:53,680 I'm going to fly through these. 147 00:07:53,780 --> 00:07:54,180 Let's see. 148 00:07:54,200 --> 00:07:55,200 Just some quick examples. 149 00:07:55,680 --> 00:07:57,860 Some of you in the back are going to have trouble seeing these. 150 00:07:57,940 --> 00:07:58,420 I apologize. 151 00:07:58,860 --> 00:08:00,740 I'll have the slides up Monday, I promise. 152 00:08:01,480 --> 00:08:05,000 But basically, just a real quick run through of some of the other software that you can 153 00:08:05,000 --> 00:08:05,340 find. 154 00:08:05,900 --> 00:08:12,920 Netscape Fast Track, Netscape Enterprise, IAS running on Windows 2000. 155 00:08:13,160 --> 00:08:14,120 This is a two for one. 156 00:08:14,280 --> 00:08:15,300 You know they're running IAS. 157 00:08:15,540 --> 00:08:17,040 You know they're running Windows 2000. 158 00:08:17,740 --> 00:08:20,400 You never sent the packet to the target, Google told you. 159 00:08:21,300 --> 00:08:22,000 Easy stuff. 160 00:08:22,500 --> 00:08:24,120 IAS running on Windows XP. 161 00:08:24,200 --> 00:08:25,680 Take a look at the query. 162 00:08:25,960 --> 00:08:27,120 All in title. 163 00:08:27,320 --> 00:08:29,880 That means find every single one of these words in the title. 164 00:08:30,380 --> 00:08:33,560 Welcome to Windows XP server internet services. 165 00:08:34,960 --> 00:08:35,800 Kids stuff. 166 00:08:36,340 --> 00:08:36,640 Easy. 167 00:08:37,640 --> 00:08:39,000 IAS 4.0. 168 00:08:40,640 --> 00:08:41,820 Yes, it's true. 169 00:08:43,780 --> 00:08:50,020 Sixty-six pages on the internet at the time of this screen shot running not only IAS 4.0 170 00:08:50,020 --> 00:08:52,640 but running IAS 4.0 with the default web page. 171 00:08:52,860 --> 00:08:53,300 All right. 172 00:08:54,100 --> 00:08:57,220 Let's see if there's anybody in here that feels like can't hack a server that's set 173 00:08:57,220 --> 00:08:57,760 up like this. 174 00:08:57,840 --> 00:08:58,300 Let me know. 175 00:08:58,360 --> 00:08:59,380 It would take you a couple seconds. 176 00:08:59,580 --> 00:09:00,380 I can hook you up. 177 00:09:04,920 --> 00:09:07,020 Another interesting IAS search. 178 00:09:07,280 --> 00:09:08,120 Basic stuff. 179 00:09:09,000 --> 00:09:13,860 Another way you can go after servers to actually find them by their version numbers is to look 180 00:09:13,860 --> 00:09:17,620 at the documentation that comes with that specific web server version. 181 00:09:18,060 --> 00:09:22,060 This goes after Apache HTTP server version 1.3. 182 00:09:22,060 --> 00:09:26,140 Again, just do a Google search that looks for the docs that came with that web server. 183 00:09:28,260 --> 00:09:29,400 Here's just a quick list. 184 00:09:29,520 --> 00:09:35,060 I know absolutely no one can read this, sorry, but this is just a quick snapshot of some 185 00:09:35,060 --> 00:09:36,180 other queries that work. 186 00:09:37,160 --> 00:09:38,960 Notice the bright orange color. 187 00:09:39,080 --> 00:09:40,240 You will see this again later. 188 00:09:41,020 --> 00:09:43,780 Some guy on the internet is collecting this stuff and paying attention. 189 00:09:44,660 --> 00:09:47,100 For a t-shirt, anybody know whose web page this is? 190 00:09:47,980 --> 00:09:48,540 Right there. 191 00:09:48,880 --> 00:09:50,000 Johnny.ihackstuff.com. 192 00:09:50,000 --> 00:09:50,680 There it is. 193 00:09:50,680 --> 00:09:52,200 Johnny.ihackstuff.com. 194 00:09:52,320 --> 00:09:52,940 I'm Johnny Guy. 195 00:09:53,180 --> 00:09:53,820 Good job. 196 00:09:55,140 --> 00:09:55,800 All right. 197 00:09:56,840 --> 00:10:01,160 Really quickly, this is other easy stuff, so I'm going to fly through this, get to the 198 00:10:01,160 --> 00:10:01,680 juicy stuff. 199 00:10:01,960 --> 00:10:02,460 Error messages. 200 00:10:02,640 --> 00:10:05,840 You can harvest error messages to get juicy data out of those pages. 201 00:10:06,040 --> 00:10:07,140 For example, Hyper News. 202 00:10:07,420 --> 00:10:12,640 This Hyper News error message gives you not only the server software version, the server 203 00:10:12,640 --> 00:10:14,900 OS version, the web software version. 204 00:10:15,180 --> 00:10:18,680 Goes on to give you all sorts of other environmental details about the server. 205 00:10:18,780 --> 00:10:19,280 Good stuff. 206 00:10:20,680 --> 00:10:21,720 Let's skip this stuff. 207 00:10:23,140 --> 00:10:23,840 All right. 208 00:10:23,900 --> 00:10:26,020 People give me a hard time about error messages. 209 00:10:27,020 --> 00:10:27,540 Okay. 210 00:10:27,600 --> 00:10:30,400 This is Google stuff, so we're talking super easy stuff. 211 00:10:30,740 --> 00:10:34,100 Error messages are the bottom of the barrel as far as cool stuff. 212 00:10:34,300 --> 00:10:35,980 Looking for things in Google. 213 00:10:36,080 --> 00:10:38,740 The point is, error messages can pop up anywhere. 214 00:10:38,900 --> 00:10:40,160 This is my Hotmail account. 215 00:10:40,680 --> 00:10:42,360 Oh, I edited that, didn't I? 216 00:10:43,140 --> 00:10:43,660 Yep. 217 00:10:43,700 --> 00:10:43,960 Okay. 218 00:10:44,080 --> 00:10:44,520 All right. 219 00:10:46,300 --> 00:10:47,820 This is my Hotmail account. 220 00:10:48,180 --> 00:10:50,660 And notice the ad server bombing out. 221 00:10:50,680 --> 00:10:51,560 On the right-hand side. 222 00:10:51,740 --> 00:10:53,300 So I didn't get any advertisements that day. 223 00:10:53,700 --> 00:10:55,100 I didn't do that on purpose. 224 00:10:56,640 --> 00:10:57,080 Really. 225 00:10:58,740 --> 00:10:59,360 All right. 226 00:10:59,480 --> 00:11:00,400 Login portals. 227 00:11:00,460 --> 00:11:01,300 The front door. 228 00:11:01,520 --> 00:11:03,420 The absolute front door of a website. 229 00:11:03,960 --> 00:11:07,540 The only reason I'm listing these is because this is another way to profile a server. 230 00:11:08,020 --> 00:11:09,640 How about a search for please login? 231 00:11:10,720 --> 00:11:11,340 Pretty easy. 232 00:11:12,340 --> 00:11:15,840 How about a search for inurladminlogin.asp? 233 00:11:16,360 --> 00:11:17,240 Very straightforward. 234 00:11:17,420 --> 00:11:19,380 This is a page where an attacker is going to login. 235 00:11:19,380 --> 00:11:21,580 Or anybody's going to login to the server. 236 00:11:22,040 --> 00:11:26,740 Most attackers are going to avoid that particular page, like the plague, unless there's an overflow 237 00:11:26,740 --> 00:11:29,320 associated with that or something unseemly. 238 00:11:29,480 --> 00:11:30,780 That stuff never happens. 239 00:11:32,840 --> 00:11:38,480 For an ice-cold Red Bull, can somebody tell me the query to find this particular page? 240 00:11:39,720 --> 00:11:41,040 Oh, I saw a hand. 241 00:11:41,360 --> 00:11:42,420 File type CFM. 242 00:11:42,760 --> 00:11:43,320 Yup. 243 00:11:43,360 --> 00:11:45,000 That's pretty close. 244 00:11:45,080 --> 00:11:46,280 I'll give that to you. 245 00:11:46,620 --> 00:11:49,320 File type CFM will find you cold fusion. 246 00:11:49,320 --> 00:11:49,360 I'll give that to you. 247 00:11:49,380 --> 00:11:49,560 Let's see. 248 00:11:49,560 --> 00:11:49,740 Cold fusion pages. 249 00:11:50,840 --> 00:11:51,360 Okay. 250 00:11:51,560 --> 00:11:53,140 Anybody think they actually have it? 251 00:11:53,180 --> 00:11:53,640 For no swag. 252 00:11:54,380 --> 00:11:55,240 Right there, Richard. 253 00:12:00,460 --> 00:12:00,980 Beautiful. 254 00:12:01,300 --> 00:12:01,580 Beautiful. 255 00:12:02,140 --> 00:12:04,100 Entitle, cold fusion, administrator login. 256 00:12:05,980 --> 00:12:06,780 There you go. 257 00:12:06,860 --> 00:12:08,100 Cold fusion front doors. 258 00:12:10,660 --> 00:12:12,060 Windows remote desktop. 259 00:12:15,380 --> 00:12:16,880 I don't know why you guys are laughing. 260 00:12:16,920 --> 00:12:18,960 This is some solid software right here. 261 00:12:19,040 --> 00:12:19,360 Cool. 262 00:12:21,740 --> 00:12:23,240 let's give it up for remote desktop 263 00:12:28,900 --> 00:12:35,620 in title remote desktop web connection it's child's play for a t-shirt give me the query 264 00:12:35,620 --> 00:12:37,760 this side back row 265 00:12:43,660 --> 00:12:46,520 excellent you have wonderful eyes and you got the query 266 00:12:48,860 --> 00:12:50,840 that's one way here's the other way 267 00:12:53,280 --> 00:12:55,660 yeah don't steal it from the person that got it right 268 00:12:56,820 --> 00:12:59,640 here's another way to get it you do it with the in url okay 269 00:13:00,740 --> 00:13:07,240 how about this one microsoft outlook web access log you guys are laughing like this is bad 270 00:13:07,240 --> 00:13:14,540 software or something it's microsoft outlook web access all right web access big deal you 271 00:13:14,540 --> 00:13:16,280 found the front door well um 272 00:13:16,520 --> 00:13:19,380 what about exchange you find some exchange public folders this way 273 00:13:23,380 --> 00:13:29,280 my eyes are pretty bad but that looks like 813 microsoft outlook web access pages and 274 00:13:29,280 --> 00:13:32,440 public folders with open directory searches as well 275 00:13:33,320 --> 00:13:36,600 sometimes the login portal is just not the best way in 276 00:13:38,100 --> 00:13:41,340 all right i get beat up a lot for using google for hacking 277 00:13:42,080 --> 00:13:43,840 let's use it for password cracking 278 00:13:45,780 --> 00:13:46,380 google 279 00:13:46,520 --> 00:13:48,760 google has a password cracker john the ripper watch out 280 00:13:48,760 --> 00:13:53,100 uh because this says when you enter the members only section of this you'll be asked for your 281 00:13:53,100 --> 00:13:58,020 user id and password if you can't find it when you're trying to log in figuring it out 282 00:13:58,020 --> 00:13:58,720 is no problem 283 00:13:59,490 --> 00:14:06,060 your user id to get in is the same as your six digit membership id number okay and your 284 00:14:06,060 --> 00:14:10,840 password is the first four letters of your last name and the first two digits of your 285 00:14:10,840 --> 00:14:11,400 first name 286 00:14:12,300 --> 00:14:16,020 password cracking 101 with google how about pbx hacking with google 287 00:14:17,640 --> 00:14:20,460 anybody want to be a pbx hacker what about this page 288 00:14:21,570 --> 00:14:24,620 your password is just the pound sign 289 00:14:29,980 --> 00:14:36,760 all right this particular uh really interesting query finds web pages that allow for a very 290 00:14:36,760 --> 00:14:37,780 interesting option 291 00:14:45,240 --> 00:14:46,440 it's bad stuff 292 00:14:46,440 --> 00:14:46,500 you're welcome 293 00:14:48,160 --> 00:14:49,640 you can very watch 294 00:14:49,640 --> 00:14:53,420 all right 295 00:14:54,300 --> 00:14:57,440 how about these pages that let you set up your own 296 00:14:58,180 --> 00:14:58,900 email account 297 00:14:59,580 --> 00:15:00,660 on a domain 298 00:15:00,660 --> 00:15:04,320 that you're interested in point click spam easy stuff 299 00:15:05,000 --> 00:15:06,040 or how about this one 300 00:15:08,060 --> 00:15:12,860 the username and the password clear text in the title of the page doesn't get any easier 301 00:15:12,860 --> 00:15:13,360 than this 302 00:15:13,360 --> 00:15:16,460 if you can't break into these sites you shouldn't be at this conference 303 00:15:16,460 --> 00:15:18,100 and i'm going to ask you to come screen at your home 304 00:15:18,100 --> 00:15:20,820 guess the query 305 00:15:22,040 --> 00:15:23,460 for a dvd 306 00:15:24,300 --> 00:15:27,060 inurl p.sit in text password.log 307 00:15:28,140 --> 00:15:28,900 no 308 00:15:29,360 --> 00:15:29,740 Oh 309 00:15:30,620 --> 00:15:31,380 no 310 00:15:33,560 --> 00:15:35,660 in u r l password.log 311 00:15:35,660 --> 00:15:36,040 in u r l password.log 312 00:15:36,040 --> 00:15:39,400 there you go in url password.log let him take his pick 313 00:15:40,280 --> 00:15:43,600 in url password.log spilling water and dancing 314 00:15:45,520 --> 00:15:46,440 have any questions 315 00:15:46,440 --> 00:15:47,960 I haven't even been drinking, this is bad news. 316 00:15:48,460 --> 00:15:49,980 All right, moving right along. 317 00:15:50,520 --> 00:15:53,840 How about this one that finds PHP shell installations? 318 00:15:54,680 --> 00:15:56,760 I gave this at Black Hat, 319 00:15:56,920 --> 00:15:59,960 and nobody really seemed to know what this was. 320 00:16:00,920 --> 00:16:02,920 So I have some slides in here 321 00:16:02,920 --> 00:16:05,480 that describe really what PHP shell is. 322 00:16:05,800 --> 00:16:09,040 It's a PHP shell. 323 00:16:14,040 --> 00:16:15,720 So I hope that clears it up. 324 00:16:17,740 --> 00:16:20,740 And you know, with a PHP shell, 325 00:16:20,940 --> 00:16:24,020 you can type commands like this innocuous one, 326 00:16:24,260 --> 00:16:28,540 cat etsy password, and well, it gives you the password. 327 00:16:28,820 --> 00:16:33,980 So you know, I decided to make this scenario, you know, 328 00:16:34,000 --> 00:16:35,300 just like the kids that are out there 329 00:16:35,300 --> 00:16:37,040 that basically hack this way, 330 00:16:37,120 --> 00:16:38,760 and I'm just gonna keep going on this server. 331 00:16:38,760 --> 00:16:41,200 Poke around a little bit, find a WAP directory. 332 00:16:42,000 --> 00:16:44,720 W-A-P, we got some, what, wireless here? 333 00:16:45,120 --> 00:16:46,440 We go into this directory, 334 00:16:46,540 --> 00:16:50,560 and there's Christina, and Audrey, 335 00:16:50,780 --> 00:16:53,000 and whoa, hey, this is not wireless. 336 00:16:53,440 --> 00:16:56,140 This is even better, this script kitty's on a roll. 337 00:16:59,000 --> 00:17:00,660 Britney, Britney Spears. 338 00:17:00,980 --> 00:17:02,820 This particular script kitty was done. 339 00:17:03,260 --> 00:17:04,440 That was the end of that hack. 340 00:17:07,320 --> 00:17:08,200 Vulnerability trolling. 341 00:17:08,200 --> 00:17:09,920 I am not gonna talk to you guys about this, 342 00:17:10,020 --> 00:17:12,820 because you guys probably all know how to do this. 343 00:17:13,080 --> 00:17:14,380 An advisory comes out. 344 00:17:14,680 --> 00:17:18,780 You find vulnerable targets using Google very easily. 345 00:17:19,180 --> 00:17:21,260 Confix contents available. 346 00:17:21,740 --> 00:17:23,220 Go to the Confix site. 347 00:17:23,380 --> 00:17:24,800 Go to their demo page. 348 00:17:25,620 --> 00:17:26,760 Look at the title. 349 00:17:27,100 --> 00:17:28,620 For a shirt, give me the query. 350 00:17:29,840 --> 00:17:30,520 Right there. 351 00:17:31,980 --> 00:17:32,900 There you go. 352 00:17:33,460 --> 00:17:35,320 In title, Confix Professional. 353 00:17:36,260 --> 00:17:36,940 All right? 354 00:17:36,940 --> 00:17:38,240 Keep playing around with it. 355 00:17:38,360 --> 00:17:39,660 They've got default documentation, 356 00:17:39,760 --> 00:17:42,200 so here's our documentation search that we talked about. 357 00:17:43,100 --> 00:17:44,280 Poke around a little more. 358 00:17:44,380 --> 00:17:46,220 Here's Confix Professional in the title 359 00:17:46,220 --> 00:17:47,680 with login and password in the text. 360 00:17:48,860 --> 00:17:51,720 And you can see that we've got active hits. 361 00:17:52,540 --> 00:17:53,340 Very easy. 362 00:17:55,800 --> 00:17:56,960 This one's pretty tough. 363 00:17:57,680 --> 00:17:58,840 For a book. 364 00:17:59,400 --> 00:18:01,960 Let me see, let me see the hand first, 365 00:18:02,120 --> 00:18:02,920 and then I'll give you the question. 366 00:18:03,300 --> 00:18:03,960 Who wants a book? 367 00:18:04,620 --> 00:18:05,540 Nobody wants a book? 368 00:18:06,260 --> 00:18:06,740 No? 369 00:18:06,940 --> 00:18:07,620 Oh, you're brave. 370 00:18:07,720 --> 00:18:08,740 Okay, front row. 371 00:18:08,880 --> 00:18:12,760 The question is, give me the query to find sites vulnerable to, 372 00:18:12,880 --> 00:18:14,620 and on the bottom if you can't read it, 373 00:18:14,940 --> 00:18:18,780 Gelsoft vBulletin 3.0.0 can for. 374 00:18:20,820 --> 00:18:23,280 If it was this easy, I wouldn't have made it for a book. 375 00:18:24,660 --> 00:18:25,560 There you go, Joe. 376 00:18:25,680 --> 00:18:26,200 Just a little. 377 00:18:26,460 --> 00:18:26,900 Hm? 378 00:18:29,340 --> 00:18:32,300 Just Gelsoft vBulletin 3.0.0 books. 379 00:18:33,260 --> 00:18:33,700 Close. 380 00:18:35,000 --> 00:18:35,660 Right here. 381 00:18:37,980 --> 00:18:38,480 Can for. 382 00:18:38,480 --> 00:18:39,440 Black, black shirt, glasses. 383 00:18:47,920 --> 00:18:49,020 Can for, no. 384 00:18:49,200 --> 00:18:50,700 All right, we'll change it up. 385 00:18:50,800 --> 00:18:54,620 For the book, give me the two words that can, 386 00:18:54,660 --> 00:18:58,340 or the three words that can for should be replaced with 387 00:18:58,340 --> 00:18:59,520 to make it more specific. 388 00:19:00,380 --> 00:19:00,880 No. 389 00:19:01,860 --> 00:19:02,780 Two words. 390 00:19:03,360 --> 00:19:05,160 Can is short for what? 391 00:19:05,260 --> 00:19:06,260 Right there, white shirt. 392 00:19:07,060 --> 00:19:08,240 Release candidate for. 393 00:19:08,400 --> 00:19:09,340 There you go, give the man a book. 394 00:19:12,960 --> 00:19:16,440 Powered by vBulletin 3.0.0 release candidate for. 395 00:19:16,500 --> 00:19:18,620 The reason that's for a book is because you control 396 00:19:18,620 --> 00:19:21,100 through the PHP source code and eventually find 397 00:19:21,100 --> 00:19:22,560 the little banner that's at the bottom 398 00:19:22,560 --> 00:19:23,780 to get to the same point. 399 00:19:24,280 --> 00:19:25,980 But if you can get it with a little prodding 400 00:19:25,980 --> 00:19:28,520 in a couple seconds, that's worth a book in my opinion. 401 00:19:29,300 --> 00:19:31,220 All right, CGI scanning. 402 00:19:31,460 --> 00:19:34,100 Let's talk about traditional techniques. 403 00:19:34,460 --> 00:19:36,920 Take a CGI list. Roll it into a book. 404 00:19:36,920 --> 00:19:37,880 Go into some Google queries. 405 00:19:38,040 --> 00:19:39,600 You got a CGI scanner with Google. 406 00:19:39,760 --> 00:19:42,440 Turn them into in URLs or in title index ofs. 407 00:19:43,020 --> 00:19:43,740 All right. 408 00:19:44,500 --> 00:19:45,300 Port scanning. 409 00:19:45,560 --> 00:19:48,200 Port scanning's pretty easy if you do it the right way. 410 00:19:48,400 --> 00:19:51,020 And as long as you understand that Google doesn't find 411 00:19:51,020 --> 00:19:52,600 every listening port on a machine, 412 00:19:52,860 --> 00:19:54,760 it finds the ones that were pointed to. 413 00:19:55,400 --> 00:19:56,840 In URL's a bad way to go. 414 00:19:57,580 --> 00:19:59,560 Combine it with a search for a known listening 415 00:19:59,560 --> 00:20:02,040 software product on a port like VNC Desktop 416 00:20:02,620 --> 00:20:04,160 listening on port 5800. 417 00:20:04,620 --> 00:20:06,900 Look for 5800 in the URL with VNC Desktop. 418 00:20:06,920 --> 00:20:10,420 Or Webmin running on port 10,000. 419 00:20:10,660 --> 00:20:13,760 Combine the Webmin search with in URL 10,000. 420 00:20:14,740 --> 00:20:16,860 Combine in URL with minus in text 421 00:20:16,860 --> 00:20:20,180 to get the number out of the text of the document. 422 00:20:20,560 --> 00:20:22,280 Okay, so you don't get a double hit on that. 423 00:20:22,480 --> 00:20:23,940 Here's servers listening on 8080. 424 00:20:24,160 --> 00:20:25,720 Servers listening on 8,000. 425 00:20:26,960 --> 00:20:29,420 Or you hijack tools like this, 426 00:20:29,480 --> 00:20:31,540 the NQT, network query tool, 427 00:20:31,700 --> 00:20:33,680 that allows you to look at a site 428 00:20:33,680 --> 00:20:35,620 to see if a port is open or not. 429 00:20:35,800 --> 00:20:36,760 Basically lets you do 430 00:20:36,920 --> 00:20:37,340 port scanning. 431 00:20:37,880 --> 00:20:39,580 Roll a Google search up 432 00:20:40,000 --> 00:20:44,840 that actually finds NQT dot PHP in the URL. 433 00:20:45,120 --> 00:20:47,440 Now you've got sites that you can point to 434 00:20:47,440 --> 00:20:49,000 that'll do a port scan for you 435 00:20:49,000 --> 00:20:50,060 that you could proxy through. 436 00:20:51,220 --> 00:20:53,380 Joke's on them because it takes remote posts. 437 00:20:53,620 --> 00:20:56,340 So you can pretty much do this at your leisure. 438 00:20:58,380 --> 00:20:59,920 Just a quick word about Athena. 439 00:21:00,120 --> 00:21:01,780 If you're interested in automating this process, 440 00:21:01,960 --> 00:21:02,920 I highly recommend Athena. 441 00:21:03,420 --> 00:21:04,540 It's a nice screenshot. 442 00:21:04,940 --> 00:21:06,020 Check out the URL, 443 00:21:06,020 --> 00:21:10,220 or do a search for Athena and Google because it's gone now. 444 00:21:10,720 --> 00:21:12,320 Or check out this tool, 445 00:21:12,460 --> 00:21:14,100 GooScan by some guy, Johnny, 446 00:21:14,860 --> 00:21:16,400 who didn't recommend the tool 447 00:21:16,400 --> 00:21:18,660 because you're not supposed to do bad things with it. 448 00:21:19,300 --> 00:21:20,640 It's proof of concept. 449 00:21:22,800 --> 00:21:24,620 Also, there's the SiteDigger tool. 450 00:21:24,800 --> 00:21:26,400 I would have put up a screenshot, 451 00:21:26,540 --> 00:21:28,300 but I have a formula that I followed. 452 00:21:28,460 --> 00:21:30,680 If unanswered emails is greater than two, 453 00:21:30,740 --> 00:21:31,800 screenshot equals null. 454 00:21:34,120 --> 00:21:34,860 Next slide. 455 00:21:34,860 --> 00:21:34,980 Next slide. 456 00:21:35,220 --> 00:21:37,800 Anyway, no, they did reference me in their documentation, 457 00:21:37,840 --> 00:21:42,640 and I gotta give them credit, but no screenshot. 458 00:21:43,340 --> 00:21:46,460 All right, poking, prodding, and pummeling SQL. 459 00:21:48,200 --> 00:21:50,220 All right, we're gonna start light. 460 00:21:51,020 --> 00:21:53,100 Gathering usernames with SQL. 461 00:21:53,800 --> 00:21:56,720 Warning, access denied for user using password. 462 00:21:56,860 --> 00:21:57,700 There's usernames. 463 00:21:58,260 --> 00:22:00,820 This query locates SQL schemas on the web. 464 00:22:01,000 --> 00:22:02,580 Entire database dumps. 465 00:22:03,120 --> 00:22:04,700 Dumping data for tables. 466 00:22:04,860 --> 00:22:06,000 Very easy stuff. 467 00:22:06,200 --> 00:22:07,720 You get the entire dump of a database. 468 00:22:08,000 --> 00:22:11,260 You just saved an SQL injector about, what, three days? 469 00:22:13,360 --> 00:22:14,120 All right. 470 00:22:16,520 --> 00:22:18,240 Poking around SQL some more. 471 00:22:18,300 --> 00:22:20,900 Here's username and password in that SQL dump. 472 00:22:22,240 --> 00:22:25,600 Here is username or user or users or password 473 00:22:25,600 --> 00:22:27,060 in that SQL dump. 474 00:22:27,260 --> 00:22:29,360 And yes, there's 389 of them. 475 00:22:30,220 --> 00:22:31,280 How about this one? 476 00:22:31,400 --> 00:22:33,520 SQL command not properly ended. 477 00:22:33,720 --> 00:22:34,820 If I asked you the definition of SQL, 478 00:22:34,820 --> 00:22:34,840 If I asked you the definition of SQL, 479 00:22:34,840 --> 00:22:36,800 If I asked you the definition of SQL injection, 480 00:22:37,120 --> 00:22:38,920 it would probably have something to do with this. 481 00:22:40,080 --> 00:22:42,440 Unterminating SQL commands, that's one good way to go. 482 00:22:43,940 --> 00:22:46,380 Unclosed quotation before the character string, 483 00:22:46,540 --> 00:22:47,900 discover platinum card. 484 00:22:50,660 --> 00:22:51,820 But they apologized. 485 00:22:51,900 --> 00:22:52,760 It's in the title. 486 00:22:54,420 --> 00:22:55,480 How about this one? 487 00:22:55,540 --> 00:22:57,440 Mrs. Prisby's second grade class. 488 00:22:57,560 --> 00:22:58,560 Please don't hack them. 489 00:23:00,420 --> 00:23:01,880 Have some decency. 490 00:23:03,460 --> 00:23:04,300 All right. 491 00:23:04,400 --> 00:23:05,920 We're looking for errors. 492 00:23:06,480 --> 00:23:08,440 All right, we're gonna fly through some of this stuff. 493 00:23:09,240 --> 00:23:10,000 Pummeling SQL. 494 00:23:10,140 --> 00:23:13,100 How about a front door in the phpMyAdmin 495 00:23:13,100 --> 00:23:14,920 with unauthenticated access? 496 00:23:15,760 --> 00:23:17,240 No username, no password. 497 00:23:17,360 --> 00:23:18,720 You're in phpMyAdmin. 498 00:23:19,700 --> 00:23:21,360 Do whatever you want to this database. 499 00:23:21,740 --> 00:23:22,520 One query. 500 00:23:23,240 --> 00:23:25,740 Main.php, welcome to phpMyAdmin. 501 00:23:28,580 --> 00:23:31,120 This query also looks for cold fusion pages. 502 00:23:31,120 --> 00:23:32,580 It looks for select or insert. 503 00:23:32,960 --> 00:23:34,300 Lots of interesting stuff. 504 00:23:34,540 --> 00:23:36,100 Here's the MySQL connect function. 505 00:23:36,660 --> 00:23:38,680 Username and password and clear text. 506 00:23:39,520 --> 00:23:40,240 All right. 507 00:23:42,880 --> 00:23:45,360 All right, let's go big on this one. 508 00:23:45,480 --> 00:23:47,820 For a DVD, you gotta listen to the question first. 509 00:23:48,080 --> 00:23:50,840 What's the SQL syntax that can be used to set a password? 510 00:23:51,100 --> 00:23:51,640 Two words. 511 00:23:52,040 --> 00:23:52,780 White shirt. 512 00:23:53,620 --> 00:23:54,420 Two words. 513 00:23:56,420 --> 00:23:56,940 Nope. 514 00:23:58,180 --> 00:23:59,240 Nope, ooh. 515 00:23:59,240 --> 00:24:02,000 Ooh, ooh, yeah, I gotta give him that one. 516 00:24:02,260 --> 00:24:02,680 Yeah. 517 00:24:03,180 --> 00:24:05,040 That's not what I was looking for, but that'll work. 518 00:24:05,540 --> 00:24:06,540 That's worth a DVD. 519 00:24:06,940 --> 00:24:08,240 How about identified by? 520 00:24:08,300 --> 00:24:09,360 That's the example I've got. 521 00:24:09,760 --> 00:24:12,140 File type SQL identified by. 522 00:24:13,160 --> 00:24:15,600 Lines of SQL code that actually show you 523 00:24:15,600 --> 00:24:16,560 the clear text password. 524 00:24:17,200 --> 00:24:19,500 Also grant on or create user. 525 00:24:19,700 --> 00:24:20,360 Same deal. 526 00:24:22,940 --> 00:24:24,820 Let's all beat up on some security people. 527 00:24:25,200 --> 00:24:26,180 Private certificates. 528 00:24:29,920 --> 00:24:30,900 Private keys. 529 00:24:31,400 --> 00:24:32,740 RSA private keys. 530 00:24:32,880 --> 00:24:33,900 AOL keyword private. 531 00:24:36,840 --> 00:24:37,400 Nessus scans. 532 00:24:37,700 --> 00:24:38,760 Nessus scans are messy, 533 00:24:38,840 --> 00:24:40,140 because people put them up for demos. 534 00:24:40,960 --> 00:24:42,540 But every now and then, 535 00:24:43,760 --> 00:24:45,680 it's worth sifting through the dumpster, isn't it? 536 00:24:46,240 --> 00:24:49,140 This corporate scan was found on some guy's personal 537 00:24:49,140 --> 00:24:50,400 webpage he ran it from home. 538 00:24:51,820 --> 00:24:53,160 Locating ISS scans. 539 00:24:53,940 --> 00:24:58,580 ISS scans aren't supposed to have 1500 users in the report, 540 00:24:58,580 --> 00:25:01,340 that actually match the user list on the mail server now, 541 00:25:01,440 --> 00:25:01,820 are they? 542 00:25:04,820 --> 00:25:07,620 How about snort IDS data delivered graphically 543 00:25:07,620 --> 00:25:08,620 and served up fresh? 544 00:25:09,360 --> 00:25:11,800 All right, putting an IDS log on a webpage 545 00:25:11,800 --> 00:25:14,480 is sort of like putting the monitor for the security camera 546 00:25:14,480 --> 00:25:17,060 out by the front door, so they can see where it's pointing. 547 00:25:18,500 --> 00:25:19,120 Isn't it? 548 00:25:20,460 --> 00:25:22,640 No, these aren't all samples. 549 00:25:23,180 --> 00:25:27,860 Who can guess the Google query here for a t-shirt? 550 00:25:28,580 --> 00:25:29,500 Over there, black shirt. 551 00:25:33,140 --> 00:25:34,960 SSH host keys, you got it, give it to them. 552 00:25:36,220 --> 00:25:38,720 SSH host keys on the web, these are not samples. 553 00:25:39,540 --> 00:25:40,880 PGP private keys. 554 00:25:41,840 --> 00:25:43,860 Come on, security people are supposed to know better 555 00:25:43,860 --> 00:25:44,380 than this. 556 00:25:45,740 --> 00:25:46,940 How about hacking hackers? 557 00:25:47,160 --> 00:25:48,480 You know, those IRC users? 558 00:25:50,620 --> 00:25:51,620 IRC bounce points. 559 00:25:51,860 --> 00:25:55,700 Find CGI colon IRC EFnet. 560 00:25:55,760 --> 00:25:58,340 This'll find you websites that'll give you a web-based client, 561 00:25:58,340 --> 00:25:59,560 to bounce into EFnet. 562 00:25:59,700 --> 00:26:01,180 Or if you do the query right, 563 00:26:01,220 --> 00:26:02,640 let you bounce into any server. 564 00:26:02,940 --> 00:26:04,460 Or if you do the query right, 565 00:26:04,500 --> 00:26:06,120 let you bounce into any port. 566 00:26:07,360 --> 00:26:08,560 Yeah, think about that one. 567 00:26:10,280 --> 00:26:12,620 How about CyBNC config files? 568 00:26:13,420 --> 00:26:15,800 All the elite hackers use bouncers, right? 569 00:26:16,560 --> 00:26:19,040 Do all the elite hackers out there 570 00:26:19,040 --> 00:26:20,740 actually put the config file on the web 571 00:26:20,740 --> 00:26:22,280 so you can see the passwords that they need 572 00:26:22,280 --> 00:26:23,200 to get into their channels? 573 00:26:23,360 --> 00:26:26,500 Or talk about them and put their IRC logs online? 574 00:26:27,220 --> 00:26:28,320 With their Nixer? 575 00:26:28,320 --> 00:26:28,660 With their Nixer passwords? 576 00:26:30,000 --> 00:26:30,720 Uh-huh. 577 00:26:30,840 --> 00:26:31,400 Yeah. 578 00:26:32,960 --> 00:26:34,760 You all know about the caching feature. 579 00:26:35,060 --> 00:26:36,500 Sometimes they block you. 580 00:26:36,900 --> 00:26:38,800 Sometimes the cache picks it up. 581 00:26:38,920 --> 00:26:40,840 For those of you that can't see, blue says visa, 582 00:26:41,480 --> 00:26:43,480 yellow is a visa credit card number. 583 00:26:44,580 --> 00:26:45,980 How does this happen? 584 00:26:46,320 --> 00:26:47,340 Court documents. 585 00:26:48,440 --> 00:26:50,180 Public source court documents. 586 00:26:50,420 --> 00:26:51,080 Fraud cases. 587 00:26:51,460 --> 00:26:52,700 Platinum account number. 588 00:26:52,860 --> 00:26:53,620 Account number. 589 00:26:53,740 --> 00:26:54,360 Account number. 590 00:26:54,480 --> 00:26:55,020 Statement. 591 00:26:55,020 --> 00:26:55,680 Account number. 592 00:26:55,800 --> 00:26:56,440 Bank number. 593 00:26:58,320 --> 00:26:58,800 That's a small report. 594 00:26:59,040 --> 00:27:01,480 This fraud case lists every bank account number 595 00:27:01,480 --> 00:27:03,140 and every credit card number that was used 596 00:27:03,140 --> 00:27:04,380 in that particular fraud case. 597 00:27:06,280 --> 00:27:07,300 Okay, but they're closed. 598 00:27:07,560 --> 00:27:08,220 No big deal. 599 00:27:08,400 --> 00:27:09,960 Some people just don't get it. 600 00:27:10,100 --> 00:27:11,280 Corn snakes for sale. 601 00:27:11,440 --> 00:27:12,840 I'd like to buy a corn snake. 602 00:27:13,060 --> 00:27:15,600 Here's my visa card expiration date. 603 00:27:15,740 --> 00:27:17,020 Please send to this address. 604 00:27:21,460 --> 00:27:21,940 Yup. 605 00:27:23,180 --> 00:27:24,520 Expiration date 2005. 606 00:27:25,160 --> 00:27:27,380 How about this person applying for a shell account? 607 00:27:27,560 --> 00:27:28,300 Here's the easy way to get it. 608 00:27:28,320 --> 00:27:28,660 Get shell. 609 00:27:29,660 --> 00:27:31,080 Apply for a shell account. 610 00:27:31,500 --> 00:27:36,340 Put the username and password you want on the public message board as well as your visa 611 00:27:36,880 --> 00:27:38,860 number and expiration date. 612 00:27:39,020 --> 00:27:40,800 People put this stuff online, folks. 613 00:27:43,580 --> 00:27:47,420 How about this particular guy that put his expense accounts online? 614 00:27:48,120 --> 00:27:52,920 Funny how he blurred out, or I did the blurring, but he put Xs through the last three digits 615 00:27:52,920 --> 00:27:53,860 of all his accounts. 616 00:27:54,860 --> 00:27:56,300 Just the last three digits. 617 00:27:56,300 --> 00:27:58,360 That's all 100 accounts. 618 00:27:59,800 --> 00:28:00,880 I'm going to read this. 619 00:28:00,900 --> 00:28:02,720 This is a translation of actual text. 620 00:28:03,200 --> 00:28:03,960 Good day. 621 00:28:03,980 --> 00:28:05,560 I have no small problem. 622 00:28:07,020 --> 00:28:09,860 I entered my serial number into the software. 623 00:28:09,900 --> 00:28:11,720 The message says the serial number is wrong. 624 00:28:11,980 --> 00:28:13,240 How can I fix the license? 625 00:28:13,380 --> 00:28:19,800 I purchased on the 23rd by means of visa account number expiration date. 626 00:28:20,180 --> 00:28:21,260 Let's see right there. 627 00:28:23,580 --> 00:28:25,440 For a t-shirt. 628 00:28:25,720 --> 00:28:26,280 No. 629 00:28:26,300 --> 00:28:29,640 Are police crime reports public information? 630 00:28:30,760 --> 00:28:31,840 Can't do you again. 631 00:28:32,020 --> 00:28:32,560 White shirt. 632 00:28:32,780 --> 00:28:33,220 Yes. 633 00:28:33,340 --> 00:28:33,900 Yes. 634 00:28:35,520 --> 00:28:36,780 For a t-shirt. 635 00:28:37,040 --> 00:28:38,040 Are they online? 636 00:28:39,780 --> 00:28:41,260 Oh man, that's too many. 637 00:28:41,960 --> 00:28:42,620 That's it? 638 00:28:42,720 --> 00:28:42,980 All right. 639 00:28:44,000 --> 00:28:45,080 Yes, they are. 640 00:28:46,800 --> 00:28:48,380 And here they are. 641 00:28:48,680 --> 00:28:50,020 Okay, they are online. 642 00:28:50,400 --> 00:28:54,980 They're not supposed to take every card in the person's wallet that got stolen 643 00:28:54,980 --> 00:29:00,640 and put them online with the account numbers and expiration dates. 644 00:29:01,660 --> 00:29:02,800 It's a bad idea. 645 00:29:04,960 --> 00:29:10,760 One through 28 of 28 hits for this site with the word Visa or MasterCard. 646 00:29:11,140 --> 00:29:13,080 How about expense reports for this county? 647 00:29:13,800 --> 00:29:17,780 Okay, they list every bank account number that they use for the entire county's purchases. 648 00:29:18,000 --> 00:29:20,320 It is no small report. 649 00:29:23,000 --> 00:29:24,200 Staplers, long distance. 650 00:29:24,300 --> 00:29:24,740 Visa. 651 00:29:24,980 --> 00:29:26,600 Cards and dog food. 652 00:29:28,640 --> 00:29:32,020 And a video series, each one of which was $300. 653 00:29:33,040 --> 00:29:35,340 The county's paying for wicked stuff these days. 654 00:29:36,940 --> 00:29:40,980 All right, the credit card thing, most people say, yeah, this is an isolated thing. 655 00:29:41,020 --> 00:29:42,740 I'm here to tell you that it absolutely is not. 656 00:29:42,820 --> 00:29:46,880 It's boring as all get out for me and my fingers about to get tired because we got 657 00:29:46,880 --> 00:29:53,640 credit cards, we got credit cards, expiration dates, credit, expiration, credit, credit, 658 00:29:54,120 --> 00:29:54,560 credit. 659 00:29:54,980 --> 00:29:55,580 Credit. 660 00:29:55,760 --> 00:29:56,360 Credit. 661 00:29:56,900 --> 00:29:57,500 Credit. 662 00:29:57,760 --> 00:29:58,020 Credit. 663 00:29:58,680 --> 00:29:59,540 Credit cards. 664 00:30:00,140 --> 00:30:01,220 Credit cards. 665 00:30:01,380 --> 00:30:02,340 Credit cards. 666 00:30:02,580 --> 00:30:03,680 Credit cards. 667 00:30:04,040 --> 00:30:04,940 Credit cards. 668 00:30:05,120 --> 00:30:06,280 You guys are writing way too fast. 669 00:30:06,340 --> 00:30:06,740 Cut that out. 670 00:30:08,700 --> 00:30:09,440 Credit cards. 671 00:30:09,700 --> 00:30:10,800 Credit cards. 672 00:30:10,980 --> 00:30:11,980 Credit cards. 673 00:30:12,200 --> 00:30:13,120 Credit cards. 674 00:30:13,380 --> 00:30:13,980 Credit cards. 675 00:30:13,980 --> 00:30:14,760 Credit cards. 676 00:30:15,020 --> 00:30:16,140 Credit cards. 677 00:30:16,140 --> 00:30:16,800 Credit cards. 678 00:30:16,860 --> 00:30:17,500 Credit cards. 679 00:30:17,520 --> 00:30:18,280 Credit cards. 680 00:30:18,280 --> 00:30:19,000 Credit cards. 681 00:30:19,000 --> 00:30:19,260 Credit cards. 682 00:30:19,960 --> 00:30:20,560 Credit cards. 683 00:30:20,560 --> 00:30:20,880 Credit cards. 684 00:30:20,880 --> 00:30:24,260 Credit cards. 685 00:30:24,260 --> 00:30:24,960 Credit cards. 686 00:30:24,980 --> 00:30:30,000 credit cards, credit cards, credit cards, credit cards. I can get an extension here, goons, 687 00:30:30,000 --> 00:30:38,820 right? Credit cards. We proudly accept Visa, MasterCard, Discover, American Express. Yes, 688 00:30:38,840 --> 00:30:54,740 folks, Google takes them all. All right, for an ice cold Red Bull. What 689 00:30:54,740 --> 00:30:58,840 keeps somebody from using pilfered credit card numbers online, even if they have an expiration 690 00:30:58,840 --> 00:31:05,040 date? Green shirt right here. Yeah, CVCs. Some people call them CVVs. Sometimes you need them 691 00:31:05,040 --> 00:31:17,180 to make online purchases. Here we go. How about credit cards with CVV codes? How about more CVV 692 00:31:17,180 --> 00:31:23,280 codes? CVCs, CVV2s. How about bank routing numbers, checking accounts, PayPal passwords, 693 00:31:23,620 --> 00:31:24,380 eBay IDs? 694 00:31:24,740 --> 00:31:29,920 Bank account numbers, routing numbers. You name it, it's all there. For a Red Bull, what's 695 00:31:29,920 --> 00:31:34,940 the one nine-digit number you should never give to anyone? Back row, gray shirt. Social. 696 00:31:35,140 --> 00:31:41,900 Didn't I already give you a prize? Oh, man. Give it to the guy in the purple shirt. Purple 697 00:31:41,900 --> 00:31:49,860 shirt right there in the corner that ratted him out. Bonus question, what can you do with 698 00:31:49,860 --> 00:31:53,040 somebody's social? Right here, black shirt. Yes. 699 00:31:54,740 --> 00:32:01,320 Absolutely. You can own the man. Steal their identity. Let's take a look at how this happens. 700 00:32:01,400 --> 00:32:05,880 Some people put them into their source code, hard code them into their source code for 701 00:32:05,880 --> 00:32:13,920 their financial transactions. Certain healthcare corporations actually did this. Remember 702 00:32:13,920 --> 00:32:18,960 those police reports? Well, I'm sure they canceled all those credit card numbers. I'm 703 00:32:18,960 --> 00:32:23,380 thinking they probably didn't cancel the social security numbers of the victims when they 704 00:32:23,380 --> 00:32:24,220 posted them online. 705 00:32:25,520 --> 00:32:32,100 Visas, you never know. Social security, social security, social security. How about resumes? 706 00:32:32,140 --> 00:32:36,840 This is a fancy word for resume, I think. Somebody posts their resume online, puts 707 00:32:36,840 --> 00:32:44,380 their soc in the resume. Yeah, it happens. This guy used the fancy word for resume and 708 00:32:44,380 --> 00:32:51,620 the unfancy word passport and gave his passport number. How about schools? How many of you 709 00:32:51,620 --> 00:32:54,100 have had that number used by your school? 710 00:32:54,860 --> 00:33:01,020 Okay. Student ID numbers? Student ID numbers. There's a ton of them. Once you get a lock 711 00:33:01,020 --> 00:33:05,460 on a grade list, you fan it out through the whole school. Find more of them and more of 712 00:33:05,460 --> 00:33:11,620 them and more of them. Sometimes these sites get blocked. You guys know where this is going, 713 00:33:11,720 --> 00:33:19,400 right? Google's Cash. Sometimes the cash picks them right up. The yellow header is 714 00:33:19,400 --> 00:33:23,720 social security number. The column right next to it is the student's name. Social security 715 00:33:23,720 --> 00:33:28,960 Security number, student name, SOCHAs, names, grades, SOCHAs, names, grades. 716 00:33:29,300 --> 00:33:35,820 This particular report is the report of a city whose residents owed back sewage payments. 717 00:33:36,280 --> 00:33:43,980 They posted their SOCHA, their names, how much they owed, and their address online. 718 00:33:45,980 --> 00:33:46,620 Okay? 719 00:33:46,860 --> 00:33:49,560 I mean, but come on, it's a pretty small report. 720 00:33:52,680 --> 00:33:55,880 Or maybe it's just not. 721 00:33:57,780 --> 00:34:02,460 Hundreds of residents of this particular city are going to be really pissed off in the next 722 00:34:02,460 --> 00:34:04,040 couple of days, I guarantee it. 723 00:34:07,640 --> 00:34:10,040 All right, that's about it for time. 724 00:34:11,200 --> 00:34:13,320 Prevention, don't put this stuff on the web. 725 00:34:13,520 --> 00:34:15,540 I mean, I don't need to talk to you guys about prevention. 726 00:34:15,740 --> 00:34:16,900 I'm going to do questions in a second. 727 00:34:18,200 --> 00:34:19,460 Keep an eye on my site. 728 00:34:19,460 --> 00:34:20,860 www.johnny.ihackstuff.com. 729 00:34:20,980 --> 00:34:24,820 I have a Google hacking forum, search engine hacking forum, and a database keeping track 730 00:34:24,820 --> 00:34:25,600 of some of this stuff. 731 00:34:25,820 --> 00:34:27,920 I do not post the credit card stuff online. 732 00:34:30,600 --> 00:34:33,040 I'm going to give out swag for best question in a second. 733 00:34:33,200 --> 00:34:33,500 Are we okay? 734 00:34:33,640 --> 00:34:33,880 Five? 735 00:34:34,880 --> 00:34:35,280 Ten! 736 00:34:35,620 --> 00:34:37,680 Oh, we're going to have a power question and answer session. 737 00:34:38,380 --> 00:34:38,980 All right. 738 00:34:39,840 --> 00:34:42,060 Here's Foundstone's screenshot because I'm not a jerk. 739 00:34:42,960 --> 00:34:43,360 Okay. 740 00:34:45,500 --> 00:34:46,340 There's my webpage. 741 00:34:47,700 --> 00:34:48,920 Let me give the thanks out. 742 00:34:48,960 --> 00:34:49,440 Thanks to guys. 743 00:34:49,460 --> 00:34:50,460 Thanks to God for the gift of life. 744 00:34:50,520 --> 00:34:54,720 Thanks to my wife for the gift of love, my children for the gift of laughter, and my 745 00:34:54,720 --> 00:34:56,240 friends for filling in the blanks. 746 00:34:56,420 --> 00:35:01,500 Let me give a shout out to Singris who's going to be publishing Google for penetration 747 00:35:02,260 --> 00:35:02,660 testers. 748 00:35:02,720 --> 00:35:04,160 It's going to be a Google hacking book. 749 00:35:04,300 --> 00:35:06,360 I'm looking at doing primary author on it. 750 00:35:06,400 --> 00:35:07,240 It should be out in December. 751 00:35:07,720 --> 00:35:10,060 I appreciate your support when that time comes around. 752 00:35:10,600 --> 00:35:15,060 My company and the guys that I work with, let me give a shout out to the Strike Force 753 00:35:16,140 --> 00:35:19,440 and all the guys on the forum that actually make this happen. 754 00:35:19,440 --> 00:35:20,920 We call them the Google masters. 755 00:35:21,380 --> 00:35:22,820 These guys do a bang up job. 756 00:35:24,540 --> 00:35:26,340 Quality question and answer time. 757 00:35:27,140 --> 00:35:27,680 Questions? 758 00:35:28,320 --> 00:35:29,280 Yes, over here. 759 00:35:29,820 --> 00:35:31,340 Can you use robots.txt? 760 00:35:31,740 --> 00:35:32,740 Yeah, absolutely. 761 00:35:33,020 --> 00:35:33,970 You can use robots.txt. 762 00:35:35,260 --> 00:35:39,100 The word's still out as to whether or not that actually works. 763 00:35:39,320 --> 00:35:40,360 I can't tell you. 764 00:35:40,900 --> 00:35:46,460 I've seen lots of examples of sites whose data was posted online that had a valid robots.txt 765 00:35:46,460 --> 00:35:46,760 file. 766 00:35:47,640 --> 00:35:48,180 Yes? 767 00:35:48,180 --> 00:35:52,500 Have you used Google Alert to modulate for updates on your services? 768 00:35:52,660 --> 00:35:53,060 Yes. 769 00:35:53,340 --> 00:35:56,260 Actually, I got a trial membership sent to me sort of out of the blue. 770 00:35:56,300 --> 00:35:59,040 I don't know how this service works, but I keep track of my web page. 771 00:35:59,240 --> 00:36:00,980 The Google Alert service is excellent. 772 00:36:01,540 --> 00:36:06,720 When somebody posts a reference to my site, I get an email saying somebody's pointing 773 00:36:06,720 --> 00:36:08,000 to you, that sort of deal. 774 00:36:08,880 --> 00:36:11,940 I got, what, three prizes left here? 775 00:36:12,020 --> 00:36:12,440 Are we almost out? 776 00:36:12,840 --> 00:36:16,520 Then there's going to be a push for the rest of the Red Bulls, but we're going to do a 777 00:36:16,520 --> 00:36:17,620 vote on best question. 778 00:36:17,620 --> 00:36:19,620 So, keep the questions in mind. 779 00:36:19,820 --> 00:36:20,120 Yeah? 780 00:36:20,600 --> 00:36:24,320 So, do you think Google has any responsibility to fix this kind of results? 781 00:36:25,880 --> 00:36:27,540 You're trying to get me in trouble, aren't you? 782 00:36:27,820 --> 00:36:31,420 Question is, do you think Google has any responsibility to fix this crap? 783 00:36:33,120 --> 00:36:35,480 Google's responsibility is to serve it up fresh. 784 00:36:37,400 --> 00:36:38,640 That's the way I look at it. 785 00:36:39,040 --> 00:36:43,720 That's the way they've done it in the past, and they've folded to no one except major 786 00:36:43,720 --> 00:36:44,160 countries. 787 00:36:47,620 --> 00:36:51,060 I'm trying to find out, when you started working for a company, you got a lot of these 788 00:36:51,060 --> 00:36:51,720 types of problems. 789 00:36:52,040 --> 00:36:53,720 I'm trying to find out what they all are. 790 00:36:53,880 --> 00:36:56,520 Could I get them to find it just by looking through the site? 791 00:36:57,560 --> 00:36:57,960 Yes. 792 00:36:58,180 --> 00:36:58,500 Yes. 793 00:36:58,560 --> 00:36:59,320 That's a good question. 794 00:36:59,460 --> 00:37:01,780 I work for a company that's got a huge web presence. 795 00:37:02,200 --> 00:37:07,480 The answer to the question is, yeah, you can go through every single reference that 796 00:37:07,480 --> 00:37:08,480 Google has in your company. 797 00:37:08,640 --> 00:37:09,820 Just use the site variable. 798 00:37:10,040 --> 00:37:11,180 Page through all the pages. 799 00:37:12,000 --> 00:37:16,480 Optionally, you can use tools like Athena to automate it, but the real way to do it 800 00:37:16,480 --> 00:37:17,600 is to just check in. 801 00:37:17,600 --> 00:37:17,860 Find yourself. 802 00:37:18,880 --> 00:37:19,400 Yes? 803 00:37:20,420 --> 00:37:26,740 What are the risks of Google being able to access the cached data on the web page that 804 00:37:26,740 --> 00:37:28,600 requires authentication of the server? 805 00:37:28,900 --> 00:37:30,980 Oh, the old authentication question. 806 00:37:31,160 --> 00:37:32,200 What about authenticated pages? 807 00:37:33,380 --> 00:37:37,960 Google does not do any sort of magic to bypass authentication, first of all. 808 00:37:38,400 --> 00:37:39,240 That's a rumor. 809 00:37:39,520 --> 00:37:47,180 What they do is they pound sites mercilessly, so if they come after your site and your authentication 810 00:37:47,600 --> 00:37:49,080 is broken, they cache the page. 811 00:37:49,640 --> 00:37:52,640 If your authentication comes back up, the cache still has it. 812 00:37:54,160 --> 00:37:57,620 The short answer is, no, by default, they don't bypass authentication. 813 00:37:58,200 --> 00:38:03,640 The other answer is, they have, in the past, appeared to have used credentials to access 814 00:38:04,320 --> 00:38:10,840 members only areas, so it appears that in some cases, they do have cached images, but 815 00:38:10,840 --> 00:38:13,520 that's up to the site to give that to Google. 816 00:38:14,080 --> 00:38:15,640 I don't know how they do it behind the scenes. 817 00:38:16,140 --> 00:38:17,580 Do you find more of these things? 818 00:38:24,460 --> 00:38:26,320 How long does it take to go away? 819 00:38:26,420 --> 00:38:27,420 I don't know the answer to that. 820 00:38:27,900 --> 00:38:29,340 I don't know what the answer is. 821 00:38:29,440 --> 00:38:30,800 I know you can speed up the process. 822 00:38:31,840 --> 00:38:35,680 Google's webmaster section has all the information you need to actually pull something out of 823 00:38:35,680 --> 00:38:36,720 the cache and make it go away. 824 00:38:37,480 --> 00:38:39,080 You can go in and fill out a form. 825 00:38:39,700 --> 00:38:42,140 Don't try that unless you actually own that site, please. 826 00:38:42,460 --> 00:38:44,280 A lot of questions run out of time. 827 00:38:44,300 --> 00:38:45,400 We're down to four minutes. 828 00:38:45,440 --> 00:38:47,440 Is there a way to get a list of all these variables? 829 00:38:48,700 --> 00:38:51,540 Yeah, go to Google's API page. 830 00:38:52,760 --> 00:38:53,760 Yes, white shirt. 831 00:38:58,560 --> 00:39:03,340 Have I worked with Unicode, Japanese characters, stuff like that, or does Google work with 832 00:39:03,340 --> 00:39:03,500 it? 833 00:39:03,760 --> 00:39:05,520 The answer is no and yes. 834 00:39:06,000 --> 00:39:08,220 I haven't, and yes, Google will handle it fine. 835 00:39:08,500 --> 00:39:09,120 White shirt. 836 00:39:10,140 --> 00:39:14,600 I thought it was the same as the text one, but it has a big number. 837 00:39:14,800 --> 00:39:15,160 Yes. 838 00:39:15,160 --> 00:39:16,240 That's a quality question. 839 00:39:16,240 --> 00:39:17,280 I think that's in the running. 840 00:39:17,400 --> 00:39:18,480 What about date range? 841 00:39:19,080 --> 00:39:19,520 Yes. 842 00:39:20,320 --> 00:39:20,760 Yes. 843 00:39:20,860 --> 00:39:23,920 Date range I did not cover, and yes, it is Julian. 844 00:39:24,220 --> 00:39:27,520 It is the date that Google actually picked up that page. 845 00:39:27,960 --> 00:39:29,880 It's a good question, and yes, it is in Julian. 846 00:39:30,040 --> 00:39:30,800 There's no way around it. 847 00:39:35,680 --> 00:39:36,120 Trending. 848 00:39:36,120 --> 00:39:38,260 It's really good for trending, looking for spikes. 849 00:39:39,500 --> 00:39:41,140 It's really good for intelligence. 850 00:39:41,220 --> 00:39:45,700 The talk that Mudge was going to give, it's perfectly suited for intelligence to see when, 851 00:39:46,240 --> 00:39:49,760 like, certain sites go up around certain media events. 852 00:39:50,080 --> 00:39:51,000 It's a good question. 853 00:39:51,720 --> 00:39:53,480 Let's do two more questions. 854 00:39:53,560 --> 00:39:54,280 Blue shirt, right here. 855 00:39:54,740 --> 00:39:59,600 What about searching for sensitive information to see if some websites have it as a secret, 856 00:39:59,900 --> 00:40:02,380 or that will send you to my social security office? 857 00:40:03,120 --> 00:40:03,600 Yes. 858 00:40:03,980 --> 00:40:09,960 You can search for your own social, but I'm not going to answer that question in any more 859 00:40:09,960 --> 00:40:11,800 detail because it will get abused. 860 00:40:12,100 --> 00:40:13,120 Just use your imagination. 861 00:40:13,340 --> 00:40:13,880 Let me do white shirt. 862 00:40:14,020 --> 00:40:14,760 I've abused you guys. 863 00:40:14,760 --> 00:40:19,300 Do you notify any of the sites, like the police department or the city, of the most 864 00:40:19,300 --> 00:40:21,000 egregious stuff you've found? 865 00:40:21,700 --> 00:40:25,000 I make it a policy to try to alert everyone. 866 00:40:25,640 --> 00:40:26,880 Unfortunately, I cannot. 867 00:40:27,140 --> 00:40:32,040 My site has made several attempts through the forum to let people know, and as far as 868 00:40:32,040 --> 00:40:37,020 I know, we've gotten no responses from anyone except one guy who mentioned in an email to 869 00:40:37,020 --> 00:40:39,760 another guy, not even to us, hey, they're cool. 870 00:40:39,820 --> 00:40:40,820 They let me know I had a problem. 871 00:40:41,060 --> 00:40:42,700 Your question about the police department? 872 00:40:43,240 --> 00:40:44,460 I found that. 873 00:40:44,460 --> 00:40:45,240 I found that three days ago. 874 00:40:46,100 --> 00:40:47,000 Haven't had a chance to. 875 00:40:48,520 --> 00:40:49,160 All right. 876 00:40:49,180 --> 00:40:49,560 That's it. 877 00:40:49,620 --> 00:40:50,300 I think we're out of time. 878 00:40:50,400 --> 00:40:51,340 We've got to keep it on track here. 879 00:40:51,700 --> 00:40:52,400 Thank you, guys.