● Notice //GitHub (@shehzade) is temporarily suspended pending an automated false-positive review. All tools are hosted on this Code Mirror and available on request (contact); GitHub links will return once reinstated.
PUBLIC MIRRORGo v1.0

Multi-protocol network egress assessment and DLP verification framework featuring automated L4 sweeps, corporate proxy traversal, and covert protocol smuggling across 20+ channels.

$ git clone https://shehzade.io/repos/contraband.git Copy
Source ZIP (1.93 MB)
Code 174 Commits 1
contraband / pkg / client / proxy / auth_basic.go
← Back to directory
11 lines · 292 B
Raw
1package proxy
2
3import (
4 "encoding/base64"
5)
6
7// BuildBasicAuthHeader formats an RFC 7617 Basic Proxy-Authorization header.
8func BuildBasicAuthHeader(username, password string) string {
9 creds := username + ":" + password
10 return "Basic " + base64.StdEncoding.EncodeToString([]byte(creds))
11}