Monday, 23 July 2018

Shodan fun,fun and more scary fun....





Shodan is a search engine that lets the user find specific types of computers (webcamsroutersservers, etc.) connected to the internet using a variety of filters. Some have also described it as a search engine of service banners, which are metadata that the server sends back to the client.[1] This can be information about the server software, what options the service supports, a welcome message or anything else that the client can find out before interacting with the server.

I call it fucken art . Think of "google" for all connected devices and I do mean ALL devices.


But let start by accessing the site SHODAN. I suggest create a proton mail account . So "searches" needs you to have a community account. When done let also download Brave 


The new Brave browser blocks the ads and trackers that slow you down, chew up your bandwidth, and invade your privacy. Brave even lets you contribute to your favorite creators automatically.



Now lets start the fun .... I stay in South Africa so I will use shodan to see all devices around me and in the area.


Some basics.


First example 1. Routers.


Let do netgear 


Netgear in my area and city ... If you understand Google Dorking the you will understand how shodan searches devices. 


So I would like all netgear devices in South Africa in my City of Pretoria.


The search looks as follow:


 netgear  country:ZA city:pretoria


Enter it in your search bar 






This show you a listing of 442 devices in my town you can also see the public facing IP and Netgear model.



Let us the third example . 



By clicking on Details you will open the device info page. With some cool info  like open ports , services and Geo Location. Also the public IP


This so wrong its right , by clicking on the green arrow you will be redirect to the router  login page...

Fun yes ... the most important part on the detail page is?


realm="NETGEAR DGN2200v3"
This show you the model of the router ..... which is bad. Reason...
Checkout https://github.com/threat9/routersploit
RouterSploit - Exploitation Framework for Embedded Devices
This means with Kali , little common sense and these two tool you can exploit and access netgear routers.
What is important is the device model. Unpatched router = FREE Wifi!!!!  Amen.

More info :
Shodan is a search engine for Internet-connected devices. Web search engines, such as Google and Bing, are great for finding websites. But what if you're interested in measuring which countries are becoming more connected? Or if you want to know which version of Microsoft IIS is the most popular? Or you want to find the control servers for malware? Maybe a new vulnerability came out and you want to see how many hosts it could affect? Traditional web search engines don't let you answer those questions.
Shodan gathers information about all devices directly connected to the Internet. If a device is directly hooked up to the Internet then Shodan queries it for various publicly-available information. The types of devices that are indexed can vary tremendously: ranging from small desktops up to nuclear power plants and everything in between.
So what does Shodan index then? The bulk of the data is taken from banners, which are metadata about a software that's running on a device. This can be information about the server software, what options the service supports, a welcome message or anything else that the client would like to know before interacting with the server. For example, following is a FTP banner:
220 kcg.cz FTP server (Version 6.00LS) ready.
This tells us a potential name of the server (kcg.cz), the type of FTP server (Solaris ftpd) and its version (6.00LS). For HTTP a banner looks like:
HTTP/1.0 200 OK
Date: Tue, 16 Feb 2010 10:03:04 GMT
Server: Apache/1.3.26 (Unix) AuthMySQL/2.20 PHP/4.1.2 mod_gzip/1.3.19.1a mod_ssl/2.8.9 OpenSSL/0.9.6g
Last-Modified: Wed, 01 Jul 1998 08:51:04 GMT
ETag: "135074-61-3599f878"
Accept-Ranges: bytes
Content-Length: 97
Content-Type: text/html
The information gained from these services is applied to many areas:
  • Network Security: keep an eye on all devices at your company that are facing the Internet
  • Market Research: find out which products people are using in the real-world
  • Cyber Risk: include the online exposure of your vendors as a risk metric
  • Internet of Things: track the growing usage of smart devices
  • Tracking Ransomware: measure how many devices have been impacted by ransomware
As you can tell the use cases for the data are varied. We provide the platform that ensures accurate, consistent and up-to-date information on Internet-facing devices - it's up to you to decide what type of information you're most interested in.

How is it different than Google?

The most fundamental difference is that Shodan crawls the Internet whereas Google crawls the World Wide Web. However, the devices powering the World Wide Web only make up a tiny fraction of what's actually connected to the Internet. Shodan's goal is to provide a complete picture of the Internet.
Another difference with Google is that Shodan requires you to understand the search query syntax. For example, you can't simply enter power plant into Shodan and expect to get proper results. We designed Shodan for engineers/ developers and to get the most out of the data you need to understand the search query syntax.
Basic filters: City: The ‘city’ filter is used to find devices that are located in that particular city. Eg:iis city:New York Country: The ‘country’ filter is used devices running in that particular country. Eg:iis country: United States Port: The ‘port’ filter narrows the search by searching for specified ports. Eg. https port:443 Os: The ‘os’ filter is used to find specific operating systems. Eg: microsoft-iis os:"windows 2003" Geo: The ‘geo’ filter according to certain longitudes and latitudes that are within a given radius. Only 2 3 parameters are allowed and 3 parameter by default is the radius which is 5 km. Eg: apache geo:42.9693,-74.1224 Net: The ‘net’ filter is used to find devices according to certain ip address and subnet mask Eg: iis net:216.0.0.0/16 Hostname: The ‘hostname’ filter always searches host containing a particular hostname. Eg: Akamai hostname:.com After and Before: The ‘after’ and ‘before’ filter helps you to devices after and before a particular date. The format allowed is dd/mm/yyyy dd-mm-yy Eg: apache before:1/01/2014 nginx after:1/01/2014 Note: Most of the filters will work when you are logged in.