Sha256: a9f5e08c03e17527933e393460f9a55a1dbdc56003d2425a253c9fe6a3fd7232

Contents?: true

Size: 365 Bytes

Versions: 9

Compression:

Stored size: 365 Bytes

Contents

# -*- coding: binary -*-

module Rex
module Exploitation
module Powershell
  class Param
    attr_accessor :klass, :name
    def initialize(klass, name)
      @klass = klass.strip
      @name = name.strip.gsub(/\s|,/, '')
    end

    #
    # To String
    #
    # @return [String] Powershell param
    def to_s
      "[#{klass}]$#{name}"
    end
  end
end
end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
rex-2.0.8 lib/rex/exploitation/powershell/param.rb
rex-2.0.7 lib/rex/exploitation/powershell/param.rb
rex-2.0.5 lib/rex/exploitation/powershell/param.rb
rex-2.0.4 lib/rex/exploitation/powershell/param.rb
dstruct-0.0.1 lib/rex/exploitation/powershell/param.rb
rex-2.0.3 lib/rex/exploitation/powershell/param.rb
librex-0.0.999 lib/rex/exploitation/powershell/param.rb
rex-2.0.2 lib/rex/exploitation/powershell/param.rb
librex-0.0.71 lib/rex/exploitation/powershell/param.rb