Closed usiegl00 closed 3 years ago
When obfuscating strings inside a function that already has len or make defined as variables. Go throws the following error:
len
make
cannot call non-function len
Example code:
package main import "fmt" func main() { var len = 5 var str = "Hello, World!" fmt.Println(str[:len]) }
This issue appears in most of the golang.org/x/sys/unix/syscall code.
One solution would be to detect when the variables are in use and to use a different method to obfuscate strings in that function.
When obfuscating strings inside a function that already has
len
ormake
defined as variables. Go throws the following error:Example code:
This issue appears in most of the golang.org/x/sys/unix/syscall code.
One solution would be to detect when the variables are in use and to use a different method to obfuscate strings in that function.