ronin-exploits
ronin-exploits copied to clipboard
Allow `Target#software_version` to be a `Range` or an `Array` of versions
It should be possible to define a target which matches multiple software_version.
target software: 'Foo Bar', software_version: '1.2.0'..'1.2.10' do |target|
# ...
end
Mixins::HasTargets#select_target will also need to be modified to support searching a Range or Array value for target.software_version.
We will also need to define some kind of VersionRange class to accurately represent versions between 1.2.0 - 1.2.10. Ruby incorrectly expands '1.2.0'..'1.2.10' to ['1.2.0', ..., '99.9.9'].
On second thought, we should support specifying version range Strings (ex: >= 1.2.3, < 1.5.9).