Fix report calls, thanks Minga!

git-svn-id: file:///home/svn/framework3/trunk@12457 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-04-27 19:39:28 +00:00
parent f59db11f0e
commit 77328e7327
3 changed files with 20 additions and 20 deletions

View File

@ -149,50 +149,50 @@ class Metasploit3 < Msf::Auxiliary
end end
if sapsystem if sapsystem
print_good("#{rhost}:#{rport} [SAP] SAP System Number: #{sapsystem}") print_good("#{rhost}:#{rport} [SAP] SAP System Number: #{sapsystem}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.sapsystem', :type => 'sap.sapsystem',
:data => {:proto => "soap", :sapsystem => sapsystem}) :data => {:proto => "soap", :sapsystem => sapsystem})
end end
if sapsystemname if sapsystemname
print_good("#{rhost}:#{rport} [SAP] SAP System Name: #{sapsystemname}") print_good("#{rhost}:#{rport} [SAP] SAP System Name: #{sapsystemname}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.systemname', :type => 'sap.systemname',
:data => {:proto => "soap", :sapsystemname => sapsystemname}) :data => {:proto => "soap", :sapsystemname => sapsystemname})
end end
if saplocalhost if saplocalhost
print_good("#{rhost}:#{rport} [SAP] SAP Localhost: #{saplocalhost}") print_good("#{rhost}:#{rport} [SAP] SAP Localhost: #{saplocalhost}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.localhost', :type => 'sap.localhost',
:data => {:proto => "soap", :saplocalhost => saplocalhost}) :data => {:proto => "soap", :saplocalhost => saplocalhost})
end end
if instancename if instancename
print_good("#{rhost}:#{rport} [SAP] Instance Name: #{instancename}") print_good("#{rhost}:#{rport} [SAP] Instance Name: #{instancename}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.instancename', :type => 'sap.instancename',
:data => {:proto => "soap", :instancename => instancename}) :data => {:proto => "soap", :instancename => instancename})
end end
if icmurl if icmurl
print_good("#{rhost}:#{rport} [SAP] ICM URL: #{icmurl}") print_good("#{rhost}:#{rport} [SAP] ICM URL: #{icmurl}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.icm.url', :type => 'sap.icm.url',
:data => {:proto => "soap", :icmurl => icmurl}) :data => {:proto => "soap", :icmurl => icmurl})
end end
if dbstring if dbstring
print_good("#{rhost}:#{rport} [SAP] DATABASE: #{dbstring}") print_good("#{rhost}:#{rport} [SAP] DATABASE: #{dbstring}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.dbstring', :type => 'sap.dbstring',
:data => {:proto => "soap", :dbstring => dbstring}, :data => {:proto => "soap", :dbstring => dbstring},
:update => :unique_data ) :update => :unique_data )
@ -200,9 +200,9 @@ class Metasploit3 < Msf::Auxiliary
if protectedweb if protectedweb
print_good("#{rhost}:#{rport} [SAP] protectedweb Webmethods: #{protectedweb}") print_good("#{rhost}:#{rport} [SAP] protectedweb Webmethods: #{protectedweb}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'tcp', :proto => 'tcp',
:port => '#{rport}', :port => "#{rport}",
:type => 'sap.protected.web.methods', :type => 'sap.protected.web.methods',
:data => {:proto => "soap", :protectedweb => protectedweb}, :data => {:proto => "soap", :protectedweb => protectedweb},
:update => :unique_data ) :update => :unique_data )

View File

@ -123,14 +123,14 @@ class Metasploit3 < Msf::Auxiliary
print_good("[SAP] Version Number Extracted - #{rhost}:#{rport}") print_good("[SAP] Version Number Extracted - #{rhost}:#{rport}")
print_good("[SAP] Version: #{version}") print_good("[SAP] Version: #{version}")
print_good("[SAP] SID: #{sapsid.upcase}") print_good("[SAP] SID: #{sapsid.upcase}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'SOAP', :proto => 'SOAP',
:port => '#{rport}', :port => "#{rport}",
:type => 'SAP Version', :type => 'SAP Version',
:data => "SAP Version: #{version}") :data => "SAP Version: #{version}")
report_note(:host => '#{rhost}', report_note(:host => "#{rhost}",
:proto => 'SOAP', :proto => 'SOAP',
:port => '#{rport}', :port => "#{rport}",
:type => 'SAP SID', :type => 'SAP SID',
:data => "SAP SID: #{sapsid.upcase}") :data => "SAP SID: #{sapsid.upcase}")

View File

@ -230,9 +230,9 @@ class Metasploit3 < Msf::Auxiliary
end end
print_good("#{ip}:#{port}\t - #{service} OPEN") print_good("#{ip}:#{port}\t - #{service} OPEN")
report_note(:host => '#{ip}', report_note(:host => "#{ip}",
:proto => 'TCP', :proto => 'TCP',
:port => '#{port}', :port => "#{port}",
:type => 'SAP', :type => 'SAP',
:data => "#{service}") :data => "#{service}")