XenocodeRCE / neo-ConfuserEx

Updated ConfuserEX, an open-source, free obfuscator for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
746 stars 89 forks source link

Decodable rename protection with odd crproj outputs in strange directory. #26

Open JasonUnger opened 5 years ago

JasonUnger commented 5 years ago

Describe the bug When using relative directories for baseDir and OutputDir, odd things happen with how files are written.

To Reproduce Steps to reproduce the behavior:

  1. Have a configuration similar to:
    <project outputDir=".\Licensing" baseDir=".." xmlns="http://confuser.codeplex.com">
    <rule pattern="true" preset="maximum">
    <protection id="rename">
      <argument name="mode" value="decodable" />
    </protection>
    </rule>
    <module path="Demo\DemoWinFormApp\bin\Release\Licensing.GUI.dll" snKey="Core\Licensing.GUI\Licensing.GUI.snk" />
    <module path="Demo\DemoWinFormApp\bin\Release\Licensing.dll" snKey="Core\Licensing\Licensing.snk" />
    <module path="Demo\DemoWinFormApp\bin\Release\DemoLicense.dll" />
    <module path="Demo\DemoWinFormApp\bin\Release\DemoWinFormApp.exe" />
    </project>
  2. Run obfuscation using above file. (Config file is at $(SolutionDir)\ConfuserEx\DemoApp.crproj)
  3. Find symbols.map at $(SolutionDir)\$(SolutionDirName)

Expected behavior Expect to find symbols.map either next to crproj file or next to module.