-
Notifications
You must be signed in to change notification settings - Fork 23
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
[Question] Async example working? #34
Comments
👋 Hello again @noraj! 🤔 I was able to run this successfully on Maybe the token you have can't access the honeypot score API? |
Can confirm on Using the $ ruby examples/debug.rb
From: /full/path/to/shodanz/examples/debug.rb @ line 11 :
6: # streaming_api = Shodanz.api.streaming.new
7: # exploits_api = Shodanz.api.exploits.new
8:
9: client = Shodanz.client.new
10:
=> 11: binding.pry
[1] pry(main)> client.info
=> {"scan_credits"=>65536,
"usage_limits"=>{"scan_credits"=>65536, "query_credits"=>200000, "monitored_ips"=>131072},
"plan"=>"edu",
"https"=>true,
"unlocked"=>true,
"query_credits"=>200000,
"monitored_ips"=>nil,
"unlocked_left"=>200000,
"telnet"=>true} |
I ran with 2.6.5 and 2.7.0.
I was successful with the REST API directly :
Ah!!!! The streaming API is available from the Freelancer plan, I have only the developer plan so the streaming API not available for me. Not an issue with shodanz. |
PS : by the way, cool wrapper 🎉, awesome to have ruby infosec libs 💪 |
👍 Glad we got this sorted out. I should probably have a warning in the README for that example. Thank you for contributing to some of my infosec ruby libs, it's very helpful! 🎉 |
Maybe you can detect the API output and add a class error for API level: WrongApiLevel ? My API key with to low level priv trying accessing stream data:
No key, different error message:
I'm writing an article about shodan, I'll quote shodanz in the lib section and give some examples with shodanz. I'll link you the article when it will be published. 📰 |
That's a great idea, and something I think could be added to make it more apparent to users. Excited to read the article! 👏 |
I'm able to make all the REST API examples work but not he async one, it always result nothign and exit without error. I quickly checked all the methods used seems not to have changed.
The text was updated successfully, but these errors were encountered: