Port should not contain a non-numeric value or even empty when assigned to :port

unstable
sinn3r 2012-03-05 11:10:16 -06:00 committed by James Lee
parent ba34fbac46
commit aab493259f
1 changed files with 7 additions and 6 deletions

View File

@ -75,14 +75,15 @@ class Metasploit3 < Msf::Auxiliary
fpauthor = $1
print_status("#{info} FrontPage Author: #{info}#{fpauthor}")
# Add Report
report_note(
:host => target_host,
opts = {
:host => target_host,
:proto => 'tcp',
:sname => (ssl ? 'https' : 'http'),
:port => port,
:type => 'FrontPage Author',
:data => "#{info}#{fpauthor}"
)
:type => 'FrontPage Author',
:data => "#{info}#{fpauthor}"
}
opts[:port] = datastore['RPORT'] if not port.empty?
report_note(opts)
end
check_account(info, fpversion, target_host)
end