Fixed tab identation and use each_module to generate

git-svn-id: file:///home/svn/framework3/trunk@3960 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-09-26 02:47:00 +00:00
parent fab9eb9f44
commit 6689976367
4 changed files with 23 additions and 15 deletions

View File

@ -1,7 +1,9 @@
class Encoder
def self.get_available()
return $msframework.encoders
end
def self.get_available()
mods = []
$msframework.encoders.each_module { |n,m| mods << m.new }
mods
end
end

View File

@ -1,7 +1,9 @@
class Exploit
def self.get_available()
return $msframework.exploits
end
def self.get_available()
mods = []
$msframework.exploits.each_module { |n,m| mods << m.new }
mods
end
end

View File

@ -1,7 +1,9 @@
class Nop
def self.get_available()
return $msframework.nops
end
def self.get_available()
mods = []
$msframework.nops.each_module { |n,m| mods << m.new }
mods
end
end

View File

@ -1,7 +1,9 @@
class Payload
def self.get_available()
return $msframework.payloads
end
def self.get_available()
mods = []
$msframework.payloads.each_module { |n,m| mods << m.new }
mods
end
end