metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#check_for_listener

Method for checking if a listener for a given IP and port is present
will return true if a conflict exists and false if none is found

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/exploits/windows/local/persistence.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/exploits/windows/local/persistence.rbgit commit -m "better docs for MetasploitModule#check_for_listener"


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

hub pull-request


# Celebrate!