1 00:00:00,000 --> 00:00:03,060 Good afternoon, good evening, welcome to track two. 2 00:00:05,200 --> 00:00:11,080 My name is Michael Shearer, the Prez 98, and I have to tell you that when the schedule 3 00:00:11,080 --> 00:00:15,280 came out and I found out that my talk was 5 o'clock on Sunday, I was a little worried, 4 00:00:16,160 --> 00:00:17,680 and I'm not worried at all. 5 00:00:17,740 --> 00:00:25,400 Thank you so much for more or less packing the room here, and I hope that your commitment 6 00:00:25,400 --> 00:00:29,040 of the next 45 to 50 minutes with me will be worth it, so thank you. 7 00:00:30,220 --> 00:00:36,060 I'm going to talk today about a tool, a search engine called Shodan, and some applications 8 00:00:36,060 --> 00:00:37,740 that it has for penetration testing. 9 00:00:40,660 --> 00:00:42,120 This is what we're going to talk today. 10 00:00:42,340 --> 00:00:44,960 I'm going to talk about what is Shodan. 11 00:00:45,100 --> 00:00:49,760 It's a search engine, but it's a little bit different than other search engines, so I 12 00:00:49,760 --> 00:00:55,820 want to explain how it's different, talk about some basic operations, a little bit 13 00:00:55,820 --> 00:00:59,980 about the applications of the search engine to penetration testing, and then I'm going 14 00:00:59,980 --> 00:01:03,160 to talk about how I work through a number of case studies, and I want to present them 15 00:01:03,160 --> 00:01:03,480 to you. 16 00:01:03,580 --> 00:01:07,020 That's kind of the bulk of the presentation and how that really applies to what you can 17 00:01:07,020 --> 00:01:08,240 do as a penetration tester. 18 00:01:10,740 --> 00:01:16,200 So when I use penetration testing in the title, I could use all these things in the 19 00:01:16,200 --> 00:01:20,440 title, and I'm not suggesting that all these things mean the same thing because they're 20 00:01:20,440 --> 00:01:20,920 all different. 21 00:01:21,660 --> 00:01:28,020 However, if you do any of these things, then what I'm going to talk to you today applies 22 00:01:28,020 --> 00:01:28,580 to you. 23 00:01:28,760 --> 00:01:29,960 So I could say... 24 00:01:29,980 --> 00:01:33,480 I could put all of these things in the title, but then the title would be just unwieldy. 25 00:01:33,600 --> 00:01:36,840 So when I say penetration testing, this is what I mean, all of this stuff. 26 00:01:39,700 --> 00:01:41,660 How many of you do one of these things? 27 00:01:41,900 --> 00:01:42,900 Probably most of you. 28 00:01:43,220 --> 00:01:43,580 Okay. 29 00:01:43,620 --> 00:01:43,980 Good. 30 00:01:46,540 --> 00:01:47,600 So what is Shodan? 31 00:01:48,260 --> 00:01:49,680 Shodan is a search engine. 32 00:01:49,860 --> 00:01:51,080 It's a computer search engine. 33 00:01:51,280 --> 00:01:55,220 It's designed by a web developer named John Matherly, who's with us here today, actually, 34 00:01:55,280 --> 00:01:56,480 and we'll talk to him a little bit later. 35 00:01:58,060 --> 00:01:58,780 But it does... 36 00:01:59,960 --> 00:02:01,180 It's not a search engine. 37 00:02:01,380 --> 00:02:04,500 It's not the same as a search engine like Google or Bing or Yahoo. 38 00:02:05,440 --> 00:02:12,280 Those search engines crawl webpages for data and then index that data and make it searchable 39 00:02:12,280 --> 00:02:12,700 for you. 40 00:02:13,360 --> 00:02:16,680 Shodan, on the other hand, interrogates ports. 41 00:02:16,880 --> 00:02:21,400 So interrogates port 80 of a particular server, and it grabs the banner. 42 00:02:21,840 --> 00:02:24,060 So we're not talking about the data on the webpage. 43 00:02:24,320 --> 00:02:25,340 We're actually talking about the banner. 44 00:02:25,460 --> 00:02:28,660 So whatever HTTP status... 45 00:02:28,780 --> 00:02:29,500 So you get... 46 00:02:30,040 --> 00:02:31,020 And then the banner. 47 00:02:31,160 --> 00:02:35,580 So IAS 5.0 or 6.0, whatever software is running, version number, et cetera. 48 00:02:36,080 --> 00:02:39,360 And then indexes the banners rather than the web content for searching. 49 00:02:39,960 --> 00:02:44,340 So we have a search engine of banners and not of content. 50 00:02:46,700 --> 00:02:53,240 So instead of looking for specific content on a page, we're looking for specific information about the page. 51 00:02:53,440 --> 00:02:55,020 So is it a desktop? 52 00:02:55,300 --> 00:02:55,940 Is it a server? 53 00:02:56,140 --> 00:02:56,820 A router? 54 00:02:56,900 --> 00:02:57,360 A switch? 55 00:02:57,360 --> 00:02:58,080 Or a printer? 56 00:02:58,180 --> 00:02:58,760 Or some other stuff? 57 00:02:58,760 --> 00:02:59,340 Or some other sort of device? 58 00:03:01,540 --> 00:03:04,700 We can find that out by looking at the content in the banner. 59 00:03:06,200 --> 00:03:11,740 Typically, these are on port 80, but they could be banners on port 21 or 22 or 23 or some others that we'll talk about. 60 00:03:13,420 --> 00:03:19,840 Optimizing search results for Shodan requires us, or at least is helpful for us, to have some knowledge of what a banner looks like. 61 00:03:19,920 --> 00:03:21,480 So we'll talk a little bit about that as well. 62 00:03:23,740 --> 00:03:25,280 Basic operations of Shodan. 63 00:03:26,160 --> 00:03:26,560 Shodan. 64 00:03:28,040 --> 00:03:30,460 This is just a nice little screenshot of Shodan. 65 00:03:31,520 --> 00:03:37,080 The URL, by the way, is www.shodanhq.com. 66 00:03:38,040 --> 00:03:43,560 And you'll come to this nice page here, and it's got a search box on the top just like every other search engine. 67 00:03:43,800 --> 00:03:48,460 And again, like I talked about, it's going to be a little bit different in terms of what you're searching for. 68 00:03:50,720 --> 00:03:55,100 There are also two Firefox add-ons that I'll just briefly mention. 69 00:03:55,720 --> 00:03:56,540 One is a search engine. 70 00:03:56,540 --> 00:04:03,780 There's a search provider add-on, which adds, if you're using Firefox, adds Shodan to the little box in the top right corner of the browser. 71 00:04:04,060 --> 00:04:10,560 And then there's a Shodan helper add-on that is a sidebar extension for you. 72 00:04:10,720 --> 00:04:13,380 I'm not going to talk about these other than to just mention them, that they're available. 73 00:04:17,580 --> 00:04:18,680 So basic operations. 74 00:04:18,960 --> 00:04:26,020 What's the difference between searching Google or searching Yahoo or searching Shodan? 75 00:04:26,100 --> 00:04:26,220 Well. 76 00:04:26,540 --> 00:04:27,860 The syntax is kind of the same. 77 00:04:28,060 --> 00:04:32,360 We can use Boolean operations, plus, minus, that sort of thing. 78 00:04:32,840 --> 00:04:35,520 We can use quotation marks to narrow down a search. 79 00:04:36,220 --> 00:04:37,780 And you just enter them into the box. 80 00:04:37,920 --> 00:04:42,240 So the syntax, of course, of what you put into Shodan is the same as any other search engine. 81 00:04:42,360 --> 00:04:46,740 However, the actual content of your search term is going to be a little bit different. 82 00:04:48,540 --> 00:04:50,340 And we'll talk a little bit about searching later. 83 00:04:50,920 --> 00:04:51,360 Login. 84 00:04:52,500 --> 00:04:53,380 There's a couple options. 85 00:04:54,100 --> 00:04:56,520 You can use Shodan without logging in. 86 00:04:56,540 --> 00:05:01,520 You can use Shodan without logging in at all, although there is some limitations to the results that you can get and some of the filters that you can use. 87 00:05:03,060 --> 00:05:07,840 You can also create a Shodan account, kind of an account specifically for that page. 88 00:05:08,240 --> 00:05:17,040 Or if you have any other one of these accounts, Google, Twitter, Yahoo, AOL, Facebook, OpenID, if you have those accounts, you can actually log in with those accounts as well. 89 00:05:17,880 --> 00:05:20,500 And again, like I said, login is not required to use Shodan. 90 00:05:20,720 --> 00:05:21,940 But there's a couple filters. 91 00:05:22,220 --> 00:05:25,440 For example, a country and a net filter, which I'll talk about a little bit later. 92 00:05:25,560 --> 00:05:26,320 And those. 93 00:05:26,540 --> 00:05:28,760 That will not work for you if you don't log in. 94 00:05:29,480 --> 00:05:34,480 There's also an export feature that allows you to export results into an XML format. 95 00:05:34,780 --> 00:05:36,300 And that will not work unless you log in. 96 00:05:39,180 --> 00:05:40,560 So just log in page. 97 00:05:40,780 --> 00:05:43,640 You can just create a Shodan account or you can just log in one of those other accounts. 98 00:05:43,760 --> 00:05:45,860 Most people have something of one of those accounts. 99 00:05:47,640 --> 00:05:48,740 If that's what you want to do. 100 00:05:49,420 --> 00:05:50,940 So let me talk a little bit about the filters. 101 00:05:51,300 --> 00:05:52,080 Filters are ways. 102 00:05:52,200 --> 00:05:56,420 You can take the amount of data that you get from Shodan and kind of narrow it. 103 00:05:56,420 --> 00:05:58,420 And then you can sort it down to a manageable level. 104 00:06:00,120 --> 00:06:07,320 As we look at later, if you type in the word Cisco into Shodan, there's 350,000 or something like that devices in Shodan that have Cisco in their banner. 105 00:06:07,460 --> 00:06:10,260 Well, that's not really useful for us if we're looking for a specific device. 106 00:06:10,820 --> 00:06:12,860 So the filters will help narrow us down. 107 00:06:14,100 --> 00:06:15,580 The first is an after. 108 00:06:15,860 --> 00:06:19,980 So in the case of the slide here, the filter is actually the word in bold. 109 00:06:21,360 --> 00:06:24,880 So followed by a colon and then followed by whatever the syntax is. 110 00:06:25,020 --> 00:06:26,360 So for example, if we put after. 111 00:06:26,360 --> 00:06:36,280 And then a date in the format of day, month, year, we can limit our results to information that's been added to the search engine since that date. 112 00:06:36,420 --> 00:06:38,340 So we can look for frequency of data. 113 00:06:38,560 --> 00:06:41,760 Or look for data, we can exclude older data if we want. 114 00:06:42,580 --> 00:06:44,180 Or before, we can do that as well. 115 00:06:45,140 --> 00:06:48,100 The country filter filters by two-letter country code. 116 00:06:48,260 --> 00:06:53,840 So if you know the two-letter country code, whatever the IP address country that it's registered to. 117 00:06:54,120 --> 00:06:56,120 So for example, obviously country. 118 00:06:56,360 --> 00:07:00,820 U.S. will limit it to U.S. registered IP addresses. 119 00:07:03,000 --> 00:07:06,380 Host name filters by text in the host name or domain. 120 00:07:06,620 --> 00:07:12,620 So if we want to limit our results to the .edu domain or if we want to limit our results to google.com. 121 00:07:12,860 --> 00:07:19,280 Or we want to, you know, whatever words you want to use in the domain or a host name, you can limit your results to that. 122 00:07:21,460 --> 00:07:25,900 Net filter, specific IP range or subnet. 123 00:07:26,000 --> 00:07:26,340 Obviously, you can limit your results to that. 124 00:07:26,360 --> 00:07:27,900 Obviously, if you're looking for a specific target. 125 00:07:28,460 --> 00:07:32,940 Say your company owns a class B or something like that and you just want to filter on that. 126 00:07:33,400 --> 00:07:34,320 Obviously, you can do that. 127 00:07:35,320 --> 00:07:39,280 The OS filter will search by specific operating systems. 128 00:07:39,360 --> 00:07:42,000 So Linux, Windows, whatever you want to put in there. 129 00:07:43,180 --> 00:07:45,520 Port will narrow by specific services. 130 00:07:45,780 --> 00:07:48,240 I'll talk a little bit about the services that are in Shodan now. 131 00:07:48,660 --> 00:07:55,280 And then there's also a number of SSL filters that are available with an SSL add-on to Shodan. 132 00:07:58,060 --> 00:08:00,760 This slide just kind of shows you where you can enter the data. 133 00:08:01,440 --> 00:08:05,520 All the data you can enter directly into the search box if you want, the filters. 134 00:08:06,400 --> 00:08:10,680 The other ways that you can filter is if you look at the, there's a drop down map. 135 00:08:11,200 --> 00:08:18,500 And as you can see on the map, the color of the country is kind of color coded based on how many IP addresses in that country have been searched. 136 00:08:18,760 --> 00:08:24,780 So you can see obviously the US has the most on here as well as China, Japan, and Germany, et cetera. 137 00:08:25,940 --> 00:08:26,340 Okay. 138 00:08:26,360 --> 00:08:29,220 And then you can filter by port by clicking on the box there. 139 00:08:29,340 --> 00:08:32,860 But it's easy enough just to put it in the search box if you want. 140 00:08:36,600 --> 00:08:44,040 On the country filter, if you mouse over a country, it will tell you, the country will turn yellow and it will tell you how many hosts have been scanned in that country. 141 00:08:44,160 --> 00:08:50,140 So, for example, here in the United States, some, you know, ridiculously large number. 142 00:08:54,560 --> 00:08:57,640 So a couple search examples using the filters. 143 00:08:58,500 --> 00:09:01,060 I know you probably can't see it from here, but I'll read it to you. 144 00:09:01,180 --> 00:09:05,460 The search here is Apache country colon CH. 145 00:09:05,760 --> 00:09:07,500 CH being the country code for Switzerland. 146 00:09:08,040 --> 00:09:16,300 So what this will do is it will find all the results in Shodan that are registered to a Swiss IP address that have the word Apache in the banner. 147 00:09:17,160 --> 00:09:27,380 And the results that you'll see here, over here on the left, you'll have a IP address with a hyperlink to the actual result. 148 00:09:28,680 --> 00:09:32,300 Below that, you'll have operating system if it has been identified. 149 00:09:36,000 --> 00:09:39,900 Below that, there's a date that that result was added to the search engine. 150 00:09:40,480 --> 00:09:43,520 And then there's a nice little country flag here as well. 151 00:09:44,160 --> 00:09:46,000 This here is the actual banner. 152 00:09:46,300 --> 00:09:48,220 That you get back from that result. 153 00:09:48,840 --> 00:09:51,880 And any search terms that you enter will be highlighted in red. 154 00:09:52,000 --> 00:09:58,680 So you can see here that this was a Apache 2.2.1.3 running on free BSD, et cetera. 155 00:09:59,400 --> 00:10:05,920 So this is where I talk about knowing what the banner shows you is helpful for searching for certain sorts of results. 156 00:10:08,000 --> 00:10:11,020 Here the search term is Apache 2.2.3. 157 00:10:11,200 --> 00:10:16,100 So this will find any servers that have Apache 2.2.2.3. 158 00:10:16,100 --> 00:10:16,640 In the banner. 159 00:10:17,040 --> 00:10:25,420 Here we didn't use the country code and Shonan is helpful for us and actually will display the top four countries by results. 160 00:10:26,340 --> 00:10:28,680 So United States, Germany, France, Canada. 161 00:10:29,000 --> 00:10:34,200 If we're logged in so that we can use the country filter, we can just click on that and that will filter that down further for us. 162 00:10:40,560 --> 00:10:42,520 Basic operations, a host name filter. 163 00:10:42,800 --> 00:10:43,020 Okay. 164 00:10:43,080 --> 00:10:44,540 So we want to filter by host name. 165 00:10:44,540 --> 00:10:49,140 So the search here is Apache host name colon dot nist dot gov. 166 00:10:49,340 --> 00:10:55,240 So now we can limit our searches to devices in the dot nist dot gov domain that have Apache in the filter. 167 00:10:55,860 --> 00:10:58,520 Or they have Apache in the web banner. 168 00:10:59,200 --> 00:11:01,980 Or IAS 5.0 host name EDU. 169 00:11:02,180 --> 00:11:09,560 So now we're looking at just IAS 5.0 or Microsoft 2000 servers that are in the EDU domain. 170 00:11:09,780 --> 00:11:14,520 And obviously if you wanted to put a specific university or something like that, you could do that. 171 00:11:14,540 --> 00:11:15,500 You could certainly do that as well. 172 00:11:20,500 --> 00:11:23,020 And then I talked about the net and the net filter. 173 00:11:23,300 --> 00:11:27,360 So if you want to filter by an IP or CIDR notation, you can certainly do that as well. 174 00:11:28,060 --> 00:11:32,580 Definitely useful if you really want to limit down to one specific area that you're looking for. 175 00:11:33,200 --> 00:11:37,260 And then the OS filter if you were just looking for specific operating system. 176 00:11:42,660 --> 00:11:43,400 Finally, you can. 177 00:11:44,120 --> 00:11:44,520 Okay. 178 00:11:44,520 --> 00:11:45,760 Filter by port. 179 00:11:46,680 --> 00:11:49,440 Current collection is FTP on 21. 180 00:11:50,340 --> 00:11:51,480 SSH on 22. 181 00:11:51,800 --> 00:11:52,580 Telnet on 23. 182 00:11:53,800 --> 00:11:55,500 HTTP on 80. 183 00:11:56,340 --> 00:11:57,840 SNMP on 161. 184 00:11:58,120 --> 00:12:03,040 And recently added is HTTPS data on 443. 185 00:12:03,900 --> 00:12:10,740 I should note and I'll talk a little bit later that this data is only available through an add-on which requires some credits. 186 00:12:16,720 --> 00:12:22,720 I did talk, so the SSL filters, these are the SSL filters that are available with the SSL add-on. 187 00:12:23,200 --> 00:12:35,080 So you can search for all, I won't go through them specifically, but they're self-explanatory as to what you can search for if you're looking for specific information in the certificate or the cipher that's being used. 188 00:12:35,180 --> 00:12:39,700 So the version of SSL or whatever certificate information you're looking for. 189 00:12:45,440 --> 00:12:54,720 Search history for Shodan, if you create an account, just using Shodan, the search history in essence is disabled. 190 00:12:55,080 --> 00:12:57,380 In other words, your searches aren't being saved for you. 191 00:12:58,020 --> 00:13:09,680 If you do create an account and you can enable search history and then you can save your own searches so that if you find searches that are useful to you or searches that are finding useful data for you, you can kind of save them. 192 00:13:11,920 --> 00:13:19,400 And again, if you go ahead and disable that once you've already enabled it, then your searches won't be indexed by the search engine. 193 00:13:25,900 --> 00:13:33,260 Shodan allows you to export data and this goes into XML format. 194 00:13:33,980 --> 00:13:38,700 So there's a sample data file there that you can download if you want to look at the format that it comes out in. 195 00:13:39,680 --> 00:13:43,320 And this is one of those add-on features that's available for Shodan. 196 00:13:49,580 --> 00:13:55,960 And the second add-on or the second other add-ons are the HTPS data and the extended search. 197 00:13:56,220 --> 00:14:00,580 So typically, even if you're logged into Shodan, you're going to be limited in the number of results you can see. 198 00:14:00,680 --> 00:14:04,140 If you do the extended search add-on, you can view up to 10,000 results. 199 00:14:06,280 --> 00:14:09,660 So one of the first questions that I, when I talked to John about this is, like, what are you going to do? 200 00:14:09,660 --> 00:14:15,480 What kind of feedback have you gotten about, you know, charging for add-ons or extra results and something like that? 201 00:14:15,540 --> 00:14:22,640 And he said, and he could probably talk about this later if he wants, but he hasn't, I mean, he's done a lot of work. 202 00:14:22,720 --> 00:14:26,520 So, I mean, he thinks his time is valuable and the work that he's done is valuable. 203 00:14:26,740 --> 00:14:36,040 So if you want extra results beyond what the initial search engine is giving you, then, you know, it feels like it's reasonable to ask for, you know, something for that. 204 00:14:36,180 --> 00:14:37,720 And we can talk about that later if you want. 205 00:14:40,520 --> 00:14:48,500 I will say that all the stuff that I've done was on the, not having, you know, using none of the add-ons. 206 00:14:50,120 --> 00:14:53,720 Shodan also has a newly added section called Network Radar. 207 00:14:54,380 --> 00:15:01,040 And this is just a nice little picture of the world and it will show you recently added data to Shodan. 208 00:15:01,280 --> 00:15:09,040 So what it will do is it will show you a nice little symbol over an area or city and then it will show you the banner. 209 00:15:09,040 --> 00:15:12,800 So this is just kind of a nice kind of view of things that have been recently added. 210 00:15:17,980 --> 00:15:22,100 Let's talk about applications of Shodan for penetration testing. 211 00:15:23,580 --> 00:15:32,660 So John originally developed this as a marketing and research tool and it was not really specifically geared towards penetration testers or the hacking community. 212 00:15:32,840 --> 00:15:39,020 But you can see, I'm sure that most of you can see that there's certainly opportunities here to look through the data. 213 00:15:39,040 --> 00:15:42,460 There's data that's been collected in Shodan for opportunities for penetration testing. 214 00:15:42,660 --> 00:15:43,660 So that's what I want to talk about. 215 00:15:45,020 --> 00:15:50,540 Before I go there, I want to talk a little bit about ethics and, yeah, ethics. 216 00:15:52,200 --> 00:16:01,640 And just kind of go through a couple, you know, hypothetical scenarios and kind of go through some questions that may come to mind. 217 00:16:01,880 --> 00:16:08,220 And I will say that when I did this test, when all the things that I've done for the examples here, 218 00:16:08,220 --> 00:16:09,940 were just done on my own. 219 00:16:10,080 --> 00:16:11,340 I was not authorized to do anything. 220 00:16:11,540 --> 00:16:15,060 So these are kind of rhetorical questions for you. 221 00:16:15,120 --> 00:16:21,120 Is it acceptable under any circumstances to view the configuration of a device that requires no authentication to view? 222 00:16:21,600 --> 00:16:31,880 So if we click on one of these links and it takes us to some sort of device and it logs us right in because there's no authentication, is that okay to view that? 223 00:16:32,720 --> 00:16:38,020 What about viewing the configuration of the device if we use the default username and password to get into it? 224 00:16:38,480 --> 00:16:42,080 Or what about viewing the device if we use the unique username or password? 225 00:16:43,460 --> 00:16:48,140 What about changing the configuration of a device that we don't own or that we don't have authorization to? 226 00:16:49,020 --> 00:16:51,380 So this is kind of a black to white spectrum. 227 00:16:51,560 --> 00:16:53,440 And this is where I would put these questions on there. 228 00:16:53,740 --> 00:16:57,440 You may disagree with it, but I think most of you would generally agree with the general placement. 229 00:16:57,680 --> 00:17:01,100 So viewing the configuration of a device that requires no authentication. 230 00:17:01,420 --> 00:17:02,740 I think that's pretty clear. 231 00:17:03,080 --> 00:17:03,900 I think you could view that. 232 00:17:04,000 --> 00:17:04,920 You're not changing anything. 233 00:17:05,120 --> 00:17:05,720 You're just looking. 234 00:17:06,720 --> 00:17:08,200 There was no authentication required. 235 00:17:08,220 --> 00:17:10,980 You just clicked on a result and went right in there. 236 00:17:12,460 --> 00:17:14,100 Using a default username and password. 237 00:17:14,300 --> 00:17:23,800 Well, I think you're getting into a darker shade of gray here because despite the fact that they're using a default username and password, there's still some authentication mechanism that's trying to keep you out. 238 00:17:25,100 --> 00:17:26,940 That's as far as I went, by the way. 239 00:17:27,760 --> 00:17:29,360 I'll show you an example of that one later. 240 00:17:32,040 --> 00:17:35,100 Using a unique username and password somehow that you captured. 241 00:17:35,260 --> 00:17:36,300 I think that's fairly black. 242 00:17:36,300 --> 00:17:40,740 And then also changing configuration of the device that you don't have permission to do. 243 00:17:40,900 --> 00:17:42,040 It's fairly black as well. 244 00:17:42,180 --> 00:17:43,920 Like I said, I went to about the middle. 245 00:17:44,060 --> 00:17:45,660 So I wouldn't go any further than that. 246 00:17:45,940 --> 00:17:46,880 But that's up to you. 247 00:17:51,640 --> 00:17:57,240 I think that using Shodan for penetration testing requires some basic knowledge of banners like I talked about. 248 00:17:57,640 --> 00:18:01,220 And also it's very useful for you to know HTTP status codes. 249 00:18:01,400 --> 00:18:02,260 And you all know these. 250 00:18:02,340 --> 00:18:03,760 But I think it's important to review them. 251 00:18:03,760 --> 00:18:07,640 Because we can use them to actually filter out results. 252 00:18:08,880 --> 00:18:13,320 We know that banners typically talk about the services that they're running. 253 00:18:13,560 --> 00:18:15,240 And the versions that they're running. 254 00:18:16,760 --> 00:18:19,880 I've talked to very few people who have ever spoofed banners. 255 00:18:20,080 --> 00:18:20,700 Some people do. 256 00:18:20,820 --> 00:18:21,980 But most people don't. 257 00:18:22,420 --> 00:18:26,220 So we're assuming here that the banners aren't being spoofed. 258 00:18:29,360 --> 00:18:33,740 Just a quick overview of some HTTP status codes that we will see. 259 00:18:33,740 --> 00:18:35,560 And how they can be useful to us. 260 00:18:36,120 --> 00:18:38,000 200 OK requests succeeded. 261 00:18:38,320 --> 00:18:39,980 This is typically our best result. 262 00:18:40,160 --> 00:18:43,700 Because this means we're going to be able to view the page without any authentication at all. 263 00:18:44,640 --> 00:18:47,980 301 and 302 are moved or found. 264 00:18:48,280 --> 00:18:51,540 And we'll see that those are not terribly useful to us. 265 00:18:53,580 --> 00:18:55,400 401 unauthorized requires authentication. 266 00:18:55,740 --> 00:18:57,080 And then 403 is a forbidden. 267 00:18:57,300 --> 00:18:58,320 In other words, we can't go there. 268 00:18:58,480 --> 00:18:59,820 So how does that apply to us? 269 00:19:00,380 --> 00:19:03,400 Well, again, 200 OK is really what we're looking for. 270 00:19:03,400 --> 00:19:07,140 Because that's going to allow us to view a page without seeing anything else. 271 00:19:07,240 --> 00:19:08,540 It's not going to ask us for a password. 272 00:19:08,800 --> 00:19:10,440 At least not to view that page. 273 00:19:12,300 --> 00:19:17,880 301 and 302, typically, in the case of Shodan, it doesn't really provide us with a lot of data. 274 00:19:18,160 --> 00:19:20,640 Yes, could you follow the result where it's moved to? 275 00:19:20,920 --> 00:19:26,360 But typically, it's kind of just running into the dark without really knowing where you're going. 276 00:19:26,960 --> 00:19:31,400 So we can use the filters, the Boolean logic to filter these out. 277 00:19:33,480 --> 00:19:37,180 401 unauthorized is typically saying, no, you don't have permission to view this page. 278 00:19:37,380 --> 00:19:40,440 However, it doesn't necessarily mean that we can't get there. 279 00:19:42,120 --> 00:19:46,620 And a 401 unauthorized on a web banner will typically have a www authenticate line. 280 00:19:46,900 --> 00:19:50,220 And that will typically indicate to us the presence of a pop-up box. 281 00:19:50,540 --> 00:19:54,400 So if we go to one of these, we're going to pop up asking for a username and password. 282 00:19:55,840 --> 00:19:59,940 403 forbidden, typically, there's some reason that we can't view the page. 283 00:19:59,940 --> 00:20:03,860 And it's also important to note that some banners advertise defaults. 284 00:20:03,860 --> 00:20:06,480 We'll see banners that say the password is 1234. 285 00:20:07,060 --> 00:20:11,280 Doesn't mean that they're using that, but they're at least telling us what it is. 286 00:20:11,360 --> 00:20:12,580 So that's useful data for us. 287 00:20:13,940 --> 00:20:16,760 So the first of my four case studies is the Cisco devices. 288 00:20:17,820 --> 00:20:20,260 And this is the first Cisco banner I found. 289 00:20:20,300 --> 00:20:21,800 And I just wanted to show it as an example. 290 00:20:22,300 --> 00:20:26,940 The two boxes squared in red, the first one is a status code. 291 00:20:27,080 --> 00:20:29,340 So it's HTTP 401 unauthorized. 292 00:20:29,940 --> 00:20:34,980 And then we see a www authenticate, basic realm, level 15, or view access. 293 00:20:35,500 --> 00:20:38,840 I can tell you that when you see this, when you click on the result for this, 294 00:20:38,900 --> 00:20:40,000 you're going to get a pop-up box. 295 00:20:40,140 --> 00:20:42,060 And it's going to ask you for a username and password. 296 00:20:42,640 --> 00:20:45,160 And if we don't have it, obviously, we can't get to that page. 297 00:20:49,140 --> 00:20:52,280 Here's an example of a Cisco banner that is a 200 OK. 298 00:20:53,420 --> 00:20:57,760 Notice that it has, it does not have a www authenticate box. 299 00:20:57,980 --> 00:20:59,640 And it also has the last modified box. 300 00:21:01,420 --> 00:21:09,140 When we put these side-by-side, we find that the two lines, 301 00:21:09,280 --> 00:21:15,160 www authenticate and last modified, are almost 99.9% mutually exclusive. 302 00:21:15,560 --> 00:21:16,860 So what does that mean for us? 303 00:21:18,020 --> 00:21:20,000 Well, let's look at the results here. 304 00:21:20,420 --> 00:21:21,920 So this is as of last night. 305 00:21:22,020 --> 00:21:25,240 If I search Shodan for Cisco, I get 306,000-some devices. 306 00:21:26,820 --> 00:21:29,920 The www authenticate, 253,000 devices. 307 00:21:29,940 --> 00:21:32,400 Last modified, 5,800. 308 00:21:32,600 --> 00:21:35,060 And then only 31 that have both of those lines. 309 00:21:36,940 --> 00:21:40,700 So what that means is if we can get a 200 OK with a Cisco, 310 00:21:40,940 --> 00:21:44,900 chances are that device is not going to require any authentication at all. 311 00:21:46,100 --> 00:21:50,660 In fact, we really have about 5,900 devices as of last night. 312 00:21:50,720 --> 00:21:53,960 Cisco devices on the Internet, publicly facing, 313 00:21:54,020 --> 00:21:59,040 that require no authentication at all to view, change configurations, 314 00:21:59,940 --> 00:22:01,160 do whatever you want. 315 00:22:01,300 --> 00:22:02,100 You've already owned them. 316 00:22:06,040 --> 00:22:07,520 So let's take a look at one. 317 00:22:10,600 --> 00:22:14,540 Many of you will recognize this is the Cisco switch, 318 00:22:14,840 --> 00:22:16,380 and this is the HTML interface. 319 00:22:17,160 --> 00:22:20,440 And if we wanted to administer this interface, 320 00:22:20,720 --> 00:22:23,780 or administer this device at a certain level, 321 00:22:23,840 --> 00:22:26,480 we could click on one of these numbers right here. 322 00:22:27,640 --> 00:22:29,920 And whatever number of the level we want, 323 00:22:29,920 --> 00:22:31,100 is what it will take us to. 324 00:22:31,760 --> 00:22:33,800 So surely if we click on level 15, 325 00:22:34,020 --> 00:22:35,400 which is like administrator access, 326 00:22:36,220 --> 00:22:38,640 it's going to then ask us for a pop-up, right? 327 00:22:38,720 --> 00:22:41,520 And that's when we're going to be stopped right there. 328 00:22:44,400 --> 00:22:45,940 No, it doesn't. 329 00:22:49,660 --> 00:22:52,580 So I don't have my CCNA. 330 00:22:53,920 --> 00:22:55,340 I don't know what the commands are. 331 00:22:55,420 --> 00:22:56,960 Well, they're all right there for you. 332 00:22:57,860 --> 00:22:59,480 And they're hyperlinked for you. 333 00:22:59,920 --> 00:23:01,900 So if you want to do anything to this device, 334 00:23:02,020 --> 00:23:04,340 and you don't even know the Cisco commands, 335 00:23:04,560 --> 00:23:05,500 you can just click on them. 336 00:23:05,780 --> 00:23:06,840 And there's a whole page here. 337 00:23:06,900 --> 00:23:08,320 You can see that the scroll bar is pretty small. 338 00:23:08,960 --> 00:23:10,560 So, I mean, you can pretty much run anything. 339 00:23:11,440 --> 00:23:13,780 And I ran a few commands, but I just did some show commands 340 00:23:13,780 --> 00:23:14,700 because I didn't want to actually, 341 00:23:14,760 --> 00:23:16,880 I told you I was not going to change the configuration of a device. 342 00:23:18,440 --> 00:23:20,560 So this is the configure commands menu. 343 00:23:21,560 --> 00:23:24,100 We were able to get in there with no authentication at all. 344 00:23:25,200 --> 00:23:26,700 Here's the execute command menu. 345 00:23:27,320 --> 00:23:29,620 We can get in there without any configuration at all. 346 00:23:33,220 --> 00:23:36,360 I ran show running config, and I got the running config. 347 00:23:37,420 --> 00:23:38,980 I ran show CDP neighbors. 348 00:23:39,160 --> 00:23:40,440 Let's see what else is around it. 349 00:23:40,900 --> 00:23:42,180 And I got some other devices. 350 00:23:45,060 --> 00:23:47,520 I won't go into too many specific details, 351 00:23:47,680 --> 00:23:53,220 but people will generally say, well, I know this guy. 352 00:23:53,620 --> 00:23:55,580 He's doing a CCNA, and he set up a router. 353 00:23:55,740 --> 00:23:57,540 So it's probably just one of those things, right? 354 00:23:58,260 --> 00:23:59,760 Well, some of them might be. 355 00:23:59,920 --> 00:24:03,080 And some of these are infrastructure devices belonging to ISPs, 356 00:24:03,140 --> 00:24:04,580 and we'll talk about that a little bit later. 357 00:24:11,000 --> 00:24:12,700 So what else is out there, Cisco devices? 358 00:24:13,020 --> 00:24:15,760 Well, this is a Cisco AirNet access point. 359 00:24:16,680 --> 00:24:18,100 This is just a home page, though. 360 00:24:18,380 --> 00:24:22,720 If we went to one of the setup pages or the security page, 361 00:24:22,860 --> 00:24:24,800 it probably would ask us for a username and password. 362 00:24:25,780 --> 00:24:26,740 Or it doesn't. 363 00:24:30,080 --> 00:24:31,680 So what do you want to do? 364 00:24:32,120 --> 00:24:32,880 Change it? 365 00:24:32,960 --> 00:24:33,840 Turn it off? 366 00:24:34,160 --> 00:24:35,240 Change the IP address? 367 00:24:35,720 --> 00:24:35,920 Yeah. 368 00:24:36,500 --> 00:24:37,340 Security page? 369 00:24:38,160 --> 00:24:39,700 No, nothing there either. 370 00:24:40,800 --> 00:24:42,440 They really should enable encryption, 371 00:24:42,660 --> 00:24:44,140 or maybe we should enable it for them. 372 00:24:48,960 --> 00:24:50,060 Network interfaces? 373 00:24:54,080 --> 00:24:54,640 Security? 374 00:24:57,800 --> 00:24:58,360 Services? 375 00:24:58,360 --> 00:24:59,860 You want to turn on some services? 376 00:25:00,000 --> 00:25:00,880 Turn off some services? 377 00:25:04,980 --> 00:25:05,380 Okay. 378 00:25:06,920 --> 00:25:07,680 Let's keep going. 379 00:25:08,480 --> 00:25:10,840 This is a Catalyst 2960 switch. 380 00:25:14,160 --> 00:25:15,480 This is the dashboard view. 381 00:25:15,680 --> 00:25:17,360 You know, if we went to the configuration view, 382 00:25:17,460 --> 00:25:18,740 it's going to ask us for a password, right? 383 00:25:18,900 --> 00:25:20,180 No, it's not going to. 384 00:25:21,420 --> 00:25:23,980 Some people are really good about labeling their ports. 385 00:25:24,320 --> 00:25:25,840 They'll tell you everything you want to know. 386 00:25:26,460 --> 00:25:27,540 Where they go to. 387 00:25:27,540 --> 00:25:30,420 I actually had one example that's not on here. 388 00:25:30,560 --> 00:25:34,120 That was a, it was a real estate company in New York. 389 00:25:34,320 --> 00:25:35,780 And they own several buildings. 390 00:25:36,420 --> 00:25:39,220 And they had a switch that administered Internet access 391 00:25:39,220 --> 00:25:40,540 to various businesses. 392 00:25:40,920 --> 00:25:44,200 And each one of their ports was like to XYZ company 393 00:25:44,200 --> 00:25:45,300 or to this company. 394 00:25:45,780 --> 00:25:49,340 So, I mean, and what about turning them off? 395 00:25:49,440 --> 00:25:51,220 Or just let's go half duplex for a day 396 00:25:51,220 --> 00:25:52,600 and see how their Internet, you know. 397 00:25:55,300 --> 00:25:55,980 And again. 398 00:25:55,980 --> 00:25:57,580 Let me be clear. 399 00:25:57,680 --> 00:25:59,180 I didn't change anything on these devices. 400 00:25:59,340 --> 00:26:00,520 But you could if you wanted to. 401 00:26:00,840 --> 00:26:01,180 You could. 402 00:26:01,400 --> 00:26:02,340 I mean, it's right there. 403 00:26:11,480 --> 00:26:12,140 Setup page. 404 00:26:13,900 --> 00:26:14,340 Yeah. 405 00:26:14,420 --> 00:26:16,120 I mean, whatever you want. 406 00:26:18,220 --> 00:26:20,280 Cisco security device manager express. 407 00:26:23,200 --> 00:26:23,640 Configuration. 408 00:26:24,400 --> 00:26:25,420 Change the password. 409 00:26:25,420 --> 00:26:27,280 Change the IP address. 410 00:26:28,840 --> 00:26:29,820 Change the routing. 411 00:26:30,780 --> 00:26:31,180 Security. 412 00:26:31,780 --> 00:26:33,060 It's pretty much whatever you want. 413 00:26:33,240 --> 00:26:36,560 I mean, there are, like I said, there are probably, I don't know, 414 00:26:36,560 --> 00:26:39,040 5,000, 6,000 of these devices out there on the Internet. 415 00:26:39,360 --> 00:26:41,340 And that's just what Shodan has indexed. 416 00:26:41,420 --> 00:26:44,240 Shodan has not indexed the entire Internet, large portions, 417 00:26:44,380 --> 00:26:45,280 but not the entire Internet. 418 00:26:45,420 --> 00:26:48,020 So that's just what's already been indexed. 419 00:26:49,000 --> 00:26:49,940 It's kind of scary. 420 00:26:53,160 --> 00:26:55,820 So second case study on default passwords. 421 00:26:57,260 --> 00:26:59,160 And this was the easiest search I did. 422 00:26:59,260 --> 00:27:01,140 And I just searched for the words default password. 423 00:27:01,300 --> 00:27:05,160 Because I wanted to see what banners have the word default password in them. 424 00:27:05,840 --> 00:27:07,280 And again, let me caveat. 425 00:27:07,600 --> 00:27:10,900 This doesn't mean that that device is using that default password. 426 00:27:11,120 --> 00:27:12,840 But at least they're telling us what it is. 427 00:27:12,940 --> 00:27:14,640 And how many people change them? 428 00:27:14,720 --> 00:27:15,760 Some people don't change them. 429 00:27:16,000 --> 00:27:19,100 So chances are some of these devices will be using them. 430 00:27:19,100 --> 00:27:21,560 So this is the lowest hanging fruit attack. 431 00:27:21,820 --> 00:27:23,100 But of course, you know, let's try it. 432 00:27:23,400 --> 00:27:25,900 So this is the absolute first one I found. 433 00:27:26,320 --> 00:27:27,240 It's a 401. 434 00:27:28,580 --> 00:27:30,720 It has a www authenticate. 435 00:27:31,340 --> 00:27:32,220 Basic realm. 436 00:27:32,340 --> 00:27:33,600 Default password 1234. 437 00:27:34,500 --> 00:27:35,680 Print serve web port. 438 00:27:35,780 --> 00:27:38,000 It's a web interface for a printer. 439 00:27:39,960 --> 00:27:42,560 So we're probably going to get a pop-up box, right? 440 00:27:45,420 --> 00:27:49,080 So, yes, it's not using a, it doesn't mean it's using default passwords. 441 00:27:49,100 --> 00:27:49,980 It's a possibility. 442 00:27:51,080 --> 00:27:54,020 So we know that the default password is 1234. 443 00:27:54,400 --> 00:27:55,640 What about the user name? 444 00:27:55,860 --> 00:27:56,820 Well, there's none listed. 445 00:27:57,120 --> 00:27:58,960 So what are our options? 446 00:27:59,280 --> 00:28:01,020 Well, a null user name, right? 447 00:28:01,280 --> 00:28:03,300 Or admin or root probably. 448 00:28:04,440 --> 00:28:05,520 So what do we get? 449 00:28:05,880 --> 00:28:06,760 Pop-up box. 450 00:28:08,100 --> 00:28:09,380 So what do I try first? 451 00:28:09,740 --> 00:28:12,100 I'm going to try a null user name. 452 00:28:12,200 --> 00:28:13,060 Because they didn't list anything. 453 00:28:13,260 --> 00:28:14,260 And I'm going to try 1234. 454 00:28:16,720 --> 00:28:19,080 But the chances that it's working the first time. 455 00:28:19,080 --> 00:28:21,240 It never works the first time. 456 00:28:21,560 --> 00:28:22,380 Or it does. 457 00:28:25,500 --> 00:28:28,540 This device is, I mean, this is nothing big. 458 00:28:28,860 --> 00:28:31,020 It's the setup for a printer. 459 00:28:31,240 --> 00:28:34,340 But, you know, what do you want to do? 460 00:28:37,260 --> 00:28:41,720 By the way, all these menus, everything here is accessible now. 461 00:28:41,820 --> 00:28:45,060 Because even though it's a default password, we've effectively logged in. 462 00:28:45,160 --> 00:28:46,360 So we authenticate it. 463 00:28:47,600 --> 00:28:48,040 Occasionally. 464 00:28:48,040 --> 00:28:52,900 If your browser or your computer is not set up to display, like, foreign language stuff, 465 00:28:53,080 --> 00:28:55,260 sometimes you get these codes and things. 466 00:28:55,880 --> 00:28:59,640 I found that if you don't know the language, and even if they do display the language, 467 00:28:59,760 --> 00:29:04,760 like it's Chinese or Japanese or whatever, typically the underlying HTML is still in English. 468 00:29:05,080 --> 00:29:08,800 So if you mouse over the links that you don't understand and look at the status bar, 469 00:29:08,920 --> 00:29:11,120 it will typically tell you what those things are. 470 00:29:11,360 --> 00:29:12,780 I mean, some of them are pretty obvious there. 471 00:29:16,640 --> 00:29:19,920 Well, I went after Cisco, so let's go after Huawei. 472 00:29:20,240 --> 00:29:22,600 I mean, they're, you know, probably, what, number two, right? 473 00:29:25,220 --> 00:29:29,840 So instead of, I searched for Cisco before, but I want to search for Huawei. 474 00:29:30,500 --> 00:29:37,600 And this is where I use those exclusions of I don't want 400 codes, I don't want 300 codes. 475 00:29:37,960 --> 00:29:40,520 So I just did minus, I minused all of those. 476 00:29:41,040 --> 00:29:42,760 And the result is that I get one of those. 477 00:29:42,780 --> 00:29:45,220 All 200 OKs, which is exactly what I want. 478 00:29:46,040 --> 00:29:51,020 And it turns out that there's 283 or so Huawei results on the Internet. 479 00:29:51,180 --> 00:29:55,780 And almost all of them, or at least a good portion of them, are all within the same subnet. 480 00:29:55,920 --> 00:29:57,260 And I was like, that's kind of interesting. 481 00:29:58,460 --> 00:30:03,520 And if you look at, I know you probably can't tell, but it's 150.186 whatever. 482 00:30:03,640 --> 00:30:06,520 And the flag is the Venezuela flag. 483 00:30:07,720 --> 00:30:09,280 So I thought this was kind of interesting. 484 00:30:09,980 --> 00:30:12,360 And the result is it's Huawei. 485 00:30:13,320 --> 00:30:14,200 ET 523. 486 00:30:14,620 --> 00:30:16,400 Well, I want to figure out what that is. 487 00:30:16,660 --> 00:30:18,920 Well, it's the Echo Life IP phone. 488 00:30:20,240 --> 00:30:20,680 Okay. 489 00:30:21,440 --> 00:30:25,540 So someone has a whole bunch of these phones public facing to the Internet. 490 00:30:26,640 --> 00:30:28,260 So let's check out what they have. 491 00:30:29,520 --> 00:30:29,960 Oh. 492 00:30:30,800 --> 00:30:33,360 See, this is a good example where we had a 200 OK. 493 00:30:33,680 --> 00:30:36,500 So it says, yes, you can view the page, but it's asking for a password. 494 00:30:38,660 --> 00:30:42,640 And I couldn't, so I, you know, what's the default password for Huawei? 495 00:30:42,780 --> 00:30:43,580 ET 523. 496 00:30:43,820 --> 00:30:44,340 I don't know. 497 00:30:44,560 --> 00:30:49,140 But I found that the default for most Huawei devices is, I don't know, password or something. 498 00:30:49,320 --> 00:30:50,520 So put it in and see what happens. 499 00:30:51,760 --> 00:30:54,000 Again, these things never work on the first time. 500 00:30:54,540 --> 00:30:55,240 Or they do. 501 00:31:01,880 --> 00:31:04,480 I'll scroll through these just to show you the whole screen. 502 00:31:04,680 --> 00:31:08,900 But, yeah, this is the entire configuration for the phone. 503 00:31:09,680 --> 00:31:10,080 Um. 504 00:31:10,860 --> 00:31:12,740 A couple of interesting things here. 505 00:31:12,920 --> 00:31:16,200 One would be the URL for the firmware upgrades. 506 00:31:17,440 --> 00:31:23,740 So if you want to change that and upload some rogue firmware to them, you can certainly do that if you wanted to. 507 00:31:24,680 --> 00:31:28,040 Or you could do stupid things like change the ringtones and other things like that. 508 00:31:30,360 --> 00:31:34,520 It turns out that this is some technology corporation in Venezuela. 509 00:31:34,780 --> 00:31:38,320 And if you go to their home page, there's smiling Hugo Chavez all over the page. 510 00:31:38,320 --> 00:31:40,880 So if you want to mess with him, you know, go for it. 511 00:31:43,760 --> 00:31:46,140 But notice, I didn't block out any of the IP addresses. 512 00:31:46,340 --> 00:31:47,540 I mean, they're right there for you. 513 00:31:49,720 --> 00:31:51,300 I'm not encouraging you to break the law. 514 00:31:52,480 --> 00:31:53,620 I'm just showing you something. 515 00:31:59,260 --> 00:31:59,620 Okay. 516 00:32:00,020 --> 00:32:01,220 This is my favorite one. 517 00:32:01,340 --> 00:32:02,260 And so I saved it for last. 518 00:32:02,860 --> 00:32:04,320 But the title is kind of boring. 519 00:32:04,620 --> 00:32:05,320 Infrastructure exploitation. 520 00:32:05,800 --> 00:32:06,980 That sounds kind of boring. 521 00:32:06,980 --> 00:32:08,360 So I changed the title. 522 00:32:16,140 --> 00:32:20,700 Some of you may, I did a talk up in the sky boxes on Friday. 523 00:32:21,060 --> 00:32:22,780 And the talk was just about this section. 524 00:32:23,520 --> 00:32:29,200 And I think those people would agree that I didn't really oversell the title for this section. 525 00:32:29,340 --> 00:32:30,760 Because you'll see what happens. 526 00:32:31,900 --> 00:32:35,000 So I was running across a number of Cisco devices. 527 00:32:35,240 --> 00:32:36,640 And I was doing a random search. 528 00:32:36,640 --> 00:32:37,960 I wasn't looking for anything specific. 529 00:32:38,420 --> 00:32:41,560 And I found one of these, again, it's another Cisco web interface. 530 00:32:42,720 --> 00:32:46,020 And so, well, let's just go right for level 15. 531 00:32:46,720 --> 00:32:47,160 Yeah. 532 00:32:48,480 --> 00:32:51,700 And I did white out some of the things on here. 533 00:32:51,780 --> 00:32:57,420 Because this was a, at the time, this was an open problem with this, you know, company. 534 00:32:59,080 --> 00:33:00,140 Show IP route. 535 00:33:00,620 --> 00:33:02,420 And there's a long page of this. 536 00:33:02,580 --> 00:33:05,780 And I ran some other commands. 537 00:33:05,780 --> 00:33:07,040 The running config. 538 00:33:08,420 --> 00:33:10,280 And so I'm running through these commands. 539 00:33:10,500 --> 00:33:13,860 And when I get to show CDP neighbors. 540 00:33:14,040 --> 00:33:15,480 And I know I blanked out the device IDs. 541 00:33:15,720 --> 00:33:17,860 But the URL was very interesting. 542 00:33:18,160 --> 00:33:22,100 And because it said, it was a telephone, it was an ISP. 543 00:33:24,820 --> 00:33:29,320 And so you can see here that there's a number of 3750 switches. 544 00:33:29,500 --> 00:33:33,440 And then there's a Cisco 7606, which is the core router for the ISP. 545 00:33:33,440 --> 00:33:36,400 And they were all open. 546 00:33:39,960 --> 00:33:40,560 Yeah. 547 00:33:40,720 --> 00:33:42,160 So I looked up the IP address. 548 00:33:42,480 --> 00:33:46,620 And it turns out that this was an ISP in Florida. 549 00:33:46,880 --> 00:33:47,380 I'll say that. 550 00:33:47,760 --> 00:33:49,920 So all these devices were wide open. 551 00:33:51,800 --> 00:33:55,540 Contained in the configurations were VLAN IDs for their internal ISP network. 552 00:33:56,520 --> 00:34:00,220 Hotels, condominiums, apartments, convention center, public backbone. 553 00:34:01,160 --> 00:34:02,200 All this stuff. 554 00:34:02,200 --> 00:34:04,520 So I'll talk very briefly about disclosure. 555 00:34:04,800 --> 00:34:05,780 Because I don't do disclosure. 556 00:34:06,120 --> 00:34:09,620 I don't search for bugs and vulnerabilities and things like that. 557 00:34:10,200 --> 00:34:12,920 But I thought, when I came across this one, I thought, this is kind of important. 558 00:34:14,000 --> 00:34:16,020 So I wrote a one line. 559 00:34:17,020 --> 00:34:19,540 I looked up the security contact for the ISP. 560 00:34:19,680 --> 00:34:24,300 And I wrote more or less a one line email to the security contact. 561 00:34:24,580 --> 00:34:29,980 And it was something like, I mean, how do you tell them what you did without, you know, implicating yourself? 562 00:34:30,740 --> 00:34:32,180 So I said something like this. 563 00:34:32,180 --> 00:34:40,740 Something like, the following IP addresses appear to allow unauthenticated access to devices on your network. 564 00:34:42,980 --> 00:34:44,320 I get an email the next day. 565 00:34:46,160 --> 00:34:47,040 Very gracious. 566 00:34:48,460 --> 00:34:50,780 Pretty much saying, thank you, you saved our shit. 567 00:34:52,800 --> 00:34:54,600 And offering me money. 568 00:34:56,060 --> 00:34:57,160 I didn't ask for money. 569 00:34:57,280 --> 00:35:00,080 I didn't say, hey, I'm going to hack your shit unless you pay me. 570 00:35:00,160 --> 00:35:00,740 I didn't say that. 571 00:35:00,740 --> 00:35:01,960 They offered me money. 572 00:35:02,040 --> 00:35:02,940 So I thought that was kind of cool. 573 00:35:03,320 --> 00:35:06,360 So he said, can we call you? 574 00:35:08,820 --> 00:35:12,960 And again, this is where your Admiral Ackbar alarm is going off. 575 00:35:13,280 --> 00:35:13,680 Right? 576 00:35:15,380 --> 00:35:16,100 It's a trap. 577 00:35:17,140 --> 00:35:17,540 Right? 578 00:35:17,580 --> 00:35:22,120 I mean, and so, and I'm just a, I don't do disclosure. 579 00:35:22,380 --> 00:35:24,700 So I'm just kind of like, I don't really know what I'm doing. 580 00:35:25,760 --> 00:35:26,740 So I called them. 581 00:35:29,260 --> 00:35:32,220 And the guy was very nice. 582 00:35:33,060 --> 00:35:34,460 He was a younger guy. 583 00:35:34,640 --> 00:35:37,160 This was a, this is not a big ISP. 584 00:35:37,300 --> 00:35:38,680 This is a small regional ISP. 585 00:35:39,100 --> 00:35:42,120 And they were very gracious about what had happened. 586 00:35:42,200 --> 00:35:44,720 He just kind of know how I found these devices. 587 00:35:45,200 --> 00:35:46,560 And I didn't go into Shodan. 588 00:35:46,740 --> 00:35:50,760 But I did say that I do research on web banners, which I do. 589 00:35:50,980 --> 00:35:56,080 And I was just, you know, doing research on specific information in web banners. 590 00:35:56,080 --> 00:35:57,020 Which is what I was doing. 591 00:35:57,520 --> 00:35:58,940 And I just came across their devices. 592 00:35:59,060 --> 00:36:02,260 I wasn't specifically looking for their ISP. 593 00:36:02,500 --> 00:36:05,360 And he, I don't think he really understood what I was telling him. 594 00:36:05,500 --> 00:36:05,660 But. 595 00:36:07,040 --> 00:36:10,940 And he explained that they recently added these devices to their network. 596 00:36:11,120 --> 00:36:16,560 And that the guys who, you know, installed them obviously didn't disable the web interface or something like that. 597 00:36:17,860 --> 00:36:18,560 Excuse me. 598 00:36:19,020 --> 00:36:21,320 And asked for my address. 599 00:36:24,280 --> 00:36:24,760 So. 600 00:36:25,520 --> 00:36:26,000 Again. 601 00:36:26,080 --> 00:36:27,180 The alarm is going off. 602 00:36:27,640 --> 00:36:28,820 So I talked to him on the phone. 603 00:36:29,000 --> 00:36:29,360 And, you know. 604 00:36:29,500 --> 00:36:30,920 But now he wants my address. 605 00:36:31,220 --> 00:36:32,780 Because he wants to send me the check. 606 00:36:34,600 --> 00:36:35,740 So I gave him my address. 607 00:36:41,940 --> 00:36:44,900 I will say that I haven't gotten anything in the mail. 608 00:36:45,140 --> 00:36:46,360 Not only not the check. 609 00:36:46,540 --> 00:36:49,720 But I haven't gotten like anything, you know, legal, whatever. 610 00:36:51,260 --> 00:36:53,100 And they did close off the problem. 611 00:36:53,180 --> 00:36:54,800 They did shut off their web interfaces. 612 00:36:54,800 --> 00:36:56,520 So their devices aren't exposed anymore. 613 00:36:58,980 --> 00:36:59,380 But. 614 00:37:00,600 --> 00:37:03,900 What I will tell you is that with the information I had. 615 00:37:04,080 --> 00:37:05,360 And with the access that I had. 616 00:37:05,900 --> 00:37:11,320 Could I have routed any or all of their traffic to a third party destination. 617 00:37:11,640 --> 00:37:12,600 And then right back to them. 618 00:37:12,700 --> 00:37:14,000 And then just sniffed all their traffic. 619 00:37:14,140 --> 00:37:16,000 And totally owned all their customers. 620 00:37:16,380 --> 00:37:16,780 Absolutely. 621 00:37:16,900 --> 00:37:17,320 I could have. 622 00:37:17,640 --> 00:37:19,420 So I don't think it's unfair to say that. 623 00:37:19,480 --> 00:37:21,040 I mean really could have owned this ISP. 624 00:37:23,400 --> 00:37:24,120 So there. 625 00:37:24,380 --> 00:37:24,560 I mean. 626 00:37:24,660 --> 00:37:25,000 Yeah. 627 00:37:27,760 --> 00:37:29,240 A few other small examples. 628 00:37:29,600 --> 00:37:29,960 And just. 629 00:37:30,140 --> 00:37:30,980 And then we'll. 630 00:37:32,080 --> 00:37:32,940 We don't have time. 631 00:37:32,940 --> 00:37:33,200 37. 632 00:37:33,440 --> 00:37:33,600 Okay. 633 00:37:34,640 --> 00:37:35,340 General observations. 634 00:37:35,580 --> 00:37:37,040 So I did some searches on show day. 635 00:37:37,080 --> 00:37:38,260 And this is just for interesting data. 636 00:37:38,720 --> 00:37:40,480 And I searched for IS 5.0. 637 00:37:40,540 --> 00:37:41,580 And we know that's Windows 2000. 638 00:37:41,840 --> 00:37:42,640 There's a lot of them out there. 639 00:37:42,800 --> 00:37:43,260 So, you know. 640 00:37:44,420 --> 00:37:44,780 306. 641 00:37:44,880 --> 00:37:45,740 This is a couple months old. 642 00:37:45,820 --> 00:37:47,000 But 362,000. 643 00:37:47,840 --> 00:37:48,720 IS 4.0. 644 00:37:48,780 --> 00:37:49,540 So now we're getting older. 645 00:37:49,700 --> 00:37:51,020 Now we're going back into the 90s. 646 00:37:53,560 --> 00:37:55,220 Still almost 10,000. 647 00:37:55,440 --> 00:37:55,580 Well. 648 00:37:56,840 --> 00:37:57,800 3.0. 649 00:37:57,980 --> 00:37:59,200 You see where this is going. 650 00:37:59,380 --> 00:37:59,440 Right? 651 00:38:01,440 --> 00:38:01,960 381. 652 00:38:02,760 --> 00:38:03,880 IS 2.0. 653 00:38:05,480 --> 00:38:06,000 42. 654 00:38:07,580 --> 00:38:08,700 Does anybody know. 655 00:38:10,180 --> 00:38:12,660 Does anybody know what IS 1.0 maps to? 656 00:38:13,720 --> 00:38:17,620 It's like Windows NT 3.51 maybe. 657 00:38:17,740 --> 00:38:18,440 Or something like that. 658 00:38:18,700 --> 00:38:19,860 It's like 1995. 659 00:38:20,500 --> 00:38:21,020 1995. 660 00:38:21,040 --> 00:38:21,720 1994-ish. 661 00:38:26,140 --> 00:38:26,540 Wow. 662 00:38:30,680 --> 00:38:35,040 If you go to these webpages, I mean, they look like they were made in 95 and never 663 00:38:35,040 --> 00:38:35,880 touched since. 664 00:38:36,300 --> 00:38:37,540 So, I mean, they may not be used. 665 00:38:37,600 --> 00:38:39,040 This is more just fun for you. 666 00:38:39,100 --> 00:38:39,520 Just a. 667 00:38:39,860 --> 00:38:40,260 . 668 00:38:42,160 --> 00:38:42,640 What's that? 669 00:38:43,080 --> 00:38:43,480 . 670 00:38:46,640 --> 00:38:47,040 Thanks. 671 00:38:47,200 --> 00:38:47,540 Nice. 672 00:38:48,540 --> 00:38:48,940 . 673 00:38:50,140 --> 00:38:50,720 Thank you. 674 00:38:50,820 --> 00:38:51,020 Thank you. 675 00:38:51,760 --> 00:38:55,700 Let me show you one more example before I go into the conclusions. 676 00:38:56,240 --> 00:38:57,540 This is another fun example. 677 00:38:57,800 --> 00:38:58,200 This is just. 678 00:38:58,320 --> 00:39:01,820 You've all seen the Google hacking viewing webcams and stuff like that. 679 00:39:02,240 --> 00:39:06,760 Every six months the news media rediscovers the story and plays it on your local news 680 00:39:06,760 --> 00:39:07,800 and thinks it's something new. 681 00:39:08,260 --> 00:39:08,760 And it isn't. 682 00:39:09,400 --> 00:39:10,480 What I want you to do. 683 00:39:10,680 --> 00:39:12,580 This is just one small side note. 684 00:39:12,760 --> 00:39:16,460 So by the way, all the pan and tilt features work on this one. 685 00:39:17,080 --> 00:39:17,520 . 686 00:39:17,520 --> 00:39:18,320 . 687 00:39:19,420 --> 00:39:23,920 These ladies were diligently working at their computers and I was, like, trying 688 00:39:23,920 --> 00:39:25,320 to get their attention and they. 689 00:39:25,840 --> 00:39:26,280 . 690 00:39:28,880 --> 00:39:29,840 They wouldn't bite. 691 00:39:30,040 --> 00:39:30,520 They wouldn't bite. 692 00:39:31,940 --> 00:39:34,140 So here's a good example of what I mentioned. 693 00:39:34,280 --> 00:39:38,020 If you don't understand the characters, I think, I think this is Japanese. 694 00:39:38,880 --> 00:39:43,700 If you don't know what this means, you know, you can typically the task bar will tell you 695 00:39:43,700 --> 00:39:44,240 what it. 696 00:39:44,320 --> 00:39:45,940 It's because it's typically in English. 697 00:39:46,200 --> 00:39:47,500 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . It's because it's typically in English. 698 00:39:47,500 --> 00:39:52,260 case, it does. So this comes out to snapshot, so like if you wanted to take a snapshot of 699 00:39:52,260 --> 00:39:57,340 the whatever screen is on there right now and then a client, which isn't terribly useful 700 00:39:57,340 --> 00:40:02,140 to you. The second point about this slide is that I'm viewing this web page in Firefox. 701 00:40:02,600 --> 00:40:07,300 And while many people still use Internet Explorer, I don't know why you would, but you might 702 00:40:07,300 --> 00:40:12,940 want to, I do use something called IE view or there's several different versions of it 703 00:40:12,940 --> 00:40:18,320 that allow you to view Internet Explorer in Firefox. So let's take a look at this and 704 00:40:18,320 --> 00:40:22,960 see if there's actually something different here. We actually have a third option. So 705 00:40:22,960 --> 00:40:30,080 we actually have snapshot, client and set up config, which was not actually viewable 706 00:40:30,080 --> 00:40:36,940 in Firefox. Very interesting. So what happens if we go to set up config? Well, we can pretty 707 00:40:36,940 --> 00:40:42,200 much do anything we want. So you want to ‑‑ and this, again, another 708 00:40:42,200 --> 00:40:42,920 example of ‑‑ I'm going to go back to the previous slide. I'm going to go back to 709 00:40:42,920 --> 00:40:45,640 the previous slide. If you don't understand the language, mouse over and it will tell 710 00:40:45,640 --> 00:40:51,980 you these are all the things you can do. Security, system, network, wireless, I mean, whatever. 711 00:40:52,260 --> 00:41:02,080 Wide open. Okay. Just some general conclusions about Shodan. We've got about ten minutes 712 00:41:02,080 --> 00:41:08,040 left. Shodan aggregates a significant amount of information that's not already widely available. 713 00:41:08,320 --> 00:41:12,460 Could you go home and do something like this? Absolutely. You could do it. But it's going 714 00:41:12,460 --> 00:41:18,080 to take a lot of time and a lot of resources. So someone has already done it for you. It 715 00:41:18,080 --> 00:41:21,400 does allow for some passive vulnerability analysis. If we're looking for a certain 716 00:41:21,400 --> 00:41:27,940 version of software, we can say, hey, we can search for that and actually know with 717 00:41:27,940 --> 00:41:32,200 some degree of confidence that that IP address is running that software without ever even 718 00:41:32,200 --> 00:41:37,980 touching it. Is this going to totally take over the world? No, it's not going to. But 719 00:41:37,980 --> 00:41:42,440 this is something new for penetration testers. It's something that you can do to add to 720 00:41:42,440 --> 00:41:45,180 to your tool box to explore to see what other data is out 721 00:41:45,180 --> 00:41:47,980 there. And I think it's going to help shape the path for future 722 00:41:47,980 --> 00:41:56,960 vulnerability assessments. John is the creator of show Dan and 723 00:41:56,960 --> 00:41:59,200 I'll have him come up here if he's willing to answer a few 724 00:41:59,200 --> 00:42:01,980 questions if you have them for him. These are the guys who 725 00:42:01,980 --> 00:42:05,420 wrote the add-ons. People always ask about slides so here you go. 726 00:42:05,740 --> 00:42:08,140 They're not there yet but they will be really soon. There's a 727 00:42:08,140 --> 00:42:11,940 site called scribed.com. I put all my slides from all my 728 00:42:11,940 --> 00:42:16,680 presentations on there. So scribed.com. There's some 729 00:42:16,680 --> 00:42:19,960 earlier versions but this particular slide deck will be on 730 00:42:19,960 --> 00:42:23,480 there probably by tomorrow. So if you want the slides there you 731 00:42:23,480 --> 00:42:28,360 go. We will save the last ten minutes for questions. I will 732 00:42:28,360 --> 00:42:32,380 try to repeat them so everybody can hear them. And thank you.