rapid7 / recog

Pattern recognition for hosts, services, and content
Other
671 stars 199 forks source link

Modify telnet patterns to fix recog-java compatibility (2) #387

Closed mkienow-r7 closed 2 years ago

mkienow-r7 commented 2 years ago

Description

Small xml/telnet_banners.xml pattern modifications to fix issues with recog-java compatibility.

Motivation and Context

Resolve recog-java fingerprint issues introduced with new fingerprints from #382.

com.rapid7.recog.verify.RecogVerifier failures

$ mvn --projects recog-verify exec:java -Dexec.mainClass="com.rapid7.recog.verify.RecogVerifier" -Dexec.args="--no-warnings xml/telnet_banners.xml"
...

xml/telnet_banners.xml: FAIL: 'Lantronix device server - w/o Serial' failed to match "*** Lantronix UDS1100-IAP Device Server ***
<snip>
" with '(?m)\*\*\* Lantronix ([\S+ ]+) Device Server .{0,1000}MAC address ([a-fA-F0-9]{12}).{0,1000}Software version V(\S+)'

xml/telnet_banners.xml: FAIL: 'Lantronix device server - w/ Serial' failed to match "*** Lantronix Universal Device Server ***
<snip>
" with '(?m)\*\*\* Lantronix Universal Device Server .{0,1000}Serial Number (\d+)\s+MAC address ([a-fA-F0-9:]{17}).{0,1000}Software version (\S+)'
xml/telnet_banners.xml: SUMMARY: Test completed with 171 successful, 0 warnings, and 2 failures

How Has This Been Tested?

Types of changes

Checklist: