metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Exploit::Remote::HttpServer#start_service
:category: Exploit::Remote::TcpServer overrides This mixin starts the HTTP server listener. This routine takes a few different hash parameters: ServerHost => Override the server host to listen on (default to SRVHOST). ServerPort => Override the server port to listen on (default to SRVPORT). Uri => The URI to handle and the associated procedure to call. TODO: This must be able to take an SSL parameter and not rely completely on the datastore. (See dlink_upnp_exec_noauth)
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/exploit/http/server.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Exploit--Remote--HttpServer-start_service-for-pr
# Commit to gitgit add lib/msf/core/exploit/http/server.rbgit commit -m "better docs for Msf::Exploit::Remote::HttpServer#start_service"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Exploit--Remote--HttpServer-start_service-for-pr
hub pull-request
# Celebrate!