Method: Rex::Post::Meterpreter::ClientCore#shutdown
- Defined in:
 - lib/rex/post/meterpreter/client_core.rb
 
#shutdown ⇒ Object
Shuts the session down
      333 334 335 336 337 338 339 340 341 342 343 344 345 346 347  | 
    
      # File 'lib/rex/post/meterpreter/client_core.rb', line 333 def shutdown request = Packet.create_request('core_shutdown') # If this is a standard TCP session, send and return if not client.passive_service self.client.send_packet(request) else # If this is a HTTP/HTTPS session we need to wait a few seconds # otherwise the session may not receive the command before we # kill the handler. This could be improved by the server side # sending a reply to shutdown first. self.client.send_packet_wait_response(request, 10) end true end  |