metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Rex::Proto::Http::Server#add_resource
Adds a resource handler, such as one for /, which will be called whenever
the resource is requested. The ``opts'' parameter can have any of the
following:
Proc (proc) - The procedure to call when a request comes in for this resource.
LongCall (bool) - Hints to the server that this resource may have long
request processing times.Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/rex/proto/http/server.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rex--Proto--Http--Server-add_resource-for-pr
# Commit to gitgit add lib/rex/proto/http/server.rbgit commit -m "better docs for Rex::Proto::Http::Server#add_resource"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rex--Proto--Http--Server-add_resource-for-pr
hub pull-request
# Celebrate!