周波斯

导航

.net代码混淆

obfuscar:

http://www.obfuscar.com/

https://docs.obfuscar.com/getting-started/configuration#variables-inpath-and-outpath

 

1、安装 https://www.nuget.org/packages/Obfuscar.GlobalTool/#readme-body-tab

在powershell运行以下指令:

dotnet tool install --global Obfuscar.GlobalTool --version 2.2.37

2、配置文件 文档:https://docs.obfuscar.com/getting-started/configuration#variables-inpath-and-outpath

新建xml文件obfuscar.xml (文件名可自定义),内容如下:

<?xml version='1.0'?>
<Obfuscator>
  <Var name="InPath" value="C:\Users\Administrator\Downloads\obfuscar-demo\TestConsoleApp\TestConsoleApp\bin\Debug\net6.0" />
  <Var name="OutPath" value="C:\Users\Administrator\Downloads\obfuscar-demo\Obfuscator_Output" />

  <Module file="$(InPath)\TestConsoleApp.dll" />
</Obfuscator>

 

3、执行 obfuscar.console ./obfuscar.xml

4、效果:

 

posted on 2023-06-28 09:49  周波斯  阅读(225)  评论(0编辑  收藏  举报