decalage2 / ViperMonkey

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

[FIX] vm not found issue when calling vmonkey with -e argument #104

Open whikernel opened 3 years ago

whikernel commented 3 years ago

Hi !

Calling vmonkey with the -e argument to evaluate and deobfuscate results as followed vmonkey -e file.virus results in NameError: global name 'vm' is not defined.

Line 1652 of file vmonkey.py is making reference to vm without initializing it. This should correct it.