MCPcopy Create free account
hub / github.com/TideSec/GoBypassAV / rc4encode

Function rc4encode

Encryption/RC4_code/main.go:9–17  ·  view source on GitHub ↗
(shellcode []byte, key []byte)

Source from the content-addressed store, hash-verified

7)
8
9func rc4encode(shellcode []byte, key []byte) []byte {
10 cipher, err := rc4.NewCipher(key)
11 if err != nil {
12
13 }
14 encryptedBytes := make([]byte, len(shellcode))
15 cipher.XORKeyStream(encryptedBytes, shellcode)
16 return encryptedBytes
17}
18
19func rc4decode(shellcode []byte, key []byte) []byte {
20 cipher, err := rc4.NewCipher(key)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected