Class: Msf::Plugin::IPSFilter::IPSSocketEventHandler

Inherits:
Object
  • Object
show all
Includes:
Rex::Socket::Comm::Events
Defined in:
plugins/ips_filter.rb

Overview

This class implements a socket communication logger

Instance Method Summary collapse

Instance Method Details

#on_before_socket_create(comm, param) ⇒ Object


26
27
# File 'plugins/ips_filter.rb', line 26

def on_before_socket_create(comm, param)
end

#on_socket_created(comm, sock, param) ⇒ Object


29
30
31
32
33
34
35
# File 'plugins/ips_filter.rb', line 29

def on_socket_created(comm, sock, param)
  # Sockets created by the exploit have MsfExploit set and MsfPayload not set
  if (param.context['MsfExploit'] and (! param.context['MsfPayload'] ))
    sock.extend(IPSFilter::SocketTracer)
    sock.context = param.context
  end
end