Andrew Downing's ActionScript Obfuscator (ADASO) is a free and open source ActionScript obfuscator for Windows. It obfuscates code by renaming all of the functions and variables. Since it does not use any byte-code obfuscation, I suggest using it with another obfuscator, such as secureSWF Personal Lite Edition, which does byte-code obfuscation but not identifier renaming. (The Standard Edition also does identifier renaming but costs $100 more.)
You can download ADASO here. The executable file is at /bin/adaso.exe
. Extract all files before running it.
ADASO uses a command-line interface. The required parameters are the path of the source files and the path to output to. For example, a .bat file containing the following will read the files in the src
directory and save the files in the obf
directory:
adaso.exe \src \obf
These paths are relative to the .bat file.
You can use any of the following optional switches after the required parameters:
-exclude \file.txt
: Don't rename identifiers listed in this file. The identifiers in the file should be separated by new lines.-map \file.txt
: Save a mapping file containing the new and old identifiers' names.-opt
: Treat variables in _root with no lowercase letters as macros. This does not affect identifiers listed in the exclusion file.ADASO is a relatively basic obfuscator. If you find any bugs in it that aren't listed here, please email me using the link at my website.
var myvariable = myobj.x + ", " + myobj.y
. A workaround is to define the variable and set its initial value on different lines.If for some reason you don't like this one, here are links to other free Flash obfuscators. I have not tried any of these.
http://monokai.nl/blog/2006/08/02/actionscript-obfuscator
http://badsectoracula.com/projects/sob
http://sourceforge.net/projects/flmobf
-opt
command line switchCopyright (c) 2010 Andrew Downing
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.