Class Msf::Module::PlatformList
In: lib/msf/core/module/platform_list.rb
Parent: Object

Methods

&   _intersect_expand   all?   empty?   from_a   names   new   supports?   transform   win32  

Attributes

platforms  [RW] 

Public Class methods

Create an instance from an array

Constructor, takes the entries are arguments

Transformation method, just accept an array or a single entry. This is just to make defining platform lists in a module more convenient, skape‘s a girl like that.

Returns the win32 platform list.

Public Instance methods

WARNING: I pulled this algorithm out of my ass, it‘s probably broken

Ok, this was a bit weird, but I think it should work. We basically want to do a set intersection, but with like superset expansion or something or another. So I try to do that recursively, and the result should be a the valid platform intersection…

used for say, building a payload from a stage and stager

Symbolic check to see if this platform list represents ‘all’ platforms.

Checks to see if the platform list is empty.

Returns an array of names contained within this platform list.

Do I support plist (do I support all of they support?) use for matching say, an exploit and a payload

Protected Instance methods

man this be ghetto. Expand the ‘superest’ set of the two lists. will only ever expand 1 set, excepts both sets to already have been intersected with each other..

[Validate]