cleanup module tools by removing unused vars
git-svn-id: file:///home/svn/framework3/trunk@9521 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
6d38dd0850
commit
106f436ab9
|
@ -3,7 +3,8 @@
|
|||
# $Id$
|
||||
# $Revision$
|
||||
#
|
||||
# This script lists each module by its licensing terms
|
||||
# This script lists each module by its author(s) and
|
||||
# the number of modules per author
|
||||
#
|
||||
|
||||
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
||||
|
@ -24,7 +25,6 @@ tbl = Rex::Ui::Text::Table.new(
|
|||
'Columns' => [ 'Module', 'Reference' ]
|
||||
)
|
||||
|
||||
licenses = {}
|
||||
names = {}
|
||||
|
||||
$framework.payloads.each_module { |name, mod|
|
||||
|
@ -72,6 +72,7 @@ $framework.auxiliary.each_module { |name, mod|
|
|||
|
||||
puts tbl.to_s
|
||||
|
||||
|
||||
tbl = Rex::Ui::Text::Table.new(
|
||||
'Header' => 'Module Count by Author',
|
||||
'Indent' => Indent.length,
|
||||
|
@ -81,6 +82,4 @@ names.keys.sort {|a,b| names[b] <=> names[a] }.each do |name|
|
|||
tbl << [ names[name].to_s, name ]
|
||||
end
|
||||
|
||||
|
||||
puts tbl.to_s
|
||||
|
||||
|
|
|
@ -14,39 +14,9 @@ require 'rex'
|
|||
require 'msf/ui'
|
||||
require 'msf/base'
|
||||
|
||||
def lic_short(l)
|
||||
if (l.class == Array)
|
||||
l = l[0]
|
||||
end
|
||||
|
||||
case l
|
||||
when MSF_LICENSE
|
||||
'MSF'
|
||||
when GPL_LICENSE
|
||||
'GPL'
|
||||
when BSD_LICENSE
|
||||
'BSD'
|
||||
when ARTISTIC_LICENSE
|
||||
'ART'
|
||||
else
|
||||
'UNK'
|
||||
end
|
||||
end
|
||||
|
||||
Indent = ' '
|
||||
|
||||
# Initialize the simplified framework instance.
|
||||
$framework = Msf::Simple::Framework.create
|
||||
|
||||
|
||||
tbl = Rex::Ui::Text::Table.new(
|
||||
'Header' => 'Licensed Modules',
|
||||
'Indent' => Indent.length,
|
||||
'Columns' => [ 'License','Type', 'Name' ]
|
||||
)
|
||||
|
||||
licenses = {}
|
||||
|
||||
all_modules = $framework.exploits.merge($framework.auxiliary)
|
||||
all_ports = {}
|
||||
|
||||
|
@ -74,6 +44,3 @@ all_modules.each_module { |name, mod|
|
|||
all_ports.sort.each { |k,v|
|
||||
puts "%5s # %s" % [k,v]
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# $Id$
|
||||
#
|
||||
# This script lists each module by its licensing terms
|
||||
# This script lists each module with its references
|
||||
#
|
||||
# $Revision$
|
||||
#
|
||||
|
@ -25,8 +25,6 @@ tbl = Rex::Ui::Text::Table.new(
|
|||
'Columns' => [ 'Module', 'Reference' ]
|
||||
)
|
||||
|
||||
licenses = {}
|
||||
|
||||
$framework.payloads.each_module { |name, mod|
|
||||
x = mod.new
|
||||
x.references.each do |r|
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# $Id$
|
||||
#
|
||||
# This script lists each module by the default ports it uses
|
||||
# This script lists all modules with their targets
|
||||
#
|
||||
# $Revision$
|
||||
#
|
||||
|
@ -19,7 +19,6 @@ Indent = ' '
|
|||
# Initialize the simplified framework instance.
|
||||
$framework = Msf::Simple::Framework.create
|
||||
|
||||
|
||||
tbl = Rex::Ui::Text::Table.new(
|
||||
'Header' => 'Module Targets',
|
||||
'Indent' => Indent.length,
|
||||
|
@ -27,7 +26,6 @@ tbl = Rex::Ui::Text::Table.new(
|
|||
)
|
||||
|
||||
all_modules = $framework.exploits
|
||||
all_targs = {}
|
||||
|
||||
all_modules.each_module { |name, mod|
|
||||
x = mod.new
|
||||
|
@ -37,4 +35,3 @@ all_modules.each_module { |name, mod|
|
|||
}
|
||||
|
||||
puts tbl.to_s
|
||||
|
||||
|
|
Loading…
Reference in New Issue