Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
f124096d
Commit
f124096d
authored
9 years ago
by
Victor Manuel Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test cases for
https://github.com/plusvic/yara/issues/368
parent
53963815
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
tests.py
tests.py
+3
-1
No files found.
tests.py
View file @
f124096d
...
...
@@ -503,7 +503,8 @@ class TestYara(unittest.TestCase):
],
PE32_FILE
)
self
.
assertFalseRules
([
'rule test { strings: $a = { 4D 5A [0-300] 6A 2A } condition: $a }'
'rule test { strings: $a = { 4D 5A [0-300] 6A 2A } condition: $a }'
,
'rule test { strings: $a = { 4D 5A [0-128] 45 [0-128] 01 [0-128] C3 } condition: $a }'
,
],
PE32_FILE
)
self
.
assertTrueRules
([
...
...
@@ -512,6 +513,7 @@ class TestYara(unittest.TestCase):
'rule test { strings: $a = { 31 32 [1] 34 35 [2] 38 39 } condition: $a }'
,
'rule test { strings: $a = { 31 32 [1-] 34 35 [1-] 38 39 } condition: $a }'
,
'rule test { strings: $a = { 31 32 [0-3] 34 35 [1-] 38 39 } condition: $a }'
,
'rule test { strings: $a = { 31 32 [0-2] 35 [1-] 37 38 39 } condition: $a }'
,
],
'123456789'
)
self
.
assertTrueRules
([
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment