使用 Eazfuscator.NET 混淆已发布的应用程序?

发布于 2024-10-03 22:15:25 字数 277 浏览 6 评论 0原文

我想用 Eazfuscator.NET 混淆我的应用程序,但是我还想使用 ClickOnce 发布它(我使用“从 CD 安装”选项)。但是 Eazfuscator 只允许我混淆程序集,并且当我的项目发布时我不知道要混淆哪个程序集,因为其中有很多程序集。也许我需要在发布之前对其进行混淆,但仍然不确定如何做到这一点。希望任何人都可以提供帮助。

I want to obfuscate my app with Eazfuscator.NET but I also want to publish it with ClickOnce (I use the Install from CD option). But Eazfuscator only let me obfuscate assemblies and I don't know which assembly to obfuscate when my project is published since there are many of them. Perhaps I need to obfuscate it before publishing it but still not sure how would this be done. Hope anyone can help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

累赘 2024-10-10 22:15:25

Eazfuscator 2.9 & Visual Studio 2010:

  1. 将 ClickOnce 项目从 Visual Studio 拖放到绿色区域
    Eazfuscator.NET,因此它在每次构建时都会受到保护。您只需执行一次此操作。一旦设置了保护,您就可以一遍又一遍地构建项目。相应的程序集将自动混淆
  2. 如果您的解决方案中有多个项目,您也可以为它们应用步骤 1,但我建议从尽可能少的程序集开始
  3. 切换到发布构建配置。 Visual Studio Express 用户请注意关于构建配置
  4. Publish

Works 对我有好处。

Eazfuscator 2.9 & Visual Studio 2010:

  1. Drag'n'drop the ClickOnce project from Visual Studio onto the green zone of
    Eazfuscator.NET, so it gets protected on every build. You need to do this just once. Once the protection is set you can build the project over and over again. The corresponding assembly will be automatically obfuscated
  2. If you have multiple projects in your solution you can apply step 1 for them also, but I suggest to start with a few assemblies as possible
  3. Switch to Release build configuration. Visual Studio Express users please take note about build configurations
  4. Publish

Works good for me.

烟雨扶苏 2024-10-10 22:15:25

这是我使用的。

REM run from your publish\Application Files\AAA_w_x_w_z dir

REM Remove the .deploy extensions, so Eazfuscator can find dlls
REM and mage can find .config
REM Use http://www.bulkrenameutility.co.uk/Download.php for this
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.deploy /RECURSIVE /REMOVEEXT /EXECUTE

REM Protect files 
"c:\Program Files (x86)\Eazfuscator.NET\Eazfuscator.NET.exe" -k c:\signing\somesnk.snk dll1.dll dll2etc.dll 


REM update hash files and sign 
"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Update my.dll.manifest
"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Sign my.dll.manifest -CertFile c:\signing\MyCodeSigning.p12 -Password 1234


REM add the .deploy extension 
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.dll /FIXEDEXT:.dll.deploy /EXECUTE
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.config /FIXEDEXT:.config.deploy /EXECUTE
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.gif /RECURSIVE /FIXEDEXT:.gif.deploy /EXECUTE

REM update application file 
cd ..
cd ..

"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Update my.vsto -AppManifest "Application Files\my_1_0_0_4\dll1.dll.manifest" 

"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Sign my.vsto -CertFile c:\signing\MyCodeSigning.p12 -Password 1234

发布后运行此 bat 文件。

当然,你需要适应它。向 Eazfuscator.NET.exe 传递您想要混淆的 DLL 列表。

需要更改“my_1_0_0_4”以匹配发布的版本。

Here is what I use.

REM run from your publish\Application Files\AAA_w_x_w_z dir

REM Remove the .deploy extensions, so Eazfuscator can find dlls
REM and mage can find .config
REM Use http://www.bulkrenameutility.co.uk/Download.php for this
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.deploy /RECURSIVE /REMOVEEXT /EXECUTE

REM Protect files 
"c:\Program Files (x86)\Eazfuscator.NET\Eazfuscator.NET.exe" -k c:\signing\somesnk.snk dll1.dll dll2etc.dll 


REM update hash files and sign 
"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Update my.dll.manifest
"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Sign my.dll.manifest -CertFile c:\signing\MyCodeSigning.p12 -Password 1234


REM add the .deploy extension 
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.dll /FIXEDEXT:.dll.deploy /EXECUTE
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.config /FIXEDEXT:.config.deploy /EXECUTE
c:\BRC_Unicode_64\BRC64.exe /PATTERN:*.gif /RECURSIVE /FIXEDEXT:.gif.deploy /EXECUTE

REM update application file 
cd ..
cd ..

"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Update my.vsto -AppManifest "Application Files\my_1_0_0_4\dll1.dll.manifest" 

"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\mage" -Sign my.vsto -CertFile c:\signing\MyCodeSigning.p12 -Password 1234

You run this bat file after publishing.

You'll need to adapt it, of course. Pass Eazfuscator.NET.exe a list of the DLLs you wish to obfuscate.

The "my_1_0_0_4" needs to be changed to match the version published.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文