Skip to content

Commit

Permalink
Updated ronin-exploits show printing logic for `Exploit#software_ve…
Browse files Browse the repository at this point in the history
…rsions`.
  • Loading branch information
postmodern committed Dec 9, 2024
1 parent 98a61ba commit 01b935e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/ronin/exploits/cli/commands/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,8 @@ def print_metadata(exploit)
fields['Software'] = software
end

if (versions = exploit.software_versions)
case versions
when Array
fields['Software Versions'] = versions.join(', ')
when Range
fields['Software Versions'] = "#{versions.begin} - #{versions.end}"
end
if (software_versions = exploit.software_versions)
fields['Software Versions'] = software_versions.join($/)
end

if defined?(Mixins::HasPayload) &&
Expand Down

0 comments on commit 01b935e

Please sign in to comment.