Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jm33-m0/go-cdn2proxy
proxy your C2 traffic through CDN using websocket
https://github.com/jm33-m0/go-cdn2proxy
c2 cdn proxy redteam-tools websocket
Last synced: 3 months ago
JSON representation
proxy your C2 traffic through CDN using websocket
- Host: GitHub
- URL: https://github.com/jm33-m0/go-cdn2proxy
- Owner: jm33-m0
- License: gpl-3.0
- Created: 2020-12-18T08:42:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-24T02:10:28.000Z (over 2 years ago)
- Last Synced: 2024-06-18T20:19:20.899Z (8 months ago)
- Topics: c2, cdn, proxy, redteam-tools, websocket
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 49
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-cdn2proxy
Proxy your traffic through content delivery network (CDN) using WebSocket## What does it do?
- Use this as a library in your project : `go get -v -u github.com/jm33-m0/go-cdn2proxy`
- It forwards your traffic through WebSocket, which can be implemented behind most CDNs
- Anything that supports SOCKS5 proxy can use go-cdn2proxyI wrote this for [emp3r0r](https://github.com/jm33-m0/emp3r0r)
## Example
### Server
```go
package mainimport (
"log"cdn2proxy "github.com/jm33-m0/go-cdn2proxy"
)func main() {
err := cdn2proxy.StartServer("9000", "127.0.0.1:8000", "ws", os.Stderr)
// `ws` is the path to your websocket server
if err != nil {
log.Fatal(err)
}
}
```### Client
```go
package mainimport (
"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")
// here `/ws` must match the one set in `StartServer`
if err != nil {
log.Fatal(err)
}
}
```## Many thanks to
[Minimal SOCKS5 Proxy Omplementation in Golang](https://gist.github.com/felix021/7f9d05fa1fd9f8f62cbce9edbdb19253)