2012-11-03 22:44:53 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2012-11-03 22:44:53 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Exploit::Remote::RealPort
|
|
|
|
include Msf::Auxiliary::Report
|
|
|
|
include Msf::Auxiliary::Scanner
|
2012-11-03 22:44:53 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'Digi RealPort Serial Server Version',
|
|
|
|
'Description' => 'Detect serial servers that speak the RealPort protocol.',
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
['URL', 'http://www.digi.com/pdf/fs_realport.pdf'],
|
|
|
|
['URL', 'http://www.digi.com/support/productdetail?pid=2229&type=drivers']
|
|
|
|
],
|
|
|
|
'Author' =>
|
|
|
|
[
|
|
|
|
'hdm'
|
|
|
|
],
|
|
|
|
'License' => MSF_LICENSE
|
|
|
|
)
|
|
|
|
end
|
2012-11-03 22:44:53 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def run_host(target_host)
|
|
|
|
if realport_connect
|
|
|
|
info = "#{@realport_name} ( ports: #{@realport_port_count} )"
|
|
|
|
print_status("#{target_host}:#{rport} #{info}")
|
|
|
|
report_service(:host => rhost, :port => rport, :name => "realport", :info => info)
|
|
|
|
end
|
|
|
|
realport_disconnect
|
|
|
|
end
|
2012-11-03 22:44:53 +00:00
|
|
|
end
|