Giter Site home page Giter Site logo

Comments (3)

g4mma4 avatar g4mma4 commented on June 1, 2024

The API doesn't support this directly

curl 'https://api.shodan.io/shodan/host/yahoo.com?key=EU0zYQ0ZXU_REDACT_xzJ27' 
{"error": "Invalid IP"}

And if we wanted to be thorough and accept globs e.g. *.exxample.com we'd need access to their /dns/domain/{domain} endpoint; however, it requires credits. These are valuable resources and it would be naive to assume the users has or even wants to use their credits:

 curl 'https://api.shodan.io/dns/domain/example.com?key=EU0zYQ0ZXU_REDACT_xzJ27'
{                                                                               
  "error": "Insufficient query credits, please upgrade your API plan or wait for the monthly limit to reset"
}   

There is a endpoint for resolving names /dns/resolve:

% curl -s 'https://api.shodan.io/dns/resolve?hostnames=example.com,foo.com&key=EU0' | jq -r '.[]'
93.184.216.34
23.23.86.44

Where should DNS resolving happen? Using shodan do make results more consistent; however, is there a use case where this is run behind a filewall and local dns resolution is preferred?

from intrigue-core.

jcran avatar jcran commented on June 1, 2024

I suspect regular ‘ol search can work here. Goal is to be able to provide a domain (intrigue.io) for instance - and get back all the hosts that match in some field.

from intrigue-core.

jcran avatar jcran commented on June 1, 2024

From a contact it's really easy just to shodan domain <tld> and then grep ^[a-z] for each hostname, awk -F: '{print $2 "." $1}' and then shodan stats --facets vuln hostname:$i with final as grep -l cve * but strangely that didn't come up with much surprisingly. I feel by ASN the facets does more. In summary: shodan is mostly an IPv4 tool
`

from intrigue-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.