rogue_one 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rogue_one/detector.rb +5 -5
- data/lib/rogue_one/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: 50bc52be2dec2e0e5c7daf51af82117041d99a1925dc6709ee45c9bfe14feac1
|
4
|
+
data.tar.gz: 0f08a6005109c20fe4e48b8fbff97375813d4eff7f75259648e8b74614ce1b99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40cda8348091166aa7dd06518596f9f2da42673a28563a91515505f76a851ecda89addb9bf3463f7a4b3732bffcbff991913ee0108e304712fcc06351ea57c46
|
7
|
+
data.tar.gz: 9c0f43f946d9f5559e5711d557466fea2b41adc706dfa8897e693a01b5327e04e3b5470e123e56a69b266a8bdf396dc8eb680429017a139f23775d7ad184db6d
|
data/lib/rogue_one/detector.rb
CHANGED
@@ -15,11 +15,9 @@ module RogueOne
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def report
|
18
|
-
|
19
|
-
inspect
|
18
|
+
inspect
|
20
19
|
|
21
|
-
|
22
|
-
end.first
|
20
|
+
{ verdict: verdict, landing_pages: landing_pages }
|
23
21
|
end
|
24
22
|
|
25
23
|
private
|
@@ -35,10 +33,12 @@ module RogueOne
|
|
35
33
|
def landing_pages
|
36
34
|
@memo.map do |ip, count|
|
37
35
|
count > 10 ? ip : nil
|
38
|
-
end.compact
|
36
|
+
end.compact.sort
|
39
37
|
end
|
40
38
|
|
41
39
|
def inspect
|
40
|
+
return unless @memo.empty?
|
41
|
+
|
42
42
|
results = Parallel.map(top_100_domains) do |domain|
|
43
43
|
normal_result = normal_resolver.dig(domain, "A")
|
44
44
|
target_result = target_resolver.dig(domain, "A")
|
data/lib/rogue_one/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rogue_one
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|