Class: Msf::Exploit::Local
- Inherits:
-
Msf::Exploit
- Object
- Module
- Msf::Exploit
- Msf::Exploit::Local
- Includes:
- PostMixin
- Defined in:
- lib/msf/core/exploit/local.rb
Overview
A specialization of the 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.
Defined Under Namespace
Modules: Ansible, CompileC, Linux, LinuxKernel, Persistence, Saltstack, SapSmdAgentUnencryptedProperty, Timespec, WindowsKernel
Instance Attribute Summary
Attributes included from SessionCompatibility
Attributes included from Module::HasActions
#actions, #default_action, #passive, #passive_actions
Attributes inherited from Msf::Exploit
#active_timeout, #default_target, #fail_detail, #fail_message, #fail_reason, #last_vuln_attempt, #needs_cleanup, #payload, #payload_info, #payload_instance, #session_count, #successful, #targets
Instance Method Summary collapse
-
#exploit_type ⇒ Object
Returns the fact that this exploit is a local exploit.
- #run_simple(opts = {}, &block) ⇒ Object
Methods included from PostMixin
Methods included from SessionCompatibility
#check_for_session_readiness, #cleanup, #command_names_for, #compatible_sessions, #initialize, #meterpreter_session_incompatibility_reasons, #passive?, #post_commands, #session, #session_changed?, #session_compatible?, #session_display_info, #session_incompatibility_reasons, #setup, #sysinfo
Methods included from Post::Common
#clear_screen, #cmd_exec, #cmd_exec_get_pid, #cmd_exec_with_result, #command_exists?, #create_process, #get_env, #get_envs, #initialize, #peer, #report_virtualization, #rhost, #rport
Methods included from Module::HasActions
#action, #find_action, #initialize, #passive?, #passive_action?
Methods included from Auxiliary::Report
#active_db?, #create_cracked_credential, #create_credential, #create_credential_and_login, #create_credential_login, #db, #db_warning_given?, #get_client, #get_host, #inside_workspace_boundary?, #invalidate_login, #mytask, #myworkspace, #myworkspace_id, #report_auth_info, #report_client, #report_exploit, #report_host, #report_loot, #report_note, #report_service, #report_vuln, #report_web_form, #report_web_page, #report_web_site, #report_web_vuln, #store_cred, #store_local, #store_loot
Methods included from Metasploit::Framework::Require
optionally, optionally_active_record_railtie, optionally_include_metasploit_credential_creation, #optionally_include_metasploit_credential_creation, optionally_require_metasploit_db_gem_engines
Methods inherited from Msf::Exploit
#add_handler, #aggressive?, #autofilter, #autofilter_ports, #autofilter_services, #cleanup, #compatible_encoders, #compatible_payloads, #define_context_encoding_reqs, #encode_begin, #encode_end, #encode_shellcode_stub, #exploit, #fail_with, #generate_payload, #generate_single_payload, #handle_exception, #handler, #handler_bind?, #handler_enabled?, #has_auto_target?, #init_compat, #initialize, #interrupt_handler, #is_payload_compatible?, #make_fast_nops, #make_nops, mixins, #nop_generator, #nop_save_registers, #normalize_platform_arch, #on_new_session, #passive?, #pattern_create, #payload_append, #payload_append_encoder, #payload_badchars, #payload_disable_nops, #payload_encoder, #payload_encoder_options, #payload_encoder_type, #payload_extended_options, #payload_max_nops, #payload_min_nops, #payload_nop, #payload_prepend, #payload_prepend_encoder, #payload_space, #rand_char, #rand_text, #rand_text_alpha, #rand_text_alpha_lower, #rand_text_alpha_upper, #rand_text_alphanumeric, #rand_text_debug, #rand_text_english, #rand_text_hex, #rand_text_highascii, #rand_text_numeric, #regenerate_payload, #register_autofilter_ports, #register_autofilter_services, #reset_session_counts, #session_created?, #setup, #setup_fail_detail_from_exception, #stack_adjustment, #stance, #target, #target_arch, #target_index, #target_platform, type, #type, #wfs_delay
Instance Method Details
#exploit_type ⇒ Object
Returns the fact that this exploit is a local exploit.
18 19 20 |
# File 'lib/msf/core/exploit/local.rb', line 18 def exploit_type Msf::Exploit::Type::Local end |
#run_simple(opts = {}, &block) ⇒ Object
22 23 24 |
# File 'lib/msf/core/exploit/local.rb', line 22 def run_simple(opts = {}, &block) Msf::Simple::Exploit.exploit_simple(self, opts, &block) end |