rapid7 / metasploit-payloads

Unified repository for different Metasploit Framework payloads
Other
1.72k stars 668 forks source link

Add unit tests to PHP Meterpreter #668

Open adfoster-r7 opened 1 year ago

adfoster-r7 commented 1 year ago

Let's add unit tests to the PHP Meterpreter, similar to the recent addition of the Python Meterpreter testsuite - https://github.com/rapid7/metasploit-payloads/pull/651

Importantly: The test suite should work with all versions of PHP to 5.x. For instance, if using PHPUnit it should be possible to use the runner on older versions of PHP. It was for this reason we used Python's inbuilt unittest test framework.

Usage of PHPUnit may or may not be viable - supported versions: https://phpunit.de/supported-versions.html

image