2005-07-10 07:15:20 +00:00
|
|
|
module Msf
|
|
|
|
module Ui
|
|
|
|
module Console
|
|
|
|
module CommandDispatcher
|
|
|
|
|
|
|
|
class Exploit
|
|
|
|
|
2005-07-14 06:34:58 +00:00
|
|
|
@@exploit_opts = Rex::Parser::Arguments.new(
|
|
|
|
"-e" => [ true, "The payload encoder to use. If none is specified, ENCODER is used." ],
|
|
|
|
"-h" => [ false, "Help banner." ],
|
|
|
|
"-n" => [ true, "The NOP generator to use. If none is specified, NOP is used." ],
|
|
|
|
"-o" => [ true, "A comma separated list of options in VAR=VAL format." ],
|
|
|
|
"-p" => [ true, "The payload to use. If none is specified, PAYLOAD is used." ],
|
|
|
|
"-t" => [ true, "The target index to use." ],
|
|
|
|
"-z" => [ true, "Do not interact with the session after successful exploitation." ])
|
|
|
|
|
2005-07-10 07:15:20 +00:00
|
|
|
include Msf::Ui::Console::ModuleCommandDispatcher
|
|
|
|
|
2005-07-14 06:34:58 +00:00
|
|
|
def commands
|
|
|
|
{
|
|
|
|
"exploit" => "Launch an exploit attempt",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2005-07-14 20:18:36 +00:00
|
|
|
def name
|
|
|
|
"Exploit"
|
|
|
|
end
|
|
|
|
|
2005-07-14 06:34:58 +00:00
|
|
|
#
|
|
|
|
# Launches an exploitation attempt
|
|
|
|
#
|
|
|
|
def cmd_exploit(*args)
|
|
|
|
end
|
|
|
|
|
2005-07-10 07:15:20 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end end end end
|