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)

Source | Google | Stack overflow

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 branch

git checkout -b -your-name--update-docs-MetasploitModule-parse_computer_info-for-pr


# Commit to git

git add modules/auxiliary/scanner/sap/sap_hostctrl_getcomputersystem.rbgit commit -m "better docs for MetasploitModule#parse_computer_info"


# Open pull request

gem 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!