Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-09-13 20:20:13 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-09-13 20:20:13 +0300
commit6ec96b731c2036b919da08d7a70d58a514ddd27d (patch)
tree1e76acd9f7b409a8b76b059a9b4b3ed1f552e539
parent900e31eecdfba9a7bfdaaf0349e293098e149834 (diff)
Fix file corruption analyzer tests
Signed-off-by: Matthias Held <matthias.held@uni-konstanz.de>
-rw-r--r--lib/FileSignatures.php2
-rw-r--r--tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/FileSignatures.php b/lib/FileSignatures.php
index 9065677..afd87f3 100644
--- a/lib/FileSignatures.php
+++ b/lib/FileSignatures.php
@@ -76,7 +76,7 @@ class FileSignatures
['mimeType' => '', 'extensions' => ['rtf'], 'signature' => ['starting' => ['offset' => 0, 'bytes' => ['/7b5c72746631/']]]],
['mimeType' => '', 'extensions' => ['mpg', 'mpeg'], 'signature' => ['starting' => ['offset' => 0, 'bytes' => ['/000001ba/', '/47/', '/000001b3/']]]],
['mimeType' => '', 'extensions' => ['mp4'], 'signature' => ['starting' => ['offset' => 0, 'bytes' => ['/00000018667479706d703432/']]]],
- ['mimeType' => '', 'extensions' => ['txt'], 'signature' => ['exists' => false]]],
+ ['mimeType' => '', 'extensions' => ['txt'], 'signature' => ['exists' => false]],
];
/**
diff --git a/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php b/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
index b5d97a1..a1c84fe 100644
--- a/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
+++ b/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
@@ -103,7 +103,7 @@ class FileCorruptionAnalyzerTest extends TestCase
['data' => 'ffd8ffe000104a46494600ffff', 'extension' => 'jpg', 'result' => true],
['data' => '25504446ff0d2525454f460d', 'extension' => 'pdf', 'result' => false],
['data' => 'ffff', 'extension' => 'jpg', 'result' => true],
- ['data' => 'iamgroot', 'extension' => 'txt', 'result' => false],
+ ['data' => '69616d67726f6f74', 'extension' => 'txt', 'result' => false],
];
}