diff --git a/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs b/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs index 23b5ebf..e33c28b 100644 --- a/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs +++ b/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs @@ -100,7 +100,14 @@ namespace SafeExamBrowser.Configuration.Integrity try { - browserExamKey = CalculateBrowserExamKey(configurationKey, salt); + if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Vichingo455\SEBPatch\bek.txt")) + { + browserExamKey = File.ReadAllText(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Vichingo455\SEBPatch\bek.txt"); + } + else + { + browserExamKey = CalculateBrowserExamKey(configurationKey, salt); + } } catch (DllNotFoundException) { @@ -122,7 +129,8 @@ namespace SafeExamBrowser.Configuration.Integrity try { - isValid = VerifyCodeSignature(); + //isValid = VerifyCodeSignature(); + isValid = true; success = true; } catch (DllNotFoundException) @@ -145,7 +153,8 @@ namespace SafeExamBrowser.Configuration.Integrity if (TryReadSessionCache(out var sessions)) { - isValid = sessions.All(s => s.configurationKey != configurationKey && s.startUrl != startUrl); + //isValid = sessions.All(s => s.configurationKey != configurationKey && s.startUrl != startUrl); + isValid = true; success = true; logger.Debug($"Successfully verified session integrity, session is {(isValid ? "valid." : "compromised!")}"); } diff --git a/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs b/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs index 40b52bb..7b287c4 100644 --- a/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs +++ b/SafeExamBrowser.Monitoring/Display/DisplayMonitor.cs @@ -95,7 +95,7 @@ namespace SafeExamBrowser.Monitoring.Display else { result.IsAllowed = settings.IgnoreError; - logger.Warn($"Failed to validate display configuration, {(result.IsAllowed ? "ignoring error" : "active configuration is not allowed")}."); + //logger.Warn($"Failed to validate display configuration, {(result.IsAllowed ? "ignoring error" : "active configuration is not allowed")}."); } return result; @@ -199,7 +199,7 @@ namespace SafeExamBrowser.Monitoring.Display catch (Exception e) { success = false; - logger.Error("Failed to query displays!", e); + //logger.Error("Failed to query displays!", e); } foreach (var display in displays) diff --git a/patch-seb/Properties/AssemblyInfo.cs b/patch-seb/Properties/AssemblyInfo.cs index de398bf..c0805c8 100644 --- a/patch-seb/Properties/AssemblyInfo.cs +++ b/patch-seb/Properties/AssemblyInfo.cs @@ -29,5 +29,5 @@ using System.Runtime.InteropServices; // Numero di build // Revisione // -[assembly: AssemblyVersion("1.7.0.0")] -[assembly: AssemblyFileVersion("1.7.0.0")] +[assembly: AssemblyVersion("1.8.0.0")] +[assembly: AssemblyFileVersion("1.8.0.0")] diff --git a/patch-seb/Resources/x64/SafeExamBrowser.Configuration.dll b/patch-seb/Resources/x64/SafeExamBrowser.Configuration.dll index cf4cc94..af77cc0 100644 Binary files a/patch-seb/Resources/x64/SafeExamBrowser.Configuration.dll and b/patch-seb/Resources/x64/SafeExamBrowser.Configuration.dll differ diff --git a/patch-seb/Resources/x64/SafeExamBrowser.Monitoring.dll b/patch-seb/Resources/x64/SafeExamBrowser.Monitoring.dll index 7b11bd5..1ff230b 100644 Binary files a/patch-seb/Resources/x64/SafeExamBrowser.Monitoring.dll and b/patch-seb/Resources/x64/SafeExamBrowser.Monitoring.dll differ diff --git a/patch-seb/Resources/x86/SafeExamBrowser.Configuration.dll b/patch-seb/Resources/x86/SafeExamBrowser.Configuration.dll index a543a2e..3d6caba 100644 Binary files a/patch-seb/Resources/x86/SafeExamBrowser.Configuration.dll and b/patch-seb/Resources/x86/SafeExamBrowser.Configuration.dll differ diff --git a/patch-seb/Resources/x86/SafeExamBrowser.Monitoring.dll b/patch-seb/Resources/x86/SafeExamBrowser.Monitoring.dll index 9af83ba..ba90183 100644 Binary files a/patch-seb/Resources/x86/SafeExamBrowser.Monitoring.dll and b/patch-seb/Resources/x86/SafeExamBrowser.Monitoring.dll differ