Skip to content

Commit

Permalink
Conversione di progetto KR Livio : Impedire criptatura di cartelle im…
Browse files Browse the repository at this point in the history
…portanti e di sistema

- Aggiunto il controllo e messo a posto l'incolla cartella

ATTENZIONE : Questa parte non è parte di conversione da VB6 a C# ma è stata modificata in modo che se c'è il blocco non cripta MAI. E' una correzione di sicurezza
  • Loading branch information
Livio74 committed Feb 4, 2022
1 parent 808129a commit b3ee31f
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 38 deletions.
6 changes: 3 additions & 3 deletions KR.NET/bin/Debug/KR.NET.application
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="KR.NET.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<assemblyIdentity name="KR.NET.application" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="KR.NET" asmv2:product="KR.NET" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="KR.NET.exe.manifest" size="5341">
<assemblyIdentity name="KR.NET.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<assemblyIdentity name="KR.NET.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>dGM3gEkOqEyISp7V21RhLHYC5dBVnhTI1BYJB1nfQ1w=</dsig:DigestValue>
<dsig:DigestValue>r4zPpf9nlcb53/PSFaLeTbSmLBw/JKuKEuZ8DvtbYBQ=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified KR.NET/bin/Debug/KR.NET.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions KR.NET/bin/Debug/KR.NET.exe.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<asmv1:assemblyIdentity name="KR.NET.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<asmv1:assemblyIdentity name="KR.NET.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="KR.NET" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
Expand Down Expand Up @@ -49,7 +49,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>jL1CPI1IDif370IaFXaZrsj7VcVNHIOFxYu4XG5kfSM=</dsig:DigestValue>
<dsig:DigestValue>6kODgN3RKEH3T6ZhTmKotGQ2tSy3gffSfifpNpYvRWc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified KR.NET/bin/Debug/KR.NET.pdb
Binary file not shown.
21 changes: 0 additions & 21 deletions KR.NET/bin/Debug/app.publish/KR.NET.application

This file was deleted.

Binary file modified KR.NET/bin/Debug/app.publish/KR.NET.exe
Binary file not shown.
24 changes: 17 additions & 7 deletions KR.NET/kr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,23 @@ private void chkEnableFileList_CheckedChanged(object sender, EventArgs e)
private void btnDir_Click(object sender, EventArgs e)
{
string clipboardPath = Clipboard.GetText();
if (!"".Equals(clipboardPath))
{
drv.Drive = clipboardPath.Substring(0, 2); //Correzione BUG rispestto a originale
dirRadice.Path = clipboardPath;
chkBlock.Checked = true;
MOD_MAIN.G_strFileList = clipboardPath + "\\FileList.txt";
strFileLog = clipboardPath + "\\klog.txt";
if (!"".Equals(clipboardPath)) {
if (Directory.Exists(clipboardPath))
{
if (STATICUTILS.CheckSystemOrCriticalFolder(clipboardPath))
{
chkBlock.Checked = true;
}
else
{
chkBlock.Checked = false;
}
drv.Drive = clipboardPath.Substring(0, 2); //Correzione BUG rispestto a originale
dirRadice.Path = clipboardPath;
MOD_MAIN.G_strFileList = clipboardPath + "\\FileList.txt";
strFileLog = clipboardPath + "\\klog.txt";
txtChiave.Focus();
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions KR.NET/obj/Debug/KR.NET.application
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="KR.NET.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<assemblyIdentity name="KR.NET.application" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="KR.NET" asmv2:product="KR.NET" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.7.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="KR.NET.exe.manifest" size="5341">
<assemblyIdentity name="KR.NET.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<assemblyIdentity name="KR.NET.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>dGM3gEkOqEyISp7V21RhLHYC5dBVnhTI1BYJB1nfQ1w=</dsig:DigestValue>
<dsig:DigestValue>r4zPpf9nlcb53/PSFaLeTbSmLBw/JKuKEuZ8DvtbYBQ=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified KR.NET/obj/Debug/KR.NET.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions KR.NET/obj/Debug/KR.NET.exe.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<asmv1:assemblyIdentity name="KR.NET.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<asmv1:assemblyIdentity name="KR.NET.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="KR.NET" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
Expand Down Expand Up @@ -49,7 +49,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>jL1CPI1IDif370IaFXaZrsj7VcVNHIOFxYu4XG5kfSM=</dsig:DigestValue>
<dsig:DigestValue>6kODgN3RKEH3T6ZhTmKotGQ2tSy3gffSfifpNpYvRWc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified KR.NET/obj/Debug/KR.NET.pdb
Binary file not shown.

0 comments on commit b3ee31f

Please sign in to comment.