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_evasionObject



63
64
65
# File 'lib/msf/base/simple/statistics.rb', line 63

def num_evasion
  framework.evasion.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.



84
85
86
# File 'lib/msf/base/simple/statistics.rb', line 84

def num_payload_singles
  framework.payloads.singles.length
end

#num_payload_stagersObject

Returns the number of stagers in the framework.



77
78
79
# File 'lib/msf/base/simple/statistics.rb', line 77

def num_payload_stagers
  framework.payloads.stagers.length
end

#num_payload_stagesObject

Returns the number of stages in the framework.



70
71
72
# File 'lib/msf/base/simple/statistics.rb', line 70

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