Class: Msf::Simple::Statistics

Inherits:
Object
  • Object
show all
Includes:
Framework::Offspring
Defined in:
lib/msf/base/simple/statistics.rb

Overview

This class provides an interface to various statistics about the framework instance.

Instance Attribute Summary

Attributes included from Framework::Offspring

#framework

Instance Method Summary collapse

Constructor Details

#initialize(framework) ⇒ Statistics

Initializes the framework statistics.


17
18
19
# File 'lib/msf/base/simple/statistics.rb', line 17

def initialize(framework)
  self.framework = framework
end

Instance Method Details

#num_auxiliaryObject

Returns the number of auxiliary modules in the framework.


52
53
54
# File 'lib/msf/base/simple/statistics.rb', line 52

def num_auxiliary
  framework.auxiliary.length
end

#num_encodersObject

Returns the number of encoders in the framework.


24
25
26
# File 'lib/msf/base/simple/statistics.rb', line 24

def num_encoders
  framework.encoders.length
end

#num_exploitsObject

Returns the number of exploits in the framework.


31
32
33
# File 'lib/msf/base/simple/statistics.rb', line 31

def num_exploits
  framework.exploits.length
end

#num_nopsObject

Returns the number of NOP generators in the framework.


38
39
40
# File 'lib/msf/base/simple/statistics.rb', line 38

def num_nops
  framework.nops.length
end

#num_payload_singlesObject

Returns the number of singles in the framework.


80
81
82
# File 'lib/msf/base/simple/statistics.rb', line 80

def num_payload_singles
  framework.payloads.singles.length
end

#num_payload_stagersObject

Returns the number of stagers in the framework.


73
74
75
# File 'lib/msf/base/simple/statistics.rb', line 73

def num_payload_stagers
  framework.payloads.stagers.length
end

#num_payload_stagesObject

Returns the number of stages in the framework.


66
67
68
# File 'lib/msf/base/simple/statistics.rb', line 66

def num_payload_stages
  framework.payloads.stages.length
end

#num_payloadsObject

Returns the number of payloads in the framework.


45
46
47
# File 'lib/msf/base/simple/statistics.rb', line 45

def num_payloads
  framework.payloads.length
end

#num_postObject

Returns the number of post modules in the framework.


59
60
61
# File 'lib/msf/base/simple/statistics.rb', line 59

def num_post
  framework.post.length
end