Giter Site home page Giter Site logo

shodan-ruby's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shodan-ruby's Issues

502 Bad Gateway when searching

Hi,

I just installed the shodan gem and using the examples in the readme I get an "502 Bad Gateway" error.

https://api.shodan.io/shodan/host/search?key=XXX&page=2&query=cisco-ios
 (JSON::ParserError)gems/json-1.8.1/lib/json/common.rb:155:in `parse': 757: unexpected token at '<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

If I use the URL in a browser I do get search results back. I am doing something wrong ?

Streaming API Support

After using the Ruby Shodan client for a while, I came to find that it fell short of features compared to the Python client. One important missing feature is the support for the Streaming Shodan API. It would be really great if this could be added.

502 Bad Gateway when searching for exploits

From irb with a fresh install of the shodan gem:

>> api = Shodan::WebAPI.new(SHODAN_API_KEY)
=> #>, @base_url="http://www.shodanhq.com/api/", @exploitdb=#>, @api_key="xxx", @msf=#>>
>> api.exploitdb.search('cve-2011-1255')
JSON::ParserError: 757: unexpected token at '

... snipped a bunch of HTML that wouldn't render on GitHub ...

> 

RuntimeError: FORBIDDEN/4/index closed

Getting a RuntimeError when making calls via the ruby gem:

2016-04-05T18:22:59.972Z 22543 TID-bms04 WARN: RuntimeError: blocked by: [FORBIDDEN/4/index closed];
2016-04-05T18:22:59.972Z 22543 TID-bms04 WARN: /home/jcran/.rvm/gems/ruby-2.3.0@core/gems/shodan-1.0.0/lib/shodan/api.rb:48:in `request'
/home/jcran/.rvm/gems/ruby-2.3.0@core/gems/shodan-1.0.0/lib/shodan/api.rb:72:in `search'

Might be elasticsearch index issue? http://stackoverflow.com/questions/28712138/getting-the-following-exception-after-changing-the-index-name

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.