4 ms·
Don't think so. There's clearly the beginning of a while loop near the top of the obfuscated version. There's no loops at all in the 'de-obfuscated' version.
by Jeema101 4y ago
Don't think so. There's clearly the beginning of a while loop near the top of the obfuscated version. There's no loops at all in the 'de-obfuscated' version.
- bobkazamakis 4y agoThat's not generally a good enough indicator; plenty of obfuscation involves loops that otherwise aren't hit.
- enjoytheview 4y agoYeah, pretty sure that loop is to modify the lookup table for strings in runtime so you can't just statically replace it in the code, it's not strong obfuscation but in a properly deobfuscated code that loop wouldn't exist
- cocomutator 4y agoHere's GPT's own explanation what the purpose of that while loop is: --- This code uses JavaScript's `eval` function to obfuscate the code by looping over an array of strings and passing them as arguments to `eval` to create a variable. It also uses an anonymous function to obfuscate the code. The code is deobfuscated by replacing the `eval` function and the anonymous function with their respective strings.
- twic 4y agoThat explanation is also not correct! The while loop is an obfuscation gadget (of sorts), but it doesn't use eval, it uses push and shift to rotate the array. The only use of eval is 'eval("find")', which is not top grade obfuscation.
- nabakin 4y agoThe while loop does not come from the original code. Probably part of the obfuscation https://twitter.com/AlexAlexandrius/status/1617899882400083970 https://twitter.com/AlexAlexandrius/status/16178998824000839...
- deleted 4y ago[deleted]