wmap 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wmap/cidr_tracker.rb +5 -2
- data/version.txt +2 -2
- 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: 95c2c76419e96f7f434f261801b4ba899b1525fd4b9a152f560ab8714cbb8318
|
4
|
+
data.tar.gz: f615e594057de328bd7cafac11b1f8a167d59b8302aeedb77bfa41745aa48590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56329a4b3379cf5f79b12521fa5622416bbdc1077a84057f0110ddc6b4a85c6591219221c304b3f69b1cc19ecca291a6312967d66b63702068b991d11c842495
|
7
|
+
data.tar.gz: 308783d83de9ede46f143f9e622f46de6978ad3ef01b8a2047172e21a839e00b18b9286220c6fbd08f623fdc58402f07a961499974c38ae6ed26aaf2cd73aa4c
|
data/lib/wmap/cidr_tracker.rb
CHANGED
@@ -63,8 +63,10 @@ class Wmap::CidrTracker
|
|
63
63
|
# Sort the blocks in order once for better performance. Update 10/29/2018 to support Netaddr 2.x syntax
|
64
64
|
#@known_cidr_blks_desc_index=NetAddr.sort(@known_cidr_blks.keys, :Desc=>true)
|
65
65
|
#@known_cidr_blks_asce_index=NetAddr.sort(@known_cidr_blks.keys, :Desc=>false)
|
66
|
-
@
|
67
|
-
|
66
|
+
if @known_cidr_blks
|
67
|
+
@known_cidr_blks_asce_index=@known_cidr_blks.keys.sort
|
68
|
+
@known_cidr_blks_desc_index=@known_cidr_blks_asce_index.reverse
|
69
|
+
end
|
68
70
|
#rescue => ee
|
69
71
|
# puts "Exception on method #{__method__}: #{ee}" # if @verbose
|
70
72
|
end
|
@@ -82,6 +84,7 @@ class Wmap::CidrTracker
|
|
82
84
|
netname=whois.get_netname(ip)
|
83
85
|
whois=nil
|
84
86
|
end
|
87
|
+
@known_cidr_blks = Hash.new unless @known_cidr_blks
|
85
88
|
if @known_cidr_blks.key?(cidr)
|
86
89
|
puts "Skip! Entry is already exist: #{cidr}"
|
87
90
|
return nil
|
data/version.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
###############################################################################
|
4
4
|
package = wmap
|
5
5
|
# wmap version 2.0 == web_discovery version 1.5.3
|
6
|
-
version = 2.6.
|
7
|
-
date = 2019-09-
|
6
|
+
version = 2.6.1
|
7
|
+
date = 2019-09-25
|
8
8
|
|
9
9
|
author = Sam (Yang) Li
|
10
10
|
email = yang.li@owasp.org
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam (Yang) Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dnsruby
|