Obfuscation strings in golang code
You can install monmind by running:
go get github.com/CRYBOII/monmind
Once monmind is installed go to workspace folder and create .ob file,
and slap your strings in there on different lines.
now you can run this command
monmind
this should be generate the file obfuscated.go
all encoded strings will be contians in that file
in .ob file
this is secret
this is super secret
when we run monmind
obfuscated file is generated
package main
import (
"unsafe"
)
func eax() uint8 {
return uint8(unsafe.Sizeof(true))
}
// [ YLM01E5A6 ] ====> this is secret
func YLM01E5A6() string {
return string(
[]byte{
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax() ^ eax()) << eax() << eax(),
((eax()<<eax()^eax())<<eax()<<eax() ^ eax()) << eax() << eax() << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
eax() << eax() << eax() << eax() << eax() << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
eax() << eax() << eax() << eax() << eax() << eax(),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax()<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()) << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax()<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax() ^ eax()) << eax() << eax(),
},
)
}
// [ YLMEECE42 ] ====> this is super secret
func YLMEECE42() string {
return string(
[]byte{
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax() ^ eax()) << eax() << eax(),
((eax()<<eax()^eax())<<eax()<<eax() ^ eax()) << eax() << eax() << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
eax() << eax() << eax() << eax() << eax() << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
eax() << eax() << eax() << eax() << eax() << eax(),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()^eax())<<eax()<<eax() ^ eax()),
((eax()<<eax()^eax())<<eax() ^ eax()) << eax() << eax() << eax() << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax()<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()) << eax(),
eax() << eax() << eax() << eax() << eax() << eax(),
((((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax()<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()<<eax()^eax())<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax()<<eax() ^ eax()) << eax(),
(((eax()<<eax()^eax())<<eax()<<eax()<<eax()^eax())<<eax()<<eax() ^ eax()),
(((eax()<<eax()^eax())<<eax()^eax())<<eax()<<eax() ^ eax()) << eax() << eax(),
},
)
}
now you can use a obfuscated string functions like this
fmt.Println(YLMEECE42())
or with different package
fmt.Println(bar.YLMEECE42())
this is super secret
- Thanks jeromer