metasploit-framework

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

Ruby

Metasploit Framework

Metasploit::Framework::Ftp::Client#send_cmd_data

This method transmits the command in args and receives / uploads DATA via data channel
For commands not needing data, it will fall through to the original send_cmd

For commands that send data only, the return will be the server response.
For commands returning both data and a server response, an array will be returned.

NOTE: This function always waits for a response from the server.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/metasploit/framework/ftp/client.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Metasploit--Framework--Ftp--Client-send_cmd_data-for-pr


# Commit to git

git add lib/metasploit/framework/ftp/client.rbgit commit -m "better docs for Metasploit::Framework::Ftp::Client#send_cmd_data"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Metasploit--Framework--Ftp--Client-send_cmd_data-for-pr

hub pull-request


# Celebrate!