metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#upload_file

upload_file(remote_filepath, remote_filename, local_filedata)

remote_filepath: Remote filepath where the file will be uploaded
remote_filename: Remote name of the file to be executed ie. boot.ini
local_file: File containing the read data for the local file to be uploaded, actual open/read/close done in exploit()

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/exploits/windows/misc/ms10_104_sharepoint.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/exploits/windows/misc/ms10_104_sharepoint.rbgit commit -m "better docs for MetasploitModule#upload_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-MetasploitModule-upload_file-for-pr

hub pull-request


# Celebrate!