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_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 20 |
# File 'lib/msf/base/simple/statistics.rb', line 17 def initialize(framework) self.framework = framework Msf::Modules::Metadata::Cache.instance.update_stats end |
Instance Method Details
#num_auxiliary ⇒ Object
Returns the number of auxiliary modules in the framework.
53 54 55 |
# File 'lib/msf/base/simple/statistics.rb', line 53 def num_auxiliary Msf::Modules::Metadata::Cache.instance.module_counts[:auxiliary] end |
#num_encoders ⇒ Object
Returns the number of encoders in the framework.
25 26 27 |
# File 'lib/msf/base/simple/statistics.rb', line 25 def num_encoders Msf::Modules::Metadata::Cache.instance.module_counts[:encoder] end |
#num_evasion ⇒ Object
64 65 66 |
# File 'lib/msf/base/simple/statistics.rb', line 64 def num_evasion Msf::Modules::Metadata::Cache.instance.module_counts[:evasion] end |
#num_exploits ⇒ Object
Returns the number of exploits in the framework.
32 33 34 |
# File 'lib/msf/base/simple/statistics.rb', line 32 def num_exploits Msf::Modules::Metadata::Cache.instance.module_counts[:exploit] end |
#num_nops ⇒ Object
Returns the number of NOP generators in the framework.
39 40 41 |
# File 'lib/msf/base/simple/statistics.rb', line 39 def num_nops Msf::Modules::Metadata::Cache.instance.module_counts[:nop] end |