Hood3dRob1n / ShodanAPI

This is the Shodan API Class & Search tool that I wrote in Ruby since their default API wasn't working for me. You can either drop the API class in and use how you like or you can just use or tweak the tool I made iwth it. Open to questions, suggestions and general feedback...
8 stars 7 forks source link

search issues #1

Open DarkJester opened 10 years ago

DarkJester commented 10 years ago

search fails with an error root@ikali:~/tools/ShodanAPI# ./shodan_api_tool.rb -s cisco-ios

Shodan API Search Assistant By: Hood3dRob1n

Shodan API Key Confirmed! API Key:CENSORED Plan Type: dev Unlocked: true Unlocks Remaining: 100 HTTPS Enabled: true Telnet Enabled: true

Shodan Search: cisco-ios Total Results Found: ./shodan_api_tool.rb:456:in <main>': undefined methodeach' for nil:NilClass (NoMethodError) root@ikali:~/tools/ShodanAPI#

Hood3dRob1n commented 10 years ago

Ah, I have fix just need to roll out, sorry about that. The error is caused cause your search returned no results and the existing logic is assuming something is always going to be returned. Hope to have it updated before the end of the weekend. Thanks for reporting.