rapid7 / recog

Pattern recognition for hosts, services, and content
Other
662 stars 195 forks source link

Add fingerprint path to recog verify output #376

Closed mkienow-r7 closed 2 years ago

mkienow-r7 commented 2 years ago

Description

Adds the fingerprint path to the recog_verify output.

Example Output

./bin/recog_verify -f s xml/smtp_ehlo.xml
xml/smtp_ehlo.xml: WARN: 'Cisco PIX - changes the command letters to 'X' before passing them to the real SMTP server' has no test cases
xml/smtp_ehlo.xml: WARN: '221 See ya in cyberspace' has no test cases
xml/smtp_ehlo.xml: SUMMARY: Test completed with 0 successful, 2 warnings, and 0 failures
./bin/recog_verify -f q xml/smtp_ehlo.xml
xml/smtp_ehlo.xml: WARN: 'Cisco PIX - changes the command letters to 'X' before passing them to the real SMTP server' has no test cases
xml/smtp_ehlo.xml: WARN: '221 See ya in cyberspace' has no test cases
./bin/recog_verify -f d xml/smtp_ehlo.xml

xml/smtp_ehlo.xml:
   WARN: 'Cisco PIX - changes the command letters to 'X' before passing them to the real SMTP server' has no test cases
   WARN: '221 See ya in cyberspace' has no test cases

Verified 2 fingerprints:
SUMMARY: Test completed with 0 successful, 2 warnings, and 0 failures

Motivation and Context

Make the recog_verify output more useful when used with multiple fingerprint XML files.

How Has This Been Tested?

Types of changes

Checklist: