Closed OfficialRepositories closed 3 years ago
Hello @michaelweber first of all thanks for this amazing tool! Im a infosec student and im playing around with this tool but im facing the same error as this user i will import the error
Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Imported Cell Formula is too long - length must be 255 or less:
?[??5?&?_??#?????+?~??a(???>y????J A??I???mUg????e/?~?.??[?9e?I???V????J^?????S?'?I????'?fc?u??1z???g???L??2??"??n?T???.??W?z!???I???d???QÖ?z???x??u??????3|??x?X???????!?m???'{???52?D???'aqj2dM?#???z&???¼??xViNroX?m+?d?x?44[?XTr?N?!?I??*<?f?Q?V"??g???4"2???A???~D?n}M?^???V??????>U??[?(st?F?[??"?
at Macrome.MacroPatterns.ImportCellFormula(String cellFormula) in C:\Users\Weber\source\repos\michaelweber\Macrome\MacroPatterns.cs:line 214
at System.Linq.Enumerable.SelectListIterator2.MoveNext() at System.String.Join(String separator, IEnumerable
1 values)
at Macrome.MacroPatterns.ImportMacroPattern(List`1 macrosToImport) in C:\Users\Weber\source\repos\michaelweber\Macrome\MacroPatterns.cs:line 252
at Macrome.Program.Build(FileInfo decoyDocument, FileInfo payload, FileInfo payload64Bit, String preamble, PayloadType payloadType, String macroSheetName, String outputFileName, Boolean debugMode, SheetPackingMethod method, String password) in C:\Users\Weber\source\repos\michaelweber\Macrome\Program.cs:line 219
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.CommandLine.Invocation.ModelBindingCommandHandler.
Hey folks - if you're directly embedding Donut files try now with the new version out at https://github.com/michaelweber/Macrome/releases/tag/v0.4.1. Make sure you use the new argument --payload-method base64
- this is a MUCH more stable way to embed payloads, it might fix issues folks are having here.
The base64 encoding mechanism doesn't try manually writing the content 255 bytes at a time from =CHAR() formulas and this is where the majority of the stability issues have been coming from.
Closing this out since it's been a while and the issue is likely fixed.
Macro provided by Excelntdonut using -- obfuscate on excelntdonut, says formula is too long maximum character 255