class IO
Public Instance Methods
shell(**kwargs)
click to toggle source
Starts an interactive session between STDIO and the IO
object.
@param [Hash{Symbol => Object}] kwargs
Additional keyword arguments for {Ronin::Support::CLI::IOShell#initialize}.
@option kwargs [IO] :stdin
Optional alternative STDIN stream. Defaults to `$stdin`.
@option kwargs [IO] :stdout
Optional alternative STDOUT stream. Defaults to `$stdout`.
@example
socket = TCPSocket.new('irc.undernet.org',6667) socket.shell # NOTICE AUTH :*** Looking up your hostname # NOTICE AUTH :*** Checking Ident # NOTICE AUTH :*** Found your hostname # NOTICE AUTH :*** No ident response # USER test_ruby * * * # NICK test_ruby # PING :3167790481 # PONG 3167790481 # :Chicago.IL.US.Undernet.Org 001 test_ruby :Welcome to the UnderNet IRC Network, test_ruby # :Chicago.IL.US.Undernet.Org 002 test_ruby :Your host is Chicago.IL.US.Undernet.Org, running version u2.10.12.19 # :Chicago.IL.US.Undernet.Org 003 test_ruby :This server was created Wed Apr 15 2020 at 22:02:43 UTC # :Chicago.IL.US.Undernet.Org 004 test_ruby Chicago.IL.US.Undernet.Org u2.10.12.19 diOoswkgx biklmnopstvrDdRcC bklov # :Chicago.IL.US.Undernet.Org 005 test_ruby WHOX WALLCHOPS WALLVOICES USERIP CPRIVMSG CNOTICE SILENCE=25 MODES=6 MAXCHANNELS=40 MAXBANS=100 NICKLEN=12 :are supported by this server # :Chicago.IL.US.Undernet.Org 005 test_ruby MAXNICKLEN=15 TOPICLEN=160 AWAYLEN=160 KICKLEN=160 CHANNELLEN=200 MAXCHANNELLEN=200 CHANTYPES=#& PREFIX=(ov)@+ STATUSMSG=@+ CHANMODES=b,k,l,imnpstrDdRcC CASEMAPPING=rfc1459 NETWORK=UnderNet :are supported by this server # :Chicago.IL.US.Undernet.Org 251 test_ruby :There are 3241 users and 9182 invisible on 38 servers # :Chicago.IL.US.Undernet.Org 252 test_ruby 57 :operator(s) online # :Chicago.IL.US.Undernet.Org 253 test_ruby 23 :unknown connection(s) # :Chicago.IL.US.Undernet.Org 254 test_ruby 6230 :channels formed # :Chicago.IL.US.Undernet.Org 255 test_ruby :I have 1179 clients and 1 servers # :Chicago.IL.US.Undernet.Org NOTICE test_ruby :Highest connection count: 1388 (1387 clients) # :Chicago.IL.US.Undernet.Org 422 test_ruby :MOTD File is missing # :Chicago.IL.US.Undernet.Org NOTICE test_ruby :on 1 ca 1(4) ft 10(10) # Ctrl^D
# File lib/ronin/support/cli/io_shell/core_ext/io.rb, line 63 def shell(**kwargs) Ronin::Support::CLI::IOShell.start(self,**kwargs) end
type_system()
click to toggle source
The type system which ‘read_*`/`write_*` {Ronin::Support::Binary::Stream::Methods methods} will use.
@api private
@see Ronin::Support::Binary::Stream::Methods
# File lib/ronin/support/binary/core_ext/io.rb, line 34 def type_system Ronin::Support::Binary::CTypes end