2005-07-14 22:45:10 +00:00
|
|
|
require 'rex/ui'
|
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Ui
|
|
|
|
module Text
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class implements text-based output but is not
|
|
|
|
# tied to an output medium.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Output < Rex::Ui::Output
|
|
|
|
|
|
|
|
require 'rex/ui/text/output/stdio'
|
2005-11-28 16:36:06 +00:00
|
|
|
require 'rex/ui/text/output/socket'
|
2005-07-14 22:58:09 +00:00
|
|
|
require 'rex/ui/text/output/buffer'
|
2005-07-14 22:45:10 +00:00
|
|
|
|
|
|
|
def print_error(msg = '')
|
|
|
|
print_line("[-] #{msg}")
|
|
|
|
end
|
|
|
|
|
|
|
|
def print_good(msg = '')
|
|
|
|
print_line("[+] #{msg}")
|
|
|
|
end
|
|
|
|
|
|
|
|
def print_status(msg = '')
|
|
|
|
print_line("[*] #{msg}")
|
|
|
|
end
|
|
|
|
|
|
|
|
def print_line(msg = '')
|
|
|
|
print(msg + "\n")
|
|
|
|
end
|
|
|
|
|
2005-07-14 22:58:09 +00:00
|
|
|
def reset
|
|
|
|
end
|
|
|
|
|
2005-07-14 22:45:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|