Files
metasploit-gs/lib/msf/core/module/ui.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
820 B
Ruby
Raw Normal View History

2020-09-22 02:56:51 +01:00
2014-10-16 09:39:30 -05:00
module Msf::Module::UI
2014-10-16 09:50:07 -05:00
autoload :Line, 'msf/core/module/ui/line'
2014-10-16 09:39:30 -05:00
autoload :Message, 'msf/core/module/ui/message'
# Modules can subscribe to a user-interface, and as such they include the
# UI subscriber module. This provides methods like print, print_line, etc.
# User interfaces are designed to be medium independent, and as such the
# user interface subscribes are designed to provide a flexible way of
# interacting with the user, n stuff.
include Rex::Ui::Subscriber
2014-10-16 09:50:07 -05:00
# Overwrite the {Rex::UI::Subscriber#print_line} to do custom prefixes
include Msf::Module::UI::Line
2014-10-16 09:39:30 -05:00
# Overwrite the {Rex::Ui::Subscriber} print_(status|error|good) to do time stamps
include Msf::Module::UI::Message
2019-08-22 11:12:00 -05:00
# Add alerts to {Rex::Ui::Subscriber#init_ui}
def init_ui(*args)
super
alert_user
end
end