metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#configure_socket
the packet stuff was taken from the module miniupnpd_soap_bof.rb We need an unconnected socket because SSDP replies often come from a different sent port than the one we sent to. This also breaks the standard UDP mixin.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/exploits/multi/upnp/libupnp_ssdp_overflow.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-configure_socket-for-pr
# Commit to gitgit add modules/exploits/multi/upnp/libupnp_ssdp_overflow.rbgit commit -m "better docs for MetasploitModule#configure_socket"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-configure_socket-for-pr
hub pull-request
# Celebrate!