recog 3.1.27 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b262a6c8f84beaf7a3a9fb003e3fee03da3a8ef13f3f5a312c69e8bb4753fe73
4
- data.tar.gz: 118bb5f0b94fd7c6ecc5625b05cbeedf88e32711dae592cf8e3cdf9f9a1f271c
3
+ metadata.gz: '080a93966a4a26d07ec5e967792d64e844a830deeb8aaa7903ef02a4ba388006'
4
+ data.tar.gz: d23323a4842ea86d93ca5f651c57099d38e1a14211418850bf9f2d860a84def8
5
5
  SHA512:
6
- metadata.gz: 9d137b2880cad5ed5ec9bde7e2056c88b5d0ed38aa2646a20df102302c3b3de761a750671476367f2d63b2a466464f71198373fc3a7292c4314bf6823f4ff3fd
7
- data.tar.gz: a65098416198df78d7f40aaf3d0981de87db5c6460df361cd9cd5f2cfa943288bef1e6c879a807dd8cb751b496a123a83325b1bb753f4e5aed473e79e7a4c021
6
+ metadata.gz: 70ae7a6aef0755cf8695acd65fe1374ddda9b12dff2456d3381b32ca01abebe8ee7ea6b6a9f7cf7082cb54a9e71828ce3916f4bfb9c8b5302a6c37de0e1dec62
7
+ data.tar.gz: a169287c75a6d9f9861537441621031f6f0a5b80206b19f40e29662d8055b4f9ad6a9771565ab6da752ffae6d1c9b42dad3dc3381a6f5842769139316dbce017
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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 && !(result['service.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 =~ (/\.cpe23$/) && replacement =~ (/\.version$/)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Recog
4
- VERSION = '3.1.27'
4
+ VERSION = '3.1.28'
5
5
  end
@@ -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('MATCH: {"data"=>"a match"}')
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.27
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-05-21 00:00:00.000000000 Z
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