vba-obfuscator icon indicating copy to clipboard operation
vba-obfuscator copied to clipboard

Syntax error when macro contains #

Open cozybear-dev opened this issue 5 years ago • 1 comments

Hi guys,

First of all, awesome project! I'm currently using it to setup a USB campaign for a customer. I encountered a small bug that crashes the macro and creates a syntax error. It happens when you have a macro that contains a hashtag (#).

To reproduce the issue you could use this nice macro from Outflank: https://github.com/outflanknl/Scripts/blob/master/AMSIbypasses.vba

I solved it by simply using the deobfuscated string for that part of the code, since I did not want too much time on debugging the code. Thought it would be good to report this issue to you anyways, just so you know.

cozybear-dev avatar Jun 07 '19 07:06 cozybear-dev

Also other thing I forgot to mention, it might be good to whitelist some Sub names like autonew or autoopen. When you obfuscate them, it won't work as the user intended to. Did that manually myself, but would be nice to implement in your tool.

Here some related docs: https://docs.microsoft.com/en-us/office/vba/word/concepts/customizing-word/auto-macros

cozybear-dev avatar Jun 07 '19 07:06 cozybear-dev