Skip to content

Commit 0b5eaef

Browse files
committed
jasmin_ransomware fix check methods
1 parent 753ca1d commit 0b5eaef

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

modules/auxiliary/gather/jasmin_ransomware_dir_traversal.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
##
55

66
class MetasploitModule < Msf::Auxiliary
7-
prepend Msf::Exploit::Remote::AutoCheck
87
include Msf::Auxiliary::Report
98
include Msf::Exploit::Remote::HttpClient
9+
prepend Msf::Exploit::Remote::AutoCheck
1010

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

57-
Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'
57+
return Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'
58+
59+
Exploit::CheckCode::Safe("#{peer} - Jasmin login page not found")
5860
end
5961

6062
def run

modules/auxiliary/gather/jasmin_ransomware_sqli.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def check
5656
return Exploit::CheckCode::Unknown("#{peer} - Could not connect to web service - no response") if res.nil?
5757
return Exploit::CheckCode::Safe("#{peer} - Check URI Path, unexpected HTTP response code: #{res.code}") unless res.code == 200
5858

59-
Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'
59+
return Exploit::CheckCode::Detected('Jasmin Login page detected') if res.body.include? '<title>Jasmin Dashboard</title>'
60+
61+
Exploit::CheckCode::Safe("#{peer} - Jasmin login page not found")
6062
end
6163

6264
def run

0 commit comments

Comments
 (0)