From e59e0b8b363d35b4f0342f8eb9ec186df8f0e372 Mon Sep 17 00:00:00 2001 From: Pagran <67878280+pagran@users.noreply.github.com> Date: Tue, 11 Aug 2020 19:15:15 +0300 Subject: [PATCH] Fix tests --- testdata/scripts/literals.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/scripts/literals.txt b/testdata/scripts/literals.txt index e999a0f..7ffb884 100644 --- a/testdata/scripts/literals.txt +++ b/testdata/scripts/literals.txt @@ -45,8 +45,8 @@ grep '^\s+\w+ := \[\.{3}\](byte|uint16|uint32|uint64)\{[0-9\s,]+\}$' .obf-src/ma # Split obfuscator. Detect decryptKey ^= i * counter grep '^\s+\w+ \^= \w+ \* \w+$' .obf-src/main/z0.go -# XorShuffle obfuscator. Detect data = append(data, x ^ y...) -grep '^\s+\w+ = append\(\w+,(\s+\w+\[\d+\]\^\w+\[\d+\],?)+\)$' .obf-src/main/z0.go +# XorShuffle obfuscator. Detect data = append(data, x (^|-|+) y...) +grep '^\s+\w+ = append\(\w+,(\s+\w+\[\d+\][\^\-+]\w+\[\d+\],?)+\)$' .obf-src/main/z0.go # XorSeed obfuscator. Detect type decFunc func(byte) decFunc grep '^\s+type \w+ func\(byte\) \w+$' .obf-src/main/z0.go