Categorygithub.com/jm33-m0/go-cdn2proxy
modulepackage
1.1.2
Repository: https://github.com/jm33-m0/go-cdn2proxy.git
Documentation: pkg.go.dev

# README

go-cdn2proxy

proxy your traffic through CDN using websocket

what does it do

  • you can use this as a library in your project: go get -v -u github.com/jm33-m0/go-cdn2proxy
  • simply put, go-cdn2proxy forwards your traffic through websocket, which can be implemented behind most CDNs
  • anything that supports socks5 proxy can use go-cdn2proxy

for me, i wrote this for emp3r0r

example

server

package main

import (
    "log"

    cdn2proxy "github.com/jm33-m0/go-cdn2proxy"
)

func main() {
    err := cdn2proxy.StartServer("9000", "127.0.0.1:8000", os.Stderr)
    if err != nil {
        log.Fatal(err)
    }
}

client

package main

import (
    "log"

    cdn2proxy "github.com/jm33-m0/go-cdn2proxy"
)

func main() {
    err := cdn2proxy.StartProxy("127.0.0.1:10888", "wss://example.com/ws", "socks5://127.0.0.1:1080", "https://9.9.9.9/dns-query")
    if err != nil {
        log.Fatal(err)
    }
}

thanks

# Packages

No description provided by the author

# Functions

No description provided by the author
StartProxy on client side, start a socks5 proxy url: websocket server.
StartServer start websocket server port: listen on 127.0.0.1:port destAddr: send everything here, we only want a single purpose proxy wspath: access this path to reach ws service, eg.

# Variables

No description provided by the author
use this logger.