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:
-rw-r--r--js/filelist.js20
-rw-r--r--js/scan.js2
-rw-r--r--lib/Db/FileOperation.php2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/filelist.js b/js/filelist.js
index c43ebf6..245a749 100644
--- a/js/filelist.js
+++ b/js/filelist.js
@@ -424,13 +424,13 @@
}).text(simpleSize));
tr.append(td);
- if (fileData.fileClass === '1') {
+ if (fileData.fileClass === 1) {
// encrypted
td = $('<td></td>').append($('<p></p>').attr({"title": "ENCRYPTED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-lock fa-fw"></span>'));
- } else if (fileData.fileClass === '2') {
+ } else if (fileData.fileClass === 2) {
// compressed
td = $('<td></td>').append($('<p></p>').attr({"title": "COMPRESSED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file-archive fa-fw"></span>'));
- } else if (fileData.fileClass === '3') {
+ } else if (fileData.fileClass === 3) {
// normal
td = $('<td></td>').append($('<p></p>').attr({"title": "NORMAL"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file fa-fw"></span>'));
} else {
@@ -439,10 +439,10 @@
}
tr.append(td);
- if (fileData.fileExtensionClass === '0') {
+ if (fileData.fileExtensionClass === 0) {
// normal
td = $('<td></td>').append($('<p></p>').attr({"title": "NOT_SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-check-circle fa-fw"></span>'));
- } else if (fileData.fileExtensionClass === '1') {
+ } else if (fileData.fileExtensionClass === 1) {
// suspicious
td = $('<td></td>').append($('<p></p>').attr({"title": "SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-exclamation-triangle fa-fw"></span>'));
} else {
@@ -585,13 +585,13 @@
}).text(simpleSize));
tr.append(td);
- if (fileData.fileClass === '1') {
+ if (fileData.fileClass === 1) {
// encrypted
td = $('<td></td>').append($('<p></p>').attr({"title": "ENCRYPTED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-lock fa-fw"></span>'));
- } else if (fileData.fileClass === '2') {
+ } else if (fileData.fileClass === 2) {
// compressed
td = $('<td></td>').append($('<p></p>').attr({"title": "COMPRESSED"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file-archive fa-fw"></span>'));
- } else if (fileData.fileClass === '3') {
+ } else if (fileData.fileClass === 3) {
// normal
td = $('<td></td>').append($('<p></p>').attr({"title": "NORMAL"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-file fa-fw"></span>'));
} else {
@@ -600,10 +600,10 @@
}
tr.append(td);
- if (fileData.fileExtensionClass === '0') {
+ if (fileData.fileExtensionClass === 0) {
// not suspicious
td = $('<td></td>').append($('<p></p>').attr({"title": "NOT_SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-check-circle fa-fw"></span>'));
- } else if (fileData.fileExtensionClass === '1') {
+ } else if (fileData.fileExtensionClass === 1) {
// suspicious
td = $('<td></td>').append($('<p></p>').attr({"title": "SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-exclamation-triangle fa-fw"></span>'));
} else {
diff --git a/js/scan.js b/js/scan.js
index b5be947..453ce40 100644
--- a/js/scan.js
+++ b/js/scan.js
@@ -444,7 +444,7 @@
if (fileData.fileExtensionClass === 0) {
// not suspicious
td = $('<td></td>').append($('<p></p>').attr({"title": "NOT_SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-check-circle fa-fw"></span>'));
- } else if (fileData.fileExtensionClass === 3) {
+ } else if (fileData.fileExtensionClass === 1) {
// suspicious
td = $('<td></td>').append($('<p></p>').attr({"title": "SUSPICIOUS"}).tooltip({placement: 'top'}).prepend('<span class="fas fa-exclamation-triangle fa-fw"></span>'));
} else {
diff --git a/lib/Db/FileOperation.php b/lib/Db/FileOperation.php
index e91f92c..09bcedc 100644
--- a/lib/Db/FileOperation.php
+++ b/lib/Db/FileOperation.php
@@ -83,5 +83,7 @@ class FileOperation extends Entity
$this->addType('entropy', 'float');
$this->addType('standardDeviation', 'float');
$this->addType('suspicionClass', 'integer');
+ $this->addType('fileExtensionClass', 'integer');
+ $this->addType('fileClass', 'integer');
}
}