snort-rule 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snort/rule/version.rb +1 -1
- data/lib/snort/ruleset.rb +1 -1
- data/test/test_snort-community-rules.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a7273283fb3e512503887be54a2f8fe2f9db0ba
|
4
|
+
data.tar.gz: c9805f7672b3d5728ec5c81e57189f5864ee9ab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54ee379bd8b7f69ffd9e67e836b6e04446d9742670d2bd44563056c93368cb01434d64c2d1675b73169d282638d17a47a3eb67d411e8988909a35b4d7505c7f6
|
7
|
+
data.tar.gz: 5782bd0aa94129664cca222ad73ebea3a84bc158d656881364c54be3700a8225db5404ee60d8fce4ca6b6ce4c1ec6ac7e28d0a5dc9281664512fedba62ff027a
|
data/lib/snort/rule/version.rb
CHANGED
data/lib/snort/ruleset.rb
CHANGED
@@ -29,7 +29,7 @@ module Snort
|
|
29
29
|
def RuleSet::from_filehandle(fh)
|
30
30
|
rules = RuleSet.new
|
31
31
|
fh.each_line do |line|
|
32
|
-
if line =~ /(alert|
|
32
|
+
if line =~ /(alert|log|pass|activate|dynamic|drop|reject|sdrop)/
|
33
33
|
begin
|
34
34
|
rule = Snort::Rule.parse(line)
|
35
35
|
if rule
|
@@ -97,7 +97,7 @@ class TestSnortCommunityRules < Minitest::Test
|
|
97
97
|
assert File.exist?("test/community-rules/community.rules.test")
|
98
98
|
total = enabled = disabled = 0
|
99
99
|
open("test/community-rules/community.rules.test", 'r').each_line do |l|
|
100
|
-
if l =~ /^(#)?\s*(alert|
|
100
|
+
if l =~ /^(#)?\s*(alert|log|pass|activate|dynamic|drop|reject|sdrop)/
|
101
101
|
total += 1
|
102
102
|
if l =~ /^#/
|
103
103
|
disabled += 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snort-rule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chrislee35
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|