Skip to content

Commit

Permalink
Remove unnecessary version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Takahiro-Yoko committed Jan 6, 2025
1 parent d788a3b commit 2be1781
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,7 @@ def check

# Extract the version
version = Rex::Version.new(json_data['version'])
if version == Rex::Version.new('4.0.0-alpha-7') || Rex::Version.new('4.0.1') <= version
return Exploit::CheckCode::Safe("Version #{version} detected, which is not vulnerable.")
end

@version3 = version < Rex::Version.new('4.0.0')

CheckCode::Appears("Version #{version} detected, which is vulnerable.")
end

Expand Down

0 comments on commit 2be1781

Please sign in to comment.