cymon 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.rubocop.yml +39 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +66 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cymon.gemspec +32 -0
- data/exe/cymon +3 -0
- data/lib/cymon.rb +8 -0
- data/lib/cymon/client.rb +52 -0
- data/lib/cymon/configuration.rb +24 -0
- data/lib/cymon/endpoint/base.rb +19 -0
- data/lib/cymon/endpoint/search.rb +91 -0
- data/lib/cymon/responses/base.rb +18 -0
- data/lib/cymon/responses/search.rb +7 -0
- data/lib/cymon/version.rb +3 -0
- metadata +171 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 77bd6c902511b5e0f0510c62a7d8c141e7f479fe917ac2eff6ca31dccc4f4b65
|
4
|
+
data.tar.gz: 8a142b42d3e544586bdb1654736fc84ea20b106692176b209504f8c166ca7435
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b0de1ba4ba6f3932301e85d57d11e40d4db9a26a532ffac4ca6a9453ec8f1f1565972e02283f3a8853812a6523cad9679f831ba436da5122bb2ef5bdd43ea329
|
7
|
+
data.tar.gz: c61fbf5662e10a5ca0bfd3e508a8038efc351fb13f4155e58d6542b0bed8e00d9f279046ad25ee6dc241c8b7389e604f003bc7b09cc7f57ffdef566cb26961f7
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Configurations: http://rubocop.readthedocs.io/en/latest/configuration/#configuration
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.5
|
5
|
+
|
6
|
+
Documentation:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
Style/Encoding:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Style/AndOr:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Style/BracesAroundHashParameters:
|
16
|
+
EnforcedStyle: context_dependent
|
17
|
+
|
18
|
+
Metrics/LineLength:
|
19
|
+
Max: 120
|
20
|
+
|
21
|
+
Metrics/MethodLength:
|
22
|
+
Max: 20
|
23
|
+
|
24
|
+
Metrics/AbcSize:
|
25
|
+
Max: 20
|
26
|
+
|
27
|
+
TrailingBlankLines:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
FrozenStringLiteralComment:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
CaseIndentation:
|
34
|
+
# Valid values are: case, end
|
35
|
+
EnforcedStyle: case
|
36
|
+
IndentOneStep: true
|
37
|
+
|
38
|
+
#Metrics/CyclomaticComplexity:
|
39
|
+
# Severity: warning
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
cymon
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.5.0
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at falegk1@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Antony Falegkos
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# Cymon
|
2
|
+
|
3
|
+
A Ruby client gem for [Cymon.io](https://cymon.io) API
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'cymon'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install cymon
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```
|
24
|
+
# Init a client
|
25
|
+
client = Cymon.client
|
26
|
+
|
27
|
+
# /search endpoint
|
28
|
+
# Seach By IP
|
29
|
+
resp = client.search.by_ip('209.90.88.140')
|
30
|
+
resp.status
|
31
|
+
=> 200
|
32
|
+
resp.body
|
33
|
+
=> {"total"=>14, "from"=>0, "size"=>10, "hits"=>[{...}, {...}]}
|
34
|
+
|
35
|
+
```
|
36
|
+
|
37
|
+
## Current Endpoints
|
38
|
+
|
39
|
+
| Plugin | README |
|
40
|
+
| ------ | ------ |
|
41
|
+
| **Search** | http://docs.cymon.io/#search |
|
42
|
+
| .by_ip | http://docs.cymon.io/#search-search-by-ip-get |
|
43
|
+
| .by_domain | http://docs.cymon.io/#search-search-by-domain-get |
|
44
|
+
| .by_hostname | http://docs.cymon.io/#search-search-by-hostname-get |
|
45
|
+
| .by_md5 | http://docs.cymon.io/#search-search-by-md5-get |
|
46
|
+
| .by_sha1 | http://docs.cymon.io/#search-search-by-sha1-get |
|
47
|
+
| .by_sha256 | http://docs.cymon.io/#search-search-by-sha256-get |
|
48
|
+
| .by_term | http://docs.cymon.io/#search-search-by-term-get |
|
49
|
+
|
50
|
+
|
51
|
+
## Development
|
52
|
+
|
53
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
54
|
+
You can also run `rake console` for an interactive prompt that will allow you to experiment.
|
55
|
+
|
56
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
57
|
+
|
58
|
+
## Contributing
|
59
|
+
|
60
|
+
[Report issues / feature requests](https://github.com/falegk/cymon/issues) and [pull requests](https://github.com/falegk/cymon/pulls) are welcome.
|
61
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
62
|
+
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
63
|
+
|
64
|
+
## License
|
65
|
+
|
66
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "cymon"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/cymon.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "cymon/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "cymon"
|
7
|
+
spec.version = Cymon::VERSION
|
8
|
+
spec.authors = ["Antony Falegkos"]
|
9
|
+
spec.email = ["falegk1@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = %q{A Ruby client gem for cymon.io API}
|
12
|
+
spec.description = %q{Cymon is the largest open tracker of malware, phishing, botnets, spam, and more. Brought to you by eSentire.}
|
13
|
+
spec.homepage = "https://github.com/falegk/cymon"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
spec.add_development_dependency 'vcr', '~> 4.0', '>= 4.0.0'
|
29
|
+
|
30
|
+
spec.add_runtime_dependency 'faraday', '~> 0.15', '>= 0.15.2'
|
31
|
+
spec.add_runtime_dependency 'faraday_middleware', '~> 0.12', '>= 0.12.2'
|
32
|
+
end
|
data/exe/cymon
ADDED
data/lib/cymon.rb
ADDED
data/lib/cymon/client.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
|
4
|
+
require 'cymon/configuration'
|
5
|
+
require 'cymon/endpoint/base'
|
6
|
+
require 'cymon/endpoint/search'
|
7
|
+
|
8
|
+
module Cymon
|
9
|
+
class Client
|
10
|
+
|
11
|
+
ENDPOINTS = [:search].freeze
|
12
|
+
|
13
|
+
attr_reader :configuration
|
14
|
+
|
15
|
+
attr_accessor *ENDPOINTS
|
16
|
+
|
17
|
+
def initialize(options = nil)
|
18
|
+
@configuration = Configuration.new(options)
|
19
|
+
define_endpoint_methods
|
20
|
+
end
|
21
|
+
|
22
|
+
def api_connection(url = nil)
|
23
|
+
url ||= "https://api.cymon.io"
|
24
|
+
|
25
|
+
Faraday.new(url: url) do |faraday|
|
26
|
+
faraday.response :logger
|
27
|
+
faraday.request :json
|
28
|
+
faraday.ssl.verify = false
|
29
|
+
faraday.headers['Content-Type'] = 'application/json'
|
30
|
+
faraday.options.timeout = @configuration.timeout # open/read timeout in seconds
|
31
|
+
faraday.adapter Faraday.default_adapter
|
32
|
+
|
33
|
+
# TODO; Implementation for authenticated users http://docs.cymon.io/#header-authentication
|
34
|
+
# faraday.use :http_cache, store: Rails.cache
|
35
|
+
# faraday.authorization :Bearer, FOUNDATION_AUTH_KEY
|
36
|
+
# faraday.headers['Authorization']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
|
42
|
+
def define_endpoint_methods
|
43
|
+
namespace = "Cymon::Endpoint"
|
44
|
+
|
45
|
+
ENDPOINTS.each do |endpoint|
|
46
|
+
endpoint_klass = Object.const_get("#{namespace}::#{endpoint.to_s.capitalize}")
|
47
|
+
klass = endpoint_klass.new(self)
|
48
|
+
send("#{endpoint.to_s}=", klass)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Cymon
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :api_version, :timeout
|
4
|
+
|
5
|
+
def initialize(options = nil)
|
6
|
+
options = options ? default_options.merge(options) : default_options
|
7
|
+
|
8
|
+
return unless options.is_a?(Hash)
|
9
|
+
|
10
|
+
options.each do |config_name, config_value|
|
11
|
+
send("#{config_name}=", config_value)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def default_options
|
18
|
+
{
|
19
|
+
api_version: 'v2',
|
20
|
+
timeout: 60
|
21
|
+
}
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
require 'cymon/responses/base'
|
4
|
+
|
5
|
+
module Cymon
|
6
|
+
module Endpoint
|
7
|
+
class Base
|
8
|
+
attr_accessor :client
|
9
|
+
attr_accessor :api, :api_version_path
|
10
|
+
|
11
|
+
def initialize(client)
|
12
|
+
@client = client
|
13
|
+
@api = @client.api_connection
|
14
|
+
|
15
|
+
@api_version_path = @client.configuration.api_version
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'cymon/responses/base'
|
2
|
+
require 'cymon/responses/search'
|
3
|
+
|
4
|
+
module Cymon
|
5
|
+
module Endpoint
|
6
|
+
class Search < Base
|
7
|
+
PATH = 'ioc/search'
|
8
|
+
|
9
|
+
def url_path
|
10
|
+
"#{api_version_path}/#{PATH}"
|
11
|
+
end
|
12
|
+
|
13
|
+
# Search threat reports by IP address (IPv4 and IPv6).
|
14
|
+
# http://docs.cymon.io/#search-search-by-ip-get
|
15
|
+
#
|
16
|
+
# @param value [String] The query value to search for. Example: 209.90.88.140.
|
17
|
+
# @param params [Hash]
|
18
|
+
# +startDate+ The start date for searching. Example: 2017-03-25
|
19
|
+
# +endDate+ The end date for searching. Example: 2017-03-29
|
20
|
+
# +from+ The offset to use for pagination. Example: 0
|
21
|
+
# +size+ The limit to use for pagination. Example: 3
|
22
|
+
def by_ip(value, params = {})
|
23
|
+
params = default_params(params)
|
24
|
+
response = @api.get("#{url_path}/ip/#{value}", params)
|
25
|
+
Cymon::Responses::Search.new(response)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Search threat reports by domain name.
|
29
|
+
# http://docs.cymon.io/#search-search-by-domain-get
|
30
|
+
def by_domain(value, params = {})
|
31
|
+
params = default_params(params)
|
32
|
+
response = @api.get("#{url_path}/domain/#{value}", params)
|
33
|
+
Cymon::Responses::Search.new(response)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Search threat reports by hostname.
|
37
|
+
# http://docs.cymon.io/#search-search-by-hostname-get
|
38
|
+
def by_hostname(value, params = {})
|
39
|
+
params = default_params(params)
|
40
|
+
response = @api.get("#{url_path}/hostname/#{value}", params)
|
41
|
+
Cymon::Responses::Search.new(response)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Search threat reports by md5.
|
45
|
+
# http://docs.cymon.io/#search-search-by-md5-get
|
46
|
+
def by_md5(value, params = {})
|
47
|
+
params = default_params(params)
|
48
|
+
response = @api.get("#{url_path}/md5/#{value}", params)
|
49
|
+
Cymon::Responses::Search.new(response)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Search threat reports by sha1.
|
53
|
+
# http://docs.cymon.io/#search-search-by-sha1-get
|
54
|
+
def by_sha1(value, params = {})
|
55
|
+
params = default_params(params)
|
56
|
+
response = @api.get("#{url_path}/sha1/#{value}", params)
|
57
|
+
Cymon::Responses::Search.new(response)
|
58
|
+
end
|
59
|
+
|
60
|
+
# Search threat reports by sha256.
|
61
|
+
# http://docs.cymon.io/#search-search-by-sha256-get
|
62
|
+
def by_sha256(value, params = {})
|
63
|
+
params = default_params(params)
|
64
|
+
response = @api.get("#{url_path}/sha256/#{value}", params)
|
65
|
+
Cymon::Responses::Search.new(response)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Search threat reports by term.
|
69
|
+
# http://docs.cymon.io/#search-search-by-term-get
|
70
|
+
def by_term(value, params = {})
|
71
|
+
params = default_params(params)
|
72
|
+
response = @api.get("#{url_path}/term/#{value}", params)
|
73
|
+
Cymon::Responses::Search.new(response)
|
74
|
+
end
|
75
|
+
|
76
|
+
# Search threat reports by feed.
|
77
|
+
# http://docs.cymon.io/#search-search-by-feed-get
|
78
|
+
def by_feed(value, params = {})
|
79
|
+
params = default_params(params)
|
80
|
+
response = @api.get("#{url_path}/feed/#{value}", params)
|
81
|
+
Cymon::Responses::Search.new(response)
|
82
|
+
end
|
83
|
+
|
84
|
+
private
|
85
|
+
|
86
|
+
def default_params(params)
|
87
|
+
params.slice(:from, :size, :startDate, :endDate)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module Cymon
|
4
|
+
module Responses
|
5
|
+
class Base
|
6
|
+
|
7
|
+
attr_accessor :body, :status
|
8
|
+
attr_accessor :raw_response
|
9
|
+
|
10
|
+
# @param response Faraday::Response
|
11
|
+
def initialize(response)
|
12
|
+
@raw_response = response
|
13
|
+
@body = JSON.parse(response.body)
|
14
|
+
@status = response.status
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cymon
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Antony Falegkos
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.0'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 4.0.0
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '4.0'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 4.0.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: faraday
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.15'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.15.2
|
85
|
+
type: :runtime
|
86
|
+
prerelease: false
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0.15'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.15.2
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: faraday_middleware
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0.12'
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.12.2
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0.12'
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 0.12.2
|
115
|
+
description: Cymon is the largest open tracker of malware, phishing, botnets, spam,
|
116
|
+
and more. Brought to you by eSentire.
|
117
|
+
email:
|
118
|
+
- falegk1@gmail.com
|
119
|
+
executables:
|
120
|
+
- cymon
|
121
|
+
extensions: []
|
122
|
+
extra_rdoc_files: []
|
123
|
+
files:
|
124
|
+
- ".gitignore"
|
125
|
+
- ".rspec"
|
126
|
+
- ".rubocop.yml"
|
127
|
+
- ".ruby-gemset"
|
128
|
+
- ".ruby-version"
|
129
|
+
- ".travis.yml"
|
130
|
+
- CODE_OF_CONDUCT.md
|
131
|
+
- Gemfile
|
132
|
+
- LICENSE.txt
|
133
|
+
- README.md
|
134
|
+
- Rakefile
|
135
|
+
- bin/console
|
136
|
+
- bin/setup
|
137
|
+
- cymon.gemspec
|
138
|
+
- exe/cymon
|
139
|
+
- lib/cymon.rb
|
140
|
+
- lib/cymon/client.rb
|
141
|
+
- lib/cymon/configuration.rb
|
142
|
+
- lib/cymon/endpoint/base.rb
|
143
|
+
- lib/cymon/endpoint/search.rb
|
144
|
+
- lib/cymon/responses/base.rb
|
145
|
+
- lib/cymon/responses/search.rb
|
146
|
+
- lib/cymon/version.rb
|
147
|
+
homepage: https://github.com/falegk/cymon
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
metadata: {}
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
requirements: []
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.7.3
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: A Ruby client gem for cymon.io API
|
171
|
+
test_files: []
|