urlhaus_monitor 0.1.0
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 +7 -0
- data/.gitignore +52 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +53 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/urlhaus_monitor +8 -0
- data/lib/urlhaus_monitor/checker.rb +41 -0
- data/lib/urlhaus_monitor/cli.rb +22 -0
- data/lib/urlhaus_monitor/entry.rb +69 -0
- data/lib/urlhaus_monitor/monitor.rb +41 -0
- data/lib/urlhaus_monitor/notifier.rb +37 -0
- data/lib/urlhaus_monitor/version.rb +5 -0
- data/lib/urlhaus_monitor.rb +13 -0
- data/screenshots/example.png +0 -0
- data/urlhaus_monitor.gemspec +39 -0
- metadata +217 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0c76d3e7849c7a747f538e71ec181064e3c1ddfd782a776dd575e36787ef3474
|
4
|
+
data.tar.gz: 7e63116b773fd023bf94a93461765b7d2b89c63fb996968d8c95769e4f90d64e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 88566b40be5de7f2d002bd660b2e74090cc7e2e616503b6c1d8219d9e32aff7e40491d17d81e1b1bc1f6cd9f7a90da3796fceb7e42156d06306f5781bb35a1af
|
7
|
+
data.tar.gz: bc6304a7279c0ff154f0c9c1c9a735136f5e9a91fd45e049c70dfc2ccdab0f408f04d7e6ac26db1dcd8e5af7d3f68bf4c74c1950008c835f6cb571f737fbd3fa
|
data/.gitignore
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
.env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
Gemfile.lock
|
46
|
+
.ruby-version
|
47
|
+
.ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
51
|
+
|
52
|
+
.rspec_status
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Manabu Niseki
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# URLhaus monitor
|
2
|
+
|
3
|
+
[](https://travis-ci.org/ninoseki/urlhaus_monitor)
|
4
|
+
[](https://coveralls.io/github/ninoseki/urlhaus_monitor?branch=master)
|
5
|
+
|
6
|
+
A monitoring tool for [URLhaus](https://urlhaus.abuse.ch/) feeds.
|
7
|
+
|
8
|
+
## Features
|
9
|
+
|
10
|
+
- URLhaus feeds lookup by AS number, country code and TLD.
|
11
|
+
- Slack notification.
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
```bash
|
16
|
+
$ gem install urlhaus_monitor
|
17
|
+
```
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
```bash
|
22
|
+
$ urlhaus_monitor
|
23
|
+
Commands:
|
24
|
+
urlhaus_monitor help [COMMAND] # Describe available commands or one specific command
|
25
|
+
urlhaus_monitor lookup_by_asn [ASN] # lookup by a given asn
|
26
|
+
urlhaus_monitor lookup_by_country [COUNTRY] # lookup by a given country code
|
27
|
+
urlhaus_monitor lookup_by_tld [TLD] # lookup by a given tld
|
28
|
+
```
|
29
|
+
|
30
|
+
## Configuration
|
31
|
+
|
32
|
+
### Slack
|
33
|
+
|
34
|
+
Please set the following environmental variables for enabling Slack notification.
|
35
|
+
|
36
|
+
- `SLACK_WEBHOOK_URL`: A Slack webhook URL.
|
37
|
+
- `SLACK_CHANNEL_NAME`: A Slask channel name which will be notified.
|
38
|
+
|
39
|
+
## Screenshots
|
40
|
+
|
41
|
+
```bash
|
42
|
+
$ urlhaus_monitor lookup_by_tld jp
|
43
|
+
```
|
44
|
+
|
45
|
+

|
46
|
+
|
47
|
+
## License
|
48
|
+
|
49
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
```
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "urlhaus_monitor"
|
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/exe/urlhaus_monitor
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "http"
|
4
|
+
|
5
|
+
module URLhausMonitor
|
6
|
+
class Checker
|
7
|
+
BASE_URL = "https://urlhaus.abuse.ch"
|
8
|
+
LIMIT = 50
|
9
|
+
|
10
|
+
def lookup_by_country(country)
|
11
|
+
lookup "#{BASE_URL}/feeds/country/#{country}"
|
12
|
+
end
|
13
|
+
|
14
|
+
def lookup_by_tld(tld)
|
15
|
+
lookup "#{BASE_URL}/feeds/tld/#{tld}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def lookup_by_asn(asn)
|
19
|
+
lookup "#{BASE_URL}/feeds/asn/#{asn}"
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def lookup(url)
|
25
|
+
res = HTTP.get(url)
|
26
|
+
return nil unless res.code == 200
|
27
|
+
|
28
|
+
convert res.body.to_s.lines[0..LIMIT]
|
29
|
+
end
|
30
|
+
|
31
|
+
def convert(lines)
|
32
|
+
[].tap do |entries|
|
33
|
+
lines.each do |line|
|
34
|
+
next if line.start_with? "#"
|
35
|
+
|
36
|
+
entries << Entry.new(line)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "thor"
|
4
|
+
|
5
|
+
module URLhausMonitor
|
6
|
+
class CLI < Thor
|
7
|
+
desc "lookup_by_country [COUNTRY]", "lookup by a given country code"
|
8
|
+
def lookup_by_country(country)
|
9
|
+
Monitor.new.lookup_by_country country
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "lookup_by_tld [TLD]", "lookup by a given tld"
|
13
|
+
def lookup_by_tld(tld)
|
14
|
+
Monitor.new.lookup_by_tld tld
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "lookup_by_asn [ASN]", "lookup by a given asn"
|
18
|
+
def lookup_by_asn(asn)
|
19
|
+
Monitor.new.lookup_by_asn asn
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "csv"
|
4
|
+
|
5
|
+
module URLhausMonitor
|
6
|
+
class Entry
|
7
|
+
attr_reader :date_added
|
8
|
+
attr_reader :url
|
9
|
+
attr_reader :url_status
|
10
|
+
attr_reader :threat
|
11
|
+
attr_reader :host
|
12
|
+
attr_reader :ip_address
|
13
|
+
attr_reader :asnumber
|
14
|
+
attr_reader :country
|
15
|
+
|
16
|
+
def initialize(line)
|
17
|
+
parts = CSV.parse(line.chomp).flatten
|
18
|
+
raise ArgumentError, "#{line} is not valid." unless parts.length == 8
|
19
|
+
|
20
|
+
@date_added = parts.shift
|
21
|
+
@url = parts.shift
|
22
|
+
@url_status = parts.shift
|
23
|
+
@threat = parts.shift
|
24
|
+
@host = parts.shift
|
25
|
+
@ip_address = parts.shift
|
26
|
+
@asnumber = parts.shift
|
27
|
+
@country = parts.shift
|
28
|
+
end
|
29
|
+
|
30
|
+
def defanged_url
|
31
|
+
@defanged_url ||= url.gsub(/\./, "[.]")
|
32
|
+
end
|
33
|
+
|
34
|
+
def defanged_host
|
35
|
+
@defanged_host ||= host.gsub(/\./, "[.]")
|
36
|
+
end
|
37
|
+
|
38
|
+
def vt_link
|
39
|
+
"https://www.virustotal.com/#/domain/#{host}"
|
40
|
+
end
|
41
|
+
|
42
|
+
def urlhaus_link
|
43
|
+
"https://urlhaus.abuse.ch/host/#{host}/"
|
44
|
+
end
|
45
|
+
|
46
|
+
def title
|
47
|
+
"#{defanged_url} (#{defanged_host} / #{ip_address}) (#{date_added})"
|
48
|
+
end
|
49
|
+
|
50
|
+
def to_attachements
|
51
|
+
[
|
52
|
+
{
|
53
|
+
fallback: "urlhaus link",
|
54
|
+
title: defanged_host,
|
55
|
+
title_link: urlhaus_link,
|
56
|
+
footer: "urlhaus.abuse.ch",
|
57
|
+
footer_icon: "http://www.google.com/s2/favicons?domain=urlhaus.abuse.ch"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
fallback: "vt link",
|
61
|
+
title: defanged_host,
|
62
|
+
title_link: vt_link,
|
63
|
+
footer: "virustotal.com",
|
64
|
+
footer_icon: "http://www.google.com/s2/favicons?domain=virustotal.com"
|
65
|
+
}
|
66
|
+
]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "lightly"
|
4
|
+
|
5
|
+
module URLhausMonitor
|
6
|
+
class Monitor
|
7
|
+
attr_reader :checker
|
8
|
+
attr_reader :cache
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@checker = Checker.new
|
12
|
+
@cache = Lightly.new(dir: "/tmp/urlhause_monitor", life: "180d")
|
13
|
+
end
|
14
|
+
|
15
|
+
def lookup_by_country(country)
|
16
|
+
entries = checker.lookup_by_country(country)
|
17
|
+
process entries
|
18
|
+
end
|
19
|
+
|
20
|
+
def lookup_by_tld(tld)
|
21
|
+
entries = checker.lookup_by_tld(tld)
|
22
|
+
process entries
|
23
|
+
end
|
24
|
+
|
25
|
+
def lookup_by_asn(asn)
|
26
|
+
entries = checker.lookup_by_asn(asn)
|
27
|
+
process entries
|
28
|
+
end
|
29
|
+
|
30
|
+
def process(entries)
|
31
|
+
return nil unless entries
|
32
|
+
|
33
|
+
entries.each do |entry|
|
34
|
+
next if cache.cached? entry.url
|
35
|
+
|
36
|
+
Notifier.notify entry.title, entry.to_attachements
|
37
|
+
cache.save entry.url, true
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "slack/incoming/webhooks"
|
4
|
+
|
5
|
+
module URLhausMonitor
|
6
|
+
class Notifier
|
7
|
+
def notifiy(title, attachments = [])
|
8
|
+
attachments << { title: "N/A" } if attachments.empty?
|
9
|
+
|
10
|
+
if slack_webhook_url?
|
11
|
+
slack = Slack::Incoming::Webhooks.new(slack_webhook_url, channel: slack_channel)
|
12
|
+
slack.post title, attachments: attachments
|
13
|
+
else
|
14
|
+
puts title
|
15
|
+
attachments.each do |attachment|
|
16
|
+
puts attachment.dig(:title_link)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def slack_webhook_url
|
22
|
+
ENV.fetch "SLACK_WEBHOOK_URL"
|
23
|
+
end
|
24
|
+
|
25
|
+
def slack_channel
|
26
|
+
ENV.fetch "SLACK_CHANNEL", "#general"
|
27
|
+
end
|
28
|
+
|
29
|
+
def slack_webhook_url?
|
30
|
+
ENV.key? "SLACK_WEBHOOK_URL"
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.notify(title, attachments)
|
34
|
+
new.notifiy(title, attachments)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "urlhaus_monitor/version"
|
4
|
+
|
5
|
+
require "urlhaus_monitor/entry"
|
6
|
+
require "urlhaus_monitor/checker"
|
7
|
+
require "urlhaus_monitor/notifier"
|
8
|
+
require "urlhaus_monitor/monitor"
|
9
|
+
require "urlhaus_monitor/cli"
|
10
|
+
|
11
|
+
module URLhausMonitor
|
12
|
+
class Error < StandardError; end
|
13
|
+
end
|
Binary file
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "urlhaus_monitor/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "urlhaus_monitor"
|
9
|
+
spec.version = URLhausMonitor::VERSION
|
10
|
+
spec.authors = ["Manabu Niseki"]
|
11
|
+
spec.email = ["manabu.niseki@gmail.com"]
|
12
|
+
|
13
|
+
spec.summary = "A monitoring tool for URLhaus feeds."
|
14
|
+
spec.description = "A monitoring tool for URLhaus feeds."
|
15
|
+
spec.homepage = "https://github.com/ninoseki/urlhaus_monitor"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
28
|
+
spec.add_development_dependency "coveralls", "~> 0.8"
|
29
|
+
spec.add_development_dependency "fakefs", "~> 0.20"
|
30
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.8"
|
32
|
+
spec.add_development_dependency "vcr", "~> 4.0"
|
33
|
+
spec.add_development_dependency "webmock", "~> 3.5"
|
34
|
+
|
35
|
+
spec.add_dependency "http", "~> 4.1"
|
36
|
+
spec.add_dependency "lightly", "~> 0.3"
|
37
|
+
spec.add_dependency "slack-incoming-webhooks", "~> 0.2"
|
38
|
+
spec.add_dependency "thor", "~> 0.19"
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: urlhaus_monitor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Manabu Niseki
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-24 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: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: coveralls
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.8'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: fakefs
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.20'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.20'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '12.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '12.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.8'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.8'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.5'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.5'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: http
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '4.1'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '4.1'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: lightly
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.3'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.3'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: slack-incoming-webhooks
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.2'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.2'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: thor
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.19'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.19'
|
167
|
+
description: A monitoring tool for URLhaus feeds.
|
168
|
+
email:
|
169
|
+
- manabu.niseki@gmail.com
|
170
|
+
executables:
|
171
|
+
- urlhaus_monitor
|
172
|
+
extensions: []
|
173
|
+
extra_rdoc_files: []
|
174
|
+
files:
|
175
|
+
- ".gitignore"
|
176
|
+
- ".rspec"
|
177
|
+
- ".travis.yml"
|
178
|
+
- Gemfile
|
179
|
+
- LICENSE
|
180
|
+
- README.md
|
181
|
+
- Rakefile
|
182
|
+
- bin/console
|
183
|
+
- bin/setup
|
184
|
+
- exe/urlhaus_monitor
|
185
|
+
- lib/urlhaus_monitor.rb
|
186
|
+
- lib/urlhaus_monitor/checker.rb
|
187
|
+
- lib/urlhaus_monitor/cli.rb
|
188
|
+
- lib/urlhaus_monitor/entry.rb
|
189
|
+
- lib/urlhaus_monitor/monitor.rb
|
190
|
+
- lib/urlhaus_monitor/notifier.rb
|
191
|
+
- lib/urlhaus_monitor/version.rb
|
192
|
+
- screenshots/example.png
|
193
|
+
- urlhaus_monitor.gemspec
|
194
|
+
homepage: https://github.com/ninoseki/urlhaus_monitor
|
195
|
+
licenses:
|
196
|
+
- MIT
|
197
|
+
metadata: {}
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options: []
|
200
|
+
require_paths:
|
201
|
+
- lib
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
requirements: []
|
213
|
+
rubygems_version: 3.0.2
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: A monitoring tool for URLhaus feeds.
|
217
|
+
test_files: []
|