Path: blob/master/lib/msf/base/sessions/mssql.rb
19722 views
# -*- coding:binary -*-12require 'rex/post/mssql'34class Msf::Sessions::MSSQL < Msf::Sessions::Sql56attr_reader :framework78def initialize(rstream, opts = {})9@client = opts.fetch(:client)10self.platform = opts.fetch(:platform)11self.arch = opts.fetch(:arch)12self.console = ::Rex::Post::MSSQL::Ui::Console.new(self, opts)1314super(rstream, opts)15end1617def bootstrap(datastore = {}, handler = nil)18session = self19session.init_ui(user_input, user_output)2021@info = "MSSQL #{datastore['USERNAME']} @ #{@peer_info}"22end2324# Returns the type of session.25#26def self.type27'mssql'28end2930def self.can_cleanup_files31false32end3334#35# Returns the session description.36#37def desc38'MSSQL'39end40end414243