metasploit-framework

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

Ruby

Metasploit Framework

Msf::Module::Target#initialize

Initializes an instance of a bruteforce target from the supplied
information.  The hash of options that this constructor takes is as
follows:

Platform

	The platform(s) that this target is to operate against.

SaveRegisters

	The registers that must be saved by NOP generators.

Arch

	The architectures, if any, that this target is specific to (E.g.
	ARCH_X86).

Bruteforce

	Settings specific to a target that supports brute forcing.  See the
	BruteForce class.

Ret

	The target-specific return address or addresses that will be used.

Payload

	Payload-specific options, such as append, prepend, and other values that
	can be set on a per-exploit or per-target basis.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/module/target.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Module--Target-initialize-for-pr


# Commit to git

git add lib/msf/core/module/target.rbgit commit -m "better docs for Msf::Module::Target#initialize"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Msf--Module--Target-initialize-for-pr

hub pull-request


# Celebrate!