Method: Rex::Powershell::Output#encode_code

Defined in:
lib/rex/powershell/output.rb

#encode_code(eof = nil) ⇒ String

Return Base64 encoded powershell code

Returns:

  • (String)

    Base64 encoded powershell code



78
79
80
# File 'lib/rex/powershell/output.rb', line 78

def encode_code(eof = nil)
  @code = Rex::Text.encode_base64(Rex::Text.to_unicode(code))
end