spamchronic 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/spamchronic +4 -1
- data/lib/mailpot/mail.rb +1 -3
- data/lib/mailpot/smtp.rb +1 -1
- metadata +110 -73
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/bin/spamchronic
CHANGED
@@ -5,7 +5,7 @@ require 'mailpot'
|
|
5
5
|
require 'socket'
|
6
6
|
|
7
7
|
Mailpot::Configuration.config do
|
8
|
-
parameter :smtp_ip, :smtp_port, :verbose, :daemon, :key_file, :banner, :domain
|
8
|
+
parameter :smtp_ip, :smtp_port, :verbose, :daemon, :key_file, :banner, :domain, :key_data
|
9
9
|
end
|
10
10
|
|
11
11
|
Mailpot::Configuration.config do
|
@@ -59,4 +59,7 @@ opt_parse = OptionParser.new do |parser|
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
opt_parse.parse!
|
62
|
+
Mailpot::Configuration.config do
|
63
|
+
key_data File.open(Mailpot::Configuration.key_file) { |f| YAML::load(f) }
|
64
|
+
end
|
62
65
|
Mailpot.run!
|
data/lib/mailpot/mail.rb
CHANGED
@@ -15,9 +15,7 @@ module_function
|
|
15
15
|
@initialized = false
|
16
16
|
# setup connections etc
|
17
17
|
def initialize
|
18
|
-
yml =
|
19
|
-
YAML::load(f)
|
20
|
-
end
|
18
|
+
yml = Mailpot::Configuration.key_data
|
21
19
|
@bucket = yml['bucket']
|
22
20
|
@queue = yml['queue']
|
23
21
|
@s3 = AWS::S3.new(yml)
|
data/lib/mailpot/smtp.rb
CHANGED
@@ -13,7 +13,7 @@ class Mailpot::Smtp < EventMachine::Protocols::SmtpServer
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def get_server_greeting
|
16
|
-
yml =
|
16
|
+
yml = Mailpot::Configuration.key_data
|
17
17
|
host = get_server_domain
|
18
18
|
t = DateTime.now.strftime('%a, %d %b %Y %H:%M:%S %z')
|
19
19
|
banner = yml['banner']
|
metadata
CHANGED
@@ -1,125 +1,162 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: spamchronic
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Matt Jezorek
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-02-20 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: activesupport
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 7
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 0
|
32
|
+
version: "3.0"
|
22
33
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
26
36
|
name: eventmachine
|
27
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
40
|
+
requirements:
|
30
41
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 19
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 12
|
47
|
+
version: "0.12"
|
33
48
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
37
51
|
name: aws-sdk
|
38
|
-
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
54
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
44
62
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
63
|
+
version_requirements: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
48
65
|
name: mail
|
49
|
-
|
66
|
+
prerelease: false
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
68
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
55
76
|
type: :runtime
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
59
79
|
name: rake
|
60
|
-
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
82
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
66
90
|
type: :development
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
91
|
+
version_requirements: *id005
|
92
|
+
- !ruby/object:Gem::Dependency
|
70
93
|
name: rdoc
|
71
|
-
|
94
|
+
prerelease: false
|
95
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
96
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
hash: 3
|
101
|
+
segments:
|
102
|
+
- 0
|
103
|
+
version: "0"
|
77
104
|
type: :development
|
78
|
-
|
79
|
-
|
80
|
-
description: ! " MailPot is a simple SMTP server honeypot that will catch emails
|
81
|
-
and store\n them in S3 and then pop a message into SQS for later processing\n"
|
105
|
+
version_requirements: *id006
|
106
|
+
description: " MailPot is a simple SMTP server honeypot that will catch emails and store\n them in S3 and then pop a message into SQS for later processing\n"
|
82
107
|
email: mjezorek@gmail.com
|
83
|
-
executables:
|
108
|
+
executables:
|
84
109
|
- spamchronic
|
85
110
|
extensions: []
|
86
|
-
|
111
|
+
|
112
|
+
extra_rdoc_files:
|
87
113
|
- README.md
|
88
114
|
- LICENSE
|
89
|
-
files:
|
115
|
+
files:
|
90
116
|
- README.md
|
91
117
|
- LICENSE
|
92
118
|
- VERSION
|
93
119
|
- bin/spamchronic
|
94
|
-
- lib/mailpot.rb
|
95
|
-
- lib/mailpot/models.rb
|
120
|
+
- lib/mailpot/configuration.rb
|
96
121
|
- lib/mailpot/events.rb
|
97
122
|
- lib/mailpot/mail.rb
|
98
123
|
- lib/mailpot/smtp.rb
|
99
|
-
- lib/mailpot/
|
124
|
+
- lib/mailpot/models.rb
|
125
|
+
- lib/mailpot.rb
|
100
126
|
homepage: http://mattjezorek.com/
|
101
127
|
licenses: []
|
128
|
+
|
102
129
|
post_install_message:
|
103
130
|
rdoc_options: []
|
104
|
-
|
131
|
+
|
132
|
+
require_paths:
|
105
133
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
135
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 57
|
140
|
+
segments:
|
141
|
+
- 1
|
142
|
+
- 8
|
143
|
+
- 7
|
111
144
|
version: 1.8.7
|
112
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
146
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
hash: 3
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
version: "0"
|
118
154
|
requirements: []
|
155
|
+
|
119
156
|
rubyforge_project:
|
120
|
-
rubygems_version: 1.
|
157
|
+
rubygems_version: 1.7.2
|
121
158
|
signing_key:
|
122
159
|
specification_version: 3
|
123
|
-
summary: Runs an SMTP Server and catches emails, will pass probes when identified
|
124
|
-
as a probe
|
160
|
+
summary: Runs an SMTP Server and catches emails, will pass probes when identified as a probe
|
125
161
|
test_files: []
|
162
|
+
|