/applescript-disassembler

A simple run-only applescript disassembler

Primary LanguagePythonMIT LicenseMIT

AppleScript disassembler

Run-only applescript reversing. This is disassembler for that.

What is it all about?

To write disassembler I reversed vm routine, file format (fas, uas) in applescript binary.

Download

git clone https://github.com/Jinmo/applescript-disassembler
cd applescript-disassembler
chmod +x disassembler.py

Usage

Disassembler

disassembler.py <<scpt_file>>
  • disassembler.py uses fasparser.py to parse format and extract literal table & code and disassemble it.
  • fasparser.py parses compiled scpt file. <Statement> block represents command block, which is saved when -x option is not specified when the script is compiled.

File parser

python -m engine.fasparser <<scpt file>>

WARNING: It may have some unimplemented parts. Please make an issue for that if you liked it!