Class: Msf::Plugin::IPSFilter::IPSSocketEventHandler
- Inherits:
-
Object
- Object
- Msf::Plugin::IPSFilter::IPSSocketEventHandler
- 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
20 |
# File 'plugins/ips_filter.rb', line 20 def on_before_socket_create(comm, param); end |
#on_socket_created(_comm, sock, param) ⇒ Object
22 23 24 25 26 27 28 |
# File 'plugins/ips_filter.rb', line 22 def on_socket_created(_comm, sock, param) # Sockets created by the exploit have MsfExploit set and MsfPayload not set if (param.context['MsfExploit'] && !param.context['MsfPayload']) sock.extend(IPSFilter::SocketTracer) sock.context = param.context end end |