yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.64k forks source link

value is null in webservice method parameter #343

Open ghost opened 9 years ago

ghost commented 9 years ago

after obfuscating call to webservice method are not working properly. After analysis I found that web service method is getting called properly but parameter value is null.

please help how to solve this issue?

yck1509 commented 9 years ago

Hi, I suppose the problem is that ConfuserEx remove the parameter names by default. You can try changing the related section in *.crproj file to:

    <protection id="rename" action="add">
        <argument name="renameArgs" value="false" />
    </protection>
ghost commented 9 years ago

I tried updating crproj file with above code, still facing same issue.

yck1509 commented 9 years ago

Is it possible to upload the crproj here for me to have a look?

ghost commented 9 years ago

pl find my crproj file content as below-

Please note web service is not obfuscated. I'm calling webservice method from one of my assembly. After obfuscating my assembly when call are reaching to webservice all the parameter value are null.

ghost commented 9 years ago
<project outputDir="C:\codebase\application\dotnet\WebRequestProcessor\bin\Debug\ConfusedEx" baseDir="C:\codebase\application\dotnet\WebRequestProcessor\bin\Debug" xmlns="http://confuser.codeplex.com">
<rule pattern="true" preset="aggressive" inherit="false">
<protection id="anti ildasm" />
<protection id="anti tamper" />
<protection id="constants" />
<protection id="ctrl flow" />
<protection id="anti dump" />
<protection id="anti debug" />
<protection id="invalid metadata" />
<protection id="ref proxy" />
<protection id="resources" />
<protection id="rename" action="add">
    <argument name="renameArgs" value="false" />
</protection>
</rule>
<module path="WebDriver.Support.dll" />
<module path="WebRequestProcessor.exe" />
<module path="KiwiWebDriverPages.dll" />
<module path="WebDriver.dll" />
</project>
yck1509 commented 9 years ago

Hi, You might try disabling 'invalid metadata' and 'rename' and see if it works for you.