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

Allow control of device discovery and other template options #133

Merged
merged 5 commits into from
Mar 17, 2015

Conversation

jhart-r7
Copy link
Contributor

This adds support for:

  • Enabling/disabling ICMP, TCP and UDP device discovery
    • Tweaking of ports used for TCP and UDP device (not service) discovery
    • Enabling/disabling of IP stack fingerprinting

# @param [Array] ports to scan for device discovery
def tcp_discovery_ports=(ports)
tcp = REXML::XPath.first(@xml, 'ScanTemplate/DeviceDiscovery/CheckHosts/TCPHostCheck')
enable_tcp_discovery = true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless assignment to variable - enable_tcp_discovery.

@@ -176,6 +176,56 @@ def host_threads=(threads)
host_threads.text = threads.to_s
end

# Enable/disable IP stack fingerprinting
# @param [Boolean] enable or disable IP stack fingerprinting
def enable_ip_stack_fingerprinting(enable)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change this to the same foo=(blah) style used by the others, for consistency's sake.

gschneider-r7 added a commit that referenced this pull request Mar 17, 2015
Allow control of device discovery and other template options
@gschneider-r7 gschneider-r7 merged commit 81e8b16 into rapid7:master Mar 17, 2015
@jhart-r7 jhart-r7 deleted the feature/template_disco branch March 17, 2015 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants