recog 1.0.27 → 1.0.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
- data/CONTRIBUTING.md +5 -4
- data/bin/recog_match +5 -5
- data/lib/recog/version.rb +1 -1
- data/xml/ftp_banners.xml +4 -9
- data/xml/mysql_banners.xml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d5ab28de34e37dfd534c111efd74fcd2d1887f5
|
|
4
|
+
data.tar.gz: e876bf5c36028c977941722378691b21ca55aa87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd3a2972b313e6da47acb8c55a027843fa717a953285ce937b9083bf916999637efcb1c975491d8733a2c37758681393285bb474dc6bbd3a7f67a9ecb5c7f793
|
|
7
|
+
data.tar.gz: 4d53ea5fd12d2234aff9d2a8d20da9e692992fe75c55bf316dd5766f82b4bccee3a3d6f5945dde8fbf701d368d1caf7b1c5259f5170b2f60bcc2c82e65fea967
|
data/CONTRIBUTING.md
CHANGED
|
@@ -88,13 +88,13 @@ In short:
|
|
|
88
88
|
```
|
|
89
89
|
git fetch --all
|
|
90
90
|
```
|
|
91
|
-
|
|
91
|
+
|
|
92
92
|
3. Checkout and branch the PR for testing. Replace ```PR``` below with the actual PR # in question:
|
|
93
93
|
|
|
94
94
|
```
|
|
95
95
|
git checkout -b landing-PR upstream/pr/PR
|
|
96
96
|
```
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
4. Test the PR, which typically involves running ```rspec```.
|
|
99
99
|
5. Merge with master, re-test, validate and push:
|
|
100
100
|
|
|
@@ -124,10 +124,11 @@ When a new version of Recog is released, you _must_ do so in two different place
|
|
|
124
124
|
gem owner recog -a EMAIL
|
|
125
125
|
```
|
|
126
126
|
3. Edit [lib/recog/version.rb](https://github.com/rapid7/recog/blob/master/lib/recog/version.rb) and increment ```VERSION```. Commit and push to rapid7/recog master.
|
|
127
|
-
4. Run
|
|
127
|
+
4. Run `rake release`. Among other things, this creates the new gem, uploads it to Rubygems and tags the release with a tag like `v<VERSION>`, where `<VERSION>` is replaced with the version from `version.rb`. For example, if you release version 1.2.3 of the gem, the tag will be `v1.2.3`.
|
|
128
|
+
5. If your default remote repository is not `rapid7/recog`, you must ensure that the tags created in the previous step are also pushed to the right location(s). For example, if `origin` is your fork of recog and `upstream` is `rapid7/master`, you should run `git push --tags --dry-run upstream` to confirm what tags will be pushed and then `git push --tags upstream` to push the tags.
|
|
128
129
|
|
|
129
130
|
### Github Release
|
|
130
131
|
|
|
131
|
-
Some users may prefer to consume recog in a manner other than using git itself. For that reason, Github offers [Releases](https://github.com/blog/1547-release-your-software). Whenever a new version of the software is to be released, be kind and also create a new [Release](https://github.com/rapid7/recog/releases), using a versioning scheme identical to that used for the gem
|
|
132
|
+
Some users may prefer to consume recog in a manner other than using git itself. For that reason, Github offers [Releases](https://github.com/blog/1547-release-your-software). Whenever a new version of the software is to be released, be kind and also create a new [Release](https://github.com/rapid7/recog/releases), using a versioning scheme identical to that used for the gem. More specifically, you should use the tag created during the releasing of the gem in the previous section (do *not* create a new tag) and a version that is identical to the tag -- the description of the release should just describe what is going into it.
|
|
132
133
|
|
|
133
134
|
|
data/bin/recog_match
CHANGED
|
@@ -9,12 +9,12 @@ require 'recog/matcher_factory'
|
|
|
9
9
|
options = OpenStruct.new(color: false, detail: false, fail_fast: false)
|
|
10
10
|
|
|
11
11
|
option_parser = OptionParser.new do |opts|
|
|
12
|
-
opts.banner = "Usage: #{$0} [options] XML_FINGERPRINT_FILE
|
|
13
|
-
opts.separator "Identifies the matches and misses between the fingerprints and the banners file
|
|
12
|
+
opts.banner = "Usage: #{$0} [options] XML_FINGERPRINT_FILE [BANNERS_FILE]"
|
|
13
|
+
opts.separator "Identifies the matches and misses between the fingerprints and the banners file or STDIN"
|
|
14
14
|
opts.separator ""
|
|
15
15
|
opts.separator "Options"
|
|
16
16
|
|
|
17
|
-
opts.on("-f", "--format FORMATTER",
|
|
17
|
+
opts.on("-f", "--format FORMATTER",
|
|
18
18
|
"Choose a formatter.",
|
|
19
19
|
" [s]ummary (default - failure/match msgs)",
|
|
20
20
|
" [d]etail (msgs with total counts)") do |format|
|
|
@@ -40,9 +40,9 @@ option_parser = OptionParser.new do |opts|
|
|
|
40
40
|
end
|
|
41
41
|
option_parser.parse!(ARGV)
|
|
42
42
|
|
|
43
|
-
if ARGV.count != 2
|
|
43
|
+
if ARGV.count != 1 && ARGV.count != 2
|
|
44
44
|
puts option_parser
|
|
45
|
-
exit
|
|
45
|
+
exit(1)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
ndb = Recog::DB.new(ARGV.shift)
|
data/lib/recog/version.rb
CHANGED
data/xml/ftp_banners.xml
CHANGED
|
@@ -797,16 +797,11 @@ against these patterns to fingerprint FTP servers.
|
|
|
797
797
|
<param pos="1" name="os.product"/>
|
|
798
798
|
<param pos="2" name="os.version"/>
|
|
799
799
|
</fingerprint>
|
|
800
|
-
<fingerprint pattern="^(\S+) FTP server \(Version
|
|
801
|
-
<description>
|
|
802
|
-
<example host.name="
|
|
803
|
-
<example
|
|
804
|
-
<param pos="0" name="os.vendor" value="IBM"/>
|
|
805
|
-
<param pos="0" name="os.product" value="AIX"/>
|
|
806
|
-
<param pos="0" name="service.vendor" value="AIX"/>
|
|
807
|
-
<param pos="0" name="service.product" value="AIX FTP Server"/>
|
|
800
|
+
<fingerprint pattern="^(\S+) FTP server \(Version \S+ \w+ \w+ \d{1,2} \d{1,2}:\d{1,2}:\d{1,2} [A-Z]+ (?:1|2)\d{3}\) ready\.?$">
|
|
801
|
+
<description>Generic/unknown FTP Server found on HP-UX and AIX systems</description>
|
|
802
|
+
<example host.name="host.example.com">host.example.com FTP server (Version 4.1 Sat Sep 7 14:31:53 CDT 2002) ready.</example>
|
|
803
|
+
<example host.name="host.example.com">host.example.com FTP server (Version 5.3 Sat Jan 10 14:01:03 CDT 2012) ready</example>
|
|
808
804
|
<param pos="1" name="host.name"/>
|
|
809
|
-
<param pos="2" name="service.version"/>
|
|
810
805
|
</fingerprint>
|
|
811
806
|
<fingerprint pattern="^Welcome to the (?:Cisco )?(?:TelePresence) ([a-zA-Z\s]*?) ((?:MSE )?\d+), version (\d+.\d+\(\d+.\d+\)).*?" flags="REG_ICASE">
|
|
812
807
|
<description>Cisco TelePresence</description>
|
data/xml/mysql_banners.xml
CHANGED
|
@@ -1071,7 +1071,7 @@
|
|
|
1071
1071
|
<param pos="0" name="service.product" value="MySQL"/>
|
|
1072
1072
|
</fingerprint>
|
|
1073
1073
|
|
|
1074
|
-
<fingerprint pattern="^(\d{1,2}\.\d{1,3}\.\h{1,3})(
|
|
1074
|
+
<fingerprint pattern="^(\d{1,2}\.\d{1,3}\.\h{1,3})(?:-\d{1,2}\.\d{1,3}\.\h{1,3})?\+tld\d">
|
|
1075
1075
|
<example service.version="5.0.91">5.0.91+tld0-log</example>
|
|
1076
1076
|
<example service.version="5.1.57">5.1.57-5.1.57+tld2-log</example>
|
|
1077
1077
|
<description>Oracle MySQL packaged by TLD Linux</description>
|
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: 1.0.
|
|
4
|
+
version: 1.0.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rapid7 Research
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|