Path: blob/master/lib/msf/core/module/ui.rb
21545 views
1module Msf::Module::UI2autoload :Line, 'msf/core/module/ui/line'3autoload :Message, 'msf/core/module/ui/message'45# Modules can subscribe to a user-interface, and as such they include the6# UI subscriber module. This provides methods like print, print_line, etc.7# User interfaces are designed to be medium independent, and as such the8# user interface subscribes are designed to provide a flexible way of9# interacting with the user, n stuff.10include Rex::Ui::Subscriber1112# Overwrite the {Rex::UI::Subscriber#print_line} to do custom prefixes13include Msf::Module::UI::Line14# Overwrite the {Rex::Ui::Subscriber} print_(status|error|good) to do time stamps15include Msf::Module::UI::Message1617# Add alerts to {Rex::Ui::Subscriber#init_ui}18def init_ui(*args)19super20alert_user21end22end232425