/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
modules/post/multi/general/close.rb
31 строка
860 B
bcoles
modules/post: Resolve RuboCop violations and typos
13 май 2025, 02:23
Не верифицирован
13 май 2025, 02:23
81a4053
Код
Авторство
О чём код?
## # This module requires Metasploit: https://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Post def initialize(info = {}) super( update_info( info, 'Name' => 'Multi Generic Operating System Session Close', 'Description' => %q{This module closes the specified session. This can be useful as a finisher for automation tasks.}, 'License' => MSF_LICENSE, 'Author' => [ 'hdm' ], 'Platform' => %w[linux osx unix win], 'SessionTypes' => [ 'shell', 'meterpreter' ], 'Notes' => { 'Stability' => [CRASH_SERVICE_DOWN], 'SideEffects' => [], 'Reliability' => [] } ) ) end def run print_status("Closing session #{session.inspect}...") session.kill end end