Skip to content

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