Giter Site home page Giter Site logo

radar's Introduction

radar

一个基于正则匹配的简易代码敏感函数与关键字查找脚本

  • 基于可配置的 json 文件规则
  • 目前仅有 java 语言规则
  • 可用作 Webshell 查找和快速代码审计辅助

使用方法:

> python radar.py -h

usage: radar.py [-h] [-d DST] [-c LANGUAGE] [-e EXT] [-r RULE]
                [-w [file_path]] [-n]

optional arguments:
  -h, --help      show this help message and exit
  -d DST          Directory or Single File Path
  -c LANGUAGE     code language rule,such as[common,java], default: [java]
  -e EXT          file extension, default: [all] or set [jsp,jspx,java]
  -r RULE         rules path, default: [rules.json]
  -w [file_path]  set result save path, default:[results_datetime.txt]
  -n, --no-print  don't print the result

使用示例:

# 检查单个文件
python radar.py -c java -d /code/webshell.jsp

# 检查文件夹下后缀为 jsp jspx java 的文件
python radar.py -c java -e jsp,jspx,java -d /code/for/check

使用截图:

example

radar's People

Contributors

landgrey avatar

Watchers

James Cloos 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.