Class: Msf::Simple::Statistics
- Inherits:
-
Object
- Object
- Msf::Simple::Statistics
- 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
Instance Method Summary collapse
-
#initialize(framework) ⇒ Statistics
constructor
Initializes the framework statistics.
-
#num_auxiliary ⇒ Object
Returns the number of auxiliary modules in the framework.
-
#num_encoders ⇒ Object
Returns the number of encoders in the framework.
- #num_evasion ⇒ Object
-
#num_exploits ⇒ Object
Returns the number of exploits in the framework.
-
#num_nops ⇒ Object
Returns the number of NOP generators in the framework.
-
#num_payload_singles ⇒ Object
Returns the number of singles in the framework.
-
#num_payload_stagers ⇒ Object
Returns the number of stagers in the framework.
-
#num_payload_stages ⇒ Object
Returns the number of stages in the framework.
-
#num_payloads ⇒ Object
Returns the number of payloads in the framework.
-
#num_post ⇒ Object
Returns the number of post modules in the framework.
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_auxiliary ⇒ Object
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_encoders ⇒ Object
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_evasion ⇒ Object
63 64 65 |
# File 'lib/msf/base/simple/statistics.rb', line 63 def num_evasion framework.evasion.length end |
#num_exploits ⇒ Object
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_nops ⇒ Object
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_singles ⇒ Object
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_stagers ⇒ Object
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_stages ⇒ Object
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_payloads ⇒ Object
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_post ⇒ Object
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 |