● 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 / evasion / encoders.go
← Back to directory
30 lines · 582 B
Raw
1package evasion
2
3import (
4 "encoding/base64"
5 "encoding/hex"
6)
7
8func EncodeBase64(data []byte) string {
9 return base64.StdEncoding.EncodeToString(data)
10}
11
12func DecodeBase64(s string) ([]byte, error) {
13 return base64.StdEncoding.DecodeString(s)
14}
15
16func EncodeBase64URL(data []byte) string {
17 return base64.URLEncoding.EncodeToString(data)
18}
19
20func DecodeBase64URL(s string) ([]byte, error) {
21 return base64.URLEncoding.DecodeString(s)
22}
23
24func EncodeHex(data []byte) string {
25 return hex.EncodeToString(data)
26}
27
28func DecodeHex(s string) ([]byte, error) {
29 return hex.DecodeString(s)
30}