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

Function Xor

Go_Windows_API/02-CreateProcessWithPipe/main.go:12–24  ·  view source on GitHub ↗
(src string)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected