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

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

Overview

Ghetto

Instance Method Summary collapse

Instance Method Details

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


22
23
24
25
# File 'lib/msf/core/auxiliary/commandshell.rb', line 22

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

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


26
27
28
29
# File 'lib/msf/core/auxiliary/commandshell.rb', line 26

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