/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/msf/core/module/ui.rb
22 строки
820 B
dwelch-r7
Zeitwerk `rex` folder
08 фев 2021, 15:24
08 фев 2021, 15:24
b95be3e
Код
Авторство
О чём код?
module Msf::Module::UI autoload :Line, 'msf/core/module/ui/line' 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 # Overwrite the {Rex::UI::Subscriber#print_line} to do custom prefixes include Msf::Module::UI::Line # Overwrite the {Rex::Ui::Subscriber} print_(status|error|good) to do time stamps include Msf::Module::UI::Message # Add alerts to {Rex::Ui::Subscriber#init_ui} def init_ui(*args) super alert_user end end