Files
metasploit-gs/lib/msf/base/simple/statistics.rb
T
HD Moore bdfd2c5152 Recon modules and the recon event subsystem have been temporarily removed.
The 'auxiliary' system is designed to replace it and recon features will
slowly be moved back into the framework


git-svn-id: file:///home/svn/incoming/trunk@3438 4d416f70-5f16-0410-b530-b9f4589650da
2006-01-24 03:59:44 +00:00

79 lines
1.2 KiB
Ruby

module Msf
module Simple
###
#
# This class provides an interface to various statistics about the
# framework instance.
#
###
class Statistics
include Msf::Framework::Offspring
#
# Initializes the framework statistics.
#
def initialize(framework)
self.framework = framework
end
#
# Returns the number of encoders in the framework.
#
def num_encoders
self.framework.encoders.length
end
#
# Returns the number of exploits in the framework.
#
def num_exploits
self.framework.exploits.length
end
#
# Returns the number of NOP generators in the framework.
#
def num_nops
self.framework.nops.length
end
#
# Returns the number of payloads in the framework.
#
def num_payloads
self.framework.payloads.length
end
#
# Returns the number of auxiliary modules in the framework.
#
def num_auxiliary
self.framework.auxiliary.length
end
#
# Returns the number of stages in the framework.
#
def num_payload_stages
self.framework.payloads.stages.length
end
#
# Returns the number of stagers in the framework.
#
def num_payload_stagers
self.framework.payloads.stagers.length
end
#
# Returns the number of singles in the framework.
#
def num_payload_singles
self.framework.payloads.singles.length
end
end
end
end