honeycomb 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +3 -21
- data/LICENSE.txt +22 -675
- data/README.md +29 -0
- data/Rakefile +1 -51
- data/honeycomb.gemspec +23 -0
- data/lib/honeycomb.rb +4 -23
- data/lib/honeycomb/version.rb +3 -0
- metadata +54 -214
- data/.document +0 -5
- data/.rspec +0 -1
- data/Gemfile.lock +0 -75
- data/README.rdoc +0 -72
- data/VERSION +0 -1
- data/data/binaries/example_data +0 -0
- data/data/logsql/honeypot.sqlite +0 -0
- data/etc/config.yml.example +0 -11
- data/lib/honeycomb/database.rb +0 -20
- data/lib/honeycomb/database/interact.rb +0 -71
- data/lib/honeycomb/default_setup.rb +0 -28
- data/lib/honeycomb/environment.rb +0 -64
- data/lib/honeycomb/honeypot.rb +0 -20
- data/lib/honeycomb/honeypot/manage.rb +0 -204
- data/lib/honeycomb/interact.rb +0 -20
- data/lib/honeycomb/model.rb +0 -82
- data/lib/honeycomb/model/connections.rb +0 -77
- data/lib/honeycomb/model/dcerpcbinds.rb +0 -47
- data/lib/honeycomb/model/dcerpcrequests.rb +0 -46
- data/lib/honeycomb/model/dcerpcserviceops.rb +0 -48
- data/lib/honeycomb/model/dcerpcservices.rb +0 -44
- data/lib/honeycomb/model/downloads.rb +0 -47
- data/lib/honeycomb/model/emu_profiles.rb +0 -44
- data/lib/honeycomb/model/emu_services.rb +0 -44
- data/lib/honeycomb/model/logins.rb +0 -46
- data/lib/honeycomb/model/mssql_commands.rb +0 -46
- data/lib/honeycomb/model/mssql_fingerprints.rb +0 -48
- data/lib/honeycomb/model/offers.rb +0 -44
- data/lib/honeycomb/model/p0fs.rb +0 -58
- data/lib/honeycomb/model/resolves.rb +0 -48
- data/lib/honeycomb/model/virustotals.rb +0 -47
- data/lib/honeycomb/model/virustotalscans.rb +0 -46
- data/scripts/honeycomb_libpath.rb +0 -2
- data/spec/honeycomb_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -12
- data/tasks/irb.rake +0 -8
@@ -1,44 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class EmuService
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "emu_services"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :emu_service, Integer, :key => true
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :emu_service_url, Text
|
41
|
-
|
42
|
-
belongs_to :connections, :child_key => [:connection]
|
43
|
-
end
|
44
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class Login
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "logins"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :login, Serial
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :login_username, Text
|
41
|
-
|
42
|
-
property :login_password, Text
|
43
|
-
|
44
|
-
belongs_to :connections, :child_key => [:connection]
|
45
|
-
end
|
46
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class MssqlCommand
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "mssql_commands"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :mssql_command, Integer, :key => true
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :mssql_command_status, Text
|
41
|
-
|
42
|
-
property :mssql_command_cmd, Text
|
43
|
-
|
44
|
-
belongs_to :connections, :child_key => [:connection]
|
45
|
-
end
|
46
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class MssqlFingerprint
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "mssql_fingerprints"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :mssql_fingerprint, Integer, :key => true
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :mssql_fingerprint_hostname, Text
|
41
|
-
|
42
|
-
property :mssql_fingerprint_appname, Text
|
43
|
-
|
44
|
-
property :mssql_fingerprint_cltintname, Text
|
45
|
-
|
46
|
-
belongs_to :connections, :child_key => [:connection]
|
47
|
-
end
|
48
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class Offer
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "offers"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :offer, Integer, :key => true
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :offer_url, Text
|
41
|
-
|
42
|
-
belongs_to :connections, :child_key => [:connection]
|
43
|
-
end
|
44
|
-
end
|
data/lib/honeycomb/model/p0fs.rb
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class P0f
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "p0fs"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :p0f, Integer, :key => true
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :p0f_genre, Text
|
41
|
-
|
42
|
-
property :p0f_link, Text
|
43
|
-
|
44
|
-
property :p0f_detail, Text
|
45
|
-
|
46
|
-
property :p0f_uptime, Integer
|
47
|
-
|
48
|
-
property :p0f_tos, Text
|
49
|
-
|
50
|
-
property :p0f_dist, Integer
|
51
|
-
|
52
|
-
property :p0f_nat, Integer
|
53
|
-
|
54
|
-
property :p0f_fw, Integer
|
55
|
-
|
56
|
-
belongs_to :connections, :child_key => [:connection]
|
57
|
-
end
|
58
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class Resolf
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "resolves"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :resolve, Integer, :key => true
|
37
|
-
|
38
|
-
property :connection, Integer
|
39
|
-
|
40
|
-
property :resolve_hostname, Text
|
41
|
-
|
42
|
-
property :resolve_type, Text
|
43
|
-
|
44
|
-
property :resolve_result, Text
|
45
|
-
|
46
|
-
belongs_to :connections, :child_key => [:connection]
|
47
|
-
end
|
48
|
-
end
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class Virustotal
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "virustotals"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :virustotal, Integer, :key => true
|
37
|
-
|
38
|
-
property :virustotal_md5_hash, Text
|
39
|
-
|
40
|
-
property :virustotal_timestamp, Integer
|
41
|
-
|
42
|
-
property :virustotal_permalink, Text
|
43
|
-
|
44
|
-
belongs_to :download, :child_key => [:virustotal_md5_hash]
|
45
|
-
has n, :virustotalscans, :child_key => [ :virustotal ]
|
46
|
-
end
|
47
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# honeycomb - Tool to manage and analyze data from the Dionaea Honeypot
|
2
|
-
# Project
|
3
|
-
# Josh Grunzweig
|
4
|
-
# Copyright (C) 2011 Trustwave Holdings
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify it
|
7
|
-
# under the terms of the GNU General Public License as published by the
|
8
|
-
# Free Software Foundation, either version 3 of the License, or (at your
|
9
|
-
# option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful, but
|
12
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
13
|
-
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14
|
-
# for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License along
|
17
|
-
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#
|
19
|
-
|
20
|
-
module Honeycomb
|
21
|
-
class Virustotalscan
|
22
|
-
include DataMapper::Resource
|
23
|
-
include Model::FixtureTable
|
24
|
-
|
25
|
-
def self.all_databases(dir = Honeycomb::Env::CONFIG["honey_config"]["download_databases"] ||
|
26
|
-
Pathname.new(__FILE__).dirname.dirname.dirname.dirname.expand_path.join('data').join('logsql/').to_s)
|
27
|
-
ret = Dir.entries(dir)
|
28
|
-
ret.delete_if {|x| x =~ /^\./}
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
(0..self.all_databases.count).each do |num|
|
33
|
-
storage_names["#{num.to_s}".to_sym] = "virustotalscans"
|
34
|
-
end
|
35
|
-
|
36
|
-
property :virustotalscan, Integer, :key => true
|
37
|
-
|
38
|
-
property :virustotal, Integer
|
39
|
-
|
40
|
-
property :virustotalscan_scanner, Text
|
41
|
-
|
42
|
-
property :virustotalscan_result, Text
|
43
|
-
|
44
|
-
belongs_to :virustotal, :child_key => [:virustotal]
|
45
|
-
end
|
46
|
-
end
|