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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b514075e869f95275a03d0d7a3951338b0307a3cd948cdcb074cb71c268c163d
4
- data.tar.gz: 933123a0a7a51ec74edb3e7ac58c9247c329715301fbd02ed5d5f8b902c3d135
3
+ metadata.gz: 95c2c76419e96f7f434f261801b4ba899b1525fd4b9a152f560ab8714cbb8318
4
+ data.tar.gz: f615e594057de328bd7cafac11b1f8a167d59b8302aeedb77bfa41745aa48590
5
5
  SHA512:
6
- metadata.gz: 1ee291ad43397feb0ac7a20466eb373c2eed2f7ff516d00a2f6ebc4f94b597dd2ac8a21d1321d60dfc1155884703759602e63431a7bd8a11f30aa893192d5f0e
7
- data.tar.gz: 69a4b53667c5c8c4bd24134c4c7122e5db9ee274c3f79cde037f7278c373d536933d6fbbed464e6f176e0cece4c6621eb951e884e9f61d881c64074721019ad3
6
+ metadata.gz: 56329a4b3379cf5f79b12521fa5622416bbdc1077a84057f0110ddc6b4a85c6591219221c304b3f69b1cc19ecca291a6312967d66b63702068b991d11c842495
7
+ data.tar.gz: 308783d83de9ede46f143f9e622f46de6978ad3ef01b8a2047172e21a839e00b18b9286220c6fbd08f623fdc58402f07a961499974c38ae6ed26aaf2cd73aa4c
@@ -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
- @known_cidr_blks_asce_index=@known_cidr_blks.keys.sort
67
- @known_cidr_blks_desc_index=@known_cidr_blks_asce_index.reverse
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
@@ -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.0
7
- date = 2019-09-22
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2019-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dnsruby