metasploit-framework

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

Ruby

Metasploit Framework

MetasploitModule#php_reverse_shell

Issues
  - Since each command is executed in a new shell, 'cd' does nothing.
     Perhaps it should be special-cased to call chdir()
  - Tries to get around disable_functions but makes no attempts to
     circumvent safe mode.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open modules/payloads/singles/php/reverse_php.rb

Contribute

# Make a new branch

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


# Commit to git

git add modules/payloads/singles/php/reverse_php.rbgit commit -m "better docs for MetasploitModule#php_reverse_shell"


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

hub pull-request


# Celebrate!