● 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 / stage_proxy.go
← Back to directory
21 lines · 566 B
Raw
1package client
2
3import (
4 "context"
5 "fmt"
6 "time"
7
8 "github.com/shehzade/contraband/pkg/client/proxy"
9 "github.com/shehzade/contraband/pkg/common"
10)
11
12func runStage2Proxy(ctx context.Context, cfg ClientConfig, logger common.Logger) *proxy.FallbackEngine {
13 logger.Info(fmt.Sprintf("Stage 2: Evaluating proxy traversal path (mode: %s, auth: %s)", cfg.Proxy, cfg.ProxyAuth))
14 proxyOpts := proxy.Options{
15 Mode: cfg.Proxy,
16 AuthType: proxy.AuthType(cfg.ProxyAuth),
17 Timeout: 10 * time.Second,
18 Logger: logger,
19 }
20 return proxy.NewFallbackEngine(proxyOpts)
21}