Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Mar 26, 2024
1 parent abc39e8 commit b9b4a62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/exploits/multi/http/wp_bricks_builder_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ def check
print_status("WordPress Version: #{wp_version}") if wp_version

theme_check_code = check_theme_version_from_style('bricks', '1.9.6.1')
return CheckCode::Unknown('The Brick Builders theme does not appear to be installed') unless theme_check_code
return CheckCode::Detected('The Brick Builder theme is running but the version was unable to be determined') if theme_check_code.code == 'detected'
return CheckCode::Safe("The Brick Builder is running version: #{theme_check_code.details[:version]}, which is not vulnerable.") unless theme_check_code.code == 'appears'
return CheckCode::Unknown('The Bricks Builder theme does not appear to be installed') unless theme_check_code
return CheckCode::Detected('The Bricks Builder theme is running but the version was unable to be determined') if theme_check_code.code == 'detected'
return CheckCode::Safe("The Bricks Builder is running version: #{theme_check_code.details[:version]}, which is not vulnerable.") unless theme_check_code.code == 'appears'

theme_version = theme_check_code.details[:version]
print_good("Detected Bricks theme version: #{theme_version}")
print_good("Detected Bricks Builder theme version: #{theme_version}")
CheckCode::Appears
end

Expand Down

0 comments on commit b9b4a62

Please sign in to comment.