Hack Like a Pro: How to Find Vulnerable Targets Using Shodan—The World's Most Dangerous Search Engine « Null Byte :: WonderHowTo

Welcome back, my greenhorn hackers!Sometimes, we don't have a specific target in mind, but rather we are simply looking for vulnerable and easy-to-hack targets anywhere on the planet. Wouldn't be great if we had a search engine like Google that could help us find these targets? Well, we do, and it's called Shodan!What Is Shodan?Some have described Shodan as a search engine for hackers, and have even called it "the world's most dangerous search engine". It was developed byJohn Matherlyin 2009, and unlike other search engines, it looks for specific information that can be invaluable to hackers.Shodan pulls service banners (see my tutorial onfingerprinting web serversfor more on banners) from servers and devices on the web, mostly port 80, but also ports 21 (ftp), 22 (SSH), 23 (telnet), 161 (SNMP), and 5060 (SIP).What Can Shodan Show Us?Since almost every new device now has a web interface (maybe even your refrigerator) to ease remote management, we can access innumerable web-enabled servers, network devices, home security systems, etc.Shodan can find us webcams, traffic signals, video projectors, routers, home heating systems, and SCADA systems that, for instance, control nuclear power plants and electrical grids. If it has a web interface, Shodan can find it!Although many of these systems communicate over port 80 using HTTP, many use telnet or other protocols over other ports. Keep that in mind when trying to connect to them.Now let's take a look at this fascinating and nefarious search engine!Step 1: Create a Shodan AccountFirst, let's start by navigating toshodanhq.com. When we do, we'll be greeted by an opening screen like that below.Shodan requires that you register to use all of its features, but the service is free unless you need to use some of its advanced features.Step 2: Search on ShodanOnce we have registered, we can either do custom searches or we can go to the "Search Directory" and see some of the most common and recent searches. If you are new to Shodan, I recommend that you browse "Popular Searches" first.Step 3: Find Unprotected WebcamsAmong the devices we can find on Shodan are innumerable, unprotected webcams. Here is one of many that I found on Shodan. This one is inside an airplane hangar in Norway. Notice that it has java controls to tilt and pan that you can use from the web so that you can scan and zoom-in throughout the hangar.Step 4: Find Traffic LightsThere are so many devices that can be found on Shodan that the list would fill this entire article. One of the most intriguing things we can find are traffic signals and the cameras that monitor traffic at lighted intersections (some states now use these cameras to record your license plate number and send you a ticket if they detect you speeding or running a red light).Careful here! Messing with or hacking traffic signals can cause fatalities and may be illegal. Here I show a listing of the "Red Light enforcement cameras" from Shodan.Step 5: Find RoutersShodan catalogues thousands, if not millions, of routers, many of which are unprotected. Here's a screenshot of one I found and logged into the administrator account with the username of "admin" and password of "admin".Obviously, if I had malicious intentions, I could have changed all their settings, including the password and wreaked havoc on this wireless device and its poor, unsuspecting users.Step 6: Find SCADA SystemsAmong the scariest and potentially most damaging uses of Shodan is finding SCADA (supervisory control and data acquisition) devices with web interfaces. SCADA devices are those that control such things as the electrical grid, water plants, waste treatment plants, nuclear power plants, etc.These SCADA devices are the most likely targets in a cyber-terrorism or cyber warfare scenario, where two combatants are attempting to disable the other's infrastructure. Obviously, if one combatant can disable the others electrical grid, power and water plants, etc., it won't to take long to bring their adversary to their knees.A cursory search of SCADA devices brought me to IP address of a hydroelectric plant in Genoa, Italy.When I clicked on this link, I was presented with this login screen of the hydroelectric plant's control system's interface.Obviously, the ability to login to this web-based interface could be very damaging to the hydro plant and the people and nation it serves.Step 7: Find the Default PasswordsMany of these sites and interfaces use default passwords. Fortunately for us, there are many resources on the web that list the default passwords for all devices. Here is one atwww.phenoelit.org/dpl/dpl.html. There are literally hundreds of these sites on the web. Simply Google "default passwords".As many consumers and system administrators are careless and don't change the default passwords, often you can gain access to these devices simply using these lists to find the default admin username and password.Shodan Is Your New Best FriendShodan is a different kind of search engine. Shodan pulls banners from IP addresses and then catalogues all types of devices that have a remote interface from all over the world. Many of these devices are set to accept default logins, so that once you find a device and its default login, you may be able to own it! Just keep in mind that Shodan is not an anonymous service.In addition, Shodan has some powerful features to search specifically for devices by type, login, port, and geography. I will show you some of these on my next Shodan tutorial, so keep coming back, my greenhorn hackers!Want to start making money as a white hat hacker?Jump-start your hacking career with our2020 Premium Ethical Hacking Certification Training Bundlefrom the newNull Byte Shopand get over 60 hours of training from cybersecurity professionals.Buy Now (90% off) >Other worthwhile deals to check out:97% off The Ultimate 2021 White Hat Hacker Certification Bundle99% off The 2021 All-in-One Data Scientist Mega Bundle98% off The 2021 Premium Learn To Code Certification Bundle62% off MindMaster Mind Mapping Software: Perpetual LicenseRelatedHack Like a Pro:How to Find Any Router's Web Interface Using ShodanThe Hacks of Mr. Robot:How to Use the Shodan API with Python to Automate Scans for Vulnerable DevicesHow To:Find Vulnerable Webcams Across the Globe Using ShodanHow To:Use Dorkbot for Automated Vulnerability DiscoveryNews:Hacking SCADAHow To:Locate & Exploit Devices Vulnerable to the Libssh Security FlawNews:How to Study for the White Hat Hacker Associate Certification (CWA)How To:Change Google Chrome's Default Search Engine on Your iPhone or Android PhoneHow To:Use UFONetHack Like a Pro:How to Crack Online Passwords with Tamper Data & THC HydraHow To:Exploit EternalBlue on Windows Server with MetasploitHack Like a Pro:How to Spy on Anyone, Part 2 (Finding & Downloading Confidential Documents)How To:Quickly Look Up the Valid Subdomains for Any WebsiteHow To:Discover Computers Vulnerable to EternalBlue & EternalRomance Zero-DaysHack Like a Pro:How to Exploit IE8 to Get Root Access When People Visit Your WebsiteHack Like a Pro:How to Exploit and Gain Remote Access to PCs Running Windows XPHow To:Hack Together a YouTube Playing Botnet Using ChromecastsHow To:Set Up an SSH Server with Tor to Hide It from Shodan & HackersFirefox Mobile 101:How to Change Your Search Engine in One TapHow To:Wardrive on an Android Phone to Map Vulnerable NetworksHugging the Web (Part 1:Introduction)News:Finding the Exploits Out in the World (For Beginner Hackers)The Anonymous Search Engine:How to Browse the Internet Without Being TrackedHow To:Search for Google+ Profiles and Posts Using Chrome's Search Engine SettingsNews:The Basics Of Website MarketingNews:Google’s Keyword ToolNews:SEO - Ugly Vs Popular - Just Like Highschool!How To:Cheat Engine for FarmVille - The Definitive GuideHow To:The Official Google+ Insider's Guide IndexHow To:Leverage Keyword Specific Pages to Boost SEO by Volusion | Two minuteNews:Introduction To Keywords & Google Keyword ToolNews:Indie and Mainstream Online Games Shut Down by LulzSec