Coder Social home page Coder Social logo

cncs-armory-ktrimisu's Introduction

CScan

  • CScanPoc: POC 编写框架
  • pocs: POC 代码
  • vulns: 漏洞说明
  • utility: 系统功能(资产发现,资产识别等)

POC 开发环境说明

POC 现在放在 pocs 目录下,和主体框架 CScanPoc 代码分离,开发时还是使用 CScanPoc 的虚拟环境。

  1. 添加环境变量 PIPENV_VENV_IN_PROJECT=1 (比如在 ~/.bashrc 中加 export PIPENV_VENV_IN_PROJECT=1),这样虚拟环境将被安装到项目根目录 .venv 中。
  2. 重启 shell 或者运行 source ~/.bashrc
  3. 进入 CScanPoc 下运行 pipenv install --dev
  4. 运行 pipenv shell,获得的 shell 可以进行 POC 的执行测试

如果用的是 PyCharm,在开发的时候需要选择解释器为虚拟环境中的解释器 CScanPoc/CScanPoc/.venv/bin/python

静态检查工具说明

./tools/autopep8.sh pocs # 自动检查 pocs 目录下的 py 文件,修改到满足 pep8 的格式
                         # 也可以指定修复单个文件格式
./tools/autopep8.sh pocs/cms/CmsEasy/CmsEasy0001.py
./tools/pylint.sh pocs # 使用 pylint 对 pocs 下的 py 文件进行静态分析找到错误
                       # 也可以指定单个文件
./tools/pylint.sh pocs/cms/CmsEasy/CmsEasy0001.py

镜像编译

./build.sh ../pocs ../strategies

得到 cscan:0.1

策略推荐:

docker run --rm cscan:0.1 strategy_exe.py \
       --recommend \
       -u http://www.baidu.com  \
       --component-property CmsEasy.deploy_path=/tmp

策略执行

docker run cscan:0.1 strategy_exe.py \
       -u http://www.baidu.com \
       --strategy-id simple-component-scan-strategy \
       --component CmsEasy \
       --component-property CmsEasy.deploy_path=/tmp \
       --json-output

cncs-armory-ktrimisu's People

Contributors

47bwy avatar ac0d3r avatar ho1mium avatar lotuc avatar tezukanice avatar wx-chevalier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.