lu4p
aaced9c5cd
small fixes
5 years ago
Pagran
189ee23788
Fix encryptChunks
5 years ago
Pagran
5aad777a19
Small refactoring
5 years ago
Pagran
6ae6b50308
+ Rename getReversedOperator and genRandOperator
...
+ Small refactoring
5 years ago
Pagran
bc0bd853dd
Add operator randomizer for xor_seed obfuscator
5 years ago
Pagran
b52e55e574
Add operator randomizer for xor_shuffle obfuscator
5 years ago
Pagran
5b17f66855
Add operator randomizer for split obfuscator
5 years ago
Pagran
40c0325d12
Add operator randomizer for swap obfuscator
5 years ago
Pagran
19afa8f8d0
Add operator randomizer for xor obfuscator
5 years ago
pagran
2eba744530
Add XorSeed obfuscator ( #86 )
...
Co-authored-by: lu4p <lu4p@pm.me>
5 years ago
pagran
9c25f4c2b2
Add xorShuffle obfuscator ( #85 )
...
* Refactoring
* Rename Xor2 to XorShuffle
5 years ago
lu4p
0dd97ed0fa
math/rand.Intn(n) generates a `value`, ( #83 )
...
which has the following properties `value >=0 && value < n`.
I previously thought it was `value >=0 && value <= n`.
5 years ago
pagran
c51e08ef37
Add split obfuscator ( #81 )
5 years ago
pagran
c2079ac0a1
Add test for literal obfuscators ( #80 )
...
* Combine literals-all-obfuscators.txt nad literals.txt
Rewrite literals.txt logic
* Remove unused \s
* Refactoring and add float ast helpers
5 years ago
lu4p
5cbbac56f3
move asthelper functions to separate package ( #78 )
5 years ago
Daniel Martí
846ddb4097
internal/literals: minor adjustments to the last commits ( #77 )
...
First, unindent some of the AST code.
Second, genRandInt is unused; delete it.
Third, genRandIntn is really just mathrand.Intn. Just use it directly.
Fourth, don't use inline comments if they result in super long lines.
5 years ago
pagran
14a19b3e6b
intLiteral helper now accepts int ( #76 )
5 years ago
pagran
4b73c37ed7
Add new obfuscators for literals - swap ( #74 )
...
Implement swap obfuscator
5 years ago
lu4p
50d24cdf51
Add float, int, and boolean literal obfuscation.
...
Add ast helper functions to reduce ast footprint.
Add binsubfloat and binsubint functions for testing.
Fixes #55 .
5 years ago
lu4p
705f9d3a28
Fix byte array and untyped constant obfuscation.
...
Byte arrays were previously,
obfuscated as byte slices.
Untyped constants are now skipped,
because they cannot be replaced with typed variables.
5 years ago
lu4p
d48bdbadae
Use XOR instead of AES for literal obfuscation.
...
Implement a literal obfuscator interface,
to allow the easy addition of new encodings.
Add literal obfuscation for byte literals.
Choose a random obfuscator on literal obfuscation,
useful when multiple obfuscators are implemented.
Fixes #62
5 years ago