ftp_anonymous: report_service if missing banner

This commit is contained in:
g0t mi1k
2026-05-05 10:25:45 +01:00
parent 825e16bdc5
commit 00c9e33a68
@@ -75,7 +75,6 @@ class MetasploitModule < Msf::Auxiliary
end
end
report_ftp_service
report_vuln(
host: rhost,
port: rport,
@@ -88,8 +87,11 @@ class MetasploitModule < Msf::Auxiliary
register_creds(target_host, access_type)
elsif banner
print_warning("FTP service, but no Anonymous access (#{sanitize_ftp_response(banner)})")
report_ftp_service
else
vprint_warning('No FTP banner received')
end
report_ftp_service
rescue ::Rex::TimeoutError, ::Rex::ConnectionError, ::EOFError, ::Errno::ECONNREFUSED => e
vprint_error(e.message)
report_host(host: rhost)