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

Function rc4decode

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

Source from the content-addressed store, hash-verified

17}
18
19func rc4decode(shellcode []byte, key []byte) []byte {
20 cipher, err := rc4.NewCipher(key)
21 if err != nil {
22 log.Println(err)
23 }
24 decryptedBytes := make([]byte, len(shellcode))
25 cipher.XORKeyStream(decryptedBytes, shellcode)
26 return decryptedBytes
27}
28
29func main(){
30 key := []byte("TideSec")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected