shodanz 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/shodanz/apis/streaming.rb +1 -1
- data/lib/shodanz/client.rb +3 -3
- data/lib/shodanz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30b41a97e4733cbc6a78b283019eb135fe36114768f7e032b6bc6df9f317e051
|
|
4
|
+
data.tar.gz: 7d4bc7144c8dad6dd37b7df896fa8cef8248c132f640d81ea86ae5dc4d5631c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ac1a82fc5b214b7b0e9f9add4f381d1aa52618dfbdc0ff1b8005417ff93752f8e48b1e2b0ed146893bc6db9bc04d56c5df8b6c104d3207ca4df28d19e6ba1ca
|
|
7
|
+
data.tar.gz: fa645b5ce29c8fc267a6398127b8c2a0fb67937a67d38a92d686c669175d39fd53c9c55db3546d07d655fadd108914bcdf381710dda5b62a3d6c26e777b43248
|
data/README.md
CHANGED
|
@@ -271,7 +271,7 @@ This method behaves identical to the Exploits API `search` method with the diffe
|
|
|
271
271
|
```ruby
|
|
272
272
|
client.exploits_api.count("python") # Count Snek vulns.
|
|
273
273
|
client.exploits_api.count(port: 22) # Port number for the affected service if the exploit is remote.
|
|
274
|
-
client.exploits_api.
|
|
274
|
+
client.exploits_api.count(type: "shellcode") # A category of exploit to search for.
|
|
275
275
|
client.exploits_api.count(osvdb: "100007") # Open Source Vulnerability Database ID for the exploit.
|
|
276
276
|
```
|
|
277
277
|
|
data/lib/shodanz/client.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Shodanz
|
|
2
2
|
# General client container class for all three
|
|
3
|
-
# of
|
|
4
|
-
#
|
|
3
|
+
# of the available API endpoints in a
|
|
4
|
+
# convenient place to use.
|
|
5
5
|
#
|
|
6
6
|
# @author Kent 'picat' Gruber
|
|
7
7
|
class Client
|
|
@@ -14,7 +14,7 @@ module Shodanz
|
|
|
14
14
|
|
|
15
15
|
# Create a new client to connect to any of the APIs.
|
|
16
16
|
#
|
|
17
|
-
# Optionally provide your
|
|
17
|
+
# Optionally provide your Shodan API key, or the environment
|
|
18
18
|
# variable SHODAN_API_KEY will be used.
|
|
19
19
|
def initialize(key: ENV['SHODAN_API_KEY'])
|
|
20
20
|
raise "No API key has been found or provided! ( setup your SHODAN_API_KEY environment varialbe )" if key.nil?
|
data/lib/shodanz/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shodanz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kent 'picatz' Gruber
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04
|
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unirest
|