metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#check_file_exists
This function will check if it can find the program executable from the path it found from the registry. Permissions might affect if it detects the executable but it should be otherwise fairly reliable.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/post/windows/gather/enum_muicache.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-check_file_exists-for-pr
# Commit to gitgit add modules/post/windows/gather/enum_muicache.rbgit commit -m "better docs for MetasploitModule#check_file_exists"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-check_file_exists-for-pr
hub pull-request
# Celebrate!