metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

MetasploitModule#sap_instance_to_list

Converts a instance specification like "4,21-23,33" into a sorted,
unique array of valid port numbers like [4,21,22,23,33]

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open modules/auxiliary/scanner/sap/sap_router_portscanner.rb

Contribute

# Make a new branch

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


# Commit to git

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


# 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-sap_instance_to_list-for-pr

hub pull-request


# Celebrate!