patronus_fati 0.9.7 → 0.9.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1876ad36866eee6d82f0cb3b740f6b5ac0e460e6
4
- data.tar.gz: edbc4d0d8d8a159f72ea951dc654013d6640dfe7
3
+ metadata.gz: c83ec29a1009a0102aab08c3dfc4093bbbd234cd
4
+ data.tar.gz: 811cd0933027820247acfd5b4c8d89421d6cc4b0
5
5
  SHA512:
6
- metadata.gz: dd68e48ee06cc05affc19167124f95b61faa092daf3f924b94f49a35851c2ed53119b1b7192af0c69b573795bf42bb820079c1d9824f4721809ac13598136c01
7
- data.tar.gz: b42937fd98ba1422cfaeb4fc236434555e36a2c7a94169cdf769ef84e7338dacf2d98d337a20d91f05036f7b0f31f45f9383629c3b5e8cd7130bb6ad61d84586
6
+ metadata.gz: 485f8a10aba3c6cc8b3226416a3e26bd236ac400d7a1ce21abf7a3fcf6482790a7bd83a9d5baba5f23f6e25201cbd5484fcd5fe787349150d66d430c9eb78e50
7
+ data.tar.gz: 3c9bca7a72a619f70143ff048263a24def4fbccd3edf5f2767ed8d507b64e9f3b09dc2887f7d86349d3f79c787cbb05f0b05b124bcfd5908e6bc722a992d3d8a
@@ -3,11 +3,11 @@ module PatronusFati::MessageProcessor::Bssid
3
3
 
4
4
  def self.process(obj)
5
5
  # We don't care about objects that would have expired already...
6
- return if obj[:lasttime] < (Time.now.to_i - PatronusFati::AP_EXPIRATION)
6
+ return if obj[:lasttime] < (Time.now.to_i - PatronusFati::AP_EXPIRATION) || obj[:bssid].nil?
7
7
 
8
8
  # Some messages from kismet come in corrupted with partial MACs. We care
9
9
  # not for them, just drop the bad data.
10
- return unless obj[:mac].match(/^([0-9a-f]{2}[:-]){5}[0-9a-f]{2}$/)
10
+ return unless obj[:bssid].match(/^([0-9a-f]{2}[:-]){5}[0-9a-f]{2}$/)
11
11
 
12
12
  # Ignore probe requests as their BSSID information is useless (the ESSID
13
13
  # isn't present and it's coming from a client).
@@ -7,7 +7,7 @@ module PatronusFati::MessageProcessor::Client
7
7
 
8
8
  # These potentially represent wired assets leaking through the WiFi and
9
9
  # devices not following the 802.11 spec.
10
- return if %w( unknown from_ds ).include?(obj[:type])
10
+ return if %w( unknown from_ds ).include?(obj[:type]) || obj[:mac].nil?
11
11
 
12
12
  # Some messages from kismet come in corrupted with partial MACs. We care
13
13
  # not for them, just drop the bad data.
@@ -1,3 +1,3 @@
1
1
  module PatronusFati
2
- VERSION = '0.9.7'
2
+ VERSION = '0.9.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patronus_fati
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stelfox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dm-constraints