docs/metasploit-framework.wiki/Payload-Testing.md
Payloads for Metasploit Framework can now be tested when opening pull requests. This is handled by GitHub actions within
our CI, this workflow will build the payloads using the appropriate repositories and branches. It will then run our
acceptance tests against those changes. This requires adding GitHub labels for each corresponding payload repository.
The labels will contain the payload-testing prefix, each supporting testing for an external repository:
payload-testing-branch (https://github.com/rapid7/metasploit-payloads/)payload-testing-mettle-branch (https://github.com/rapid7/mettle/)Note:
The long term aim is supporting workflow dispatches for this job, but that is currently not working as expected. So as a work-around we will need to edit the workflow locally. Once the testing has been completed ensure the following locally changes are reverted before merging.
Once the appropriate repository label is added, you will need to edit the GitHub workflow to point at the specific repository and branch you want to test. Below I will outline some changes that are required to make this work, update the following lines like so:
repository: foo-r7/metasploit-framework
ref: fixes-all-the-bugs
repository: foo-r7/metasploit-payloads
ref: fixes-all-the-payload-bugs
Steps 3 and 4 outline the steps required when steps testing metasploit-payloads. The same steps apply for Mettle, the following lines would need updated: