/smartview

Restoring the original source tree of the SmartView emulators

Primary LanguageJavaScript

This repository aims to recreate the original source tree of the SmartView emulators. All code present here is 100% NOT mine.

The provided build

The provided built JavaScript code was a min.js file, obfuscated with obfuscator.io and encrypted with AES-128-CBC. You can easily decrypt it with this Linux command:

openssl aes-128-cbc -d -in <input> -out <output> -iv AB2CD182AC895CD79645BBD0AEF33365 -K CA10B9BB2906DA2166D5470ED3E180D3

There's a free deobfuscator online specifically for deobfuscating scripts obfuscated with obfuscator.io. Unfortunately, most variable names were lost during the obfuscation. This project aims to restore those variable names and make the code readable again, as well as restore the original source tree of the emulator.

Current state

Currently, the source tree is not yet perfect. The code is slightly incorrect which causes bugs in the final build. This may be fixed in the future.

Building

  1. Install Node.js and install the browserify package.
  2. Clone the repository and the submodules.
  3. Run the appropriate build script for your platform.