metasploit-framework

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

Ruby

Metasploit Framework

Msf::Auxiliary::Nmap#nmap_version_at_least?

Takes a version string in the form of Major.Minor and compares to
the found version. It yells at you specifically if you try to
compare a float b/c that's going to be a super common error.
Comparing an Integer is okay, though.

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_version_at_least--for-pr


# Commit to git

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


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

hub pull-request


# Celebrate!