Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shodan-hq.nse script #333

Closed
wants to merge 1 commit into from
Closed

Added shodan-hq.nse script #333

wants to merge 1 commit into from

Conversation

glennzw
Copy link

@glennzw glennzw commented Mar 14, 2016

New script to passively scan targets via ShodanHQ.

@fgeek
Copy link

fgeek commented Mar 14, 2016

Works okay for the output defined in description. By the way..

118     if (string.len(hostnames) > 0)
119     then
120         result = result .. " (" .. hostnames .. ")"
121     end

Looks like this:

| shodan-hq: Report for 91.232.154.65 (lime.kapsi.fi )

@dmiller-nmap
Copy link

Great! Made a few organizational changes and committed in r35694.

  • renamed to shodan-api
  • added external category
  • added an API key check to avoid repeated queries with a bad key
  • slightly different field names, dropped constant "STATE" column (always open)
  • Avoid running on known private/reserved addresses
  • Ensure target script arg is an IP address

Forgot to link this PR in the commit message, but it's 663271f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants