Git Product home page Git Product logo

http-sql-packet's Introduction

##goproxy-packet

通过tcp连接,然后解析packet内容。解析协议 http、oracle、mysql,redis请求packet,可以用于sql审计、packet内容防火墙

##Examples

bind: 0.0.0.0:5678
wait_queue_len: 100
max_conn: 50
timeout: 60 #连接时长
failover: 3 #负载均衡尝试连接次数
type: "mysql" #mysql redis http oracle
stats: 0.0.0.0:8090
backend:
    - 127.0.1.1:3306
    - 127.0.1.1:3306
    - 127.0.1.1:3306

log:
    level: "info"
    path: "./logs/proxy.log"

[root@Web6 goup]# ./goup -c ./conf.yaml 
Start Proxy...
Start Successful...
2023/07/29 11:29:53 
2023/07/29 11:29:53 From client:192.168.5.254:36942 To Server:192.168.2.6:3307; Query: SET NAMES utf8
2023/07/29 11:29:59 From client:192.168.5.254:36942 To Server:192.168.2.6:3307; Quit: user quit

Server connecting num:3 
Server:127.0.1.1:3306 FailTimes:0 isUp:true

swoole and proxy swoole

[root@iZ2vc4fcja0fjd7ljf2a9cZ httpstatus]# ./httpstatus http://47.xx.xx.35

Connected to 47.xx.xx.35:80

Connected via plaintext

HTTP/1.1 200 OK
Server: nginx
Content-Type: text/html; charset=utf-8
Date: Thu, 07 Jul 2022 11:25:24 GMT
Vary: Accept-Encoding
Connection: keep-alive

Body discarded

   DNS Lookup   TCP Connection   Server Processing   Content Transfer
[       0ms  |           0ms  |              8ms  |             0ms  ]
             |                |                   |                  |
    namelookup:0ms            |                   |                  |
                        connect:0ms               |                  |
                                      starttransfer:9ms              |
                                                                 total:9ms      
[root@iZ2vc4fcja0fjd7ljf2a9cZ httpstatus]# 
[root@iZ2vc4fcja0fjd7ljf2a9cZ httpstatus]# ./httpstatus http://47.xx.xx.35:9810

Connected to 47.xxx.xx.35:9810

Connected via plaintext

HTTP/1.1 200 OK
Server: nginx
Content-Type: text/html; charset=utf-8
Date: Thu, 07 Jul 2022 11:25:25 GMT
Vary: Accept-Encoding
Connection: keep-alive

Body discarded

   DNS Lookup   TCP Connection   Server Processing   Content Transfer
[       0ms  |           0ms  |              9ms  |             0ms  ]
             |                |                   |                  |
    namelookup:0ms            |                   |                  |
                        connect:0ms               |                  |
                                      starttransfer:10ms             |
                                                                 total:10ms     

http-sql-packet's People

Contributors

xieyuhua avatar

Stargazers

 avatar kenuosec avatar

Watchers

 avatar

Forkers

kenuoseclab

http-sql-packet's Issues

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.