1 Dotfuscator Professional Edition 4.9 破解版

下载地址:http://www.pc0359.cn/downinfo/39815.html

备份地址:C:\D\99backups\01installSoftware\dotfuscator.rar

2 选择默认选项安装Dotfuscator Professional Edition 4.9

这样命令行的位置才是:C:\Program Files (x86)\PreEmptive Solutions\Dotfuscator Professional Edition 4.9\dotfuscator

3 使用命令行,完成获取TFS代码,发布和混淆代码

Test.xml文件内容如下:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE dotfuscator SYSTEM "http://www.preemptive.com/dotfuscator/dtd/dotfuscator_v2.3.dtd">
<dotfuscator version="2.3">
<!--This is application generated code. Do not edit manually.-->
<input>
<loadpaths />
<asmlist>
<inputassembly refid="2187036c-9db0-4255-bff9-6503db4e55c9">
<option>honoroas</option>
<option>stripoa</option>
<option>library</option>
<option>transformxaml</option>
<file dir="xxx\bin" name="xxx.dll" />
</inputassembly>
<inputassembly refid="5de30783-0123-4804-ad0d-f5d3cd5d570f">
<option>honoroas</option>
<option>stripoa</option>
<option>library</option>
<option>transformxaml</option>
<file dir="xxx\bin" name="xxx.dll" />
</inputassembly>
<inputassembly refid="3c102238-4ba0-4855-84bd-82bc483fa0c9">
<option>honoroas</option>
<option>stripoa</option>
<option>library</option>
<option>transformxaml</option>
<file dir="C:\D\xxx\bin" name="xxx.dll" />
</inputassembly>
</asmlist>
</input>
<output>
<file dir="${configdir}\Dotfuscated" />
</output>
<renaming>
<option>xmlserialization</option>
<mapping>
<mapoutput overwrite="true">
<file dir="${configdir}\Dotfuscated" name="Map.xml" />
</mapoutput>
</mapping>
<referencerulelist>
<referencerule rulekey="{6655B10A-FD58-462d-8D4F-5B1316DFF0FF}" />
<referencerule rulekey="{229FD6F8-5BCC-427b-8F72-A7A413ECDF1A}" />
<referencerule rulekey="{2B7E7C8C-A39A-4db8-9DFC-6AFD38509061}" />
<referencerule rulekey="{494EA3BA-B947-44B5-BEE8-A11CC85AAF9B}" />
<referencerule rulekey="{89769974-93E9-4e71-8D92-BE70E855ACFC}" />
<referencerule rulekey="{7D9C8B02-2383-420f-8740-A9760394C2C1}" />
</referencerulelist>
</renaming>
<controlflow level="high" />
<sos mergeruntime="true">
<option>dontsendtamper</option>
</sos>
<smartobfuscation>
<smartobfuscationreport verbosity="all" overwrite="false" />
</smartobfuscation>
</dotfuscator>

Test.xml文件可以在dotfuscator的UI中进行操作然后把这个文件保存下来,以后每次都可以用这个文件。

批处理代码如下:

@echo off
REM 声明采用UTF-8编码
chcp 65001 REM 删除发布文件
del /s /f /q C:\D\98publish\06Dotfucator\01WebApi\Release\*.* REM 删除混淆文件
del /s /f /q C:\D\98publish\06Dotfucator\01WebApi\Dotfuscated\*.* REM 获取最最新tfs代码
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\tf" get C:\D\02tfs_code\01tesla\SourceCode /login:"用户名","密码" REM 发布WebApi文件
MSBuild C:\D\02tfs_code\xxx\SourceCode\xxx\xxx.csproj /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=C:\D\02tfs_code\xxx\SourceCode\xxx\Properties\PublishProfiles\PublishPub.pubxml /p:VisualStudioVersion=12.0 REM 混淆文件
"C:\Program Files (x86)\PreEmptive Solutions\Dotfuscator Professional Edition 4.9\dotfuscator" /q ".\Test.xml" pause

其中tfs获取最新代码的时候需要用户名和密码,PublishPub.pubxml是发布的配置文件。将上面的代码保存成一个test_dotfuscator.bat。注意文件路径等需要根据自己的需要进行更改。其中xxx是代指。需要调整为自己项目的路径或者名称.

4 遇到过的坑

4.1 只是打开dotfuscator却不执行

原因是VS2013的dotfuscator是社区版本的,并且没有命令行的方式。所以运行命令只会打开dotfuscator的用户界面。

Dotfuscator分为两个版本:一个是专业版本:dotfuscator professional edition,一个是:Dotfuscator CE社区版本。

VS2013自带了一个PreEmptive  Dotfuscator and Analytics Community Edition,是一个社区版本的

,并且它只有图形界面的方式dotfuscator.exe,没有命令行dotfuscatorCLI.exe的方式。

PreEmptive Dotfuscator and Analytics Community Edition 中的 dotfuscator.exe 是打开GUI的界面,只会打开界面不会执行

PreEmptive  Dotfuscator and Analytics Community Edition 中的 dotfuscatorCLI.exe 是命令行模式。

安装路径下的截图如下。

两个版本的区别如下:

https://www.preemptive.com/products/dotfuscator/compare-editions

4.2 为了dotfuscatorCLI.exe,重装VS2013自带的dotfuscator

VS2013是集成dotfucator的,她没有更新也不可以下载,卸载我也没能实现,因为在uninstall里面不知道卸载哪一个?最后直接放弃这种思路。安装了一个破解版本的dotfuscator.

4.3编译报错找不到Newtonsoft.Json.dll

我以为的原因是,发布之后第三方的dll就不知道从哪里拿?

实际上的原因是,发布之后,所有的dll都在bin目录下,但是因为同一个dll引用的版本不一样,而发布的同一个dll名称只发布一个,所以就造成有的dll可能没有在发布的bin目录下找到的原因。

解决方法:

第一种,把所有的相同的dll都使用同一个版本的dll

第二种,使用自定义的dll路径,如下图:

Dotfuscator Professional Edition获取代码发布和混淆代码的更多相关文章

  1. [转载]Dotfuscator Professional Edition 4.9.7500.9484 混淆工具破解版+使用教程

    如有转载,请注明出处: http://www.cnblogs.com/flydoos/archive/2012/01/26/2329536.html Dotfuscator Professional ...

  2. .NET混淆工具 (Dotfuscator Professional Edition)

      如果不想自己辛辛苦苦码出来的作品被人轻易的破解cpoy就使用这款工具试试吧.^_^   使用版本:4.9.7500.9484 ,破解版:http://pan.baidu.com/s/1dDH7lr ...

  3. Dotfuscator可以实现混淆代码、变量名修改、字符串加密

    C#编写的代码如果不进行一定程度的混淆和加密,那么是非常容易被反编译进行破解的,特别是对于一些商业用途的C#软件来说,因为盯着的人多,更是极易被攻破.使用VS自带的Dotfuscator可以实现混淆代 ...

  4. 转:C#使用Dotfuscator混淆代码的加密方法

    Author:flymorn Source:flymornCategories:C#编程 PostTime:2011-9-16 1:04:49 正 文:   C#编写的代码如果不进行一定程度的混淆和加 ...

  5. 使用Dotfuscator 进行.Net代码混淆 代码加密的方法

    混淆代码能在一定程度上放置代码被盗用,保护我们的知识产权 1.打开vs2012,选择工具-〉Dotfuscator Software Services 2.选择你需要混淆的DLL 文件,可以多选择 3 ...

  6. C#使用Dotfuscator混淆代码以及加密

    http://www.cnblogs.com/tianguook/archive/2012/10/06/2713105.html C#编写的代码如果不进行一定程度的混淆和加密,那么是非常容易被反编译进 ...

  7. C#使用Dotfuscator混淆代码的加密方法

    C#编写的代码如果不进行一定程度的混淆和加密,那么是非常容易被反编译进行破解的,特别是对于一些商业用途的C#软件来说,因为盯着的人多,更是极易被攻破.使用VS自带的Dotfuscator可以实现混淆代 ...

  8. 关于Unity发布iOS平台代码混淆问题

    之前在越狱手机里找到<永恒战士3>的程序发现是用Unity做的,拷出资源出来看的时候发现里面有游戏程序集,立马抽出来反编译了一下,发现里面的代码只有方法签名,没有方法体,还以为用什么高端混 ...

  9. C#使用Xamarin开发可移植移动应用进阶篇(9.混淆代码,防止反编译)

    前言 系列目录 C#使用Xamarin开发可移植移动应用目录 源码地址:https://github.com/l2999019/DemoApp 可以Star一下,随意 - - 说点什么.. 今天讲讲如 ...

随机推荐

  1. java 物理资源回收 finally与try

    java垃圾回收机制不会回收任何物理资源(磁盘文件.数据库连接.网络连接),垃圾回收机制只能回收堆内存中对象所占用的内存. 方法一使用finally块,在finally块中写入资源回收代码,如下: p ...

  2. 如何用Photoshop画一个发光金币(unity游戏素材教程)

    做好的发光金币预览图: 以下为如何用Photoshop画一个发光金币教程: [1]如上图1-2,新建,名称改为Coin,宽度20像素,高度20像素,分辨率72,背景白色: [2]使用Alt+Shift ...

  3. phper必知必会之类库自动加载的七种方式(三)

    ## php自动加载 下面显示例子的文件目录结构图 一.没有使用命名空间的几种实现 test/oneClass.php class oneClass{ public function show(){ ...

  4. ES(4): ES Cluster Security Settings

    目录: ES安全事件回顾 ES集群安全建议 安全访问配置 license更新 ES安全事件回顾 下面是白帽汇监测到针对全球使用广泛的全文索引引擎Elasticsearch的勒索事件: 2017年1月1 ...

  5. Mybatis学习(2)原始dao开发和使用mapper接口代理开发

    基础知识: 1).SqlSessionFactoryBuilder: 通过SqlSessionFactoryBuilder创建会话工厂SqlSessionFactory.将SqlSessionFact ...

  6. DDA画线算法

    #include<stdio.h> #include"graphics.h" #include<math.h> #include<stdlib.h&g ...

  7. 学习笔记之FluentAssertions

    dotnet/src/MoqSample at master · haotang923/dotnet · GitHub https://github.com/htanghtang/dotnet/tre ...

  8. 如何在CentOS中添加Swap

    1.检查 Swap 空间 在设置 Swap 文件之前,有必要先检查一下系统里有没有既存的 Swap 文件.运行以下命令: 1 swapon -s 如果返回的信息概要是空的,则表示 Swap 文件不存在 ...

  9. 【转载】html中object标签详解

    [转载自http://blog.csdn.net/soliy/archive/2010/03/22/5404183.aspx] html标签之Object标签详解 作者:网络    出处:网络     ...

  10. UMG设置组件自适应居中或靠边

    转自:http://aigo.iteye.com/blog/2297430 比如你的UI中有些组件需要居中显示,有些需要始终在右上角并且与上边框和右边框保持固定的距离等等,对于这种需要动态适应屏幕分辨 ...