Restore SEBPatch

This commit is contained in:
2025-06-01 11:44:20 +02:00
commit 8c656e3137
1297 changed files with 142172 additions and 0 deletions

6
patch-seb/App.config Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
</startup>
</configuration>

110
patch-seb/Form1.Designer.cs generated Normal file
View File

@@ -0,0 +1,110 @@
namespace patch_seb
{
partial class Form1
{
/// <summary>
/// Variabile di progettazione necessaria.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Pulire le risorse in uso.
/// </summary>
/// <param name="disposing">ha valore true se le risorse gestite devono essere eliminate, false in caso contrario.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Codice generato da Progettazione Windows Form
/// <summary>
/// Metodo necessario per il supporto della finestra di progettazione. Non modificare
/// il contenuto del metodo con l'editor di codice.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(189, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(178, 19);
this.label1.TabIndex = 0;
this.label1.Text = "Safe Exam Browser Patch";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 38);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox1.Size = new System.Drawing.Size(547, 196);
this.textBox1.TabIndex = 1;
//
// button1
//
this.button1.Location = new System.Drawing.Point(435, 244);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(124, 46);
this.button1.TabIndex = 2;
this.button1.Text = "PATCH";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(12, 258);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(64, 17);
this.checkBox1.TabIndex = 3;
this.checkBox1.Text = "Backup";
this.checkBox1.UseVisualStyleBackColor = true;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(571, 302);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Segoe UI", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Safe Exam Browser Patch";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.CheckBox checkBox1;
}
}

200
patch-seb/Form1.cs Normal file
View File

@@ -0,0 +1,200 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using patch_seb.Properties;
namespace patch_seb
{
public partial class Form1 : Form
{
public static bool isBackup;
public static bool started = false;
public static bool alreadyPatched = false;
public static string SEBPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\SafeExamBrowser\Application\";
public static string SupportedSEB = "3.8.0.742";
public static int something = 0;
public Form1()
{
InitializeComponent();
}
public void AddLog(string log)
{
this.textBox1.Text += log + Environment.NewLine;
}
private void Form1_Load(object sender, EventArgs e)
{
AddLog("Safe Exam Browser Patch v" + Application.ProductVersion);
AddLog("For Safe Exam Browser version " + SupportedSEB);
if (Environment.Is64BitOperatingSystem)
{
AddLog("Detected x64 operating system.");
}
else
{
AddLog("Detected x86 operating system.");
}
if (Environment.OSVersion.Version.Major != 10)
{
AddLog("Supported Windows version not found.");
button1.Enabled = false;
}
else if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\SafeExamBrowser\Application\SafeExamBrowser.exe"))
{
AddLog("Safe Exam Browser not found.");
button1.Enabled = false;
}
else
{
FileVersionInfo SEBVersion = FileVersionInfo.GetVersionInfo(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\SafeExamBrowser\Application\SafeExamBrowser.exe");
FileVersionInfo SEBDLLVersion = FileVersionInfo.GetVersionInfo(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\SafeExamBrowser\Application\SafeExamBrowser.Configuration.dll");
if (SEBVersion.FileVersion != SupportedSEB)
{
AddLog("Found unsupported Safe Exam Browser version.");
button1.Enabled = false;
}
else if (SEBVersion.ProductVersion == SupportedSEB || SEBDLLVersion.ProductVersion == "1.0.0.0") // Somehow the patched version string differs from the official version string.
{
checkBox1.Checked = false;
checkBox1.Enabled = false;
isBackup = false;
alreadyPatched = true;
button1.Text = "PATCH AGAIN/UPDATE";
AddLog("Found an already patched Safe Exam Browser.");
}
else
{
AddLog("Supported Safe Exam Browser version found.");
}
}
}
private void button1_Click(object sender, EventArgs e)
{
if (alreadyPatched)
{
var dialog = MessageBox.Show("An already patched Safe Exam Browser has been found. Are you sure to continue?","Safe Exam Browser Patch",MessageBoxButtons.YesNo,MessageBoxIcon.Question,MessageBoxDefaultButton.Button2);
if (dialog == DialogResult.No)
{
return;
}
}
isBackup = checkBox1.Checked;
if (!started)
{
started = true;
Thread thr = new Thread(PatchThread);
thr.Start();
}
}
private void PatchThread()
{
if (isBackup)
{
try
{
if (File.Exists(SEBPath + @"SafeExamBrowser.exe.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.exe.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.exe", SEBPath + @"SafeExamBrowser.exe.backup");
if (File.Exists(SEBPath + @"SafeExamBrowser.Client.exe.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.Client.exe.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.Client.exe", SEBPath + @"SafeExamBrowser.Client.exe.backup");
if (File.Exists(SEBPath + @"SafeExamBrowser.Configuration.dll.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.Configuration.dll.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.Configuration.dll", SEBPath + @"SafeExamBrowser.Configuration.dll.backup");
if (File.Exists(SEBPath + @"SafeExamBrowser.Monitoring.dll.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.Monitoring.dll.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.Monitoring.dll", SEBPath + @"SafeExamBrowser.Monitoring.dll.backup");
if (File.Exists(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll", SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll.backup");
if (File.Exists(SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll", SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll.backup");
if (File.Exists(SEBPath + @"SafeExamBrowser.WindowsApi.dll.backup"))
{
File.Delete(SEBPath + @"SafeExamBrowser.WindowsApi.dll.backup");
}
File.Copy(SEBPath + @"SafeExamBrowser.WindowsApi.dll", SEBPath + @"SafeExamBrowser.WindowsApi.dll.backup");
}
catch (Exception ex)
{
AddLog(ex.Message);
}
}
try
{
File.Delete(SEBPath + @"SafeExamBrowser.exe");
File.Delete(SEBPath + @"SafeExamBrowser.Client.exe");
File.Delete(SEBPath + @"SafeExamBrowser.Configuration.dll");
File.Delete(SEBPath + @"SafeExamBrowser.Monitoring.dll");
File.Delete(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll");
File.Delete(SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll");
File.Delete(SEBPath + @"SafeExamBrowser.WindowsApi.dll");
if (Environment.Is64BitOperatingSystem) // 64 bits patch
{
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.exe", Resources.SafeExamBrowser);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.Client.exe", Resources.SafeExamBrowser_Client);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.Configuration.dll", Resources.SafeExamBrowser_Configuration);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.Monitoring.dll", Resources.SafeExamBrowser_Monitoring);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll", Resources.SafeExamBrowser_UserInterface_Desktop);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll", Resources.SafeExamBrowser_UserInterface_Shared);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.WindowsApi.dll", Resources.SafeExamBrowser_WindowsApi);
}
else // 32 bits patch
{
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.exe", Resources.SafeExamBrowser1);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.Client.exe", Resources.SafeExamBrowser_Client1);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.Configuration.dll", Resources.SafeExamBrowser_Configuration1);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.Monitoring.dll", Resources.SafeExamBrowser_Monitoring1);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll", Resources.SafeExamBrowser_UserInterface_Desktop1);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Shared.dll", Resources.SafeExamBrowser_UserInterface_Shared1);
File.WriteAllBytes(SEBPath + @"SafeExamBrowser.WindowsApi.dll", Resources.SafeExamBrowser_WindowsApi1);
}
AddLog("Patching done.");
button1.Text = "PATCH DONE";
}
catch (Exception ex)
{
AddLog(ex.Message);
}
}
private void label1_Click(object sender, EventArgs e)
{
if (something == 4)
{
something = 0;
MessageBox.Show("Safe Exam Browser Patch v" + Application.ProductVersion + "\nFor Safe Exam Browser version " + SupportedSEB + "\nCreated with love by Vichingo455\n\nBecause Freedom is a right, respect it.", "Safe Exam Browser Patch", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
something++;
}
}
}
}

6293
patch-seb/Form1.resx Normal file

File diff suppressed because it is too large Load Diff

22
patch-seb/Program.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace patch_seb
{
internal static class Program
{
/// <summary>
/// Punto di ingresso principale dell'applicazione.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@@ -0,0 +1,33 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Le informazioni generali relative a un assembly sono controllate dal seguente
// set di attributi. Modificare i valori di questi attributi per modificare le informazioni
// associate a un assembly.
[assembly: AssemblyTitle("Safe Exam Browser Patch")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Useful Stuffs")]
[assembly: AssemblyProduct("Safe Exam Browser Patch")]
[assembly: AssemblyCopyright("Copyright © 2025 Useful Stuffs.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Se si imposta ComVisible su false, i tipi in questo assembly non saranno visibili
// ai componenti COM. Se è necessario accedere a un tipo in questo assembly da
// COM, impostare su true l'attributo ComVisible per tale tipo.
[assembly: ComVisible(false)]
// Se il progetto viene esposto a COM, il GUID seguente verrà utilizzato come ID della libreria dei tipi
[assembly: Guid("71c95790-de7d-4f88-bb74-b17a26ed5e44")]
// Le informazioni sulla versione di un assembly sono costituite dai seguenti quattro valori:
//
// Versione principale
// Versione secondaria
// Numero di build
// Revisione
//
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]

203
patch-seb/Properties/Resources.Designer.cs generated Normal file
View File

@@ -0,0 +1,203 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------
namespace patch_seb.Properties {
using System;
/// <summary>
/// Classe di risorse fortemente tipizzata per la ricerca di stringhe localizzate e così via.
/// </summary>
// Questa classe è stata generata automaticamente dalla classe StronglyTypedResourceBuilder.
// tramite uno strumento quale ResGen o Visual Studio.
// Per aggiungere o rimuovere un membro, modificare il file con estensione ResX ed eseguire nuovamente ResGen
// con l'opzione /str oppure ricompilare il progetto VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Restituisce l'istanza di ResourceManager nella cache utilizzata da questa classe.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("patch_seb.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Esegue l'override della proprietà CurrentUICulture del thread corrente per tutte le
/// ricerche di risorse eseguite utilizzando questa classe di risorse fortemente tipizzata.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_Client {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_Client", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_Client1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_Client1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_Configuration {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_Configuration", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_Configuration1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_Configuration1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_Monitoring {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_Monitoring", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_Monitoring1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_Monitoring1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_UserInterface_Desktop {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_UserInterface_Desktop", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_UserInterface_Desktop1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_UserInterface_Desktop1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_UserInterface_Shared {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_UserInterface_Shared", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_UserInterface_Shared1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_UserInterface_Shared1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_WindowsApi {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_WindowsApi", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser_WindowsApi1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser_WindowsApi1", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Cerca una risorsa localizzata di tipo System.Byte[].
/// </summary>
internal static byte[] SafeExamBrowser1 {
get {
object obj = ResourceManager.GetObject("SafeExamBrowser1", resourceCulture);
return ((byte[])(obj));
}
}
}
}

View File

@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="SafeExamBrowser" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_Client" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.Client.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_Client1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.Client.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_Configuration" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.Configuration.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_Configuration1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.Configuration.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_Monitoring" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.Monitoring.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_Monitoring1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.Monitoring.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_UserInterface_Desktop" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.UserInterface.Desktop.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_UserInterface_Desktop1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.UserInterface.Desktop.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_UserInterface_Shared" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.UserInterface.Shared.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_UserInterface_Shared1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.UserInterface.Shared.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_WindowsApi" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x64\SafeExamBrowser.WindowsApi.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="SafeExamBrowser_WindowsApi1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\x86\SafeExamBrowser.WindowsApi.dll;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace patch_seb.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

33
patch-seb/app.manifest Normal file
View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

109
patch-seb/patch-seb.csproj Normal file
View File

@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{71C95790-DE7D-4F88-BB74-B17A26ED5E44}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>patch_seb</RootNamespace>
<AssemblyName>patch-seb</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>3</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>SafeExamBrowser.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\x64\SafeExamBrowser.Client.exe" />
<None Include="Resources\x64\SafeExamBrowser.Configuration.dll" />
<None Include="Resources\x64\SafeExamBrowser.exe" />
<None Include="Resources\x64\SafeExamBrowser.Monitoring.dll" />
<None Include="Resources\x64\SafeExamBrowser.UserInterface.Desktop.dll" />
<None Include="Resources\x64\SafeExamBrowser.UserInterface.Shared.dll" />
<None Include="Resources\x64\SafeExamBrowser.WindowsApi.dll" />
<None Include="Resources\x86\SafeExamBrowser.Client.exe" />
<None Include="Resources\x86\SafeExamBrowser.Configuration.dll" />
<None Include="Resources\x86\SafeExamBrowser.exe" />
<None Include="Resources\x86\SafeExamBrowser.Monitoring.dll" />
<None Include="Resources\x86\SafeExamBrowser.UserInterface.Desktop.dll" />
<None Include="Resources\x86\SafeExamBrowser.UserInterface.Shared.dll" />
<None Include="Resources\x86\SafeExamBrowser.WindowsApi.dll" />
<Content Include="SafeExamBrowser.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>