recog 3.1.26 → 3.1.28
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/recog/fingerprint.rb +2 -2
- data/lib/recog/version.rb +1 -1
- data/recog/xml/ntp_banners.xml +3 -3
- data/recog/xml/snmp_sysdescr.xml +13 -0
- data/spec/lib/recog/match_reporter_spec.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '080a93966a4a26d07ec5e967792d64e844a830deeb8aaa7903ef02a4ba388006'
|
|
4
|
+
data.tar.gz: d23323a4842ea86d93ca5f651c57099d38e1a14211418850bf9f2d860a84def8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70ae7a6aef0755cf8695acd65fe1374ddda9b12dff2456d3381b32ca01abebe8ee7ea6b6a9f7cf7082cb54a9e71828ce3916f4bfb9c8b5302a6c37de0e1dec62
|
|
7
|
+
data.tar.gz: a169287c75a6d9f9861537441621031f6f0a5b80206b19f40e29662d8055b4f9ad6a9771565ab6da752ffae6d1c9b42dad3dc3381a6f5842769139316dbce017
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/recog/fingerprint.rb
CHANGED
|
@@ -104,7 +104,7 @@ module Recog
|
|
|
104
104
|
|
|
105
105
|
# Use the protocol specified in the XML database if there isn't one
|
|
106
106
|
# provided as part of this fingerprint.
|
|
107
|
-
result['service.protocol'] = @protocol if @protocol && !
|
|
107
|
+
result['service.protocol'] = @protocol if @protocol && !result['service.protocol']
|
|
108
108
|
|
|
109
109
|
result['fingerprint_db'] = @match_key if @match_key
|
|
110
110
|
|
|
@@ -123,7 +123,7 @@ module Recog
|
|
|
123
123
|
# standard of '-' for the version, otherwise raise and exception as
|
|
124
124
|
# this code currently does not handle interpolation of undefined
|
|
125
125
|
# values in other cases.
|
|
126
|
-
raise "Invalid use of nil interpolated non-version value #{replacement} in non-cpe23 fingerprint param #{replacement_k}" unless replacement_k =~
|
|
126
|
+
raise "Invalid use of nil interpolated non-version value #{replacement} in non-cpe23 fingerprint param #{replacement_k}" unless replacement_k =~ /\.cpe23$/ && replacement =~ /\.version$/
|
|
127
127
|
|
|
128
128
|
result[replacement_k] = result[replacement_k].gsub(/\{#{replacement}\}/, '-')
|
|
129
129
|
|
data/lib/recog/version.rb
CHANGED
data/recog/xml/ntp_banners.xml
CHANGED
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
<param pos="0" name="os.cpe23" value="cpe:/o:citrix:netscaler_firmware:{os.version}"/>
|
|
366
366
|
</fingerprint>
|
|
367
367
|
|
|
368
|
-
<fingerprint pattern="version="ntpd ([^ ]+)[^"]+",.*processor="([^ ]+)",.*system="FreeBSD/?([^ ]
|
|
368
|
+
<fingerprint pattern="version="ntpd ([^ ]+)[^"]+",.*processor="([^ ]+)",.*system="FreeBSD/?([\d][^ ]*)"" flags="REG_DOT_NEWLINE,REG_ICASE">
|
|
369
369
|
<description>ntpd running on FreeBSD</description>
|
|
370
370
|
<example service.version="4.2.6p2@1.2194" os.arch="i386" os.version="7.4-PRERELEASE">
|
|
371
371
|
version="ntpd 4.2.6p2@1.2194 Wed Nov 24 15:54:11 UTC 2010 (1)",
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
<param pos="0" name="os.cpe23" value="cpe:/o:freebsd:freebsd:{os.version}"/>
|
|
383
383
|
</fingerprint>
|
|
384
384
|
|
|
385
|
-
<fingerprint pattern="processor="([^ ]+)",.*system="FreeBSD/?([^ ]
|
|
385
|
+
<fingerprint pattern="processor="([^ ]+)",.*system="FreeBSD/?([\d][^ ]*)"" flags="REG_DOT_NEWLINE,REG_ICASE">
|
|
386
386
|
<description>ntp without a version on FreeBSD</description>
|
|
387
387
|
<example os.arch="i386" os.version="4.1-RELEASE">
|
|
388
388
|
processor="i386", system="FreeBSD4.1-RELEASE"
|
|
@@ -1318,4 +1318,4 @@
|
|
|
1318
1318
|
<param pos="1" name="service.version"/>
|
|
1319
1319
|
</fingerprint>
|
|
1320
1320
|
|
|
1321
|
-
</fingerprints>
|
|
1321
|
+
</fingerprints>
|
data/recog/xml/snmp_sysdescr.xml
CHANGED
|
@@ -6503,6 +6503,19 @@ Copyright (c) 1995-2005 by Cisco Systems
|
|
|
6503
6503
|
<!--======================================================================
|
|
6504
6504
|
SonicWall
|
|
6505
6505
|
=======================================================================-->
|
|
6506
|
+
<fingerprint pattern="^SonicWALL (\S+)\s+(\d+)\s*\(SonicOS[X]?\s+(\d[^\)]+)\)\s*$">
|
|
6507
|
+
<description>SonicWall Gen7 - SonicOS without Enhanced keyword</description>
|
|
6508
|
+
<example hw.product="TZ" hw.model="670" os.version="7.1.3-7015-R6965">SonicWALL TZ 670 (SonicOS 7.1.3-7015-R6965)</example>
|
|
6509
|
+
<example hw.product="NSv" hw.model="270" os.version="7.1.3-7015-R6965">SonicWALL NSv 270 (SonicOSX 7.1.3-7015-R6965)</example>
|
|
6510
|
+
<param pos="0" name="os.vendor" value="SonicWall"/>
|
|
6511
|
+
<param pos="0" name="os.device" value="Firewall"/>
|
|
6512
|
+
<param pos="0" name="os.product" value="SonicOS"/>
|
|
6513
|
+
<param pos="0" name="hw.vendor" value="SonicWall"/>
|
|
6514
|
+
<param pos="1" name="hw.product"/>
|
|
6515
|
+
<param pos="2" name="hw.model"/>
|
|
6516
|
+
<param pos="3" name="os.version"/>
|
|
6517
|
+
<param pos="0" name="os.cpe23" value="cpe:/o:sonicwall:sonicos:{os.version}"/>
|
|
6518
|
+
</fingerprint>
|
|
6506
6519
|
|
|
6507
6520
|
<fingerprint pattern="^SonicWALL (\S+)\s*(\d+).*?\(SonicOS \S+ (\d[^\)]+)\)\s*$">
|
|
6508
6521
|
<description>SonicWall - SonicOS Enhanced variant</description>
|
|
@@ -17,7 +17,7 @@ describe Recog::MatchReporter do
|
|
|
17
17
|
|
|
18
18
|
describe '#report' do
|
|
19
19
|
it 'prints matches' do
|
|
20
|
-
expect(formatter).to receive(:success_message).with(
|
|
20
|
+
expect(formatter).to receive(:success_message).with(a_string_matching(/\AMATCH: \{\s*"data"\s*=>\s*"a match"\s*\}\z/))
|
|
21
21
|
run_report
|
|
22
22
|
end
|
|
23
23
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rapid7 Research
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
XXBvE6wC6iokirNlDvZlbO9G18iiVLdwQrWvhAiMXpuLobG6mXRnm2nRjGAbeluj
|
|
36
36
|
F5KvN7/Jo4xic61stZ/n41BgEGMdZhzI20QStLGk6rsnKhmlXs1TKFr9NQRr4Hz/
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2026-
|
|
38
|
+
date: 2026-05-29 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rspec
|
metadata.gz.sig
CHANGED
|
Binary file
|