support for all platforms..
git-svn-id: file:///home/svn/incoming/trunk@2536 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
e12db4e8c6
commit
ffeb0f27f7
|
@ -9,6 +9,7 @@
|
|||
class Msf::Module::Platform
|
||||
|
||||
Rank = 0
|
||||
# actually, having a argument of '' is what to do for wanting 'all'
|
||||
Short = "all"
|
||||
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue