/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/msf/base/sessions/postgresql.rb
44 строки
948 B
cgranleese-r7
Add arch/platform detection for Postgres
15 апр 2024, 18:04
15 апр 2024, 18:04
3f2e32e
Код
Авторство
О чём код?
# -*- coding: binary -*- require 'rex/post/postgresql' class Msf::Sessions::PostgreSQL < Msf::Sessions::Sql # @param[Rex::IO::Stream] rstream # @param [Hash] opts # @param opts [Msf::Db::PostgresPR::Connection] :client def initialize(rstream, opts = {}) @client = opts.fetch(:client) self.platform = opts.fetch(:platform) self.arch = opts.fetch(:arch) @console = ::Rex::Post::PostgreSQL::Ui::Console.new(self) super(rstream, opts) end def bootstrap(datastore = {}, handler = nil) session = self session.init_ui(user_input, user_output) @info = "PostgreSQL #{datastore['USERNAME']} @ #{@peer_info}" end # # @return [String] The type of the session # def self.type 'postgresql' end # # @return [Boolean] Can the session clean up after itself def self.can_cleanup_files false end # # @return [String] The session description # def desc 'PostgreSQL' end end