Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extraction tests for ssh_banners #248

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

tsellers-r7
Copy link
Contributor

@tsellers-r7 tsellers-r7 commented Nov 13, 2019

Description

This PR adds extract tests for examples in xml/ssh_banners.xml with the goal of ensuring that we capture what we expect to capture. This change leverages the new test added by @rhodgman-r7 in PR #244 for detecting when a fingerprint doesn't have any examples that validate a particular capture such as service.version.

There were 3 or 4 banners with no examples. I verified that I was unable to find any examples of these banners from recent Sonar studies.

Motivation and Context

Improved testing

How Has This Been Tested?

rspec
rake tests
bin/recog_verify xml/ssh_banners.xml

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have updated the documentation accordingly (or changes are not required).
  • I have added tests to cover my changes (or new tests are not required).
  • All new and existing tests passed.

@tsellers-r7 tsellers-r7 merged commit 5562dc1 into rapid7:master Nov 13, 2019
@tsellers-r7 tsellers-r7 deleted the ssh_tests branch November 13, 2019 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants