Skip to content

Commit c857145

Browse files
committed
Remove files used for testing purposes that were being detected by antivirus programs. Remove .exe extension from some other files.
1 parent 7473441 commit c857145

7 files changed

Lines changed: 3 additions & 32 deletions

File tree

tests/data/cdak_1024x768.exe

-4 KB
Binary file not shown.

tests/data/old_ArmaFP.exe

-20 KB
Binary file not shown.
File renamed without changes.

tests/test-pe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ int main(int argc, char** argv)
66
yr_initialize();
77

88
assert_true_rule_file("import \"pe\" rule test { condition: pe.imports(\"KERNEL32.dll\", \"DeleteCriticalSection\") }",
9-
"tests/data/tiny.exe");
9+
"tests/data/tiny");
1010

1111
assert_true_rule_file("import \"pe\" rule test { condition: pe.imports(\"KERNEL32.dll\", \"DeleteCriticalSection\") }",
12-
"tests/data/tiny-idata-51ff.exe");
12+
"tests/data/tiny-idata-51ff");
1313

1414
assert_false_rule_file("import \"pe\" rule test { condition: pe.imports(\"KERNEL32.dll\", \"DeleteCriticalSection\") }",
15-
"tests/data/tiny-idata-5200.exe");
15+
"tests/data/tiny-idata-5200");
1616

1717
yr_finalize();
1818
return 0;

tests/test-rules.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,35 +1034,6 @@ static void test_entrypoint()
10341034
assert_false_rule(
10351035
"rule test { condition: entrypoint >= 0 }",
10361036
NULL);
1037-
1038-
/* https://github.com/VirusTotal/yara/issues/373 */
1039-
assert_true_rule_file(
1040-
"import \"pe\" \
1041-
rule test { \
1042-
condition: pe.entry_point == 0x18 }",
1043-
"tests/data/old_ArmaFP.exe");
1044-
1045-
assert_true_rule_file(
1046-
"import \"pe\" \
1047-
rule test { \
1048-
strings: $right = { BE B0 11 40 00 } \
1049-
condition: $right at pe.entry_point }",
1050-
"tests/data/old_ArmaFP.exe");
1051-
/* $wrong = { 0B 01 4C 6F 61 64 4C } */
1052-
1053-
/* https://github.com/VirusTotal/yara/issues/399 */
1054-
assert_true_rule_file(
1055-
"import \"pe\" \
1056-
rule test { \
1057-
condition: pe.entry_point == 2 }",
1058-
"tests/data/cdak_1024x768.exe");
1059-
1060-
assert_true_rule_file(
1061-
"import \"pe\" \
1062-
rule test { \
1063-
strings: $a0 = { 68 00 00 42 00 31 C0 40 EB 58 } \
1064-
condition: $a0 at pe.entry_point }",
1065-
"tests/data/cdak_1024x768.exe");
10661037
}
10671038

10681039

0 commit comments

Comments
 (0)