BadAssMacros icon indicating copy to clipboard operation
BadAssMacros copied to clipboard

Too many line continuations erro in the VBA when copying the final vba shellcode output.

Open Neilhoman opened this issue 3 years ago • 11 comments

Great work there. Would you be able to advise, how to resolve "Too many line continuations" error in the Macrs VBA app? new to vba and trying to understand this ;) student so be gentle on me hehehe

Neilhoman avatar Aug 26 '21 14:08 Neilhoman

If you can provide an example of the command you're running it'll help with finding the cause.

BlaiseOfGlory avatar Aug 27 '21 11:08 BlaiseOfGlory

Thanks Podjackel, Here it's BadAssMacros.exe -i example.bin -w doc -p no -s classic -c 5 -o c:\temp\test.vba

thank you :)

Neilhoman avatar Aug 31 '21 11:08 Neilhoman

Hey @Neilhoman and @Inf0secRabbit ,

I got exactly the same issue. Word 2019. I am going to check with Word 2016 and Excel asap.

0xElessar avatar Sep 26 '21 11:09 0xElessar

Just checked Word 2016 and Excel 2016. The same problem.

@Inf0secRabbit what version of Office does your tool support, please?

0xElessar avatar Sep 27 '21 20:09 0xElessar

Heyy @0xElessar

Actually the issue is not really on specific versions, it will not let you insert the shellcode if it exceeds 25 lines. We are trying to solve this issue, expect the fix in the coming few weeks.

Cheers :)

Inf0secRabbit avatar Sep 28 '21 03:09 Inf0secRabbit

Cool. Thanks a lot, @Inf0secRabbit !

0xElessar avatar Sep 28 '21 11:09 0xElessar

got the same issue...

ScriptIdiot avatar Jan 06 '22 05:01 ScriptIdiot

It appears that this issue still persists unfortunately.

null-event avatar Jan 14 '22 21:01 null-event

@Inf0secRabbit you could concatenate smaller shellcode arrays rather than creating a big one that break the line continuation rule.

aress31 avatar Jul 26 '22 02:07 aress31

@Inf0secRabbit you could concatenate smaller shellcode arrays rather than creating a big one that break the line continuation rule.

Hey,

Yea we actually tried that, by storing it in multiple arrays and concatenating. But unfortunately the issue still persist and due to work we haven't been able to keep up with this :( if you have the solution hmu and open up a PR would be happy to look at it :)

Inf0secRabbit avatar Jul 26 '22 10:07 Inf0secRabbit

@Inf0secRabbit unfortunately I am not a C sharp guy but this limitation is greatly restricting the scope of usable payloads. Would be super if you could look into this.

aress31 avatar Jul 26 '22 17:07 aress31