decalage2 / ViperMonkey

A VBA parser and emulation engine to analyze malicious macros.
1.05k stars 186 forks source link

Missing utf-8 shebang in vipermonkey/core/vba_library.py #95

Closed Te-k closed 4 years ago

Te-k commented 4 years ago

Describe the bug

Running last ViperMonkey commit with cpython :

> vmonkey FILE
SyntaxError: Non-ASCII character '\xc3' in file/ViperMonkey/vipermonkey/core/vba_library.py on line 145, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

To Reproduce

Fix

Just add #-*- coding: utf-8 -*- in vipermonkey/core/vba_library.py

decalage2 commented 4 years ago

I merged many commits from Kirk Sayre's fork, the UTF-8 characters are now gone. But just in case, I will add the encoding declaration.