Projects STRLCPY afrog Files
🤬
main
ROOT /
docs /
CONTRIBUTION.md
97 lines | UTF-8 | 2 KB

Afrog-PoC 贡献指南

为 afrog-poc 贡献 PoC 有两种方法

方法1:提交 Issues

第一步: 查找现有 PoC

第二步:编写 Issues

  • 点击 issues :ISSUES 网址

  • 然后点击右上角New Issues按钮

  • 填写title ,比如:CVE-2022-1234

  • 然后,内容填写 cve-2020-1234.yaml代码

  • 接着,label选择 afrog-poc

  • 最后,点击Submit new issue按钮

方法2:Pull Request

第一步: 查找现有 PoC

第二步:Fork 项目

点击 afrog 项目 fork 按钮

git clone https://github.com/<your-username>/afrog
cd afrog
git remote add upstream https://github.com/zan8in/afrog
  • 如果您已经fork项目,请在工作之前更新您的副本。
git remote update
git checkout master
git rebase upstream/master

第三步:创建你的 afrog branch

创建一个new branch

git checkout -b afrog_branch_name

第四步:编写和提交 PoC

  • 创建和编写你的 PoC
  • 添加到你刚刚创建的 branch
git add .
git commit -m "Added CVE-2022-1234.YAML PoC"

第五步:Push 到你的远程(forked)仓库

git push -u origin afrog_branch_name

第五步:Pull Request

  • 浏览器打开你的 Github 仓库
  • 点击 Pull Request
  • 再点击New pull request

  • compare选择你创建的新branch(下图)
  • 再点击Create pull request(下图)

  • 填写titlecontent,点击Create pull request按钮(下图)

至此,您的Pull Request已提交,等待版主审核合并。

Please wait...
Page is in error, reload to recover