Files
metasploit-gs/lib/msf/core/session/basic.rb
T
2024-01-06 15:54:49 -05:00

45 lines
650 B
Ruby

# -*- coding: binary -*-
module Msf
module Session
###
#
# This class implements an interactive session using raw input/output in
# only the most basic fashion.
#
###
module Basic
include Msf::Session
include Msf::Session::Interactive
#
# Description of the session.
#
def desc
"Basic I/O"
end
#
# Basic session.
#
def type
"basic"
end
protected
#
# Performs the actual raw interaction with the remote side. This can be
# overridden by derived classes if they wish to do this another way.
#
def _interact
framework.events.on_session_interact(self)
interact_stream(rstream)
end
end
end
end