Module: Msf::Exploit::KernelMode

Defined in:
lib/msf/core/exploit/kernel_mode.rb

Instance Method Summary collapse

Instance Method Details

#encode_begin(real_payload, reqs) ⇒ Object

The way that the kernel-mode mixin works is by replacing the payload to be encoded with one that encapsulates the kernel-mode payload as well.


13
14
15
16
17
18
19
# File 'lib/msf/core/exploit/kernel_mode.rb', line 13

def encode_begin(real_payload, reqs)
  super

  reqs['EncapsulationRoutine'] = Proc.new { |reqs_, raw|
    encapsulate_kernel_payload(reqs_, raw)
  }
end

#wfs_delayObject

Increase the default delay by five seconds since some kernel-mode payloads may not run immediately.


25
26
27
# File 'lib/msf/core/exploit/kernel_mode.rb', line 25

def wfs_delay
  super + 5
end