achillean / shodan-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby library for SHODAN
Home Page: http://www.shodanhq.com
License: Other
Ruby library for SHODAN
Home Page: http://www.shodanhq.com
License: Other
hard requirement on json 1.4.6, okay to open it up to >= 1.4.6?
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 ?
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.
Hi,
I'm wondering why certificate verification has been disabled in this library? Is that on purpose, if so, why?
https://github.com/achillean/shodan-ruby/blob/master/lib/shodan/shodan.rb#L48
Thanks,
Aaron
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 ... >
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.