Run-only applescript reversing. This is disassembler for that.
To write disassembler I reversed vm routine, file format (fas, uas) in applescript binary.
git clone https://github.com/Jinmo/applescript-disassembler
cd applescript-disassembler
chmod +x disassembler.py
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.
python -m engine.fasparser <<scpt file>>
WARNING: It may have some unimplemented parts. Please make an issue for that if you liked it!