DEV Community

Cover image for AutoIt Obfuscator integration with SciTE Script Editor
Bartosz Wójcik for PELock LLC

Posted on

AutoIt Obfuscator integration with SciTE Script Editor

I've added integration between AutoIt Obfuscator and the obfuscation workflow in AutoIt's default editor — SciTE.

Just install AutoIt Obfuscator using the installer, and the editor configuration file at %USERPROFILE%\SciTEUser.properties will be updated automatically.

This adds a new Obfuscate command to the editor's Tools menu, so you can obfuscate *.au3 scripts with a single click.

AutoIt Obfuscation integration with default AutoIt language SciTE Script Editor

Configuration changes

The following block is appended to the configuration file:

### AutoItObfuscator Section Start

#
# Menu extension for AutoIt Obfuscator for SciTE editor
#
# 1. Open SciTE editor
# 2. Click menu -> Options -> Open User Options File
# 3. Paste the content of this script into the user options file
# 4. Setup extra obfuscation parameters, activation key, and output file path
# 5. Save file
# 6. You will find a new "Obfuscate" command in Tools menu for *.au3 files
#
# https://www.pelock.com/products/autoit-obfuscator
# https://www.scintilla.org/SciTEDoc.html
#

# Activate the obfuscator menu for *.au3 files only (* for all files)
command.name.11.*.au3=Obfuscate

# Setup your obfuscation parameters, enter your activation key, output path etc.

#
# overwrite existing file (SciTE will refresh the view, you can always undo with CTRL-Z)
#
command.11.*.au3=C:\Program Files (x86)\AutoIt Obfuscator\AutoItObfuscatorCmd.exe /InputFilePath="$(FilePath)" /OutputFilePath="$(FilePath)"
#command.11.*.au3=C:\Program Files (x86)\AutoIt Obfuscator\AutoItObfuscatorCmd.exe /ActivationCode="ENTER-YOUR-CODE-HERE" /InputFilePath="$(FilePath)" /OutputFilePath="$(FilePath)"

#
# create a new file
#
#command.11.*.au3=C:\Program Files (x86)\AutoIt Obfuscator\AutoItObfuscatorCmd.exe /InputFilePath="$(FilePath)" /OutputFilePath="$(FilePath).obfuscated.au3"

# Save any script before obfuscation (1 - save before obfuscation, 2 - use previously saved file content)
command.save.before.11.*.au3=1

# Specify the subsystem (0 Console, 2 = Windows GUI Executable / Web Link)
command.subsystem.11.*.au3=0

# Obfuscation command shortcut
command.shortcut.11.*.au3=Ctrl+F12

### AutoItObfuscator Section End
Enter fullscreen mode Exit fullscreen mode

Customization

You can edit these settings directly in SciTE via Options → Open User Options File — for example, to change obfuscation parameters or add your activation key.

If you're curious about the available configuration options (I doubt many are, but still), check the official SciTE project documentation.

Top comments (0)