This is a very simple program that takes a javscript program, and renames variables sharing the same name, but not representing the same variables into unique names.
This is a common obfuscation pattern in CTFs, and this is my motivation for creating it.
The idea is based upon the issue submitted by KOLANICH @ open-source-ideas/open-source-ideas.
- First, validate the input with ESPrima.
- Create a span around every character, and allow the user to click on a character to rename the variable under the cursor, and all references to that variable.
- Regen the code, and show that.
- Repeast 2. until satisfied, and click generate new code.