Code Monkey home page Code Monkey logo

sqli-proxy's Introduction

sqli-proxy

##0x00 介绍 sqli-proxy使用了sqlmapapi和基于tornado实现的http-proxy来探测上网的流量中是否存在SQL注入。 sqli-proxy暂时不提供Web UI。 ##0x01 配置 创建本地数据库sqli,相关数据库配置在config.py文件中,分别对sqlmapapi的server和数据进行配置,默认配置如下:

# sqlmapapi server config
SERVER = 'http://127.0.0.1:8775'

# database config
host = '127.0.0.1' 
user = 'root' 
password = ''
db_name = 'sqli'
port = 3306
charset = 'utf8'

需要安装tornado,requests等第三方python库:

pip install tornado
pip install requests
...

blacklist.txt配置忽略域名,每行一个,不允许存在空行:

www.baidu.com
www.qq.com
www.sina.cn
www.163.com

##0x02 运行 1、运行sqlmapapi和proxy.py即可:

python sqlmapapi.py -s
python proxy.py 8080 baidu.com

python proxy.py [proxy-port] [detecting-domain] 默认端口为8080,domain为空。

2、设置浏览器代理为:

127.0.0.1:[8080/你配置过的端口]

##0x03 结果 结果保存在sqli数据库中的sqlirecords表中,分为url和request_body。

sqli-proxy's People

Contributors

onesourcecat 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.