Skip to content

superpb9/go-proxy-aware-sspi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-proxy-aware-sspi

A simple Go module for transparent Windows proxy authentication calling SSPI, similar to curl's "-U :" feature.

Installation

go get github.com/superpb9/go-proxy-aware-sspi

Features

  • Transparent Windows proxy authentication using SSPI
  • No explicit credentials required (uses current Windows user context), similar to curl's "-U :" functionality
  • For study/researching purpose, currently implementing websocket connection as an example

Usage Example

package main

import (
    "log"
    "github.com/superpb9/go-proxy-aware-sspi/wsconnect"
)

func main() {
    websocketURL := "wss://example.com/websocket"
    proxyURL := "http://proxy.example.com:8080"
    
    // Connect through proxy using current Windows user credentials
    conn, err := wsconnect.Connect(websocketURL, proxyURL)
    if err != nil {
        log.Fatal(err)
    }
    defer conn.Close()

    // Use websocket connection...
}

Requirements

  • Windows operating system
  • A proxy with NTLM authentication support
  • Go 1.21 or later

Dependencies

  • github.com/alexbrainman/sspi/negotiate
  • github.com/gorilla/websocket

License

MIT License

About

A simple Go module for transparent Windows proxy authentication using SSPI credentials, similar to curl's "-U :" feature.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages