Skip to content

Commit 0b1e464

Browse files
committed
refactor signatures (iCalender/LCA)
1 parent 7660980 commit 0b1e464

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

db/Binary/bin.LCA.1.sg

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// Detect It Easy: detection rule file
22
// Author: BJNFNE <[email protected]>
33

4-
// https://zenhax.com/viewtopic.php@t=17622.html
4+
// http://zenhax.com/viewtopic.php@t=17622.html
55
meta("format", "LCA");
66

77
function detect() {
88
if (Binary.compare("4C 45 47 4F")) {
9-
sVersion = "VRT v5.10";
10-
bDetected = true;
9+
var vcaFile = Binary.getString(85, 12).trim();
10+
11+
if (/^[A-Z0-9/.]{12}$/.test(vcaFile)) {
12+
if (X.isVerbose()) sOptions = vcaFile;
13+
bDetected = true;
14+
}
1115
}
1216

1317
return result();

db/Binary/bin.iCalender.1.sg

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Detect It Easy: detection rule file
2+
// Author: BJNFNE <[email protected]>
3+
4+
meta("format", "iCalendar (.ICS)");
5+
6+
function detect() {
7+
if (Binary.compare("42 45 47 49 4E 3A 56 43 41 4C 45 4E 44 41 52")) {
8+
var utf = Binary.getString(33, 5).trim();
9+
10+
if (/^[A-Z0-9/-]{5}$/.test(utf)) {
11+
if (X.isVerbose()) sOptions = utf;
12+
bDetected = true;
13+
}
14+
}
15+
16+
return result();
17+
}

db/Binary/text.ICS.1.sg

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)