support for all platforms..

git-svn-id: file:///home/svn/incoming/trunk@2536 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Spoon M 2005-05-30 23:24:26 +00:00
parent e12db4e8c6
commit ffeb0f27f7
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@
class Msf::Module::Platform
Rank = 0
# actually, having a argument of '' is what to do for wanting 'all'
Short = "all"
#

View File

@ -22,4 +22,8 @@ class Msf::Module::PlatformList::UnitTest < Test::Unit::TestCase
def test_names
assert_equal([ 'Windows X86 XP SP2' ], Msf::Module::PlatformList.new('winxpsp2').names)
end
def test_all
assert_equal( [ Msf::Module::Platform ], Msf::Module::PlatformList.new('').modules)
end
end