decalage2 / ViperMonkey

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

Python3 compatibility #85

Open zaddach opened 4 years ago

zaddach commented 4 years ago

Hi,

I've started a first attempt at Python3 compatibility for ViperMonkey. It's running currently working with one test document (.doc), but I'm sure that there are some strings I haven't converted to bytes if you use different file formats (.docx, .xls, .ppt). If you would rather have this in a separate branch (e.g., python3), I can re-create the PR against that branch.

Addresses #69.

decalage2 commented 4 years ago

Thanks a lot Jonas. Looking at the changes, they may break python 2 compatibility. So yes, please use a separate python3 branch so that we can work on it while the master branch still runs on python 2.

reneleonhardt commented 1 year ago

Thank you @zaddach for your work! @decalage2 what is missing to switch to Python3? Dependent libraries would like to update ;)