diff --git a/README.md b/README.md index 775b73d..b67e25c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Xvirus SDK 4.0.4 -Xvirus SDK 4.0.4 C++ bindings x64. +Xvirus SDK 4.0.4 C# bindings. ## Table of Contents @@ -17,8 +17,7 @@ Xvirus SDK 4.0.4 C++ bindings x64. To run Xvirus SDK you need: -- .NET 5 Runtime - [download](<[https://link](https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-5.0.11-windows-x64-installer)>) -- Visual C++ Redistributable 2019 - [download](https://aka.ms/vs/16/release/vc_redist.x64.exe) +- .NET 5 Runtime - [download](https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-5.0.11-windows-x64-installer) ## Changelog @@ -38,20 +37,18 @@ To run Xvirus SDK you need: ## Get Started -The "`example`" folder contains an example project on how to import and use Xvirus SDK in C++. +The "`example`" folder contains an example project on how to import and use Xvirus SDK in C# (.NET Core 5). -This project shows you how to statically load Xvirus SDK using `xvneng.lib`, you can also dinamically load `xvneng.dll` like any other dll, [see](https://stackoverflow.com/questions/8696653/dynamically-load-a-function-from-a-dll). - -You can run it by building it, copying the files from the `bin` folder to the output folder of the build and then running `xvbdc.exe`. +You can run it by building it and then running executable file in the output folder. ## Avaiable Functions -You can find the declaration of all functions and structs in the file `xvneng.h` located in the "headers" folder. +You have the following functions available: -- **load** - Loads Xvirus Scan Engine into memory, if set `force`=true it will reload the scan engine, even if it is already loaded. -- **unload** - Unloads Xvirus Scan Engine from memory. -- **scan** - Scans the file located at `filepath`. It will return a [`ScanResult`](#Model). -- **scanAsString** - Scans the file located at `filepath`. It will return one of the following strings: +- **Load** - Loads Xvirus Scan Engine into memory, if set `force`=true it will reload the scan engine, even if it is already loaded. +- **Unload** - Unloads Xvirus Scan Engine from memory. +- **Scan** - Scans the file located at `filepath`. It will return a [`ScanResult`](#Model). +- **ScanAsString** - Scans the file located at `filepath`. It will return one of the following strings: - "**Safe**" - If no malware is detected. - "**Malware**" - If malware is detected but the name isn't known. - **_Malware Name_** - If it is malware from a known family (example: "Trojan.Downloader"). @@ -59,25 +56,25 @@ You can find the declaration of all functions and structs in the file `xvneng.h` - "**File not found!**" - If no file is found in the submited path. - "**File too big!**" - If the file size is bigger than the set limit. - "**Could not get file hash!**" - There was an error calculating the hash of the file. -- **checkUpdates** - Checks and updates the databases and AI engine to the most recent versions. If `checkSDKUpdates`=true then it will also check for SDK updates. If `loadDBAfterUpdate`=true then it will reload the Xvirus Scan Engine after the update is done. It can return the following strings: +- **CheckUpdates** - Checks and updates the databases and AI engine to the most recent versions. If `checkSDKUpdates`=true then it will also check for SDK updates. If `loadDBAfterUpdate`=true then it will reload the Xvirus Scan Engine after the update is done. It can return the following strings: - "**There is a new SDK version available!**" - "**Database was updated!**" - "**Database is up-to-date!**" -- **getSettings** - returns a string representation of the `settings.json` file. -- **version** - returns the version of the SDK/CLI. - -![functions](./functions.JPG) +- **GetSettings** - returns object representation of the `settings.json` file. +- **GetSettingsAsString** - returns a string representation of the `settings.json` file. +- **Version** - returns the version of the SDK/CLI. ## Model -The `scan` function returns a struct `ScanResult` with the following properties: +The `scan` function returns a class `ScanResult` with the following properties: -```c++ -struct ScanResult { - bool isMalware; // true if malware - double score; // between 0 and 1, higher score means more likely to be malware, -1 if there was an error - char* name; // detection name -}; +```c# +public class ScanResult +{ + public bool IsMalware { get; set; } // true if malware + public string Name { get; set; } // detection name + public double MalwareScore { get; set; } // between 0 and 1, higher score means more likely to be malware, -1 if there was an error +} ``` ## Settings @@ -111,6 +108,6 @@ Example of a `settings.json` file: ## Exceptions -If any of the functions fail it may return an [exception](https://www.cplusplus.com/doc/tutorial/exceptions/). +If any of the functions fail it may return an [exception](https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/exceptions/). All exceptions are logged in the `errorlog.txt` file. diff --git a/bin/Ijwhost.dll b/bin/Ijwhost.dll deleted file mode 100644 index ba44ed9..0000000 Binary files a/bin/Ijwhost.dll and /dev/null differ diff --git a/bin/System.Security.Cryptography.Pkcs.dll b/bin/System.Security.Cryptography.Pkcs.dll index 1481034..4a9f6c9 100644 Binary files a/bin/System.Security.Cryptography.Pkcs.dll and b/bin/System.Security.Cryptography.Pkcs.dll differ diff --git a/bin/XescSDK.deps.json b/bin/XescSDK.deps.json index 05e4ea0..a1ca86c 100644 --- a/bin/XescSDK.deps.json +++ b/bin/XescSDK.deps.json @@ -1,12 +1,11 @@ { "runtimeTarget": { - "name": ".NETCoreApp,Version=v5.0/win-x64", + "name": ".NETCoreApp,Version=v5.0", "signature": "" }, "compilationOptions": {}, "targets": { - ".NETCoreApp,Version=v5.0": {}, - ".NETCoreApp,Version=v5.0/win-x64": { + ".NETCoreApp,Version=v5.0": { "XescSDK/4.0.4": { "dependencies": { "Microsoft.ML": "1.7.1", @@ -78,8 +77,40 @@ "fileVersion": "1.700.122.15804" } }, - "native": { + "runtimeTargets": { + "runtimes/linux-arm/native/libLdaNative.so": { + "rid": "linux-arm", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-arm64/native/libLdaNative.so": { + "rid": "linux-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-x64/native/libLdaNative.so": { + "rid": "linux-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/osx-arm64/native/libLdaNative.dylib": { + "rid": "osx-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/osx-x64/native/libLdaNative.dylib": { + "rid": "osx-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, "runtimes/win-x64/native/LdaNative.dll": { + "rid": "win-x64", + "assetType": "native", + "fileVersion": "0.1900.122.15804" + }, + "runtimes/win-x86/native/LdaNative.dll": { + "rid": "win-x86", + "assetType": "native", "fileVersion": "0.1900.122.15804" } } @@ -114,8 +145,25 @@ "fileVersion": "1.700.122.15804" } }, - "native": { + "runtimeTargets": { + "runtimes/linux-x64/native/libFastTreeNative.so": { + "rid": "linux-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/osx-x64/native/libFastTreeNative.dylib": { + "rid": "osx-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, "runtimes/win-x64/native/FastTreeNative.dll": { + "rid": "win-x64", + "assetType": "native", + "fileVersion": "0.1900.122.15804" + }, + "runtimes/win-x86/native/FastTreeNative.dll": { + "rid": "win-x86", + "assetType": "native", "fileVersion": "0.1900.122.15804" } } @@ -126,8 +174,7 @@ "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.Microsoft.Win32.Primitives": "4.3.0" + "System.Runtime": "4.3.0" } }, "NETStandard.Library/1.6.1": { @@ -215,31 +262,6 @@ } } }, - "runtime.any.System.Collections/4.3.0": { - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "runtime.any.System.Diagnostics.Tools/4.3.0": {}, - "runtime.any.System.Diagnostics.Tracing/4.3.0": {}, - "runtime.any.System.Globalization/4.3.0": {}, - "runtime.any.System.Globalization.Calendars/4.3.0": {}, - "runtime.any.System.IO/4.3.0": {}, - "runtime.any.System.Reflection/4.3.0": {}, - "runtime.any.System.Reflection.Extensions/4.3.0": {}, - "runtime.any.System.Reflection.Primitives/4.3.0": {}, - "runtime.any.System.Resources.ResourceManager/4.3.0": {}, - "runtime.any.System.Runtime/4.3.0": { - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, - "runtime.any.System.Runtime.Handles/4.3.0": {}, - "runtime.any.System.Runtime.InteropServices/4.3.0": {}, - "runtime.any.System.Text.Encoding/4.3.0": {}, - "runtime.any.System.Text.Encoding.Extensions/4.3.0": {}, - "runtime.any.System.Threading.Tasks/4.3.0": {}, - "runtime.any.System.Threading.Timer/4.3.0": {}, "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, @@ -288,86 +310,6 @@ "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, - "runtime.win.Microsoft.Win32.Primitives/4.3.0": { - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "runtime.win.System.Console/4.3.0": { - "dependencies": { - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Diagnostics.Debug/4.3.0": {}, - "runtime.win.System.IO.FileSystem/4.3.0": { - "dependencies": { - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Net.Primitives/4.3.0": { - "dependencies": { - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "runtime.win.System.Net.Sockets/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Net.NameResolution": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "runtime.win.System.Runtime.Extensions/4.3.0": { - "dependencies": { - "System.Private.Uri": "4.3.0" - } - }, "System.AppContext/4.3.0": { "dependencies": { "System.Runtime": "4.3.0" @@ -394,8 +336,7 @@ "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Collections": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Collections.Concurrent/4.3.0": { @@ -471,16 +412,14 @@ "Microsoft.NETCore.Targets": "1.1.0", "System.IO": "4.3.0", "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.win.System.Console": "4.3.0" + "System.Text.Encoding": "4.3.0" } }, "System.Diagnostics.Debug/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Diagnostics.Debug": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Diagnostics.DiagnosticSource/4.3.0": { @@ -496,16 +435,14 @@ "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tools": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Diagnostics.Tracing/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Diagnostics.Tracing": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Dynamic.Runtime/4.3.0": { @@ -530,8 +467,7 @@ "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Globalization.Calendars/4.3.0": { @@ -539,8 +475,7 @@ "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Globalization.Calendars": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Globalization.Extensions/4.3.0": { @@ -559,8 +494,7 @@ "Microsoft.NETCore.Targets": "1.1.0", "System.Runtime": "4.3.0", "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.any.System.IO": "4.3.0" + "System.Threading.Tasks": "4.3.0" } }, "System.IO.Compression/4.3.0": { @@ -604,8 +538,7 @@ "System.Runtime": "4.3.0", "System.Runtime.Handles": "4.3.0", "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.IO.FileSystem": "4.3.0" + "System.Threading.Tasks": "4.3.0" } }, "System.IO.FileSystem.Primitives/4.3.0": { @@ -674,31 +607,12 @@ "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" } }, - "System.Net.NameResolution/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Principal.Windows": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, "System.Net.Primitives/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.win.System.Net.Primitives": "4.3.0" + "System.Runtime.Handles": "4.3.0" } }, "System.Net.Sockets/4.3.0": { @@ -708,8 +622,7 @@ "System.IO": "4.3.0", "System.Net.Primitives": "4.3.0", "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.win.System.Net.Sockets": "4.3.0" + "System.Threading.Tasks": "4.3.0" } }, "System.ObjectModel/4.3.0": { @@ -721,20 +634,13 @@ "System.Threading": "4.3.0" } }, - "System.Private.Uri/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, "System.Reflection/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", "System.IO": "4.3.0", "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Reflection.Emit/4.3.0": { @@ -766,16 +672,14 @@ "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Extensions": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Reflection.Primitives/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Reflection.Primitives": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Reflection.TypeExtensions/4.3.0": { @@ -790,31 +694,27 @@ "Microsoft.NETCore.Targets": "1.1.0", "System.Globalization": "4.3.0", "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Resources.ResourceManager": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Runtime/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "runtime.any.System.Runtime": "4.3.0" + "Microsoft.NETCore.Targets": "1.1.0" } }, "System.Runtime.Extensions/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.win.System.Runtime.Extensions": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Runtime.Handles/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Runtime.Handles": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Runtime.InteropServices/4.3.0": { @@ -824,8 +724,7 @@ "System.Reflection": "4.3.0", "System.Reflection.Primitives": "4.3.0", "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "runtime.any.System.Runtime.InteropServices": "4.3.0" + "System.Runtime.Handles": "4.3.0" } }, "System.Runtime.InteropServices.RuntimeInformation/4.3.0": { @@ -862,17 +761,6 @@ "System.Runtime": "4.3.0" } }, - "System.Security.Claims/4.3.0": { - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Security.Principal": "4.3.0" - } - }, "System.Security.Cryptography.Algorithms/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", @@ -947,7 +835,15 @@ "System.Security.Cryptography.Cng": "4.7.0" }, "runtime": { + "lib/netcoreapp3.0/System.Security.Cryptography.Pkcs.dll": { + "assemblyVersion": "4.1.1.0", + "fileVersion": "4.700.19.56404" + } + }, + "runtimeTargets": { "runtimes/win/lib/netcoreapp3.0/System.Security.Cryptography.Pkcs.dll": { + "rid": "win", + "assetType": "runtime", "assemblyVersion": "4.1.1.0", "fileVersion": "4.700.19.56404" } @@ -993,35 +889,11 @@ "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" } }, - "System.Security.Principal/4.3.0": { - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Security.Principal.Windows/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Claims": "4.3.0", - "System.Security.Principal": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, "System.Text.Encoding/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Text.Encoding": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Text.Encoding.Extensions/4.3.0": { @@ -1029,8 +901,7 @@ "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.any.System.Text.Encoding.Extensions": "4.3.0" + "System.Text.Encoding": "4.3.0" } }, "System.Text.RegularExpressions/4.3.0": { @@ -1045,20 +916,11 @@ } }, "System.Threading.Channels/4.7.1": {}, - "System.Threading.Overlapped/4.3.0": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, "System.Threading.Tasks/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Tasks": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Threading.Tasks.Extensions/4.3.0": { @@ -1072,8 +934,7 @@ "dependencies": { "Microsoft.NETCore.Platforms": "1.1.0", "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "runtime.any.System.Threading.Timer": "4.3.0" + "System.Runtime": "4.3.0" } }, "System.Xml.ReaderWriter/4.3.0": { @@ -1267,125 +1128,6 @@ "path": "penet.asn1/1.3.3", "hashPath": "penet.asn1.1.3.3.nupkg.sha512" }, - "runtime.any.System.Collections/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-23g6rqftKmovn2cLeGsuHUYm0FD7pdutb0uQMJpZ3qTvq+zHkgmt6J65VtRry4WDGYlmkMa4xDACtaQ94alNag==", - "path": "runtime.any.system.collections/4.3.0", - "hashPath": "runtime.any.system.collections.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Diagnostics.Tools/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-S/GPBmfPBB48ZghLxdDR7kDAJVAqgAuThyDJho3OLP5OS4tWD2ydyL8LKm8lhiBxce10OKe9X2zZ6DUjAqEbPg==", - "path": "runtime.any.system.diagnostics.tools/4.3.0", - "hashPath": "runtime.any.system.diagnostics.tools.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Diagnostics.Tracing/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-1lpifymjGDzoYIaam6/Hyqf8GhBI3xXYLK2TgEvTtuZMorG3Kb9QnMTIKhLjJYXIiu1JvxjngHvtVFQQlpQ3HQ==", - "path": "runtime.any.system.diagnostics.tracing/4.3.0", - "hashPath": "runtime.any.system.diagnostics.tracing.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Globalization/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-sMDBnad4rp4t7GY442Jux0MCUuKL4otn5BK6Ni0ARTXTSpRNBzZ7hpMfKSvnVSED5kYJm96YOWsqV0JH0d2uuw==", - "path": "runtime.any.system.globalization/4.3.0", - "hashPath": "runtime.any.system.globalization.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Globalization.Calendars/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-M1r+760j1CNA6M/ZaW6KX8gOS8nxPRqloqDcJYVidRG566Ykwcs29AweZs2JF+nMOCgWDiMfPSTMfvwOI9F77w==", - "path": "runtime.any.system.globalization.calendars/4.3.0", - "hashPath": "runtime.any.system.globalization.calendars.4.3.0.nupkg.sha512" - }, - "runtime.any.System.IO/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-SDZ5AD1DtyRoxYtEcqQ3HDlcrorMYXZeCt7ZhG9US9I5Vva+gpIWDGMkcwa5XiKL0ceQKRZIX2x0XEjLX7PDzQ==", - "path": "runtime.any.system.io/4.3.0", - "hashPath": "runtime.any.system.io.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Reflection/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-hLC3A3rI8jipR5d9k7+f0MgRCW6texsAp0MWkN/ci18FMtQ9KH7E2vDn/DH2LkxsszlpJpOn9qy6Z6/69rH6eQ==", - "path": "runtime.any.system.reflection/4.3.0", - "hashPath": "runtime.any.system.reflection.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Reflection.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-cPhT+Vqu52+cQQrDai/V91gubXUnDKNRvlBnH+hOgtGyHdC17aQIU64EaehwAQymd7kJA5rSrVRNfDYrbhnzyA==", - "path": "runtime.any.system.reflection.extensions/4.3.0", - "hashPath": "runtime.any.system.reflection.extensions.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Reflection.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Nrm1p3armp6TTf2xuvaa+jGTTmncALWFq22CpmwRvhDf6dE9ZmH40EbOswD4GnFLrMRS0Ki6Kx5aUPmKK/hZBg==", - "path": "runtime.any.system.reflection.primitives/4.3.0", - "hashPath": "runtime.any.system.reflection.primitives.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Resources.ResourceManager/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Lxb89SMvf8w9p9+keBLyL6H6x/TEmc6QVsIIA0T36IuyOY3kNvIdyGddA2qt35cRamzxF8K5p0Opq4G4HjNbhQ==", - "path": "runtime.any.system.resources.resourcemanager/4.3.0", - "hashPath": "runtime.any.system.resources.resourcemanager.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Runtime/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-fRS7zJgaG9NkifaAxGGclDDoRn9HC7hXACl52Or06a/fxdzDajWb5wov3c6a+gVSlekRoexfjwQSK9sh5um5LQ==", - "path": "runtime.any.system.runtime/4.3.0", - "hashPath": "runtime.any.system.runtime.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Runtime.Handles/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-GG84X6vufoEzqx8PbeBKheE4srOhimv+yLtGb/JkR3Y2FmoqmueLNFU4Xx8Y67plFpltQSdK74x0qlEhIpv/CQ==", - "path": "runtime.any.system.runtime.handles/4.3.0", - "hashPath": "runtime.any.system.runtime.handles.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Runtime.InteropServices/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-lBoFeQfxe/4eqjPi46E0LU/YaCMdNkQ8B4MZu/mkzdIAZh8RQ1NYZSj0egrQKdgdvlPFtP4STtob40r4o2DBAw==", - "path": "runtime.any.system.runtime.interopservices/4.3.0", - "hashPath": "runtime.any.system.runtime.interopservices.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Text.Encoding/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-+ihI5VaXFCMVPJNstG4O4eo1CfbrByLxRrQQTqOTp1ttK0kUKDqOdBSTaCB2IBk/QtjDrs6+x4xuezyMXdm0HQ==", - "path": "runtime.any.system.text.encoding/4.3.0", - "hashPath": "runtime.any.system.text.encoding.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Text.Encoding.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-NLrxmLsfRrOuVqPWG+2lrQZnE53MLVeo+w9c54EV+TUo4c8rILpsDXfY8pPiOy9kHpUHHP07ugKmtsU3vVW5Jg==", - "path": "runtime.any.system.text.encoding.extensions/4.3.0", - "hashPath": "runtime.any.system.text.encoding.extensions.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Threading.Tasks/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-OhBAVBQG5kFj1S+hCEQ3TUHBAEtZ3fbEMgZMRNdN8A0Pj4x+5nTELEqL59DU0TjKVE6II3dqKw4Dklb3szT65w==", - "path": "runtime.any.system.threading.tasks/4.3.0", - "hashPath": "runtime.any.system.threading.tasks.4.3.0.nupkg.sha512" - }, - "runtime.any.System.Threading.Timer/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-w4ehZJ+AwXYmGwYu+rMvym6RvMaRiUEQR1u6dwcyuKHxz8Heu/mO9AG1MquEgTyucnhv3M43X0iKpDOoN17C0w==", - "path": "runtime.any.system.threading.timer/4.3.0", - "hashPath": "runtime.any.system.threading.timer.4.3.0.nupkg.sha512" - }, "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": { "type": "package", "serviceable": true, @@ -1498,55 +1240,6 @@ "path": "runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl/4.3.0", "hashPath": "runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512" }, - "runtime.win.Microsoft.Win32.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-NU51SEt/ZaD2MF48sJ17BIqx7rjeNNLXUevfMOjqQIetdndXwYjZfZsT6jD+rSWp/FYxjesdK4xUSl4OTEI0jw==", - "path": "runtime.win.microsoft.win32.primitives/4.3.0", - "hashPath": "runtime.win.microsoft.win32.primitives.4.3.0.nupkg.sha512" - }, - "runtime.win.System.Console/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-RRACWygml5dnmfgC1SW6tLGsFgwsUAKFtvhdyHnIEz4EhWyrd7pacDdY95CacQJy7BMXRDRCejC9aCRC0Y1sQA==", - "path": "runtime.win.system.console/4.3.0", - "hashPath": "runtime.win.system.console.4.3.0.nupkg.sha512" - }, - "runtime.win.System.Diagnostics.Debug/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-hHHP0WCStene2jjeYcuDkETozUYF/3sHVRHAEOgS3L15hlip24ssqCTnJC28Z03Wpo078oMcJd0H4egD2aJI8g==", - "path": "runtime.win.system.diagnostics.debug/4.3.0", - "hashPath": "runtime.win.system.diagnostics.debug.4.3.0.nupkg.sha512" - }, - "runtime.win.System.IO.FileSystem/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Z37zcSCpXuGCYtFbqYO0TwOVXxS2d+BXgSoDFZmRg8BC4Cuy54edjyIvhhcfCrDQA9nl+EPFTgHN54dRAK7mNA==", - "path": "runtime.win.system.io.filesystem/4.3.0", - "hashPath": "runtime.win.system.io.filesystem.4.3.0.nupkg.sha512" - }, - "runtime.win.System.Net.Primitives/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-lkXXykakvXUU+Zq2j0pC6EO20lEhijjqMc01XXpp1CJN+DeCwl3nsj4t5Xbpz3kA7yQyTqw6d9SyIzsyLsV3zA==", - "path": "runtime.win.system.net.primitives/4.3.0", - "hashPath": "runtime.win.system.net.primitives.4.3.0.nupkg.sha512" - }, - "runtime.win.System.Net.Sockets/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-FK/2gX6MmuLIKNCGsV59Fe4IYrLrI5n9pQ1jh477wiivEM/NCXDT2dRetH5FSfY0bQ+VgTLcS3zcmjQ8my3nxQ==", - "path": "runtime.win.system.net.sockets/4.3.0", - "hashPath": "runtime.win.system.net.sockets.4.3.0.nupkg.sha512" - }, - "runtime.win.System.Runtime.Extensions/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-RkgHVhUPvzZxuUubiZe8yr/6CypRVXj0VBzaR8hsqQ8f+rUo7e4PWrHTLOCjd8fBMGWCrY//fi7Ku3qXD7oHRw==", - "path": "runtime.win.system.runtime.extensions/4.3.0", - "hashPath": "runtime.win.system.runtime.extensions.4.3.0.nupkg.sha512" - }, "System.AppContext/4.3.0": { "type": "package", "serviceable": true, @@ -1750,13 +1443,6 @@ "path": "system.net.http/4.3.0", "hashPath": "system.net.http.4.3.0.nupkg.sha512" }, - "System.Net.NameResolution/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-AFYl08R7MrsrEjqpQWTZWBadqXyTzNDaWpMqyxhb0d6sGhV6xMDKueuBXlLL30gz+DIRY6MpdgnHWlCh5wmq9w==", - "path": "system.net.nameresolution/4.3.0", - "hashPath": "system.net.nameresolution.4.3.0.nupkg.sha512" - }, "System.Net.Primitives/4.3.0": { "type": "package", "serviceable": true, @@ -1778,13 +1464,6 @@ "path": "system.objectmodel/4.3.0", "hashPath": "system.objectmodel.4.3.0.nupkg.sha512" }, - "System.Private.Uri/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-I4SwANiUGho1esj4V4oSlPllXjzCZDE+5XXso2P03LW2vOda2Enzh8DWOxwN6hnrJyp314c7KuVu31QYhRzOGg==", - "path": "system.private.uri/4.3.0", - "hashPath": "system.private.uri.4.3.0.nupkg.sha512" - }, "System.Reflection/4.3.0": { "type": "package", "serviceable": true, @@ -1897,13 +1576,6 @@ "path": "system.runtime.serialization.primitives/4.3.0", "hashPath": "system.runtime.serialization.primitives.4.3.0.nupkg.sha512" }, - "System.Security.Claims/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-P/+BR/2lnc4PNDHt/TPBAWHVMLMRHsyYZbU1NphW4HIWzCggz8mJbTQQ3MKljFE7LS3WagmVFuBgoLcFzYXlkA==", - "path": "system.security.claims/4.3.0", - "hashPath": "system.security.claims.4.3.0.nupkg.sha512" - }, "System.Security.Cryptography.Algorithms/4.3.0": { "type": "package", "serviceable": true, @@ -1960,20 +1632,6 @@ "path": "system.security.cryptography.x509certificates/4.3.0", "hashPath": "system.security.cryptography.x509certificates.4.3.0.nupkg.sha512" }, - "System.Security.Principal/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-I1tkfQlAoMM2URscUtpcRo/hX0jinXx6a/KUtEQoz3owaYwl3qwsO8cbzYVVnjxrzxjHo3nJC+62uolgeGIS9A==", - "path": "system.security.principal/4.3.0", - "hashPath": "system.security.principal.4.3.0.nupkg.sha512" - }, - "System.Security.Principal.Windows/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-HVL1rvqYtnRCxFsYag/2le/ZfKLK4yMw79+s6FmKXbSCNN0JeAhrYxnRAHFoWRa0dEojsDcbBSpH3l22QxAVyw==", - "path": "system.security.principal.windows/4.3.0", - "hashPath": "system.security.principal.windows.4.3.0.nupkg.sha512" - }, "System.Text.Encoding/4.3.0": { "type": "package", "serviceable": true, @@ -2009,13 +1667,6 @@ "path": "system.threading.channels/4.7.1", "hashPath": "system.threading.channels.4.7.1.nupkg.sha512" }, - "System.Threading.Overlapped/4.3.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-m3HQ2dPiX/DSTpf+yJt8B0c+SRvzfqAJKx+QDWi+VLhz8svLT23MVjEOHPF/KiSLeArKU/iHescrbLd3yVgyNg==", - "path": "system.threading.overlapped/4.3.0", - "hashPath": "system.threading.overlapped.4.3.0.nupkg.sha512" - }, "System.Threading.Tasks/4.3.0": { "type": "package", "serviceable": true, diff --git a/bin/XescSDK.dll b/bin/XescSDK.dll index 47f3a78..019bfb8 100644 Binary files a/bin/XescSDK.dll and b/bin/XescSDK.dll differ diff --git a/bin/runtimes/linux-arm/native/libLdaNative.so b/bin/runtimes/linux-arm/native/libLdaNative.so new file mode 100644 index 0000000..425932f Binary files /dev/null and b/bin/runtimes/linux-arm/native/libLdaNative.so differ diff --git a/bin/runtimes/linux-arm64/native/libLdaNative.so b/bin/runtimes/linux-arm64/native/libLdaNative.so new file mode 100644 index 0000000..5e93ec0 Binary files /dev/null and b/bin/runtimes/linux-arm64/native/libLdaNative.so differ diff --git a/bin/runtimes/linux-x64/native/libFastTreeNative.so b/bin/runtimes/linux-x64/native/libFastTreeNative.so new file mode 100644 index 0000000..a3745bb Binary files /dev/null and b/bin/runtimes/linux-x64/native/libFastTreeNative.so differ diff --git a/bin/runtimes/linux-x64/native/libLdaNative.so b/bin/runtimes/linux-x64/native/libLdaNative.so new file mode 100644 index 0000000..8ef6ad0 Binary files /dev/null and b/bin/runtimes/linux-x64/native/libLdaNative.so differ diff --git a/bin/runtimes/osx-arm64/native/libLdaNative.dylib b/bin/runtimes/osx-arm64/native/libLdaNative.dylib new file mode 100644 index 0000000..21a3986 Binary files /dev/null and b/bin/runtimes/osx-arm64/native/libLdaNative.dylib differ diff --git a/bin/runtimes/osx-x64/native/libFastTreeNative.dylib b/bin/runtimes/osx-x64/native/libFastTreeNative.dylib new file mode 100644 index 0000000..2a028c7 Binary files /dev/null and b/bin/runtimes/osx-x64/native/libFastTreeNative.dylib differ diff --git a/bin/runtimes/osx-x64/native/libLdaNative.dylib b/bin/runtimes/osx-x64/native/libLdaNative.dylib new file mode 100644 index 0000000..8d7695b Binary files /dev/null and b/bin/runtimes/osx-x64/native/libLdaNative.dylib differ diff --git a/bin/FastTreeNative.dll b/bin/runtimes/win-x64/native/FastTreeNative.dll similarity index 100% rename from bin/FastTreeNative.dll rename to bin/runtimes/win-x64/native/FastTreeNative.dll diff --git a/bin/LdaNative.dll b/bin/runtimes/win-x64/native/LdaNative.dll similarity index 100% rename from bin/LdaNative.dll rename to bin/runtimes/win-x64/native/LdaNative.dll diff --git a/bin/runtimes/win-x86/native/FastTreeNative.dll b/bin/runtimes/win-x86/native/FastTreeNative.dll new file mode 100644 index 0000000..5d315ad Binary files /dev/null and b/bin/runtimes/win-x86/native/FastTreeNative.dll differ diff --git a/bin/runtimes/win-x86/native/LdaNative.dll b/bin/runtimes/win-x86/native/LdaNative.dll new file mode 100644 index 0000000..eee0015 Binary files /dev/null and b/bin/runtimes/win-x86/native/LdaNative.dll differ diff --git a/bin/runtimes/win/lib/netcoreapp3.0/System.Security.Cryptography.Pkcs.dll b/bin/runtimes/win/lib/netcoreapp3.0/System.Security.Cryptography.Pkcs.dll new file mode 100644 index 0000000..1481034 Binary files /dev/null and b/bin/runtimes/win/lib/netcoreapp3.0/System.Security.Cryptography.Pkcs.dll differ diff --git a/bin/xvneng.deps.json b/bin/xvneng.deps.json deleted file mode 100644 index a200058..0000000 --- a/bin/xvneng.deps.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "runtimeTarget": { - "name": "net5.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - "net5.0": { - "xvneng/1.0.0": { - "dependencies": { - "XescSDK": "4.0.4.0" - }, - "runtime": { - "xvneng.dll": {} - } - }, - "XescSDK/4.0.4.0": { - "runtime": { - "XescSDK.dll": { - "assemblyVersion": "4.0.4.0", - "fileVersion": "4.0.4.0" - } - } - }, - "Microsoft.ML.Data/1.0.0.0": { - "runtime": { - "Microsoft.ML.Data.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "Microsoft.ML.Core/1.0.0.0": { - "runtime": { - "Microsoft.ML.Core.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "Microsoft.ML.DataView/1.0.0.0": { - "runtime": { - "Microsoft.ML.DataView.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "PeNet/1.6.1.0": { - "runtime": { - "PeNet.dll": { - "assemblyVersion": "1.6.1.0", - "fileVersion": "1.6.1.0" - } - } - }, - "Microsoft.ML.Transforms/1.0.0.0": { - "runtime": { - "Microsoft.ML.Transforms.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "Microsoft.ML.FastTree/1.0.0.0": { - "runtime": { - "Microsoft.ML.FastTree.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "Microsoft.ML.StandardTrainers/1.0.0.0": { - "runtime": { - "Microsoft.ML.StandardTrainers.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "Newtonsoft.Json/10.0.0.0": { - "runtime": { - "Newtonsoft.Json.dll": { - "assemblyVersion": "10.0.0.0", - "fileVersion": "10.0.3.21018" - } - } - }, - "Microsoft.ML.CpuMath/1.0.0.0": { - "runtime": { - "Microsoft.ML.CpuMath.dll": { - "assemblyVersion": "1.0.0.0", - "fileVersion": "1.700.122.15804" - } - } - }, - "PeNet.Asn1/1.3.3.0": { - "runtime": { - "PeNet.Asn1.dll": { - "assemblyVersion": "1.3.3.0", - "fileVersion": "1.3.3.0" - } - } - } - } - }, - "libraries": { - "xvneng/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "XescSDK/4.0.4.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.Data/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.Core/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.DataView/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "PeNet/1.6.1.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.Transforms/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.FastTree/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.StandardTrainers/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Newtonsoft.Json/10.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "Microsoft.ML.CpuMath/1.0.0.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - }, - "PeNet.Asn1/1.3.3.0": { - "type": "reference", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/bin/xvneng.dll b/bin/xvneng.dll deleted file mode 100644 index cc0c1c8..0000000 Binary files a/bin/xvneng.dll and /dev/null differ diff --git a/bin/xvneng.exp b/bin/xvneng.exp deleted file mode 100644 index 4a4d010..0000000 Binary files a/bin/xvneng.exp and /dev/null differ diff --git a/bin/xvneng.lib b/bin/xvneng.lib deleted file mode 100644 index 46327d3..0000000 Binary files a/bin/xvneng.lib and /dev/null differ diff --git a/bin/xvneng.runtimeconfig.json b/bin/xvneng.runtimeconfig.json deleted file mode 100644 index d54914b..0000000 --- a/bin/xvneng.runtimeconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net5.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "5.0.0" - }, - "configProperties": { - "System.Reflection.Metadata.MetadataUpdater.IsSupported": false - } - } -} \ No newline at end of file diff --git a/example/.vs/Example/DesignTimeBuild/.dtbcache.v2 b/example/.vs/Example/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..2447ee2 Binary files /dev/null and b/example/.vs/Example/DesignTimeBuild/.dtbcache.v2 differ diff --git a/example/.vs/Example/v17/.futdcache.v1 b/example/.vs/Example/v17/.futdcache.v1 new file mode 100644 index 0000000..dc11175 Binary files /dev/null and b/example/.vs/Example/v17/.futdcache.v1 differ diff --git a/example/.vs/Example/v17/.suo b/example/.vs/Example/v17/.suo new file mode 100644 index 0000000..48f80d6 Binary files /dev/null and b/example/.vs/Example/v17/.suo differ diff --git a/example/Example.csproj b/example/Example.csproj new file mode 100644 index 0000000..35ed8ac --- /dev/null +++ b/example/Example.csproj @@ -0,0 +1,14 @@ + + + + Exe + net5.0 + + + + + ..\bin\XescSDK.dll + + + + diff --git a/example/Example.sln b/example/Example.sln new file mode 100644 index 0000000..d9a3ca7 --- /dev/null +++ b/example/Example.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32210.238 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example.csproj", "{8F6B7C05-7B90-435F-91D1-A67D81AC4598}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8F6B7C05-7B90-435F-91D1-A67D81AC4598}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8F6B7C05-7B90-435F-91D1-A67D81AC4598}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8F6B7C05-7B90-435F-91D1-A67D81AC4598}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8F6B7C05-7B90-435F-91D1-A67D81AC4598}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D3BB5E9B-E059-4EAF-90F6-7F9FCA01F92B} + EndGlobalSection +EndGlobal diff --git a/example/Program.cs b/example/Program.cs new file mode 100644 index 0000000..e5732bd --- /dev/null +++ b/example/Program.cs @@ -0,0 +1,13 @@ +using System; +using XescSDK; + +namespace Example +{ + internal class Program + { + static void Main(string[] args) + { + Console.WriteLine(XvirusSDK.Version()); + } + } +} diff --git a/example/xvbdc.cpp b/example/xvbdc.cpp deleted file mode 100644 index deacbca..0000000 --- a/example/xvbdc.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include - -#include "xvneng.h" - -using namespace std; - -int main ( - int argc, - char* argv[] -) -{ - string info = string ( version () ); - - try - { - load(false); - } - catch (const std::exception& e ) - { - cout << e.what() << endl; - } - - if ( info.length () ) - { - cout << info.c_str () << endl; - } - else - { - cout << "N/A" << endl; - } - - (void) getchar (); - - return EXIT_SUCCESS; -} \ No newline at end of file diff --git a/example/xvbdc.sln b/example/xvbdc.sln deleted file mode 100644 index 0f2e5a3..0000000 --- a/example/xvbdc.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31727.386 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xvbdc", "xvbdc.vcxproj", "{4BB437D2-6130-4B33-BD70-6131B4C491EB}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Debug|x64.ActiveCfg = Debug|x64 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Debug|x64.Build.0 = Debug|x64 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Debug|x86.ActiveCfg = Debug|Win32 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Debug|x86.Build.0 = Debug|Win32 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Release|x64.ActiveCfg = Release|x64 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Release|x64.Build.0 = Release|x64 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Release|x86.ActiveCfg = Release|Win32 - {4BB437D2-6130-4B33-BD70-6131B4C491EB}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {C7B73751-3C79-4487-BDAC-775522402091} - EndGlobalSection -EndGlobal diff --git a/example/xvbdc.vcxproj b/example/xvbdc.vcxproj deleted file mode 100644 index 2b18f8a..0000000 --- a/example/xvbdc.vcxproj +++ /dev/null @@ -1,152 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 16.0 - Win32Proj - {4bb437d2-6130-4b33-bd70-6131b4c491eb} - xvbdc - 10.0 - - - - Application - true - v142 - Unicode - - - Application - false - v142 - true - Unicode - - - Application - true - v142 - Unicode - - - Application - false - v142 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - false - - - true - - - false - - - - Level3 - true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - MultiThreaded - - - Console - true - true - true - - - - - Level3 - true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - MultiThreaded - - - Console - true - true - true - - - - - - - - - - - - \ No newline at end of file diff --git a/example/xvbdc.vcxproj.filters b/example/xvbdc.vcxproj.filters deleted file mode 100644 index 35c1f22..0000000 --- a/example/xvbdc.vcxproj.filters +++ /dev/null @@ -1,27 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - Source Files - - - - - Header Files - - - \ No newline at end of file diff --git a/example/xvbdc.vcxproj.user b/example/xvbdc.vcxproj.user deleted file mode 100644 index 966b4ff..0000000 --- a/example/xvbdc.vcxproj.user +++ /dev/null @@ -1,6 +0,0 @@ - - - - true - - \ No newline at end of file diff --git a/example/xvneng.h b/example/xvneng.h deleted file mode 100644 index 0fe13b3..0000000 --- a/example/xvneng.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#ifndef _XVNENG_H -#define _XVNENG_H - -#pragma comment ( lib, "xvneng.lib" ) - -struct ScanResult { - bool isMalware; - double score; - char* name; -}; - -__declspec(dllimport) void load(bool force); -__declspec(dllimport) void unload(); -__declspec(dllimport) ScanResult scan(const wchar_t* filepath); -__declspec(dllimport) char* scanAsString(const wchar_t* filepath); -__declspec(dllimport) char* checkUpdates(bool checkSDKUpdates, bool loadDBAfterUpdate); -__declspec(dllimport) char* getSettings(); -__declspec(dllimport) char* version(); - -#endif // _XVNENG_H diff --git a/example/xvneng.lib b/example/xvneng.lib deleted file mode 100644 index 46327d3..0000000 Binary files a/example/xvneng.lib and /dev/null differ diff --git a/functions.JPG b/functions.JPG deleted file mode 100644 index 996caac..0000000 Binary files a/functions.JPG and /dev/null differ diff --git a/headers/xvneng.h b/headers/xvneng.h deleted file mode 100644 index 0fe13b3..0000000 --- a/headers/xvneng.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#ifndef _XVNENG_H -#define _XVNENG_H - -#pragma comment ( lib, "xvneng.lib" ) - -struct ScanResult { - bool isMalware; - double score; - char* name; -}; - -__declspec(dllimport) void load(bool force); -__declspec(dllimport) void unload(); -__declspec(dllimport) ScanResult scan(const wchar_t* filepath); -__declspec(dllimport) char* scanAsString(const wchar_t* filepath); -__declspec(dllimport) char* checkUpdates(bool checkSDKUpdates, bool loadDBAfterUpdate); -__declspec(dllimport) char* getSettings(); -__declspec(dllimport) char* version(); - -#endif // _XVNENG_H