# File lib/msf/core/module/platform.rb, line 51
        def self.find_platform(str)
                # remove any whitespace and downcase
                str = str.gsub(' ', '').downcase

                # Start at the base platform module
                mod = Msf::Module::Platform

                # Scan forward, trying to find the end module
                while str.length > 0
                        mod, str = find_portion(mod, str)
                end

                return mod
        end