/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/rex/ui/text/output/socket.rb
42 строки
550 B
dwelch-r7
Zeitwerk `rex` folder
08 фев 2021, 15:24
08 фев 2021, 15:24
b95be3e
Код
Авторство
О чём код?
# -*- coding: binary -*- module Rex module Ui module Text ### # # This class implements the output interface against a socket. # ### class Output::Socket < Rex::Ui::Text::Output def initialize(sock) @sock = sock super() end def supports_color? case config[:color] when true # Allow color if the user forces it on return true else false end end # # Prints the supplied message to the socket. # def print_raw(msg = '') @sock.write(msg) @sock.flush msg end end end end end