Module: FIDIUS::SocketTracer

Defined in:
lib/msf-plugins/evasiondb.rb

Constant Summary collapse

@@last_id =
0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context.



378
379
380
# File 'lib/msf-plugins/evasiondb.rb', line 378

def context
  @context
end

#paramsObject

Returns the value of attribute params.



378
379
380
# File 'lib/msf-plugins/evasiondb.rb', line 378

def params
  @params
end

Instance Method Details

#close(*args) ⇒ Object



393
394
395
# File 'lib/msf-plugins/evasiondb.rb', line 393

def close(*args)
 super(*args)
end

#initlogObject



397
398
# File 'lib/msf-plugins/evasiondb.rb', line 397

def initlog
end

#read(length = nil, opts = {}) ⇒ Object

Hook the read method



388
389
390
391
# File 'lib/msf-plugins/evasiondb.rb', line 388

def read(length = nil, opts = {})
 r = super(length, opts)
 return r
end

#write(buf, opts = {}) ⇒ Object

Hook the write method



381
382
383
384
385
# File 'lib/msf-plugins/evasiondb.rb', line 381

def write(buf, opts = {})
  module_instance = context['MsfExploit'] if context['MsfExploit']
  FIDIUS::PacketLogger.log_packet(self,buf,module_instance)
 super(buf, opts)
end