2013-05-22 00:11:33 -05:00
|
|
|
# -*- coding: binary -*-
|
2012-06-22 00:03:29 -06:00
|
|
|
|
2013-05-22 00:11:33 -05:00
|
|
|
|
|
|
|
|
###
|
|
|
|
|
#
|
2013-05-24 14:13:10 -05:00
|
|
|
# A specialization of the {Exploit exploit module class} that is geared
|
|
|
|
|
# toward exploits that are performed locally. Locally, in this case,
|
|
|
|
|
# is defined as an exploit that is realized by means other than
|
|
|
|
|
# network communication.
|
2013-05-22 00:11:33 -05:00
|
|
|
#
|
|
|
|
|
###
|
2013-08-29 13:37:50 -05:00
|
|
|
class Msf::Exploit::Local < Msf::Exploit
|
2013-09-05 13:41:25 -05:00
|
|
|
include Msf::PostMixin
|
2013-05-22 00:11:33 -05:00
|
|
|
|
2013-09-05 13:41:25 -05:00
|
|
|
#
|
|
|
|
|
# Returns the fact that this exploit is a local exploit.
|
|
|
|
|
#
|
|
|
|
|
def exploit_type
|
|
|
|
|
Msf::Exploit::Type::Local
|
|
|
|
|
end
|
2015-11-19 14:31:31 -06:00
|
|
|
|
|
|
|
|
def run_simple(opts = {}, &block)
|
2020-12-01 15:22:48 -05:00
|
|
|
Msf::Simple::Exploit.exploit_simple(self, opts, &block)
|
2015-11-19 14:31:31 -06:00
|
|
|
end
|
2013-05-22 00:11:33 -05:00
|
|
|
end
|