metasploit-framework

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

Ruby

Metasploit Framework

Msf::Auxiliary::Nmap#nmap_validate_rports

Validates the correctness of ports passed to nmap's -p
option. Note that this will not validate named ports (like
'http'), nor will it validate when brackets are specified.
The acceptable formats for this is:

80
80-90
22,23
U:53,T:80
and combinations thereof.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/auxiliary/nmap.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--Auxiliary--Nmap-nmap_validate_rports-for-pr


# Commit to git

git add lib/msf/core/auxiliary/nmap.rbgit commit -m "better docs for Msf::Auxiliary::Nmap#nmap_validate_rports"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--Auxiliary--Nmap-nmap_validate_rports-for-pr

hub pull-request


# Celebrate!