metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Simple::Exploit.exploit_simple
Wraps the exploitation process in a simple single method. The options hash can have the following values passed in it: Encoder The encoder module that should be used. Payload The payload module name that should be used. Target The selected target index. Nop The NOP generator that should be used in preference. OptionStr A string of comma separated option values that should be imported into the datastore. Options A hash of values to be imported directly into the datastore. LocalInput The local input handle that data can be read in from. LocalOutput The local output through which data can be displayed. RunAsJob Whether or not the exploit should be run in the context of a background job.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/base/simple/exploit.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Simple--Exploit-exploit_simple-for-pr
# Commit to gitgit add lib/msf/base/simple/exploit.rbgit commit -m "better docs for Msf::Simple::Exploit.exploit_simple"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Simple--Exploit-exploit_simple-for-pr
hub pull-request
# Celebrate!