CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/core/exploit/local.rb
Views: 11784
1
# -*- coding: binary -*-
2
3
4
###
5
#
6
# A specialization of the {Exploit exploit module class} that is geared
7
# toward exploits that are performed locally. Locally, in this case,
8
# is defined as an exploit that is realized by means other than
9
# network communication.
10
#
11
###
12
class Msf::Exploit::Local < Msf::Exploit
13
include Msf::PostMixin
14
15
#
16
# Returns the fact that this exploit is a local exploit.
17
#
18
def exploit_type
19
Msf::Exploit::Type::Local
20
end
21
22
def run_simple(opts = {}, &block)
23
Msf::Simple::Exploit.exploit_simple(self, opts, &block)
24
end
25
end
26
27