Home - Forums-.NET - Spices.Net - Macros in ObfuscationEvents

Spices.Net

NET code security, tools to protect, obfuscate, tamper defense, code and data safety, recover, convert, optimize, explore, browse and analyze .Net software.

This forum related to following products: Spices.Net Suite, Spices.Net Obfuscator, Spices.Net Decompiler

Macros in ObfuscationEvents
Link Posted: 08-Sep-2010 09:49
Hi! I was replying with issues regarding the use of macros in ObfuscationEvents in the thread "Verification of Assemblies getting a lot of errors...", but haven't gotten a response from you since my post on 1 Sep 2010. I thought maybe it would be easier to start a new thread specifically on this topic.

When I have this: {AfterAssemblyGeneration=copy %SourceDir%%AsmFileNameWithoutExtension%.pdb %TargetDir%}

This is the output:

---- Start running AfterAssemblyGenerate event ----
Exception:   Illegal characters in path.
Stack Trace:
Assembly: mscorlib, Type: System.IO.Path[0x020006c6], Method: Void CheckInvalidPathChars(System.String)[0x06003fdc], ILOffset:0x00000034
Assembly: mscorlib, Type: System.IO.Path[0x020006c6], Method: System.String GetDirectoryName(System.String)[0x06003fbf], ILOffset:0x00000003
Assembly: NineRays.Obfuscator, Type: NineRays.ILOMD.ILOMDProvider+\u14[0x02000009], Method: System.Collections.Specialized.NameValueCollection \u19(\u17)[0x06000081], ILOffset:0x0000003e
Assembly: NineRays.Obfuscator, Type: NineRays.ILOMD.ILOMDProvider[0x02000007], Method: Void \u19(System.String, System.String, System.String, System.String, \u17)[0x0600004e], ILOffset:0x00000064

Stack trace digest:
-------------------
mscorlib; 0x06003fdc; 0x00000034
mscorlib; 0x06003fbf; 0x00000003
NineRays.Obfuscator; 0x06000081; 0x0000003e
NineRays.Obfuscator; 0x0600004e; 0x00000064
-------------------

---- Finish running AfterAssemblyGenerate event ----

I'm not sure what I'm doing wrong. Can you help?

Best regards,
ct
Link Posted: 08-Sep-2010 14:12
Probably the source or target paths in the command contains spaces.
As a temporary solution of this problem please try the modified version of this command:
copy "%SourceDir%%AsmFileNameWithoutExtension%.pdb" "%TargetDir%"
Link Posted: 08-Sep-2010 16:23
Hi! I tried this and still end up with the same:

---- Start running AfterAssemblyGenerate event ----
Exception:   Illegal characters in path.
Stack Trace:
Assembly: mscorlib, Type: System.IO.Path[0x020006c5], Method: Void CheckInvalidPathChars(System.String)[0x06003fdb], ILOffset:0x00000034
Assembly: mscorlib, Type: System.IO.Path[0x020006c5], Method: System.String GetDirectoryName(System.String)[0x06003fbe], ILOffset:0x00000003
Assembly: NineRays.Obfuscator, Type: NineRays.ILOMD.ILOMDProvider+\u14[0x02000009], Method: System.Collections.Specialized.NameValueCollection \u19(\u17)[0x06000081], ILOffset:0x00000000
Assembly: NineRays.Obfuscator, Type: NineRays.ILOMD.ILOMDProvider[0x02000007], Method: Void \u19(System.String, System.String, System.String, System.String, \u17)[0x0600004e], ILOffset:0x00000046

Stack trace digest:
-------------------
mscorlib; 0x06003fdb; 0x00000034
mscorlib; 0x06003fbe; 0x00000003
NineRays.Obfuscator; 0x06000081; 0x00000000
NineRays.Obfuscator; 0x0600004e; 0x00000046
-------------------

---- Finish running AfterAssemblyGenerate event ----

Guess I'll just stick with the batch file approach for now unless you can think of something else.

Best regards,
ct