metasploit-framework

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

Ruby

Metasploit Framework

Msf::DBManager::Import#import_file

Generic importer that automatically determines the file type being
imported.  Since this looks for vendor-specific strings in the given
file, there shouldn't be any false detections, but no guarantees.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/db_manager/import.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--DBManager--Import-import_file-for-pr


# Commit to git

git add lib/msf/core/db_manager/import.rbgit commit -m "better docs for Msf::DBManager::Import#import_file"


# 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--DBManager--Import-import_file-for-pr

hub pull-request


# Celebrate!