SlideShare ist ein Scribd-Unternehmen logo
1 von 25
#Introduction to
Shodan.io
Sagar Chhatrala
@sschhatrala
Disclaimer
____________________________________
o Views, Thoughts and Opinions expressed in
this presentation are my own and are not
endorsed by my employer.
Outline
____________________________________
o What is shodan.io
o How does it work ?
o Banner
o Database / Metadata
o Default search includes
o Shodan search filters
o Examples
o Plugins
o CLI
o Shutting the door on Shodan
o Notes
What is shodan.io?
____________________________________
The search engine for The Web
The search engine for Security
The search engine for Buildings
The search engine for Web Cams
The search engine for Refrigerators
The search engine for Power plants
The search engine for The Internet of Things
What is shodan
____________________________________
o SHODAN = Sentient Hyper-Optimized Data Access Network
o Unlike traditional search engines that crawl the web to display results, Shodan
attempts to grab data from ports
o Shodan is a search engine that lets you find specific information from routers, servers,
and any device with an IP address.
o Shodan indexes a large amount of data, which is really helpful when searching for
specific devices that happen to be connected to the internet.
How does it work ?
____________________________________
o Whenever shodan gets a query from a user, it generates randomized IPv4 addresses
and
Random Ports -> retrieve Banners -> Banner Analysis / process / Logic -> Result
o Shodan uses OR operator by default for filtering queries.
o If you want to search for a word that include spaces or want combine two different
filters, you can use +. It will work as AND operator.
Banner
____________________________________
o What is a Banner? A banner is collection of text data that give details of a service
running on a host like Content Type, Cookies, Web Server and Content-length. Banners
are always different for different kind of services and keep on changing time to time.
Here's an example of a banner returned in response of a request:
o HTTP/1.1 200 OK
o Server: apache2
o Date: Sun, 13 May 2018 02:12:34 GMT
o Content-Type: text/html; charset=utf-8
o Content-Length: 9879
o Connection: keep-alive
Database / Meta data
____________________________________
o Database
o Shodan databases are updated 24 hours a day and 7 days a week. So, it means anytime
you search, you are retrieving the latest results on the Internet.
o Meta Data
o In addition to Banners, shodan crawlers also look for the meta data of an IP address and
show results from the past month. Meta Data are the information collected from an IP
address like its Physical location, Geo Coordinates and ISP etc.
Default Search includes
________________________________________
o The Shodan documentation doesn't disclose exactly what protocol data is used in the
default search, but empirical analysis indicates that it includes at least the following:
• HTTP header information
• HTTPS header and certificate information
• Several gaming server banners (Steam's A2S, Minecraft, and more)
• FTP banners
• NetBIOS server banner
• SSH header and server key data
• Telnet banner
• SMTP banner
• NTP banner
• SIP/VoIP banner
• DNS server configuration settings
• And more!
Shodan search filters
____________________________________
o Format of the enterign filter is
• filtername:value
• Important: There is no space between the colon “:” and the value.
o Here are the basic search filters you can use:
• city: find devices in a particular city
• country: find devices in a particular country
• geo: you can pass it coordinates
• hostname: find values that match the hostname
• net: search based on an IP or /x CIDR
• os: search based on operating system
• port: find particular ports that are open
• before/after: find results within a timeframe
o Advanced Integration:
• Metasploit shodan module
• Maltego
• Geolocation mapping via https://maps.shodan.io
Example:
____________________________________
o country and city:
• country:"FR" city:"paris" nginx
• The above query will search for the word "nginx" in banners retreived from the IP addresses
which are located in Paris, France.
o IP filter:
• ip:'127.0.0.1'
• This will look for the banners from the IP 127.0.0.1
o os, product:
• product:MySQL os:windows
• Now, this will search for MySQL databases running the Windows Operating System
Example:
____________________________________
o HTTP filters
o Besides, the general filters, shodan also provides some http filters. These filters are to
fetch some of the important details from within the document like document title,
technologies used. General used Shodan filters are:
o http.component: value must be the name of technologies used like wordpress, JQuerey,
Drupal, Django etc.
o http.title: Title for the website
o http.status: Response Status Code
Results : Chrome plugin
CLI zero to one
____________________________________
o "easy_install shodan" OR "pip install shodan"
o https://github.com/achillean/shodan-python
o shodan init <YOUR_API_KEY>
• YOUR_API_KEY from
• https://www.account.shodan.io
o Command line help overview
o Shodan –help
CLI one to two
____________________________________
o shodan –help
o shodan <command> --help
o shodan count <ubuntu 16>
o shodan host <ip addr>
o shodan myip
o shodan search --fields ip_str,port,org <example.com> | awk '{print $1}'|xargs -r -
Igeo curl -s http://ip-api.com/json/geo | jq -c
[.query,.city,.country,.regionName,.lat,.lon] | tr -d '[ ]"'
Shutting the door on Shodan
______________________________________________
o Firewall rules
o Security requirements
o Integrating security to the device
o Securing legacy devices – the “bump-in-the-wire” solution
Notes
______________________________________________
o This resource is just an intro to what Shodan is and how to do the basics . You should also
take a look at the help pages which are quite good.
o Shodan uses its own internally developed port scanner, not Nmap or Zmap.
o The system works off of banners, and banners can be modified, spoofed, and faked. What
you see is what’s being presented, not necessarily what is real.
o You should also check out the blog at https://blog.shodan.io.
References
____________________________________
o https://www.shodan.io/
o https://help.shodan.io/
o https://www.manufacturing.net/industry40/article/13057461/shutting-the-door-on-shodan
o https://blog.watchpointdata.com/shodan-demonstrates-why-closing-unused-iot-ports-is-
critical-to-cyber-security
o https://www.defcon.org/images/defcon-18/dc-18-presentations/Schearer/DEFCON-18-
Schearer-SHODAN.pdf
Questions ?
____________________________________

Weitere ähnliche Inhalte

Was ist angesagt?

Cyber security power point templates
Cyber security power point templatesCyber security power point templates
Cyber security power point templates
Raul Flores
 
Intrusion detection
Intrusion detectionIntrusion detection
Intrusion detection
Umesh Dhital
 
Internet Traffic Monitoring and Analysis
Internet Traffic Monitoring and AnalysisInternet Traffic Monitoring and Analysis
Internet Traffic Monitoring and Analysis
Information Technology
 

Was ist angesagt? (20)

What is shodan
What is shodanWhat is shodan
What is shodan
 
DDoS ATTACKS
DDoS ATTACKSDDoS ATTACKS
DDoS ATTACKS
 
Cyber security power point templates
Cyber security power point templatesCyber security power point templates
Cyber security power point templates
 
Intrusion Detection Systems and Intrusion Prevention Systems
Intrusion Detection Systems  and Intrusion Prevention Systems Intrusion Detection Systems  and Intrusion Prevention Systems
Intrusion Detection Systems and Intrusion Prevention Systems
 
Threat Hunting with Splunk Hands-on
Threat Hunting with Splunk Hands-onThreat Hunting with Splunk Hands-on
Threat Hunting with Splunk Hands-on
 
Tools for Open Source Intelligence (OSINT)
Tools for Open Source Intelligence (OSINT)Tools for Open Source Intelligence (OSINT)
Tools for Open Source Intelligence (OSINT)
 
Malware- Types, Detection and Future
Malware- Types, Detection and FutureMalware- Types, Detection and Future
Malware- Types, Detection and Future
 
osint - open source Intelligence
osint - open source Intelligenceosint - open source Intelligence
osint - open source Intelligence
 
OSINT - Open Source Intelligence
OSINT - Open Source IntelligenceOSINT - Open Source Intelligence
OSINT - Open Source Intelligence
 
Computer Security and Intrusion Detection(IDS/IPS)
Computer Security and Intrusion Detection(IDS/IPS)Computer Security and Intrusion Detection(IDS/IPS)
Computer Security and Intrusion Detection(IDS/IPS)
 
Intrusion detection
Intrusion detectionIntrusion detection
Intrusion detection
 
Osint {open source intelligence }
Osint {open source intelligence }Osint {open source intelligence }
Osint {open source intelligence }
 
Footprinting and reconnaissance
Footprinting and reconnaissanceFootprinting and reconnaissance
Footprinting and reconnaissance
 
Cybersecurity 1. intro to cybersecurity
Cybersecurity 1. intro to cybersecurityCybersecurity 1. intro to cybersecurity
Cybersecurity 1. intro to cybersecurity
 
Malware analysis
Malware analysisMalware analysis
Malware analysis
 
Password Cracking
Password CrackingPassword Cracking
Password Cracking
 
Getting started with using the Dark Web for OSINT investigations
Getting started with using the Dark Web for OSINT investigationsGetting started with using the Dark Web for OSINT investigations
Getting started with using the Dark Web for OSINT investigations
 
Ethical Hacking PPT (CEH)
Ethical Hacking PPT (CEH)Ethical Hacking PPT (CEH)
Ethical Hacking PPT (CEH)
 
Internet Traffic Monitoring and Analysis
Internet Traffic Monitoring and AnalysisInternet Traffic Monitoring and Analysis
Internet Traffic Monitoring and Analysis
 
Effective Threat Hunting with Tactical Threat Intelligence
Effective Threat Hunting with Tactical Threat IntelligenceEffective Threat Hunting with Tactical Threat Intelligence
Effective Threat Hunting with Tactical Threat Intelligence
 

Ähnlich wie Introduction to shodan

Mongo NYC PHP Development
Mongo NYC PHP Development Mongo NYC PHP Development
Mongo NYC PHP Development
Fitz Agard
 

Ähnlich wie Introduction to shodan (20)

Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
 
Playing with shodan
Playing with shodanPlaying with shodan
Playing with shodan
 
API
APIAPI
API
 
Searching Shodan For Fun And Profit
Searching Shodan For Fun And ProfitSearching Shodan For Fun And Profit
Searching Shodan For Fun And Profit
 
SEO for Large Websites
SEO for Large WebsitesSEO for Large Websites
SEO for Large Websites
 
Gates Toorcon X New School Information Gathering
Gates Toorcon X New School Information GatheringGates Toorcon X New School Information Gathering
Gates Toorcon X New School Information Gathering
 
Webinar: Scaling MongoDB
Webinar: Scaling MongoDBWebinar: Scaling MongoDB
Webinar: Scaling MongoDB
 
Secure Developer Access at Decisiv
Secure Developer Access at DecisivSecure Developer Access at Decisiv
Secure Developer Access at Decisiv
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATION
 
Data Science in the Cloud @StitchFix
Data Science in the Cloud @StitchFixData Science in the Cloud @StitchFix
Data Science in the Cloud @StitchFix
 
OData for iOS developers
OData for iOS developersOData for iOS developers
OData for iOS developers
 
How sitecore depends on mongo db for scalability and performance, and what it...
How sitecore depends on mongo db for scalability and performance, and what it...How sitecore depends on mongo db for scalability and performance, and what it...
How sitecore depends on mongo db for scalability and performance, and what it...
 
Company Visitor Management System Report.docx
Company Visitor Management System Report.docxCompany Visitor Management System Report.docx
Company Visitor Management System Report.docx
 
Developing for LinkedIn's Application Platform
Developing for LinkedIn's Application PlatformDeveloping for LinkedIn's Application Platform
Developing for LinkedIn's Application Platform
 
DEF CON 27 - BEN SADEGHIPOUR - owning the clout through ssrf and pdf generators
DEF CON 27 - BEN SADEGHIPOUR  - owning the clout through ssrf and pdf generatorsDEF CON 27 - BEN SADEGHIPOUR  - owning the clout through ssrf and pdf generators
DEF CON 27 - BEN SADEGHIPOUR - owning the clout through ssrf and pdf generators
 
RESTfulDay9
RESTfulDay9RESTfulDay9
RESTfulDay9
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1
 
Odata V4 : The New way to REST for Your Applications
Odata V4 : The New way to REST for Your Applications Odata V4 : The New way to REST for Your Applications
Odata V4 : The New way to REST for Your Applications
 
Mongo NYC PHP Development
Mongo NYC PHP Development Mongo NYC PHP Development
Mongo NYC PHP Development
 
Moscow MuleSoft meetup May 2021
Moscow MuleSoft meetup May 2021Moscow MuleSoft meetup May 2021
Moscow MuleSoft meetup May 2021
 

Mehr von n|u - The Open Security Community

Mehr von n|u - The Open Security Community (20)

Hardware security testing 101 (Null - Delhi Chapter)
Hardware security testing 101 (Null - Delhi Chapter)Hardware security testing 101 (Null - Delhi Chapter)
Hardware security testing 101 (Null - Delhi Chapter)
 
Osint primer
Osint primerOsint primer
Osint primer
 
SSRF exploit the trust relationship
SSRF exploit the trust relationshipSSRF exploit the trust relationship
SSRF exploit the trust relationship
 
Nmap basics
Nmap basicsNmap basics
Nmap basics
 
Metasploit primary
Metasploit primaryMetasploit primary
Metasploit primary
 
Api security-testing
Api security-testingApi security-testing
Api security-testing
 
Introduction to TLS 1.3
Introduction to TLS 1.3Introduction to TLS 1.3
Introduction to TLS 1.3
 
Gibson 101 -quick_introduction_to_hacking_mainframes_in_2020_null_infosec_gir...
Gibson 101 -quick_introduction_to_hacking_mainframes_in_2020_null_infosec_gir...Gibson 101 -quick_introduction_to_hacking_mainframes_in_2020_null_infosec_gir...
Gibson 101 -quick_introduction_to_hacking_mainframes_in_2020_null_infosec_gir...
 
Talking About SSRF,CRLF
Talking About SSRF,CRLFTalking About SSRF,CRLF
Talking About SSRF,CRLF
 
Building active directory lab for red teaming
Building active directory lab for red teamingBuilding active directory lab for red teaming
Building active directory lab for red teaming
 
Owning a company through their logs
Owning a company through their logsOwning a company through their logs
Owning a company through their logs
 
Cloud security
Cloud security Cloud security
Cloud security
 
Detecting persistence in windows
Detecting persistence in windowsDetecting persistence in windows
Detecting persistence in windows
 
Frida - Objection Tool Usage
Frida - Objection Tool UsageFrida - Objection Tool Usage
Frida - Objection Tool Usage
 
OSQuery - Monitoring System Process
OSQuery - Monitoring System ProcessOSQuery - Monitoring System Process
OSQuery - Monitoring System Process
 
DevSecOps Jenkins Pipeline -Security
DevSecOps Jenkins Pipeline -SecurityDevSecOps Jenkins Pipeline -Security
DevSecOps Jenkins Pipeline -Security
 
Extensible markup language attacks
Extensible markup language attacksExtensible markup language attacks
Extensible markup language attacks
 
Linux for hackers
Linux for hackersLinux for hackers
Linux for hackers
 
Android Pentesting
Android PentestingAndroid Pentesting
Android Pentesting
 
News bytes null 200314121904
News bytes null 200314121904News bytes null 200314121904
News bytes null 200314121904
 

Kürzlich hochgeladen

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

Introduction to shodan

  • 2. Disclaimer ____________________________________ o Views, Thoughts and Opinions expressed in this presentation are my own and are not endorsed by my employer.
  • 3. Outline ____________________________________ o What is shodan.io o How does it work ? o Banner o Database / Metadata o Default search includes o Shodan search filters o Examples o Plugins o CLI o Shutting the door on Shodan o Notes
  • 4. What is shodan.io? ____________________________________ The search engine for The Web The search engine for Security The search engine for Buildings The search engine for Web Cams The search engine for Refrigerators The search engine for Power plants The search engine for The Internet of Things
  • 5.
  • 6. What is shodan ____________________________________ o SHODAN = Sentient Hyper-Optimized Data Access Network o Unlike traditional search engines that crawl the web to display results, Shodan attempts to grab data from ports o Shodan is a search engine that lets you find specific information from routers, servers, and any device with an IP address. o Shodan indexes a large amount of data, which is really helpful when searching for specific devices that happen to be connected to the internet.
  • 7. How does it work ? ____________________________________ o Whenever shodan gets a query from a user, it generates randomized IPv4 addresses and Random Ports -> retrieve Banners -> Banner Analysis / process / Logic -> Result o Shodan uses OR operator by default for filtering queries. o If you want to search for a word that include spaces or want combine two different filters, you can use +. It will work as AND operator.
  • 8. Banner ____________________________________ o What is a Banner? A banner is collection of text data that give details of a service running on a host like Content Type, Cookies, Web Server and Content-length. Banners are always different for different kind of services and keep on changing time to time. Here's an example of a banner returned in response of a request: o HTTP/1.1 200 OK o Server: apache2 o Date: Sun, 13 May 2018 02:12:34 GMT o Content-Type: text/html; charset=utf-8 o Content-Length: 9879 o Connection: keep-alive
  • 9. Database / Meta data ____________________________________ o Database o Shodan databases are updated 24 hours a day and 7 days a week. So, it means anytime you search, you are retrieving the latest results on the Internet. o Meta Data o In addition to Banners, shodan crawlers also look for the meta data of an IP address and show results from the past month. Meta Data are the information collected from an IP address like its Physical location, Geo Coordinates and ISP etc.
  • 10. Default Search includes ________________________________________ o The Shodan documentation doesn't disclose exactly what protocol data is used in the default search, but empirical analysis indicates that it includes at least the following: • HTTP header information • HTTPS header and certificate information • Several gaming server banners (Steam's A2S, Minecraft, and more) • FTP banners • NetBIOS server banner • SSH header and server key data • Telnet banner • SMTP banner • NTP banner • SIP/VoIP banner • DNS server configuration settings • And more!
  • 11. Shodan search filters ____________________________________ o Format of the enterign filter is • filtername:value • Important: There is no space between the colon “:” and the value. o Here are the basic search filters you can use: • city: find devices in a particular city • country: find devices in a particular country • geo: you can pass it coordinates • hostname: find values that match the hostname • net: search based on an IP or /x CIDR • os: search based on operating system • port: find particular ports that are open • before/after: find results within a timeframe o Advanced Integration: • Metasploit shodan module • Maltego • Geolocation mapping via https://maps.shodan.io
  • 12. Example: ____________________________________ o country and city: • country:"FR" city:"paris" nginx • The above query will search for the word "nginx" in banners retreived from the IP addresses which are located in Paris, France. o IP filter: • ip:'127.0.0.1' • This will look for the banners from the IP 127.0.0.1 o os, product: • product:MySQL os:windows • Now, this will search for MySQL databases running the Windows Operating System
  • 13. Example: ____________________________________ o HTTP filters o Besides, the general filters, shodan also provides some http filters. These filters are to fetch some of the important details from within the document like document title, technologies used. General used Shodan filters are: o http.component: value must be the name of technologies used like wordpress, JQuerey, Drupal, Django etc. o http.title: Title for the website o http.status: Response Status Code
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 20. CLI zero to one ____________________________________ o "easy_install shodan" OR "pip install shodan" o https://github.com/achillean/shodan-python o shodan init <YOUR_API_KEY> • YOUR_API_KEY from • https://www.account.shodan.io o Command line help overview o Shodan –help
  • 21. CLI one to two ____________________________________ o shodan –help o shodan <command> --help o shodan count <ubuntu 16> o shodan host <ip addr> o shodan myip o shodan search --fields ip_str,port,org <example.com> | awk '{print $1}'|xargs -r - Igeo curl -s http://ip-api.com/json/geo | jq -c [.query,.city,.country,.regionName,.lat,.lon] | tr -d '[ ]"'
  • 22. Shutting the door on Shodan ______________________________________________ o Firewall rules o Security requirements o Integrating security to the device o Securing legacy devices – the “bump-in-the-wire” solution
  • 23. Notes ______________________________________________ o This resource is just an intro to what Shodan is and how to do the basics . You should also take a look at the help pages which are quite good. o Shodan uses its own internally developed port scanner, not Nmap or Zmap. o The system works off of banners, and banners can be modified, spoofed, and faked. What you see is what’s being presented, not necessarily what is real. o You should also check out the blog at https://blog.shodan.io.
  • 24. References ____________________________________ o https://www.shodan.io/ o https://help.shodan.io/ o https://www.manufacturing.net/industry40/article/13057461/shutting-the-door-on-shodan o https://blog.watchpointdata.com/shodan-demonstrates-why-closing-unused-iot-ports-is- critical-to-cyber-security o https://www.defcon.org/images/defcon-18/dc-18-presentations/Schearer/DEFCON-18- Schearer-SHODAN.pdf