Class: Msf::Post

Inherits:
Module show all
Includes:
PostMixin
Defined in:
lib/msf/core/post.rb,
lib/msf/core/post/linux/priv.rb,
lib/msf/core/post/osx/ruby_dl.rb,
lib/msf/core/post/windows/wmic.rb,
lib/msf/core/post/solaris/priv.rb,
lib/msf/core/post/windows/ldap.rb,
lib/msf/core/post/linux/system.rb,
lib/msf/core/post/solaris/system.rb,
lib/msf/core/post/windows/extapi.rb,
lib/msf/core/post/windows/process.rb,
lib/msf/core/post/windows/railgun.rb,
lib/msf/core/post/windows/services.rb,
lib/msf/core/post/windows/registry.rb,
lib/msf/core/post/windows/accounts.rb,
lib/msf/core/post/windows/eventlog.rb,
lib/msf/core/post/windows/cli_parse.rb,
lib/msf/core/post/windows/file_info.rb,
lib/msf/core/post/windows/shadowcopy.rb,
lib/msf/core/post/windows/powershell.rb,
lib/msf/core/post/windows/user_profiles.rb

Overview

A Post-exploitation module

Defined Under Namespace

Modules: Common, File, Linux, OSX, Solaris, Unix, Windows

Instance Attribute Summary

Attributes included from PostMixin

#passive

Attributes included from Module::HasActions

#actions, #default_action, #passive, #passive_actions

Attributes inherited from Module

#arch, #author, #datastore, #error, #job_id, #license, #module_store, #options, #platform, #privileged, #references, #uuid

Attributes included from Framework::Offspring

#framework

Attributes included from Rex::Ui::Subscriber::Input

#user_input

Attributes included from Rex::Ui::Subscriber::Output

#user_output

Class Method Summary collapse

Instance Method Summary collapse

Methods included from PostMixin

#check_for_session_readiness, #cleanup, #compatible_sessions, #initialize, #passive?, #post_commands, #session, #session_compatible?, #sysinfo

Methods included from Common

#cmd_exec, #cmd_exec_get_pid, #get_env, #get_envs, #has_pid?, #peer, #report_vm, #rhost, #rport

Methods included from Module::HasActions

#action, #find_action, #initialize, #passive?, #passive_action?

Methods included from Auxiliary::Report

#db, #get_client, #get_host, #initialize, #inside_workspace_boundary?, #mytask, #myworkspace, #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 inherited from Module

#[], #[]=, #alias, #arch?, #arch_to_s, #author_to_s, #auxiliary?, cached?, #check, #comm, #compat, #compatible?, #debugging?, #description, #disclosure_date, #each_arch, #each_author, #encoder?, #exploit?, #fail_with, #file_path, #framework, #fullname, fullname, #import_defaults, #initialize, is_usable, #name, #nop?, #orig_cls, #owner, #payload?, #platform?, #platform_to_s, #post?, #print_error, #print_good, #print_line, #print_line_prefix, #print_prefix, #print_status, #print_warning, #privileged?, #rank, rank, rank_to_h, #rank_to_h, #rank_to_s, rank_to_s, #refname, #register_parent, #replicant, #search_filter, #share_datastore, shortname, #shortname, #support_ipv6?, #target_host, #target_port, #validate, #vprint_debug, #vprint_error, #vprint_good, #vprint_line, #vprint_status, #vprint_warning, #workspace

Methods included from Rex::Ui::Subscriber

#copy_ui, #init_ui, #reset_ui

Methods included from Rex::Ui::Subscriber::Input

#gets

Methods included from Rex::Ui::Subscriber::Output

#flush, #print, #print_debug, #print_error, #print_good, #print_line, #print_status, #print_warning

Class Method Details

.create(session) ⇒ Object

Create an anonymous module not tied to a file. Only useful for IRB.


34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/msf/core/post.rb', line 34

def self.create(session)
  mod = new
  mod.instance_variable_set(:@session, session)
  # Have to override inspect because for whatever reason, +type+ is coming
  # from the wrong scope and i can't figure out how to fix it.
  mod.instance_eval do
    def inspect
      "#<Msf::Post anonymous>"
    end
  end
  mod.class.refname = "anonymous"

  mod
end

.typeObject


27
28
29
# File 'lib/msf/core/post.rb', line 27

def self.type
  Msf::MODULE_POST
end

Instance Method Details

#setupObject


21
# File 'lib/msf/core/post.rb', line 21

def setup; end

#typeObject


23
24
25
# File 'lib/msf/core/post.rb', line 23

def type
  Msf::MODULE_POST
end