Skip to content

Commit

Permalink
jasmin_ransomware fix check methods
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed May 4, 2024
1 parent 753ca1d commit 0b5eaef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions modules/auxiliary/gather/jasmin_ransomware_dir_traversal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
##

class MetasploitModule < Msf::Auxiliary
prepend Msf::Exploit::Remote::AutoCheck
include Msf::Auxiliary::Report
include Msf::Exploit::Remote::HttpClient
prepend Msf::Exploit::Remote::AutoCheck

def initialize(info = {})
super(
Expand Down Expand Up @@ -54,7 +54,9 @@ def check
return Exploit::CheckCode::Unknown("#{peer} - Could not connect to web service - no response") if res.nil?
return Exploit::CheckCode::Safe("#{peer} - Check URI Path, unexpected HTTP response code: #{res.code}") unless res.code == 200

Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'
return Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'

Exploit::CheckCode::Safe("#{peer} - Jasmin login page not found")
end

def run
Expand Down
4 changes: 3 additions & 1 deletion modules/auxiliary/gather/jasmin_ransomware_sqli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def check
return Exploit::CheckCode::Unknown("#{peer} - Could not connect to web service - no response") if res.nil?
return Exploit::CheckCode::Safe("#{peer} - Check URI Path, unexpected HTTP response code: #{res.code}") unless res.code == 200

Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'
return Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'

Exploit::CheckCode::Safe("#{peer} - Jasmin login page not found")
end

def run
Expand Down

0 comments on commit 0b5eaef

Please sign in to comment.