Method: Rex::Text.to_powershell
- Defined in:
- lib/rex/text.rb
.to_powershell(str, name = "buf") ⇒ Object
Converts a raw string to a powershell byte array
308 309 310 |
# File 'lib/rex/text.rb', line 308 def self.to_powershell(str, name = "buf") return Rex::Exploitation::Powershell::Script.to_byte_array(str, name) end |