Giter VIP home page Giter VIP logo

encdet's Introduction

encdet

Usage

  1. 复制/config/usercfg.default.py/config/usercfg.py

  2. 修改/config/usercfg.py配置扫描参数,扫描参数配置如下:

user_cfg = {
    # 扫描过滤,支持路径和文件类型过滤
    'scan_filter': {
        # 扫描路径,不支持正则
        'scan_path':[
            '/'
        ],
        # 扫描类型,内置类型可以参照 syscfg.py
        'scan_type': [
            #'all',  # 所有文本类型,当配置该类型,将会忽略其他类型配置
            'javascript',
            'html',
            'css',
            'php'
        ]
    },

    # 扫描黑名单过滤,支持路径和正则配置,可以不配置
    'exclude_filter': {
        'exclude_path': [
            # '/tmp'
        ],
        'exclude_regex': [
            # re.compile(r'/tmp/*')
        ]
    },

    # 结果输出路径,默认为./encdet.out.csv
    # 没有该字段,也会输出到./encdet.out.csv
    'output_path': './encdet.out.csv',

    #  扫描过程中,扫描路径的排除路径,可以用于排错
    'exclude_file': './encdet.exclude.csv'
}

必须的配置只有扫描路径和扫描类型

  1. 运行扫描程序
python encdet.py scan

注意事项

  1. 因为使用了Linux内置的file命令,所以必须运行在Linux上,目前还没有Windowns的移植版本

  2. 代码仅在Python2上测试通过

encdet's People

Contributors

sharpdeep avatar

Stargazers

 avatar

Watchers

 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.