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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c83ec29a1009a0102aab08c3dfc4093bbbd234cd
|
4
|
+
data.tar.gz: 811cd0933027820247acfd5b4c8d89421d6cc4b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
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.
|
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.
|
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-
|
11
|
+
date: 2016-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dm-constraints
|