metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#parse_computer_info
Parses an array of mProperties elements. For every mProperties element, if there is an item with mValue ITSAMComputerSystem, then collect the values for the items with mName in (Name, Hostnames, IPAdresses)
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/auxiliary/scanner/sap/sap_hostctrl_getcomputersystem.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-parse_computer_info-for-pr
# Commit to gitgit add modules/auxiliary/scanner/sap/sap_hostctrl_getcomputersystem.rbgit commit -m "better docs for MetasploitModule#parse_computer_info"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-parse_computer_info-for-pr
hub pull-request
# Celebrate!