/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/msf/core/handler/generic.rb
41 строка
643 B
Spencer McIntyre
SSH session consistency with auto-platform IDing
13 ноя 2021, 00:03
13 ноя 2021, 00:03
726c5f2
Код
Авторство
О чём код?
# -*- coding: binary -*- module Msf module Handler module Generic include Msf::Handler # # Returns the handler type of none since payloads that use this handler # have no connection. # def self.handler_type 'none' end # # Returns none to indicate no connection. # def self.general_handler_type 'none' end # This is necessary for find-sock style payloads. # def handler(*args) create_session(*args) Claimed end # # Always wait at least 5 seconds for this payload (due to channel delays) # def wfs_delay datastore['WfsDelay'] > 4 ? datastore['WfsDelay'] : 5 end end end end