aoandon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 11518eecf50b6ceb660063c5c6e5932de16f99b6
4
+ data.tar.gz: 2d507d1cf83b3d23ecf39cd5e6e26ee05cc51942
5
+ SHA512:
6
+ metadata.gz: f95645835d48b6d34108e10f59f50bd5b73263c1ebbd1482c13b98efc18225f2ae6a9b00cfb51b2e0f278d6f8a3c2e0e399a664590410d309e8a464af0b8c262
7
+ data.tar.gz: 793f1df1044499494fe8ac303bc86959d1768a69a36b57ebd2e7f8168fe265afd158d0687567ffbd41635a25de18876fb0d140f9bb4a9953ad474d387568115a
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  *.gem
2
+ *.jpg
2
3
  *.rbc
3
4
  .bundle
4
5
  .config
@@ -0,0 +1 @@
1
+ 2.1.2
data/Gemfile CHANGED
@@ -1,5 +1,2 @@
1
1
  source 'https://rubygems.org'
2
-
3
2
  gemspec
4
-
5
- gem 'pcap', '~> 0.7.0'
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Aoandon
2
2
 
3
- Aoandon (青行燈) is a minimalist network intrusion detection system (NIDS).
3
+ <span lang="ja"><ruby>青<rt>ao</rt>行燈<rt>andon</rt></ruby></span> is a minimalist network intrusion detection system (NIDS).
4
4
 
5
- ![Blue andon creature](https://raw.github.com/cyril/aoandon/master/blue-andon-creature.jpg)
5
+ ![Blue andon creature](https://raw.githubusercontent.com/cyril/aoandon.rb/master/blue-andon-creature.jpg)
6
+
7
+ ## Status
8
+
9
+ * [![Gem Version](https://badge.fury.io/rb/aoandon.svg)](//badge.fury.io/rb/aoandon)
6
10
 
7
11
  ## Installation
8
12
 
@@ -22,7 +26,20 @@ Or install it yourself as:
22
26
 
23
27
  $ ifconfig
24
28
  $ aoandon -h
25
- $ sudo aoandon -i eth0 -v
29
+ Usage: bin/aoandon [options]
30
+ -f, --file <path> Load the rules contained in file <path>.
31
+ -h, --help Help.
32
+ -i, --interface <if> Sniff on network interface <if>.
33
+ -v, --verbose Produce more verbose output.
34
+ -V, --version Show the version number and exit.
35
+ $ sudo aoandon -i en0 -v
36
+ Starting Aoandon NIDS on interface en0...
37
+ Log file: /var/log/aoandon.yml
38
+ Ruleset: /Users/bob/code/aoandon.rb/config/rules.yml
39
+ Modules: Less1024
40
+ You can stop Aoandon NIDS by pressing Ctrl-C.
41
+ 2014-05-30T11:46:44+02:00 | SYNTAX | info | Suspected packet! | 42.0.0.1:8080 > 192.168.1.88:64563 .AP...
42
+ 2014-05-30T11:46:44+02:00 | SYNTAX | info | Suspected packet! | 192.168.1.88:64563 > 42.0.0.1:8080 .A....
26
43
 
27
44
  ## Usage
28
45
 
@@ -299,4 +316,4 @@ end
299
316
  2. Create your feature branch (`git checkout -b my-new-feature`)
300
317
  3. Commit your changes (`git commit -am 'Add some feature'`)
301
318
  4. Push to the branch (`git push origin my-new-feature`)
302
- 5. Create new Pull Request
319
+ 5. Create a new Pull Request
data/Rakefile CHANGED
@@ -1 +1,7 @@
1
1
  require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ end
6
+
7
+ task default: :test
@@ -0,0 +1 @@
1
+ 0.0.4
@@ -1,21 +1,21 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'aoandon/version'
1
+ Gem::Specification.new do |spec|
2
+ spec.name = 'aoandon'
3
+ spec.version = File.read('VERSION.semver')
4
+ spec.authors = ['Cyril Wack']
5
+ spec.email = ['contact@cyril.io']
6
+ spec.homepage = 'https://github.com/cyril/aoandon.rb'
7
+ spec.summary = %q{Minimalist network intrusion detection system (NIDS).}
8
+ spec.description = %q{Aoandon (青行燈) is a minimalist network intrusion detection system (NIDS).}
9
+ spec.license = 'MIT'
5
10
 
6
- Gem::Specification.new do |gem|
7
- gem.name = 'aoandon'
8
- gem.version = Aoandon::VERSION
9
- gem.authors = ['Cyril Wack']
10
- gem.email = ['contact@cyril.io']
11
- gem.description = %q{Aoandon (青行燈) is a minimalist network intrusion detection system (NIDS).}
12
- gem.summary = %q{Minimalist network intrusion detection system (NIDS).}
13
- gem.homepage = 'https://github.com/cyril/aoandon'
14
- gem.license = 'MIT'
15
- gem.bindir = 'bin'
16
- gem.add_dependency 'pcap'
17
- gem.files = `git ls-files`.split($/).reject {|f| f == 'blue-andon-creature.jpg' }
18
- gem.executables = gem.files.grep(%r{^bin/}).map {|f| File.basename(f) }
19
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
- gem.require_paths = ['lib', 'config']
11
+ spec.files = `git ls-files -z`.split("\x0")
12
+ spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
13
+ spec.test_files = spec.files.grep(%r{^test/})
14
+ spec.require_paths = ['lib']
15
+
16
+ spec.add_dependency 'ruby-pcap', '~> 0.7'
17
+
18
+ spec.add_development_dependency 'bundler', '~> 1.6'
19
+ spec.add_development_dependency 'minitest', '~> 5'
20
+ spec.add_development_dependency 'rake', '~> 10'
21
21
  end
@@ -8,3 +8,26 @@ require 'yaml'
8
8
  require_relative '../lib/aoandon'
9
9
 
10
10
  Aoandon::Nids.new.run
11
+
12
+
13
+
14
+ =begin
15
+
16
+ #!/usr/bin/env ruby
17
+
18
+ require 'h'
19
+
20
+ h = H::Generator.new
21
+
22
+ result = if ARGV.first
23
+ if ARGV[1]
24
+ h.input ARGV[0].to_s, ARGV[1].to_i
25
+ else
26
+ h.input ARGV[0].to_s
27
+ end
28
+ else
29
+ h.prompt
30
+ end
31
+
32
+ puts result
33
+ =end
@@ -4,7 +4,6 @@ require_relative 'aoandon/analysis/syntax'
4
4
  require_relative 'aoandon/error/not_implemented_error'
5
5
  require_relative 'aoandon/log'
6
6
  require_relative 'aoandon/static_rule'
7
- require_relative 'aoandon/version'
8
7
 
9
8
  Dir['lib/aoandon/dynamic_rule/*.rb'].each do |src|
10
9
  load src
metadata CHANGED
@@ -1,32 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aoandon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Cyril Wack
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-16 00:00:00.000000000 Z
11
+ date: 2014-05-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: pcap
14
+ name: ruby-pcap
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '0.7'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '0.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10'
30
69
  description: Aoandon (青行燈) is a minimalist network intrusion detection system (NIDS).
31
70
  email:
32
71
  - contact@cyril.io
@@ -35,15 +74,17 @@ executables:
35
74
  extensions: []
36
75
  extra_rdoc_files: []
37
76
  files:
38
- - .gitattributes
39
- - .gitignore
40
- - .rbenv-version
77
+ - ".gitattributes"
78
+ - ".gitignore"
79
+ - ".ruby-version"
41
80
  - Gemfile
42
- - LICENSE
81
+ - LICENSE.md
43
82
  - README.md
44
83
  - Rakefile
84
+ - VERSION.semver
45
85
  - aoandon.gemspec
46
86
  - bin/aoandon
87
+ - blue-andon-creature.jpg
47
88
  - config/rules.yml
48
89
  - lib/aoandon.rb
49
90
  - lib/aoandon/analysis.rb
@@ -53,31 +94,28 @@ files:
53
94
  - lib/aoandon/error/not_implemented_error.rb
54
95
  - lib/aoandon/log.rb
55
96
  - lib/aoandon/static_rule.rb
56
- - lib/aoandon/version.rb
57
- homepage: https://github.com/cyril/aoandon
97
+ homepage: https://github.com/cyril/aoandon.rb
58
98
  licenses:
59
99
  - MIT
100
+ metadata: {}
60
101
  post_install_message:
61
102
  rdoc_options: []
62
103
  require_paths:
63
104
  - lib
64
- - config
65
105
  required_ruby_version: !ruby/object:Gem::Requirement
66
- none: false
67
106
  requirements:
68
- - - ! '>='
107
+ - - ">="
69
108
  - !ruby/object:Gem::Version
70
109
  version: '0'
71
110
  required_rubygems_version: !ruby/object:Gem::Requirement
72
- none: false
73
111
  requirements:
74
- - - ! '>='
112
+ - - ">="
75
113
  - !ruby/object:Gem::Version
76
114
  version: '0'
77
115
  requirements: []
78
116
  rubyforge_project:
79
- rubygems_version: 1.8.23
117
+ rubygems_version: 2.2.2
80
118
  signing_key:
81
- specification_version: 3
119
+ specification_version: 4
82
120
  summary: Minimalist network intrusion detection system (NIDS).
83
121
  test_files: []
@@ -1 +0,0 @@
1
- 1.9.3-p194
@@ -1,3 +0,0 @@
1
- module Aoandon
2
- VERSION = '0.0.3'
3
- end