Giter Site home page Giter Site logo

cidemo's Introduction

CIDemo

请使用:Windows 10JDK8,在MacLinux下可能报错

Q:这是什么?

A:为了配合CodeInspector自动化代码审计工具而编写的靶机

Q:怎么跑起来?

A:普通SpringBoot项目,Maven处理好依赖直接跑

Q:有无页面?

A:只做了个首页,页面不是重点,主要是功能测试

Q:怎样用CodeInspector检测?

A:用Maven把当前项目打包好,然后执行:java -jar CodeInspector.jar --boot SpringBoot.jar --pack org.sec.cidemo

Q:怎样看自动代码审计的结果?

A:目前只做了最简单的一种SSRF,控制台应该有这样的打印:

   _____               ____        
  /  |  |____________ /_   | ____  
 /   |  |\_  __ \__  \ |   |/    \ 
/    ^   /|  | \// __ \|   |   |  \
\____   | |__|  (____  /___|___|  /
     |__|            \/         \/ 
21:53:48 [INFO] [org.sec.Main] start code inspector
21:54:08 [INFO] [org.sec.service.DiscoveryService] discover all classes
21:54:10 [INFO] [org.sec.service.InheritanceService] build inheritance
21:54:12 [INFO] [org.sec.service.MethodCallService] get method calls in method
21:54:15 [INFO] [org.sec.service.SortService] topological sort methods
21:54:16 [INFO] [org.sec.service.DataFlowService] get data flow
21:54:32 [INFO] [org.sec.service.CallGraphService] build call graph
21:57:54 [INFO] [org.sec.service.SSRFService] analysis ssrf...
21:57:54 [INFO] [org.sec.service.SSRFService] detect ssrf: org/sec/cidemo/service/impl/SSRFServiceImpl.ssrf1

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.