arachni-reactor 0.1.0.beta1 → 0.1.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +5 -1
- data/README.md +3 -1
- data/lib/arachni/reactor/connection/tls.rb +3 -0
- data/lib/arachni/reactor/version.rb +1 -1
- data/spec/support/helpers/utilities.rb +4 -0
- metadata +36 -36
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGMyYjhhMTc1MTU1NTAyMjNlNWY3N2VjNzlhNGZjZjM5OWU3M2Y1ZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7715d99a1aa84ae80455432ced51a8e0d7ca93ba
|
4
|
+
data.tar.gz: 1b85552910909c1f23ac6108a93d96a82e1cdcb6
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YWFiOWNjYzgwZTA5Y2FiMzljOTc5NmY5MWM3M2JkM2U5Nzg5ZDJhMjJlMzRm
|
11
|
-
NDMwYzI2NzkwOGI0ZTQ1YjhlMjA0NDYzZjAxMTlkZTUyNDUwOWY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZGQ2ZmE0Y2UwNWRhY2ZmMGY0ZTFjNTgzYTM5M2IyMDdiNzE5YmRiOTllOTQ5
|
14
|
-
Nzk4MzkwNjJkY2VjMDY2OWQ4NWM5MTFhNDE3MmVjNWRhYjljMzI2YTk0ZmFl
|
15
|
-
OWM0ZDAzY2Q1YzhmNWU3NWZiZmVhODZiYzc0YWQyMjNiZjFkOGY=
|
6
|
+
metadata.gz: 0db14a837f9f2656e7bc3fe50fafc5f2154fd211bacc0b1cd3c40e1ad9fd5ecb049fc947730e16eb0aeef0eaa1fe7716009fb3802cee3f3fc97f37242283a188
|
7
|
+
data.tar.gz: 10b8bcf6f45506618f78f4560729f8a359450e736e0bbbb71f7d78e18db280270143533f1b241950d4a6edf7c0621fd1898f414a6953fa1025b0ff9493fb7043
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<table>
|
4
4
|
<tr>
|
5
5
|
<th>Version</th>
|
6
|
-
<td>0.1.0.
|
6
|
+
<td>0.1.0.beta2</td>
|
7
7
|
</tr>
|
8
8
|
<tr>
|
9
9
|
<th>Github page</th>
|
@@ -63,6 +63,8 @@ For examples please see the `examples/` directory.
|
|
63
63
|
|
64
64
|
## Installation
|
65
65
|
|
66
|
+
gem install arachni-reactor --pre
|
67
|
+
|
66
68
|
## Running the Specs
|
67
69
|
|
68
70
|
rake spec
|
@@ -50,6 +50,8 @@ module TLS
|
|
50
50
|
@ssl_context.cert.public_key = @ssl_context.key
|
51
51
|
@ssl_context.cert.not_before = Time.now
|
52
52
|
@ssl_context.cert.not_after = Time.now + 60 * 60 * 24
|
53
|
+
@ssl_context.cert.version = 2
|
54
|
+
@ssl_context.cert.serial = 1
|
53
55
|
|
54
56
|
@ssl_context.cert.sign( @ssl_context.key, OpenSSL::Digest::SHA1.new )
|
55
57
|
end
|
@@ -98,6 +100,7 @@ module TLS
|
|
98
100
|
end
|
99
101
|
|
100
102
|
socket
|
103
|
+
rescue OpenSSL::SSL::SSLError
|
101
104
|
end
|
102
105
|
|
103
106
|
end
|
@@ -97,6 +97,10 @@ def convert_server_to_ssl( server, options = {} )
|
|
97
97
|
context.cert.public_key = context.key
|
98
98
|
context.cert.not_before = Time.now
|
99
99
|
context.cert.not_after = Time.now + 60 * 60 * 24
|
100
|
+
context.cert.version = 2
|
101
|
+
context.cert.serial = 1
|
102
|
+
|
103
|
+
context.cert.sign( context.key, OpenSSL::Digest::SHA1.new )
|
100
104
|
end
|
101
105
|
|
102
106
|
OpenSSL::SSL::SSLServer.new( server, context )
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arachni-reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tasos Laskos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
15
|
-
|
13
|
+
description: |2
|
14
|
+
Arachni::Reactor is a simple, lightweight, pure-Ruby implementation of the Reactor
|
15
|
+
pattern, mainly focused on network connections -- and less so on generic tasks.
|
16
16
|
email: tasos.laskos@gmail.com
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
@@ -83,17 +83,17 @@ licenses:
|
|
83
83
|
metadata: {}
|
84
84
|
post_install_message:
|
85
85
|
rdoc_options:
|
86
|
-
- --charset=UTF-8
|
86
|
+
- "--charset=UTF-8"
|
87
87
|
require_paths:
|
88
88
|
- lib
|
89
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - ">"
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: 1.3.1
|
99
99
|
requirements: []
|
@@ -103,39 +103,39 @@ signing_key:
|
|
103
103
|
specification_version: 4
|
104
104
|
summary: A pure-Ruby implementation of the Reactor pattern.
|
105
105
|
test_files:
|
106
|
-
- spec/
|
107
|
-
- spec/
|
106
|
+
- spec/arachni/reactor/connection/tls_spec.rb
|
107
|
+
- spec/arachni/reactor/connection_spec.rb
|
108
|
+
- spec/arachni/reactor/iterator_spec.rb
|
109
|
+
- spec/arachni/reactor/queue_spec.rb
|
110
|
+
- spec/arachni/reactor/tasks/base.rb
|
111
|
+
- spec/arachni/reactor/tasks/delayed_spec.rb
|
112
|
+
- spec/arachni/reactor/tasks/one_off_spec.rb
|
113
|
+
- spec/arachni/reactor/tasks/periodic_spec.rb
|
114
|
+
- spec/arachni/reactor/tasks/persistent_spec.rb
|
115
|
+
- spec/arachni/reactor/tasks_spec.rb
|
116
|
+
- spec/arachni/reactor_spec.rb
|
117
|
+
- spec/arachni/reactor_tls_spec.rb
|
118
|
+
- spec/spec_helper.rb
|
119
|
+
- spec/support/fixtures/handlers/echo_client.rb
|
120
|
+
- spec/support/fixtures/handlers/echo_client_tls.rb
|
121
|
+
- spec/support/fixtures/handlers/echo_server.rb
|
122
|
+
- spec/support/fixtures/handlers/echo_server_tls.rb
|
108
123
|
- spec/support/fixtures/pems/cacert.pem
|
109
|
-
- spec/support/fixtures/pems/client/foo-key.pem
|
110
124
|
- spec/support/fixtures/pems/client/cert.pem
|
111
125
|
- spec/support/fixtures/pems/client/foo-cert.pem
|
126
|
+
- spec/support/fixtures/pems/client/foo-key.pem
|
112
127
|
- spec/support/fixtures/pems/client/key.pem
|
113
|
-
- spec/support/fixtures/
|
114
|
-
- spec/support/fixtures/
|
115
|
-
- spec/support/fixtures/handlers/echo_client_tls.rb
|
116
|
-
- spec/support/fixtures/handlers/echo_server_tls.rb
|
117
|
-
- spec/support/servers/echo_unix.rb
|
118
|
-
- spec/support/servers/echo_tls.rb
|
119
|
-
- spec/support/servers/echo.rb
|
120
|
-
- spec/support/servers/echo_unix_tls.rb
|
121
|
-
- spec/support/helpers/utilities.rb
|
128
|
+
- spec/support/fixtures/pems/server/cert.pem
|
129
|
+
- spec/support/fixtures/pems/server/key.pem
|
122
130
|
- spec/support/helpers/paths.rb
|
123
|
-
- spec/support/
|
124
|
-
- spec/support/lib/servers/runner.rb
|
131
|
+
- spec/support/helpers/utilities.rb
|
125
132
|
- spec/support/lib/server_option_parser.rb
|
126
|
-
- spec/support/
|
133
|
+
- spec/support/lib/servers/runner.rb
|
134
|
+
- spec/support/lib/servers.rb
|
135
|
+
- spec/support/servers/echo.rb
|
136
|
+
- spec/support/servers/echo_tls.rb
|
137
|
+
- spec/support/servers/echo_unix.rb
|
138
|
+
- spec/support/servers/echo_unix_tls.rb
|
127
139
|
- spec/support/shared/connection.rb
|
140
|
+
- spec/support/shared/reactor.rb
|
128
141
|
- spec/support/shared/task.rb
|
129
|
-
- spec/spec_helper.rb
|
130
|
-
- spec/arachni/reactor_tls_spec.rb
|
131
|
-
- spec/arachni/reactor_spec.rb
|
132
|
-
- spec/arachni/reactor/queue_spec.rb
|
133
|
-
- spec/arachni/reactor/tasks_spec.rb
|
134
|
-
- spec/arachni/reactor/connection_spec.rb
|
135
|
-
- spec/arachni/reactor/iterator_spec.rb
|
136
|
-
- spec/arachni/reactor/connection/tls_spec.rb
|
137
|
-
- spec/arachni/reactor/tasks/base.rb
|
138
|
-
- spec/arachni/reactor/tasks/persistent_spec.rb
|
139
|
-
- spec/arachni/reactor/tasks/delayed_spec.rb
|
140
|
-
- spec/arachni/reactor/tasks/one_off_spec.rb
|
141
|
-
- spec/arachni/reactor/tasks/periodic_spec.rb
|