[SHEHZADE//ABDULLAH ANSARI]
Red Team Consultant @ Google | MS in Cybersecurity @ NYU
● 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)
30 lines · 582 B
| 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 | } |