Module: Msf::Ui::Web::WebConsole::WebConsoleShell

Defined in:
lib/msf/ui/web/web_console.rb

Overview

Provides some overrides for web-based consoles

Instance Method Summary collapse

Instance Method Details

#run_unknown_command(command) ⇒ Object


36
37
38
39
40
41
42
# File 'lib/msf/ui/web/web_console.rb', line 36

def run_unknown_command(command)
  Open3.popen2e(command) {|stdin,output,thread|
    output.each {|outline|
      print_line(outline.chomp)
    }
  }
end

#supports_color?Boolean

Returns:

  • (Boolean)

32
33
34
# File 'lib/msf/ui/web/web_console.rb', line 32

def supports_color?
  false
end