dvash 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/dvash.gemspec +3 -3
- data/etc/dvash-baseline.conf +2 -2
- data/lib/dvash/core.rb +26 -1
- metadata +3 -3
data/dvash.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "dvash"
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ari Mizrahi"]
|
9
|
-
s.date = "2013-04-
|
9
|
+
s.date = "2013-04-27"
|
10
10
|
s.description = "Part honeypot, part defense system. Opens up ports and simulates services in order to look like an attractive target. Hosts that try to connect to the fake services are considered attackers and blocked from all access."
|
11
11
|
s.email = "codemunchies@gmail.com"
|
12
12
|
s.executables = ["dvash"]
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.homepage = "http://github.com/codemunchies/dvash"
|
15
15
|
s.require_paths = ["lib"]
|
16
16
|
s.rubygems_version = "1.8.25"
|
17
|
-
s.summary = "
|
17
|
+
s.summary = "Honeypot defense system"
|
18
18
|
|
19
19
|
if s.respond_to? :specification_version then
|
20
20
|
s.specification_version = 3
|
data/etc/dvash-baseline.conf
CHANGED
@@ -19,10 +19,10 @@
|
|
19
19
|
###############################################################################
|
20
20
|
[honeyports]
|
21
21
|
ipv4_http = true
|
22
|
-
ipv6_http = false
|
23
22
|
ipv4_ssh = false
|
24
|
-
ipv6_ssh = false
|
25
23
|
ipv4_telnet = false
|
24
|
+
ipv6_http = false
|
25
|
+
ipv6_ssh = false
|
26
26
|
|
27
27
|
###############################################################################
|
28
28
|
#
|
data/lib/dvash/core.rb
CHANGED
@@ -30,17 +30,36 @@ module Dvash
|
|
30
30
|
# @@os is used as a class variable to call its methods from within a Honeyport
|
31
31
|
#
|
32
32
|
def validate_os
|
33
|
+
#
|
34
|
+
# Store rubygems platform data
|
35
|
+
#
|
33
36
|
system = RUBY_PLATFORM
|
37
|
+
#
|
38
|
+
# Use regular expressions to determine operating system
|
39
|
+
#
|
34
40
|
case system
|
41
|
+
# WINDOWS
|
35
42
|
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
43
|
+
#
|
44
|
+
# Create Dvash Windows object for use within 'honeyports' modules
|
45
|
+
#
|
36
46
|
require 'dvash/os/windows'
|
37
47
|
@@os = Dvash::Windows.new
|
48
|
+
# MAC OS X
|
38
49
|
when /darwin|mac os/
|
50
|
+
#
|
51
|
+
# Create Dvash Mac OS X object for use within 'honeyports' modules
|
52
|
+
#
|
39
53
|
require 'dvash/os/mac'
|
40
54
|
@@os = Dvash::Mac.new
|
55
|
+
# LINUX
|
41
56
|
when /linux/
|
57
|
+
#
|
58
|
+
# Create Dvash Linux object for use within 'honeyports' modules
|
59
|
+
#
|
42
60
|
require 'dvash/os/linux'
|
43
61
|
@@os = Dvash::Linux.new
|
62
|
+
# BSD
|
44
63
|
when /solaris|bsd/
|
45
64
|
# TODO: BSD support
|
46
65
|
exit
|
@@ -77,7 +96,13 @@ module Dvash
|
|
77
96
|
#
|
78
97
|
# Load methods for all 'honeyports' set to 'true'
|
79
98
|
#
|
80
|
-
|
99
|
+
begin
|
100
|
+
require "dvash/honeyports/#{ipver}/#{proto}"
|
101
|
+
rescue
|
102
|
+
# TODO: Use 'logger' gem to output debug information
|
103
|
+
puts "couldn't load dvash/honeyports/#{ipver}/#{proto}"
|
104
|
+
exit
|
105
|
+
end
|
81
106
|
#
|
82
107
|
# Push the loaded 'honeyport' into a thread
|
83
108
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dvash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parseconfig
|
@@ -87,5 +87,5 @@ rubyforge_project:
|
|
87
87
|
rubygems_version: 1.8.25
|
88
88
|
signing_key:
|
89
89
|
specification_version: 3
|
90
|
-
summary:
|
90
|
+
summary: Honeypot defense system
|
91
91
|
test_files: []
|