cilangzzz / ciproxy

use tcp implement, not http server, base on golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool




CiProxy

Introduce
use tcp implement, not http server, base on golang

golang request open sourse (shields.io) github (shields.io) gitee (shields.io) git (shields.io) Mit: license (shields.io) img

Install(安装)

go get github.com/opencvlzg/ciproxy

Example(示例)

(internal implement) ciproxy-master/cmd

go build ./cmd/proxyType/
./main -ip -port -method 

(external implement) ciproxy-example/cmd

External-Usage(使用)

// main implement a simple httpsproxy(only https)

package main

import (
	"flag"
	"github.com/opencvlzg/ciproxy/constants/proxyMethod"
	"github.com/opencvlzg/ciproxy/proxyServer/middleHandle"
	"github.com/opencvlzg/ciproxy/proxyServer/serve"
	"net"
)

func main() {
	ip := flag.String("ip", "127.0.0.1", "Server Ip Address")
	port := flag.String("port", "6677", "Server Port")
	method := flag.String("method", proxyMethod.HttpsProxy, "Server METHOD NORMAL,TUNNEL, SNIFF")
	protocol := flag.String("protocol", "TCP", "Connect Protocol")
	logPath := flag.String("log", "log/proxy.log", "log file path")
	flag.Parse()
	// proxyServer := ciproxy.NewProxyServe()
	proxyServe := serve.ProxyServe{
		Ip:       *ip,
		Port:     *port,
		Method:   *method,
		Protocol: *protocol,
		LogPath:  *logPath,
	}
	middleHandle.Add(func(client net.Conn, target net.Conn) {
		// Todo Some regular u want implement
	})
	proxyServe.Start()
}

HttpProxy

HttpsProxy

HttpsSniffProxy

TunnelProxy

Directory(目录说明)

Contact(联系)

ciproxy communicate

google email cilanguser@gmail.com

Support(支持)

CiPorxy遵循Mit开源协议,如果你想请支持,可以点我

About

use tcp implement, not http server, base on golang

License:Apache License 2.0


Languages

Language:Go 100.0%