recog 2.3.15 → 2.3.16

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: 563ed349556c084c9c46b32ec41eece72724826ae355a639bd2dd55d4a990f3d
4
- data.tar.gz: 03e767f4fd9557af69c716515e74595fbb5f287883c6d4e742a1aea1a6cdb0ef
3
+ metadata.gz: f26ba5638d60668485ae809fd343a1a35262418a0174b31692e7467f0764152a
4
+ data.tar.gz: cfeeaf8d4740fbf534ac26b0300ffd9ac28f0649494a163f42cd654251f95a77
5
5
  SHA512:
6
- metadata.gz: a5a458eef93bb3f5b9f298523f38f728e74bac390b22978af2bbf1c74b1ff55354128df657210ae49542b4a4338a3bdf8d69387c02a06ae7b0f59dc45e237775
7
- data.tar.gz: 38d28282042fa32e206f795d63968fd45362563359e2a5d8a93070ac84b85e766c8bd8accebc518e6a06b8cd9d97a52cd5856928bc95de02857783b8669dbacc
6
+ metadata.gz: cdb40798655b68545b2c28d1f72555c0c442c9afadd63a9e3a97cfae755263663452ed5543db83e703569746dff1f2fefbc3a95213d463086cbf88ba9e121be6
7
+ data.tar.gz: bb49a46e193fb2dcb13740ee86500dd820e08bca2a57569eb77f462fb2f71d5061dbc734aac9f756074b31f40f12815bbe29f9ec194d4e7ccfa521702d2747a1
data/.snyk ADDED
@@ -0,0 +1,10 @@
1
+ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2
+ python: 3.6.0
3
+ version: v1.14.1
4
+ # ignores vulnerabilities until expiry date; change duration by modifying expiry date
5
+ ignore:
6
+ SNYK-PYTHON-PYYAML-590151:
7
+ - pyyaml:
8
+ reason: Project doesn't use vulnerable code path.
9
+ expires: 2021-06-01T00:00:00.000Z
10
+ patch: {}
data/LICENSE CHANGED
@@ -2,6 +2,6 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
2
  Source: https://github.com/rapid7/recog
3
3
 
4
4
  Files: *
5
- Copyright: 2014-2015, Rapid7, Inc.
5
+ Copyright: 2014, Rapid7, Inc.
6
6
  License: BSD-2-clause
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Recog
2
- VERSION = '2.3.15'
2
+ VERSION = '2.3.16'
3
3
  end
@@ -9,7 +9,7 @@ from lxml import etree
9
9
 
10
10
  def parse_r7_remapping(file):
11
11
  with open(file) as remap_file:
12
- return yaml.load(remap_file)["mappings"]
12
+ return yaml.safe_load(remap_file)["mappings"]
13
13
 
14
14
  def parse_cpe_vp_map(file):
15
15
  vp_map = {} # cpe_type -> vendor -> products
@@ -619,17 +619,18 @@
619
619
  dnscmd /config /EnableVersionQuery 1
620
620
  -->
621
621
 
622
- <fingerprint pattern="^Microsoft DNS (10.0.\d+)(?: \(\w+\))?$">
622
+ <fingerprint pattern="^Microsoft DNS (10.0.\d+)(?: \(([^)]+)\))?$">
623
623
  <description>Microsoft DNS on Windows 2016: GA</description>
624
624
  <!-- Windows 10 / 2016 moved towards a rolling release so capturing build
625
625
  is required unlike other Windows versions where we use a fixed string.
626
626
  -->
627
627
 
628
- <example service.version="10.0.14393" os.build="10.0.14393">Microsoft DNS 10.0.14393 (383900CE)</example>
628
+ <example service.version="10.0.14393" os.build="10.0.14393" service.version.version="383900CE">Microsoft DNS 10.0.14393 (383900CE)</example>
629
629
  <param pos="0" name="service.vendor" value="Microsoft"/>
630
630
  <param pos="0" name="service.family" value="DNS"/>
631
631
  <param pos="0" name="service.product" value="DNS"/>
632
632
  <param pos="1" name="service.version"/>
633
+ <param pos="2" name="service.version.version"/>
633
634
  <param pos="0" name="os.vendor" value="Microsoft"/>
634
635
  <param pos="0" name="os.family" value="Windows"/>
635
636
  <param pos="0" name="os.product" value="Windows Server 2016"/>
@@ -637,13 +638,14 @@
637
638
  <param pos="0" name="os.cpe23" value="cpe:/o:microsoft:windows_server_2016:-"/>
638
639
  </fingerprint>
639
640
 
640
- <fingerprint pattern="^Microsoft DNS 6.3.9600(?: \(\w+\))?$">
641
+ <fingerprint pattern="^Microsoft DNS 6.3.9600(?: \(([^)]+)\))?$">
641
642
  <description>Microsoft DNS on Windows 2012 R2</description>
642
- <example>Microsoft DNS 6.3.9600 (25804825)</example>
643
+ <example service.version.version="25804825">Microsoft DNS 6.3.9600 (25804825)</example>
643
644
  <param pos="0" name="service.vendor" value="Microsoft"/>
644
645
  <param pos="0" name="service.family" value="DNS"/>
645
646
  <param pos="0" name="service.product" value="DNS"/>
646
647
  <param pos="0" name="service.version" value="6.3.9600"/>
648
+ <param pos="1" name="service.version.version"/>
647
649
  <param pos="0" name="os.vendor" value="Microsoft"/>
648
650
  <param pos="0" name="os.family" value="Windows"/>
649
651
  <param pos="0" name="os.product" value="Windows Server 2012 R2"/>
@@ -651,13 +653,14 @@
651
653
  <param pos="0" name="os.cpe23" value="cpe:/o:microsoft:windows_server_2012:-"/>
652
654
  </fingerprint>
653
655
 
654
- <fingerprint pattern="^Microsoft DNS 6.2.9200(?: \(\w+\))?$">
656
+ <fingerprint pattern="^Microsoft DNS 6.2.9200(?: \(([^)]+)\))?$">
655
657
  <description>Microsoft DNS on Windows 2012</description>
656
- <example>Microsoft DNS 6.2.9200 (23F04000)</example>
658
+ <example service.version.version="23F04000">Microsoft DNS 6.2.9200 (23F04000)</example>
657
659
  <param pos="0" name="service.vendor" value="Microsoft"/>
658
660
  <param pos="0" name="service.family" value="DNS"/>
659
661
  <param pos="0" name="service.product" value="DNS"/>
660
662
  <param pos="0" name="service.version" value="6.2.9200"/>
663
+ <param pos="1" name="service.version.version"/>
661
664
  <param pos="0" name="os.vendor" value="Microsoft"/>
662
665
  <param pos="0" name="os.family" value="Windows"/>
663
666
  <param pos="0" name="os.product" value="Windows Server 2012"/>
@@ -665,14 +668,15 @@
665
668
  <param pos="0" name="os.cpe23" value="cpe:/o:microsoft:windows_server_2012:-"/>
666
669
  </fingerprint>
667
670
 
668
- <fingerprint pattern="^Microsoft DNS 6.1.7601(?: \(\w+\))?$">
671
+ <fingerprint pattern="^Microsoft DNS 6.1.7601(?: \(([^)]+)\))?$">
669
672
  <description>Microsoft DNS on Windows 2008 R2 Service Pack 1</description>
670
- <example>Microsoft DNS 6.1.7601 (1DB15CD4)</example>
673
+ <example service.version.version="1DB15CD4">Microsoft DNS 6.1.7601 (1DB15CD4)</example>
671
674
  <example>Microsoft DNS 6.1.7601</example>
672
675
  <param pos="0" name="service.vendor" value="Microsoft"/>
673
676
  <param pos="0" name="service.family" value="DNS"/>
674
677
  <param pos="0" name="service.product" value="DNS"/>
675
678
  <param pos="0" name="service.version" value="6.1.7601"/>
679
+ <param pos="1" name="service.version.version"/>
676
680
  <param pos="0" name="os.vendor" value="Microsoft"/>
677
681
  <param pos="0" name="os.family" value="Windows"/>
678
682
  <param pos="0" name="os.product" value="Windows Server 2008 R2"/>
@@ -681,13 +685,14 @@
681
685
  <param pos="0" name="os.cpe23" value="cpe:/o:microsoft:windows_server_2008:Service Pack 1"/>
682
686
  </fingerprint>
683
687
 
684
- <fingerprint pattern="^Microsoft DNS 6.1.7600(?: \(\w+\))?$">
688
+ <fingerprint pattern="^Microsoft DNS 6.1.7600(?: \(([^)]+)\))?$">
685
689
  <description>Microsoft DNS on Windows 2008 R2</description>
686
- <example>Microsoft DNS 6.1.7600 (1DB04228)</example>
690
+ <example service.version.version="1DB04228">Microsoft DNS 6.1.7600 (1DB04228)</example>
687
691
  <param pos="0" name="service.vendor" value="Microsoft"/>
688
692
  <param pos="0" name="service.family" value="DNS"/>
689
693
  <param pos="0" name="service.product" value="DNS"/>
690
694
  <param pos="0" name="service.version" value="6.1.7600"/>
695
+ <param pos="1" name="service.version.version"/>
691
696
  <param pos="0" name="os.vendor" value="Microsoft"/>
692
697
  <param pos="0" name="os.family" value="Windows"/>
693
698
  <param pos="0" name="os.product" value="Windows Server 2008 R2"/>
@@ -708,13 +713,14 @@
708
713
  <example>Microsoft DNS 6.0.6100 (2AEF76E)</example>
709
714
  </fingerprint>
710
715
 
711
- <fingerprint pattern="^Microsoft DNS 6.0.6003(?: \(\w+\))?$">
716
+ <fingerprint pattern="^Microsoft DNS 6.0.6003(?: \(([^)]+)\))?$">
712
717
  <description>Microsoft DNS on Windows 2008 Service Pack 2 - Preview Rollup KB4489887 and later</description>
713
- <example>Microsoft DNS 6.0.6003 (1773501D)</example>
718
+ <example service.version.version="1773501D">Microsoft DNS 6.0.6003 (1773501D)</example>
714
719
  <param pos="0" name="service.vendor" value="Microsoft"/>
715
720
  <param pos="0" name="service.family" value="DNS"/>
716
721
  <param pos="0" name="service.product" value="DNS"/>
717
722
  <param pos="0" name="service.version" value="6.0.6003"/>
723
+ <param pos="1" name="service.version.version"/>
718
724
  <param pos="0" name="os.vendor" value="Microsoft"/>
719
725
  <param pos="0" name="os.family" value="Windows"/>
720
726
  <param pos="0" name="os.product" value="Windows Server 2008"/>
@@ -723,13 +729,14 @@
723
729
  <param pos="0" name="os.cpe23" value="cpe:/o:microsoft:windows_server_2008:Service Pack 2"/>
724
730
  </fingerprint>
725
731
 
726
- <fingerprint pattern="^Microsoft DNS 6.0.6002(?: \(\w+\))?$">
732
+ <fingerprint pattern="^Microsoft DNS 6.0.6002(?: \(([^)]+)\))?$">
727
733
  <description>Microsoft DNS on Windows 2008 Service Pack 2</description>
728
- <example>Microsoft DNS 6.0.6002 (17724D35)</example>
734
+ <example service.version.version="17724D35">Microsoft DNS 6.0.6002 (17724D35)</example>
729
735
  <param pos="0" name="service.vendor" value="Microsoft"/>
730
736
  <param pos="0" name="service.family" value="DNS"/>
731
737
  <param pos="0" name="service.product" value="DNS"/>
732
738
  <param pos="0" name="service.version" value="6.0.6002"/>
739
+ <param pos="1" name="service.version.version"/>
733
740
  <param pos="0" name="os.vendor" value="Microsoft"/>
734
741
  <param pos="0" name="os.family" value="Windows"/>
735
742
  <param pos="0" name="os.product" value="Windows Server 2008"/>
@@ -738,13 +745,14 @@
738
745
  <param pos="0" name="os.cpe23" value="cpe:/o:microsoft:windows_server_2008:Service Pack 2"/>
739
746
  </fingerprint>
740
747
 
741
- <fingerprint pattern="^Microsoft DNS 6.0.6001(?: \(\w+\))?$">
748
+ <fingerprint pattern="^Microsoft DNS 6.0.6001(?: \(([^)]+)\))?$">
742
749
  <description>Microsoft DNS on Windows 2008 Service Pack 1</description>
743
- <example>Microsoft DNS 6.0.6001 (17714726)</example>
750
+ <example service.version.version="17714726">Microsoft DNS 6.0.6001 (17714726)</example>
744
751
  <param pos="0" name="service.vendor" value="Microsoft"/>
745
752
  <param pos="0" name="service.family" value="DNS"/>
746
753
  <param pos="0" name="service.product" value="DNS"/>
747
754
  <param pos="0" name="service.version" value="6.0.6001"/>
755
+ <param pos="1" name="service.version.version"/>
748
756
  <param pos="0" name="os.vendor" value="Microsoft"/>
749
757
  <param pos="0" name="os.family" value="Windows"/>
750
758
  <param pos="0" name="os.product" value="Windows Server 2008"/>
@@ -464,6 +464,7 @@
464
464
  <param pos="0" name="service.vendor" value="SABnzbd"/>
465
465
  <param pos="0" name="service.product" value="SABnzbd"/>
466
466
  <param pos="0" name="service.certainty" value="0.5"/>
467
+ <param pos="0" name="service.cpe23" value="cpe:/a:sabnzbd:sabnzbd:-"/>
467
468
  </fingerprint>
468
469
 
469
470
  <fingerprint pattern="^5c9f3938754b459fb3590a00e5947fed$">
@@ -612,6 +613,7 @@
612
613
  <param pos="0" name="service.vendor" value="Elastic"/>
613
614
  <param pos="0" name="service.product" value="Kibana"/>
614
615
  <param pos="0" name="service.certainty" value="0.5"/>
616
+ <param pos="0" name="service.cpe23" value="cpe:/a:elastic:kibana:-"/>
615
617
  </fingerprint>
616
618
 
617
619
  <fingerprint pattern="^(?:ef07026465d7b449a9759132486d1e3b|bcc4933f81eff43e5d9bcc5b2828aa70|b204c198a410e5ee28346c4a2110535e|c00da11c81f9b887eed4123daee89909)$">
@@ -1551,6 +1551,7 @@
1551
1551
  <example>Elastic Kibana</example>
1552
1552
  <param pos="0" name="service.vendor" value="Elastic"/>
1553
1553
  <param pos="0" name="service.product" value="Kibana"/>
1554
+ <param pos="0" name="service.cpe23" value="cpe:/a:elastic:kibana:-"/>
1554
1555
  </fingerprint>
1555
1556
 
1556
1557
  <fingerprint pattern="^Grafana$">
@@ -2274,6 +2275,7 @@
2274
2275
  <example>SABnzbd - Log in</example>
2275
2276
  <param pos="0" name="service.vendor" value="SABnzbd"/>
2276
2277
  <param pos="0" name="service.product" value="SABnzbd"/>
2278
+ <param pos="0" name="service.cpe23" value="cpe:/a:sabnzbd:sabnzbd:-"/>
2277
2279
  </fingerprint>
2278
2280
 
2279
2281
  <fingerprint pattern="^(?:Zabbix|.*: Zabbix)$">
@@ -440,7 +440,7 @@
440
440
  <param pos="0" name="service.component.vendor" value="Red Hat"/>
441
441
  <param pos="0" name="service.component.product" value="JBossWeb"/>
442
442
  <param pos="2" name="service.component.version"/>
443
- <param pos="0" name="service.component.cpe23" value="cpe:/a:redhat:jboss_web_framework_kit:{service.component.version}"/>
443
+ <param pos="0" name="service.component.cpe23" value="cpe:/a:redhat:jbossweb:{service.component.version}"/>
444
444
  </fingerprint>
445
445
 
446
446
  <fingerprint pattern="^Servlet\/[\d\.]+; JBossAS-(.*)$">
@@ -77,6 +77,7 @@
77
77
  <param pos="0" name="service.family" value="Mail Server"/>
78
78
  <param pos="0" name="service.product" value="Mail Server"/>
79
79
  <param pos="1" name="service.version"/>
80
+ <param pos="0" name="service.cpe23" value="cpe:/a:argosoft:mail_server:{service.version}"/>
80
81
  </fingerprint>
81
82
 
82
83
  <fingerprint pattern="^^(?:(\S+) +)?ArGoSoft Mail Server Freeware, Version [^ ]+ \(([^ ]+\.[^ ]+\.[^ ]+\.[^ ]+)\) *$">
@@ -91,6 +92,7 @@
91
92
  <param pos="0" name="service.family" value="Mail Server"/>
92
93
  <param pos="0" name="service.product" value="Mail Server"/>
93
94
  <param pos="2" name="service.version"/>
95
+ <param pos="0" name="service.cpe23" value="cpe:/a:argosoft:mail_server:{service.version}"/>
94
96
  <param pos="1" name="host.name"/>
95
97
  </fingerprint>
96
98
 
@@ -108,6 +110,7 @@
108
110
  <param pos="0" name="service.product" value="Mail Server"/>
109
111
  <param pos="1" name="host.name"/>
110
112
  <param pos="2" name="service.version"/>
113
+ <param pos="0" name="service.cpe23" value="cpe:/a:argosoft:mail_server:{service.version}"/>
111
114
  </fingerprint>
112
115
 
113
116
  <fingerprint pattern="^([^ ]+) +AppleShare IP Mail Server ([^ ]+\.[\d.]+) SMTP Server Ready *$">
@@ -15,6 +15,7 @@
15
15
  <param pos="0" name="service.family" value="Mail Server"/>
16
16
  <param pos="0" name="service.product" value="Mail Server"/>
17
17
  <param pos="1" name="service.version"/>
18
+ <param pos="0" name="service.cpe23" value="cpe:/a:argosoft:mail_server:{service.version}"/>
18
19
  </fingerprint>
19
20
 
20
21
  <fingerprint pattern="^214[ -].*support@argosoft\.com *$">
@@ -23,6 +24,7 @@
23
24
  <param pos="0" name="service.vendor" value="ArGoSoft"/>
24
25
  <param pos="0" name="service.family" value="Mail Server"/>
25
26
  <param pos="0" name="service.product" value="Mail Server"/>
27
+ <param pos="0" name="service.cpe23" value="cpe:/a:argosoft:mail_server:-"/>
26
28
  </fingerprint>
27
29
 
28
30
  <fingerprint pattern="^500[ -]Syntax error, command &quot;XXXX&quot; unrecognized$">
@@ -6099,7 +6099,6 @@ Copyright (c) 1995-2005 by Cisco Systems
6099
6099
  <param pos="0" name="os.cpe23" value="cpe:/o:sonicwall:sonicos:{os.version}"/>
6100
6100
  </fingerprint>
6101
6101
 
6102
-
6103
6102
  <fingerprint pattern="^SonicWALL (\S+).*?\(SonicOS \S+ ((?:\d\.)+\d+-\d+[a-zA-Z]).*\)">
6104
6103
  <description>SonicWall - SonicOS Enhanced variant without hardware model</description>
6105
6104
  <example hw.product="SOHO" os.version="5.9.1.4-4o">SonicWALL SOHO (SonicOS Enhanced 5.9.1.4-4o)</example>
@@ -1064,6 +1064,7 @@
1064
1064
  <param pos="0" name="hw.family" value="EDR"/>
1065
1065
  <param pos="0" name="hw.device" value="Router"/>
1066
1066
  <param pos="0" name="hw.product" value="EDR-G902"/>
1067
+ <param pos="0" name="hw.cpe23" value="cpe:/h:moxa:edr-g902:-"/>
1067
1068
  <param pos="0" name="os.vendor" value="Moxa"/>
1068
1069
  <param pos="0" name="os.family" value="EDR"/>
1069
1070
  <param pos="0" name="os.device" value="Router"/>
@@ -14,7 +14,8 @@
14
14
  <description>Google Chromecast Gen 1</description>
15
15
  <example>CN=Eureka Gen1 ICA,OU=Google TV,O=Google Inc,L=Mountain View,ST=California,C=US</example>
16
16
  <param pos="0" name="os.vendor" value="Google"/>
17
- <param pos="0" name="os.product" value="ChromeOS"/>
17
+ <param pos="0" name="os.product" value="Chrome OS"/>
18
+ <param pos="0" name="os.cpe23" value="cpe:/o:google:chrome_os:-"/>
18
19
  <param pos="0" name="hw.device" value="Media Server"/>
19
20
  <param pos="0" name="hw.vendor" value="Google"/>
20
21
  <param pos="0" name="hw.product" value="Chromecast"/>
@@ -32,7 +33,8 @@
32
33
  <example chromecast.generation="11" chromecast.capabilities="Video Assist">CN=Chromecast ICA 11 (Video Assist),OU=Cast,O=Google Inc,L=Mountain View,ST=California,C=US</example>
33
34
  <example chromecast.generation="12">CN=Chromecast ICA 12,OU=Cast,O=Google Inc,L=Mountain View,ST=California,C=US</example>
34
35
  <param pos="0" name="os.vendor" value="Google"/>
35
- <param pos="0" name="os.product" value="ChromeOS"/>
36
+ <param pos="0" name="os.product" value="Chrome OS"/>
37
+ <param pos="0" name="os.cpe23" value="cpe:/o:google:chrome_os:-"/>
36
38
  <param pos="0" name="hw.device" value="Media Server"/>
37
39
  <param pos="0" name="hw.vendor" value="Google"/>
38
40
  <param pos="0" name="hw.product" value="Chromecast"/>
@@ -512,7 +512,8 @@
512
512
  <example chromecast.serial_number="LVDZG5" host.mac_local="FA8FCA67413D">CN=LVDZG5 FA8FCA67413D,OU=Cast,O=Google Inc,L=Mountain View,ST=California,C=US</example>
513
513
  <example chromecast.serial_number="YRBLE" host.mac_local="FA8FCA7DE87D">CN=YRBLE FA8FCA7DE87D,OU=Google TV,O=Google Inc,L=Mountain View,ST=California,C=US</example>
514
514
  <param pos="0" name="os.vendor" value="Google"/>
515
- <param pos="0" name="os.product" value="ChromeOS"/>
515
+ <param pos="0" name="os.product" value="Chrome OS"/>
516
+ <param pos="0" name="os.cpe23" value="cpe:/o:google:chrome_os:-"/>
516
517
  <param pos="0" name="hw.device" value="Media Server"/>
517
518
  <param pos="0" name="hw.vendor" value="Google"/>
518
519
  <param pos="0" name="hw.product" value="Chromecast"/>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recog
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.15
4
+ version: 2.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rapid7 Research
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2020-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -132,6 +132,7 @@ files:
132
132
  - ".rspec"
133
133
  - ".ruby-gemset"
134
134
  - ".ruby-version"
135
+ - ".snyk"
135
136
  - ".travis.yml"
136
137
  - ".yardopts"
137
138
  - CONTRIBUTING.md