[SHEHZADE//ABDULLAH ANSARI]
Red Team Consultant @ Google | MS in Cybersecurity @ NYU
OPEN SOURCEGo 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://github.com/shehzade/contraband.git
Copy
GitHub Repo ↗
| 1 | package evasion |
| 2 | |
| 3 | import ( |
| 4 | "encoding/base64" |
| 5 | "encoding/hex" |
| 6 | ) |
| 7 | |
| 8 | func EncodeBase64(data []byte) string { |
| 9 | return base64.StdEncoding.EncodeToString(data) |
| 10 | } |
| 11 | |
| 12 | func DecodeBase64(s string) ([]byte, error) { |
| 13 | return base64.StdEncoding.DecodeString(s) |
| 14 | } |
| 15 | |
| 16 | func EncodeBase64URL(data []byte) string { |
| 17 | return base64.URLEncoding.EncodeToString(data) |
| 18 | } |
| 19 | |
| 20 | func DecodeBase64URL(s string) ([]byte, error) { |
| 21 | return base64.URLEncoding.DecodeString(s) |
| 22 | } |
| 23 | |
| 24 | func EncodeHex(data []byte) string { |
| 25 | return hex.EncodeToString(data) |
| 26 | } |
| 27 | |
| 28 | func DecodeHex(s string) ([]byte, error) { |
| 29 | return hex.DecodeString(s) |
| 30 | } |