ronin-exploits icon indicating copy to clipboard operation
ronin-exploits copied to clipboard

Allow `Target#software_version` to be a `Range` or an `Array` of versions

Open postmodern opened this issue 2 years ago • 1 comments

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.

postmodern avatar May 28 '23 02:05 postmodern

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'].

postmodern avatar Mar 05 '24 07:03 postmodern

On second thought, we should support specifying version range Strings (ex: >= 1.2.3, < 1.5.9).

postmodern avatar Jun 29 '24 00:06 postmodern