unixpickle / gobfuscate

Obfuscate Go binaries and packages
BSD 2-Clause "Simplified" License
1.45k stars 157 forks source link

invalid identifier "_" #20

Closed CaledoniaProject closed 5 years ago

CaledoniaProject commented 5 years ago

Not sure what this means,

Renamed 1 occurrence in 1 file in 1 package.
Renamed 5 occurrences in 2 files in 1 package.
Failed to obfuscate symbols: top-level renaming: -from: invalid identifier "_"

Can you help?

unixpickle commented 5 years ago

Interesting. Is this on an open source repo, and/or could you try to isolate the culprit code file and post it here?

CaledoniaProject commented 5 years ago

-verbose does not add anything useful, how can I do that?

unixpickle commented 5 years ago

I would try a manual search process, e.g. continually reduce the size of the project you are obfuscating by deleting code and replacing it with filler, until you have a minimal reproduction.

tggo commented 4 years ago

if found this issue in pkg: golang/sys/unix/ztypes_linux_amd64.go

type _Gid_t uint32

CaledoniaProject commented 4 years ago

@tggo gobfuscate does not support the _ Type syntax as well, if you have time to fix it :-)

func xxx(proto int, _ Type, b []byte) (xxx, xxx)