Compare commits

...

55 Commits
3.4.1 ... 3.4.6

Author SHA1 Message Date
Matt Nadareski
ff8976a67a Restore warning not as error 2025-11-10 13:09:49 -05:00
Matt Nadareski
dc968c2d15 Bump version 2025-11-10 13:07:37 -05:00
Matt Nadareski
3726abb209 Cleanup 2025-11-10 12:57:08 -05:00
HeroponRikiBestest
ac8dfb833c Fixes last minute issue with json parsing (#392)
* fix

* add comment back

* slight simplification

* Remove newline

* Remove newline

* Fix
2025-11-10 12:45:56 -05:00
Matt Nadareski
f0673046dc Minor cleanup from last commit 2025-11-10 09:53:53 -05:00
Matt Nadareski
d9fa073c0f Minor cleanup from last commit 2025-11-10 09:53:25 -05:00
HeroponRikiBestest
95a20fb30d Add nested json output for protectionscan (#391)
* Attempt nested for real this time

* forgot to include handling the base path

* Reverted unnecesssary changes

* Remove unneeded net6.0 gating

* Add comments

* Finish comments

* Might as well safeguard if no protections are returned.

* Use object instead of dynamic

* Remove weird empty string root node handling

* remove uneeded ref

* Modify comment accordingly

* Merge regular and nested json writing

* Simplify object value checking

* change flag handling

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>

* Initial fixes

* Invert if-else to de-nest main logic

* minor formatting fixes

* Improved Json output

* Remove unnecessary comments

* That's just a string

* Slight improvement

* Simplify casting

* attept further simplification

* Further

* Reduce nesting using inversion and continue

* Further simplified logic

* Replace my code with sabre's

* De-nest using continue

* newline

* Remove all instances where it can end in a directory seperator

---------

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
2025-11-10 09:48:22 -05:00
Matt Nadareski
dd1e49662f Cleanup 2025-11-07 22:14:28 -05:00
HeroponRikiBestest
78947616b1 Add json output for protectionscan (#390)
* actual first pr

* Initial fixes

* Second round of fixes

* Final fix
2025-11-07 22:07:08 -05:00
Matt Nadareski
ba56b9aff6 Add file-only flag for scans 2025-11-07 10:51:02 -05:00
Matt Nadareski
3b287c6f7b Mid 2025-11-07 09:46:34 -05:00
Matt Nadareski
dcdf0bcf40 Automatic cleanup 2025-11-07 08:24:22 -05:00
Matt Nadareski
d2eebd0f00 Cleanup 2025-11-07 07:40:33 -05:00
HeroponRikiBestest
a281e8325e Initial ISO Protection Detection (#389)
* Initial

* Laserlock in

* This is a better way to read the string

* That array copy wasn't needed either

* Use static filetype method, rename filetype.iso

* Initial Codelok ISO scanning

* Comments with redump IDs

* Add redump examples to laserlock

* Change for testing

* Small comment

* TAGES

* halfway through safedisc

* Safedisc done

* Fix 1

* Major oversights in puredata fixed

* Finish SecuROM

* ProtectDiSC done

* Alpharom done

* Finish StarForce, initial PR review ready

* Wait, that would be really bad

* One more for the road.

* Small finding

* Small fix for finding

* Notes on finding

* Several minor fixes, decisions

* what do you MEAN it returns true if there are no elements in the array

* Future todo

* Update packages

* Rebase

* Fix runisochecks

* First round of fixes

* Second round of fixes

* Tests attempt 1

* Make checks work

* Individual test attempt 1

* Final tests

---------

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
2025-11-07 07:22:28 -05:00
Matt Nadareski
9f5b292035 Fix MPQ note 2025-11-06 21:05:55 -05:00
Matt Nadareski
466689dcbc Clean up holdover logic 2025-11-06 13:43:49 -05:00
Matt Nadareski
5b0bf2e7e4 Update packages 2025-11-06 08:22:09 -05:00
Matt Nadareski
cc8dfb8478 Update rolling tag 2025-10-26 20:29:55 -04:00
Matt Nadareski
82412fce9a Add more ProtectCD/DVD checks (fixes #387) 2025-10-21 14:06:09 -04:00
HeroponRikiBestest
1a67decd7b Minor Release Control update (#386)
* Minor Release Control update

Added russian Gothic 4, updated international gothic 4 now that a redump entry exists, noted 2 other versions known to exist.

* Minor comment formatting
2025-10-16 19:58:48 -04:00
Matt Nadareski
f1afb6d60b Bump version 2025-10-07 16:00:04 -04:00
Matt Nadareski
5e812daf01 Fix debug flag use 2025-10-07 14:56:53 -04:00
Matt Nadareski
ab508eebe8 Use main feature pattern 2025-10-07 13:44:27 -04:00
Matt Nadareski
31792fab48 Update packages 2025-10-07 13:33:55 -04:00
Matt Nadareski
010f792b1a Add minor identifier for NSIS 2025-10-07 09:45:50 -04:00
Matt Nadareski
a3118cee68 Use CommandLine library for executable 2025-10-06 09:43:15 -04:00
Matt Nadareski
daa72eb970 Bump version 2025-10-05 17:32:27 -04:00
Matt Nadareski
a42328ef60 Update Serialization to 2.0.1 2025-10-05 17:26:01 -04:00
Matt Nadareski
7f2dd26d9b Require exact versions for build 2025-09-30 11:12:41 -04:00
Matt Nadareski
871ac97a3a Bump version 2025-09-29 14:18:10 -04:00
Matt Nadareski
5e11048e18 Remove compiler flags that weren't working 2025-09-29 12:44:52 -04:00
Matt Nadareski
19e696bf15 Use an assumption to help trim for now 2025-09-29 08:33:33 -04:00
Matt Nadareski
ddf8c393df Use AddD reader instead of manual 2025-09-29 08:29:30 -04:00
Matt Nadareski
d234549099 Use constant for AddD 2025-09-29 08:26:37 -04:00
Matt Nadareski
5899dd99f3 Reduce AddD search window 2025-09-29 08:24:08 -04:00
Matt Nadareski
f50f9f741d Update Serialization to 2.0.0 2025-09-29 08:01:50 -04:00
Matt Nadareski
09f5b28de7 More Clickteam notes 2025-09-27 21:34:11 -04:00
Matt Nadareski
f71a007b35 Add notes about Clickteam 2025-09-27 21:02:08 -04:00
Matt Nadareski
d6a89c8905 Partially revert and clarify 2025-09-26 21:45:01 -04:00
Matt Nadareski
1b4f363b08 Couple of PECompact things 2025-09-26 21:41:15 -04:00
Matt Nadareski
8abdaa4218 Add a couple more NSIS notes 2025-09-26 21:35:33 -04:00
Matt Nadareski
454bfa9f4f Check overlay for NSIS 2025-09-26 21:31:59 -04:00
Matt Nadareski
8534cda9c5 Add comment for NSIS 2025-09-26 21:28:37 -04:00
Matt Nadareski
b285127cee Intel Installation Framework is extractable 2025-09-26 21:24:47 -04:00
Matt Nadareski
8a6179ea11 Add newly found Shrinker section name 2025-09-26 20:59:19 -04:00
Matt Nadareski
d07e46c5f7 Add a Gentee note 2025-09-26 20:54:59 -04:00
Matt Nadareski
ee5ed5e833 Add some notes about EXECryptor 2025-09-26 20:51:29 -04:00
Matt Nadareski
7fcdfce152 Add notes about ApecSoft 2025-09-26 20:39:22 -04:00
Matt Nadareski
f1d7ee89cb Remove TODO 2025-09-26 20:05:58 -04:00
Matt Nadareski
1765e4da16 Clean up remarks, add SFX trailing name 2025-09-26 08:35:25 -04:00
Matt Nadareski
2a7455252e Add more Advanced Installer notes 2025-09-25 21:53:19 -04:00
Matt Nadareski
057ce3c4cc Add more Advanced Installer notes 2025-09-25 21:44:08 -04:00
Matt Nadareski
7e7d166ed8 Add note for Advanced Installer 2025-09-25 21:02:54 -04:00
Matt Nadareski
0872e0ff49 Bump version 2025-09-24 13:07:03 -04:00
Matt Nadareski
c0a590db63 Use package-provided IProgress to avoid conflict 2025-09-24 13:06:27 -04:00
212 changed files with 2019 additions and 828 deletions

View File

@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
@@ -27,6 +27,14 @@ jobs:
- name: Run publish script
run: ./publish-nix.sh -d
- name: Update rolling tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f rolling
git push origin :refs/tags/rolling || true
git push origin rolling --force
- name: Upload to rolling
uses: ncipollo/release-action@v1.14.0
with:

View File

@@ -16,10 +16,10 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="SabreTools.Serialization" Version="1.9.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="SabreTools.Serialization" Version="[2.1.0]" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@@ -42,4 +42,4 @@ namespace BinaryObjectScanner.Test.Data
#endregion
}
}
}

View File

@@ -47,4 +47,4 @@ namespace BinaryObjectScanner.Test.Data
Assert.Equal(105, actual.Length);
}
}
}
}

View File

@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test
#endregion
}
}
}

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class AACSMediaKeyBlockTests
{
private static readonly SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper
= new(new SabreTools.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.AACS.MediaKeyBlock(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class BDPlusSVMTests
{
private static readonly SabreTools.Serialization.Wrappers.BDPlusSVM wrapper
= new(new SabreTools.Models.BDPlus.SVM(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.BDPlus.SVM(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -0,0 +1,34 @@
using System.IO;
using BinaryObjectScanner.FileType;
using Xunit;
namespace BinaryObjectScanner.Test.FileType
{
public class DiskImageTests
{
private static readonly SabreTools.Serialization.Wrappers.ISO9660 wrapper
= new(new SabreTools.Data.Models.ISO9660.Volume(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()
{
string file = string.Empty;
var detectable = new ISO9660(wrapper);
string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void DetectStream_EmptyStream_Empty()
{
Stream? stream = new MemoryStream();
string file = string.Empty;
var detectable = new ISO9660(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.NotNull(actual);
Assert.Empty(actual);
}
}
}

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class LDSCRYPTTests
{
private static readonly SabreTools.Serialization.Wrappers.LDSCRYPT wrapper
= new(new SabreTools.Models.LDSCRYPT.EncryptedFile(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.LDSCRYPT.EncryptedFile(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class LinearExecutableTests
{
private static readonly SabreTools.Serialization.Wrappers.LinearExecutable wrapper
= new(new SabreTools.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.LinearExecutable.Executable(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class MSDOSTests
{
private static readonly SabreTools.Serialization.Wrappers.MSDOS wrapper
= new(new SabreTools.Models.MSDOS.Executable(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.MSDOS.Executable(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class NewExecutableTests
{
private static readonly SabreTools.Serialization.Wrappers.NewExecutable wrapper
= new(new SabreTools.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.NewExecutable.Executable(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class PLJTests
{
private static readonly SabreTools.Serialization.Wrappers.PlayJAudioFile wrapper
= new(new SabreTools.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.PlayJ.AudioFile(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class PortableExecutableTests
{
private static readonly SabreTools.Serialization.Wrappers.PortableExecutable wrapper
= new(new SabreTools.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.PortableExecutable.Executable(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class RealArcadeInstallerTests
{
private static readonly SabreTools.Serialization.Wrappers.RealArcadeInstaller wrapper
= new(new SabreTools.Models.RealArcade.RgsFile(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.RealArcade.RgsFile(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class RealArcadeMezzanineTests
{
private static readonly SabreTools.Serialization.Wrappers.RealArcadeMezzanine wrapper
= new(new SabreTools.Models.RealArcade.Mezzanine(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.RealArcade.Mezzanine(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -7,7 +7,7 @@ namespace BinaryObjectScanner.Test.FileType
public class SFFSTests
{
private static readonly SabreTools.Serialization.Wrappers.SFFS wrapper
= new(new SabreTools.Models.StarForce.FileSystem(), new MemoryStream(new byte[1024]));
= new(new SabreTools.Data.Models.StarForce.FileSystem(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.GameEngine
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.GameEngine
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -21,7 +21,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -30,4 +30,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckNewExecutableTest()
{
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
@@ -23,7 +23,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckNewExecutableTest()
{
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
@@ -18,12 +18,12 @@ namespace BinaryObjectScanner.Test.Packer
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Packer
public void CheckNewExecutableTest()
{
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
@@ -18,12 +18,12 @@ namespace BinaryObjectScanner.Test.Packer
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -21,7 +21,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -30,4 +30,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -18,5 +18,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new AlphaROM();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckNewExecutableTest()
{
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
@@ -19,12 +19,12 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -32,7 +32,7 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckDirectoryPathTest()
{
@@ -54,4 +54,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -18,5 +18,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new CopyLok();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -40,5 +40,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckFilePath(path);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new LaserLok();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckNewExecutableTest()
{
string file = "filename";
SabreTools.Models.NewExecutable.Executable model = new();
SabreTools.Data.Models.NewExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.NewExecutable exe = new(model, source);
@@ -24,7 +24,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -53,5 +53,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckFilePath(path);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new Macrovision();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -11,7 +11,7 @@ namespace BinaryObjectScanner.Test.Protection
public void CheckPortableExecutableTest()
{
string file = "filename";
SabreTools.Models.PortableExecutable.Executable model = new();
SabreTools.Data.Models.PortableExecutable.Executable model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.PortableExecutable exe = new(model, source);
@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More