2009-01-11 06:09:02 +00:00
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2009-04-13 14:33:26 +00:00
|
|
|
# http://metasploit.com/framework/
|
2009-01-11 06:09:02 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
|
|
|
|
|
|
|
include Msf::Exploit::Remote::Dialup
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Test Dialup Exploit',
|
|
|
|
'Description' => %q{
|
|
|
|
This exploit connects to a system's modem over dialup and provides
|
|
|
|
the user with a readout of the login banner.
|
|
|
|
},
|
2009-03-28 06:03:35 +00:00
|
|
|
'Version' => '$Revision$',
|
2009-01-11 06:09:02 +00:00
|
|
|
'Author' =>
|
|
|
|
[
|
|
|
|
'I)ruid',
|
|
|
|
],
|
2009-01-14 05:46:10 +00:00
|
|
|
'Arch' => ARCH_TTY,
|
2009-01-11 06:09:02 +00:00
|
|
|
'Platform' => ['unix'],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 1000,
|
|
|
|
'BadChars' => '',
|
2009-01-14 05:46:10 +00:00
|
|
|
'DisableNops' => true,
|
2009-01-11 06:09:02 +00:00
|
|
|
},
|
|
|
|
'Targets' =>
|
|
|
|
[
|
|
|
|
['Automatic', { } ],
|
|
|
|
],
|
|
|
|
'DefaultTarget' => 0
|
|
|
|
))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-02-19 05:18:43 +00:00
|
|
|
|
|
|
|
def autofilter
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2009-01-11 06:09:02 +00:00
|
|
|
def exploit
|
2009-01-14 05:46:10 +00:00
|
|
|
connect_dialup
|
|
|
|
handler
|
|
|
|
disconnect_dialup
|
2009-01-11 06:09:02 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2010-02-19 05:18:43 +00:00
|
|
|
|