Class: FIDIUS::PacketLogger::MySocketEventHandler

Inherits:
Object
  • Object
show all
Includes:
Rex::Socket::Comm::Events
Defined in:
lib/msf-plugins/evasiondb.rb

Instance Method Summary collapse

Constructor Details

#initializeMySocketEventHandler

Returns a new instance of MySocketEventHandler.



294
295
296
# File 'lib/msf-plugins/evasiondb.rb', line 294

def initialize

end

Instance Method Details

#on_before_socket_create(comm, param) ⇒ Object



298
299
# File 'lib/msf-plugins/evasiondb.rb', line 298

def on_before_socket_create(comm, param)
end

#on_socket_created(comm, sock, param) ⇒ Object



301
302
303
304
305
306
# File 'lib/msf-plugins/evasiondb.rb', line 301

def on_socket_created(comm, sock, param)
 sock.extend(FIDIUS::SocketTracer)
 sock.context = param.context
 sock.params = param
 sock.initlog
end