metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Rex::Payloads::Win32::Kernel.construct

Constructs a kernel-mode payload using the supplied options.  The options
can be:

Recovery      : The recovery method to use, such as 'spin'.
Stager        : The stager method to use, such as 'sud_syscall_hook'.
RecoveryStub  : The recovery stub that should be used, if any.
UserModeStub  : The user-mode payload to execute, if any.
KernelModeStub: The kernel-mode payload to execute, if any.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/rex/payloads/win32/kernel.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rex--Payloads--Win32--Kernel-construct-for-pr


# Commit to git

git add lib/rex/payloads/win32/kernel.rbgit commit -m "better docs for Rex::Payloads::Win32::Kernel.construct"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rex--Payloads--Win32--Kernel-construct-for-pr

hub pull-request


# Celebrate!