mirror of
https://github.com/stellarbear/YaraSharp
synced 2026-06-08 17:36:09 +00:00
1.1.3 Release
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -4,9 +4,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
VisualStudioVersion = 15.0.27428.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "YaraSharp", "YaraSharp\YaraSharp.vcxproj", "{C005E3B9-2474-4FEA-B5F4-7BB897111E8F}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{E236CE39-D8F3-4DB6-985C-F2794FF17746} = {E236CE39-D8F3-4DB6-985C-F2794FF17746}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libyara", "yara-master\windows\vs2015\libyara\libyara.vcxproj", "{E236CE39-D8F3-4DB6-985C-F2794FF17746}"
|
||||
EndProject
|
||||
|
||||
@@ -31,7 +31,8 @@ using namespace System::Security::Permissions;
|
||||
// You can specify all the value or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly:AssemblyVersionAttribute("1.0.0")];
|
||||
[assembly:AssemblyVersion("1.1.3")];
|
||||
[assembly:AssemblyFileVersion("1.1.3")];
|
||||
|
||||
[assembly:ComVisible(false)];
|
||||
|
||||
|
||||
+1
-2
@@ -8,9 +8,8 @@
|
||||
#include <msclr\lock.h>
|
||||
|
||||
using namespace System;
|
||||
using namespace System::IO;
|
||||
using namespace System::Text;
|
||||
using namespace msclr::interop;
|
||||
using namespace System::Reflection;
|
||||
using namespace System::Collections::Generic;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
|
||||
@@ -107,4 +107,9 @@ namespace YaraSharp
|
||||
return ScanMemory(BufferPointer, Buffer->Length, Rules, ExternalVariables, Timeout);
|
||||
}
|
||||
}
|
||||
|
||||
Version^ CYaraSharp::GetVersion()
|
||||
{
|
||||
return Assembly::GetExecutingAssembly()->GetName()->Version;
|
||||
}
|
||||
}
|
||||
@@ -11,10 +11,12 @@ namespace YaraSharp
|
||||
CRules^ CompileFromFiles(List<String^>^ FilePathList,
|
||||
Dictionary<String^, Object^>^ ExternalVariables,
|
||||
[Out] Dictionary<String^, List<String^>^>^% CompilationErrors);
|
||||
|
||||
|
||||
List<CMatches^>^ ScanFile(String^ Path, CRules^ Rules, Dictionary<String^, Object^>^ ExternalVariables, int Timeout);
|
||||
List<CMatches^>^ ScanProcess(int PID, CRules^ Rules, Dictionary<String^, Object^>^ ExternalVariables, int Timeout);
|
||||
List<CMatches^>^ ScanMemory(array<uint8_t>^ Buffer, CRules^ Rules, Dictionary<String^, Object^>^ ExternalVariables, int Timeout);
|
||||
List<CMatches^>^ ScanMemory(uint8_t* Buffer, int Length, CRules^ Rules, Dictionary<String^, Object^>^ ExternalVariables, int Timeout);
|
||||
|
||||
static Version^ GetVersion();
|
||||
};
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<Keyword>ManagedCProj</Keyword>
|
||||
<RootNamespace>YaraNET</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
|
||||
Binary file not shown.
+3
-1
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using YaraSharp;
|
||||
|
||||
namespace YaraTest
|
||||
@@ -23,7 +25,7 @@ namespace YaraTest
|
||||
|
||||
// Errors occured during rule compilation: ignored_file : List<reasons>
|
||||
Dictionary<string, List<string>> Errors = new Dictionary<string, List<string>>();
|
||||
|
||||
|
||||
// Context is where yara is initialized
|
||||
// From yr_initialize() to yr_finalize()
|
||||
using (YaraSharp.CContext YSContext = new YaraSharp.CContext())
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="YaraSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\Build\Release\x86\YaraSharp.dll</HintPath>
|
||||
<HintPath>..\Build\Debug\x86\YaraSharp.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{E236CE39-D8F3-4DB6-985C-F2794FF17746}</ProjectGuid>
|
||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
|
||||
Reference in New Issue
Block a user