All Projects → vadimi → go-http-ntlm

vadimi / go-http-ntlm

Licence: MIT license
NTLM authenticated http request for Go

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to go-http-ntlm

burp-ntlm-challenge-decoder
Burp extension to decode NTLM SSP headers and extract domain/host information
Stars: ✭ 28 (-34.88%)
Mutual labels:  ntlm
mail
golang send mail with SSL,TLS and support NTLM,LOGIN,PLAIN AUTH...
Stars: ✭ 29 (-32.56%)
Mutual labels:  ntlm
PwnedPasswordsChecker
Search (offline) if your password (NTLM or SHA1 format) has been leaked (HIBP passwords list v8)
Stars: ✭ 52 (+20.93%)
Mutual labels:  ntlm
nsspi
A C# / .Net interface to the Win32 SSPI authentication API
Stars: ✭ 60 (+39.53%)
Mutual labels:  ntlm
requests auth
Authentication classes to be used with requests
Stars: ✭ 28 (-34.88%)
Mutual labels:  ntlm
GetNTLMChallenge
Obtains a crackable hash for the current user account
Stars: ✭ 23 (-46.51%)
Mutual labels:  ntlm
nginx-ntlm-module
A nginx module to allow proxying requests with NTLM Authentication.
Stars: ✭ 32 (-25.58%)
Mutual labels:  ntlm
NTLM-SSP
本项目是一篇NTLM中高级进阶进阶文章,后续我也会在Github和Gitbook对此文进行持续性的更新NTLM以及常见的协议中高级进阶并计划开源部分协议调试工具,望各位issue勘误。
Stars: ✭ 97 (+125.58%)
Mutual labels:  ntlm
active-directory-integration2
WordPress plug-in "Next Active Directory Integration"
Stars: ✭ 51 (+18.6%)
Mutual labels:  ntlm
WatchAD
AD Security Intrusion Detection System
Stars: ✭ 967 (+2148.84%)
Mutual labels:  ntlm
php-ntlm
Message encoder/decoder and password hasher for the NTLM authentication protocol
Stars: ✭ 14 (-67.44%)
Mutual labels:  ntlm
proxyplease
Cross-platform proxy selection with optional native authentication negotiation
Stars: ✭ 37 (-13.95%)
Mutual labels:  ntlm

go-http-ntlm

go-http-ntlm is a Go package that contains NTLM transport (http.RoundTripper implementation) for http.Client to make NTLM auth protected http requests.

Usage example

package main

import (
    "io/ioutil"
    "log"
    "net/http"
    "strings"

    "github.com/vadimi/go-http-ntlm/v2"
)

func main() {

    // configure http client
    client := http.Client{
        Transport: &httpntlm.NtlmTransport{
            Domain:   "mydomain",
            User:     "testuser",
            Password: "fish",
            // Configure RoundTripper if necessary, otherwise DefaultTransport is used
            RoundTripper: &http.Transport{
                // provide tls config
                TLSClientConfig: &tls.Config{},
                // other properties RoundTripper, see http.DefaultTransport
            },
        },
    }

    req, err := http.NewRequest("GET", "http://server/ntlm-auth-resource", strings.NewReader(""))
    resp, err := client.Do(req)

    if err != nil {
        log.Fatal(err)
    }

    defer func() {
        err := resp.Body.Close()
        if err != nil {
            log.Fatal(err)
        }
    }()

    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        log.Fatal(err)
    }

    log.Println(body)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].