2014-04-26 11:59:43 +00:00
|
|
|
# -*- coding: binary -*-
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Exploitation
|
|
|
|
module Powershell
|
|
|
|
class Param
|
|
|
|
attr_accessor :klass, :name
|
2014-07-20 20:07:59 +00:00
|
|
|
def initialize(klass, name)
|
2014-05-05 19:53:36 +00:00
|
|
|
@klass = klass.strip
|
2014-07-20 20:07:59 +00:00
|
|
|
@name = name.strip.gsub(/\s|,/, '')
|
2014-04-26 11:59:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# To String
|
|
|
|
#
|
|
|
|
# @return [String] Powershell param
|
|
|
|
def to_s
|
|
|
|
"[#{klass}]$#{name}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|