Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 0ac209e

Browse files
authored
Update to dnlib v3.3.2 + Add missing files
1 parent d8f56a7 commit 0ac209e

18 files changed

Lines changed: 115713 additions & 120 deletions

LICENSE

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2019 ShiningLea
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2019 ShiningLea
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LoGiC.NET.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
<StartupObject>LoGiC.NET.Program</StartupObject>
3737
</PropertyGroup>
3838
<ItemGroup>
39-
<Reference Include="dnlib, Version=3.3.1.0, Culture=neutral, PublicKeyToken=50e96378b6e77999, processorArchitecture=MSIL">
40-
<HintPath>..\packages\dnlib.3.3.1\lib\net45\dnlib.dll</HintPath>
39+
<Reference Include="dnlib, Version=3.3.2.0, Culture=neutral, PublicKeyToken=50e96378b6e77999, processorArchitecture=MSIL">
40+
<HintPath>packages\dnlib.3.3.2\lib\net45\dnlib.dll</HintPath>
4141
</Reference>
4242
<Reference Include="SharpConfigParser">
43-
<HintPath>..\..\..\..\Desktop\My Obfuscators\Goldfuscator\Goldfuscator Project\Goldfuscator\bin\Debug\SharpConfigParser.dll</HintPath>
43+
<HintPath>.\SharpConfigParser.dll</HintPath>
4444
</Reference>
4545
<Reference Include="System" />
4646
<Reference Include="System.Core" />

LoGiC.NET.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31313.79
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoGiC.NET", "LoGiC.NET.csproj", "{9C7A7E96-A9D9-4D5B-9F70-8B84D1C50B5D}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{9C7A7E96-A9D9-4D5B-9F70-8B84D1C50B5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{9C7A7E96-A9D9-4D5B-9F70-8B84D1C50B5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{9C7A7E96-A9D9-4D5B-9F70-8B84D1C50B5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{9C7A7E96-A9D9-4D5B-9F70-8B84D1C50B5D}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {7A93C2C0-B28E-4E58-A6AE-1AB990522B45}
24+
EndGlobalSection
25+
EndGlobal

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Introduction
2-
LoGiC.NET is a free and open-source .NET obfuscator that uses dnlib for folks that want to see how obfuscation works with more complex obfuscations than Goldfuscator for example.
3-
4-
# Before obfuscation
5-
<img src="https://i.imgur.com/0J5ZDq0.png">
6-
7-
# After obfuscation
8-
<img src="https://i.imgur.com/W68kj01.png">
9-
10-
# Dependencies
11-
dnlib v3.3.1 : Restore NuGet packages and it'll work.<br/>
12-
SharpConfigParser : https://mega.nz/#!c3BxUKoK!3Uvx6izl_Gv1hnGJOzeBSRs4EzcaIjCCOMA2SgKW5FM
13-
14-
# Current Features
15-
- Renames methods, parameters, properties, fields and events.
16-
- Adds proxy calls.
17-
- Encrypts strings.
18-
- Encodes ints.
19-
- Adds junk methods.
20-
- Prevents application tampering.
21-
22-
# TODO
23-
- Add an Anti-Emulation and Anti-Debug.
1+
# Introduction
2+
LoGiC.NET is a free and open-source .NET obfuscator that uses dnlib for folks that want to see how obfuscation works with more complex obfuscations than Goldfuscator for example.
3+
4+
# Before obfuscation
5+
<img src="https://i.imgur.com/0J5ZDq0.png">
6+
7+
# After obfuscation
8+
<img src="https://i.imgur.com/W68kj01.png">
9+
10+
# Dependencies
11+
dnlib v3.3.1 : Restore NuGet packages and it'll work.<br/>
12+
SharpConfigParser : https://mega.nz/#!c3BxUKoK!3Uvx6izl_Gv1hnGJOzeBSRs4EzcaIjCCOMA2SgKW5FM
13+
14+
# Current Features
15+
- Renames methods, parameters, properties, fields and events.
16+
- Adds proxy calls.
17+
- Encrypts strings.
18+
- Encodes ints.
19+
- Adds junk methods.
20+
- Prevents application tampering.
21+
22+
# TODO
23+
- Add an Anti-Emulation and Anti-Debug.

SharpConfigParser.dll

4.5 KB
Binary file not shown.

Utils/Analyzer/FieldDefAnalyzer.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
using dnlib.DotNet;
2-
3-
namespace LoGiC.NET.Utils.Analyzer
4-
{
5-
/// <summary>
6-
/// This class will analyze a field def.
7-
/// </summary>
8-
public class FieldDefAnalyzer : DefAnalyzer
9-
{
10-
public override bool Execute(object context)
11-
{
12-
FieldDef field = (FieldDef)context;
13-
if (field.IsRuntimeSpecialName)
14-
return false;
15-
if (field.IsLiteral && field.DeclaringType.IsEnum)
16-
return false;
17-
return true;
18-
}
19-
}
1+
using dnlib.DotNet;
2+
3+
namespace LoGiC.NET.Utils.Analyzer
4+
{
5+
/// <summary>
6+
/// This class will analyze a field def.
7+
/// </summary>
8+
public class FieldDefAnalyzer : DefAnalyzer
9+
{
10+
public override bool Execute(object context)
11+
{
12+
FieldDef field = (FieldDef)context;
13+
if (field.IsRuntimeSpecialName)
14+
return false;
15+
if (field.IsLiteral && field.DeclaringType.IsEnum)
16+
return false;
17+
return true;
18+
}
19+
}
2020
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
using dnlib.DotNet;
2-
3-
namespace LoGiC.NET.Utils.Analyzer
4-
{
5-
/// <summary>
6-
/// This class will analyze a method def.
7-
/// </summary>
8-
public class MethodDefAnalyzer : DefAnalyzer
9-
{
10-
public override bool Execute(object context)
11-
{
12-
MethodDef method = (MethodDef)context;
13-
if (method.IsRuntimeSpecialName)
14-
return false;
15-
if (method.DeclaringType.IsForwarder)
16-
return false;
17-
if (method.IsConstructor || method.IsStaticConstructor)
18-
return false;
19-
return true;
20-
}
21-
}
1+
using dnlib.DotNet;
2+
3+
namespace LoGiC.NET.Utils.Analyzer
4+
{
5+
/// <summary>
6+
/// This class will analyze a method def.
7+
/// </summary>
8+
public class MethodDefAnalyzer : DefAnalyzer
9+
{
10+
public override bool Execute(object context)
11+
{
12+
MethodDef method = (MethodDef)context;
13+
if (method.IsRuntimeSpecialName)
14+
return false;
15+
if (method.DeclaringType.IsForwarder)
16+
return false;
17+
if (method.IsConstructor || method.IsStaticConstructor)
18+
return false;
19+
return true;
20+
}
21+
}
2222
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
using dnlib.DotNet;
2-
3-
namespace LoGiC.NET.Utils.Analyzer
4-
{
5-
public class PropertyDefAnalyzer : DefAnalyzer
6-
{
7-
public override bool Execute(object context)
8-
{
9-
PropertyDef propertyDef = (PropertyDef)context;
10-
bool isRuntimeSpecialName = propertyDef.IsRuntimeSpecialName;
11-
bool result;
12-
if (isRuntimeSpecialName)
13-
{
14-
result = false;
15-
}
16-
else
17-
{
18-
bool isEmpty = propertyDef.IsEmpty;
19-
if (isEmpty)
20-
{
21-
result = false;
22-
}
23-
else
24-
{
25-
bool isSpecialName = propertyDef.IsSpecialName;
26-
result = !isSpecialName;
27-
}
28-
}
29-
return result;
30-
}
31-
}
32-
}
1+
using dnlib.DotNet;
2+
3+
namespace LoGiC.NET.Utils.Analyzer
4+
{
5+
public class PropertyDefAnalyzer : DefAnalyzer
6+
{
7+
public override bool Execute(object context)
8+
{
9+
PropertyDef propertyDef = (PropertyDef)context;
10+
bool isRuntimeSpecialName = propertyDef.IsRuntimeSpecialName;
11+
bool result;
12+
if (isRuntimeSpecialName)
13+
{
14+
result = false;
15+
}
16+
else
17+
{
18+
bool isEmpty = propertyDef.IsEmpty;
19+
if (isEmpty)
20+
{
21+
result = false;
22+
}
23+
else
24+
{
25+
bool isSpecialName = propertyDef.IsSpecialName;
26+
result = !isSpecialName;
27+
}
28+
}
29+
return result;
30+
}
31+
}
32+
}

config.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* These are the settings for LoGiC.NET in case you need them. */
2+
3+
/* This setting will force the compatibility for winforms programs in case the renaming breaks your program. */
4+
ForceWinFormsCompatibility: false
5+
/* This setting will completely disable the renaming in case it really doesn't work with your program. */
6+
DontRename: false

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="dnlib" version="3.3.1" targetFramework="net472" />
3+
<package id="dnlib" version="3.3.2" targetFramework="net472" />
44
</packages>

0 commit comments

Comments
 (0)