Module: Msf::Auxiliary::CommandShell::CRLFLineEndings

Defined in:
lib/msf/core/auxiliary/command_shell.rb

Overview

Ghetto

Instance Method Summary collapse

Instance Method Details

#put(str, opts = {}) ⇒ Object



21
22
23
24
# File 'lib/msf/core/auxiliary/command_shell.rb', line 21

def put(str, opts={})
  return super if not str
  super(str.strip + "\r\n", opts)
end

#write(str, opts = {}) ⇒ Object



25
26
27
28
# File 'lib/msf/core/auxiliary/command_shell.rb', line 25

def write(str, opts={})
  return super if not str
  super(str.strip + "\r\n", opts)
end