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

Function Xor

Go_Windows_API/01-CreateFiber/main.go:17–29  ·  view source on GitHub ↗
(src string)

Source from the content-addressed store, hash-verified

15)
16
17func Xor(src string) string {
18 var XorKey = []byte{0x74, 0x69, 0x64, 0x65, 0x62, 0x79, 0x70, 0x61, 0x73, 0x73} //tidesec
19 var result string
20 var s int64
21 j := 0
22 bt := []rune(src)
23 for i := 0; i < len(src)/2; i++ {
24 s, _ = strconv.ParseInt(string(bt[i*2:i*2+2]), 16, 0)
25 result = result + string(byte(s)^XorKey[j])
26 j = (j + 1) % 10
27 }
28 return result
29}
30
31
32func main() {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected