arachni-rpc 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIGaDCCBFCgAwIBAgIJAPBYwqAog9f1MA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNV
3
+ BAYTAkdSMRgwFgYDVQQDEw9BcmFjaG5pLXRlc3QtQ0ExKjAoBgkqhkiG9w0BCQEW
4
+ G2FyYWNobmlAYXJhY2huaS1zY2FubmVyLmNvbTAeFw0xMjExMDIxMDIyNTNaFw0y
5
+ MjEwMzExMDIyNTNaMFMxCzAJBgNVBAYTAkdSMRgwFgYDVQQDEw9BcmFjaG5pLXRl
6
+ c3QtQ0ExKjAoBgkqhkiG9w0BCQEWG2FyYWNobmlAYXJhY2huaS1zY2FubmVyLmNv
7
+ bTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANHbVRqyD7FT8KSCZLm1
8
+ YrOwMj78OXRjMb+ucPR+fncXR1TEuPlEFojLtzqtsaA5OJXpj+0toFP+2T4DeFlu
9
+ YT4TBrRQ3DxmeY2b5b6ZuurLMfMc1vU+dE92Tj4nuInBz3Z09aDQ8ZWXWzJ7uD3J
10
+ eNjOcj7Jc94AGFx05Tii9VriUmX+jXQALv5S5WGVtKt4p67mLm/2xD4JhS+a0+B8
11
+ s/Xo7l6EXaFeTsH5jgZDiY+f0Dpk6cM+pZ5AJVJiNonDJs8/nl9vdWPRH40GHsyN
12
+ H0/lo/wTxuth/TvX3DBB5hTi/9V5eYbLTLtE1oyXgBxNKrjDu8FVn/jUl8DAIdJL
13
+ n4vXwXI70wLyS6aF8uu9ApNnmSbTTc2scAKDmnlINLHqGGlpyleojqphDy3MfQYk
14
+ YT9QSXNKHlO4NMLFqrqM1F3hvM3MEteeM12gAeeJLY6YYYJafMMMh/e7kK/y5u+J
15
+ ype5t5N8GKskSRp0RvlRYfoH/lnyJd6FEyh9P0QHA4CKAadZBCfOcmwmTY/G0Kjn
16
+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+ require_relative 'server'
2
+
3
+ start_server( rpc_opts )
@@ -0,0 +1,83 @@
1
+ require 'ap'
2
+ require_relative '../../lib/arachni/rpc'
3
+
4
+ def pems_path
5
+ File.expand_path( File.dirname( __FILE__ ) + '/../' )
6
+ end
7
+
8
+ def rpc_opts
9
+ {
10
+ host: '127.0.0.1',
11
+ port: 7331,
12
+ token: 'superdupersecret',
13
+ serializer: Marshal,
14
+ }
15
+ end
16
+
17
+ def rpc_opts_with_socket
18
+ opts = rpc_opts
19
+ opts.delete( :host )
20
+ opts.delete( :port )
21
+
22
+ opts.merge( socket: '/tmp/arachni-rpc-test' )
23
+ end
24
+
25
+ def rpc_opts_with_ssl_primitives
26
+ rpc_opts.merge(
27
+ port: 7332,
28
+ ssl_ca: pems_path + '/pems/cacert.pem',
29
+ ssl_pkey: pems_path + '/pems/client/key.pem',
30
+ ssl_cert: pems_path + '/pems/client/cert.pem'
31
+ )
32
+ end
33
+
34
+ def rpc_opts_with_invalid_ssl_primitives
35
+ rpc_opts_with_ssl_primitives.merge(
36
+ ssl_pkey: pems_path + '/pems/client/foo-key.pem',
37
+ ssl_cert: pems_path + '/pems/client/foo-cert.pem'
38
+ )
39
+ end
40
+
41
+ def rpc_opts_with_mixed_ssl_primitives
42
+ rpc_opts_with_ssl_primitives.merge(
43
+ ssl_pkey: pems_path + '/pems/client/key.pem',
44
+ ssl_cert: pems_path + '/pems/client/foo-cert.pem'
45
+ )
46
+ end
47
+
48
+ class Parent
49
+ def foo( arg )
50
+ arg
51
+ end
52
+ end
53
+
54
+ class Test < Parent
55
+
56
+ # In order to make inherited methods accessible you've got to explicitly
57
+ # make them public.
58
+ private :foo
59
+ public :foo
60
+
61
+ def delay( arg, &block )
62
+ Arachni::Reactor.global.delay( 1 ) { block.call( arg ) }
63
+ end
64
+
65
+ def exception
66
+ fail
67
+ end
68
+
69
+ def defer( arg, &block )
70
+ Thread.new do
71
+ block.call( arg )
72
+ end
73
+ end
74
+
75
+ end
76
+
77
+ def start_server( opts, do_not_start = false )
78
+ server = Arachni::RPC::Server.new( opts )
79
+ server.add_async_check { |method| method.parameters.flatten.include? :block }
80
+ server.add_handler( 'test', Test.new )
81
+ server.run if !do_not_start
82
+ server
83
+ end
@@ -0,0 +1,8 @@
1
+ require_relative 'server'
2
+
3
+ opts = rpc_opts.merge(
4
+ socket: '/tmp/arachni-rpc-test',
5
+ serializer: Marshal
6
+ )
7
+
8
+ start_server( opts )
@@ -0,0 +1,11 @@
1
+ require_relative 'server'
2
+
3
+ cwd = File.expand_path( File.dirname( __FILE__ ) )
4
+ opts = rpc_opts.merge(
5
+ port: 7332,
6
+ ssl_ca: cwd + '/../pems/cacert.pem',
7
+ ssl_pkey: cwd + '/../pems/server/key.pem',
8
+ ssl_cert: cwd + '/../pems/server/cert.pem'
9
+ )
10
+
11
+ start_server( opts )
@@ -0,0 +1,39 @@
1
+ require 'ap'
2
+ require 'timeout'
3
+ require_relative '../lib/arachni/rpc'
4
+ require_relative 'servers/server'
5
+
6
+ def cwd
7
+ File.expand_path( File.dirname( __FILE__ ) )
8
+ end
9
+
10
+ def start_client( opts )
11
+ Arachni::RPC::Client.new( opts )
12
+ end
13
+
14
+ def quiet_spawn( file )
15
+ path = File.join( File.expand_path( File.dirname( __FILE__ ) ), 'servers', "#{file}.rb" )
16
+ Process.spawn RbConfig.ruby, path#, out: '/dev/null'
17
+ end
18
+
19
+ server_pids = []
20
+ RSpec.configure do |config|
21
+ config.color = true
22
+ config.add_formatter :documentation
23
+
24
+ config.before( :suite ) do
25
+ File.delete( '/tmp/arachni-rpc-test' ) rescue nil
26
+
27
+ files = %w(basic with_ssl_primitives)
28
+ files << 'unix_socket' if Arachni::Reactor.supports_unix_sockets?
29
+
30
+ files.each do |name|
31
+ server_pids << quiet_spawn( name ).tap { |pid| Process.detach( pid ) }
32
+ end
33
+ sleep 5
34
+ end
35
+
36
+ config.after( :suite ) do
37
+ server_pids.each { |pid| Process.kill( 'KILL', pid ) }
38
+ end
39
+ end