arachni-rpc-pure 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +0 -0
- data/LICENSE.md +341 -0
- data/README.md +78 -0
- data/Rakefile +72 -0
- data/examples/client.rb +63 -0
- data/lib/arachni/rpc/pure.rb +18 -0
- data/lib/arachni/rpc/pure/client.rb +66 -0
- data/lib/arachni/rpc/pure/connection.rb +86 -0
- data/lib/arachni/rpc/pure/version.rb +17 -0
- data/spec/arachni/rpc/pure/client_spec.rb +119 -0
- data/spec/pems/cacert.pem +39 -0
- data/spec/pems/client/cert.pem +39 -0
- data/spec/pems/client/foo-cert.pem +39 -0
- data/spec/pems/client/foo-key.pem +51 -0
- data/spec/pems/client/key.pem +51 -0
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +42 -0
- metadata +88 -0
data/CHANGELOG.md
ADDED
File without changes
|
data/LICENSE.md
ADDED
@@ -0,0 +1,341 @@
|
|
1
|
+
# License
|
2
|
+
|
3
|
+
GNU GENERAL PUBLIC LICENSE
|
4
|
+
Version 2, June 1991
|
5
|
+
|
6
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
7
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
8
|
+
Everyone is permitted to copy and distribute verbatim copies
|
9
|
+
of this license document, but changing it is not allowed.
|
10
|
+
|
11
|
+
Preamble
|
12
|
+
|
13
|
+
The licenses for most software are designed to take away your
|
14
|
+
freedom to share and change it. By contrast, the GNU General Public
|
15
|
+
License is intended to guarantee your freedom to share and change free
|
16
|
+
software--to make sure the software is free for all its users. This
|
17
|
+
General Public License applies to most of the Free Software
|
18
|
+
Foundation's software and to any other program whose authors commit to
|
19
|
+
using it. (Some other Free Software Foundation software is covered by
|
20
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
21
|
+
your programs, too.
|
22
|
+
|
23
|
+
When we speak of free software, we are referring to freedom, not
|
24
|
+
price. Our General Public Licenses are designed to make sure that you
|
25
|
+
have the freedom to distribute copies of free software (and charge for
|
26
|
+
this service if you wish), that you receive source code or can get it
|
27
|
+
if you want it, that you can change the software or use pieces of it
|
28
|
+
in new free programs; and that you know you can do these things.
|
29
|
+
|
30
|
+
To protect your rights, we need to make restrictions that forbid
|
31
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
32
|
+
These restrictions translate to certain responsibilities for you if you
|
33
|
+
distribute copies of the software, or if you modify it.
|
34
|
+
|
35
|
+
For example, if you distribute copies of such a program, whether
|
36
|
+
gratis or for a fee, you must give the recipients all the rights that
|
37
|
+
you have. You must make sure that they, too, receive or can get the
|
38
|
+
source code. And you must show them these terms so they know their
|
39
|
+
rights.
|
40
|
+
|
41
|
+
We protect your rights with two steps: (1) copyright the software, and
|
42
|
+
(2) offer you this license which gives you legal permission to copy,
|
43
|
+
distribute and/or modify the software.
|
44
|
+
|
45
|
+
Also, for each author's protection and ours, we want to make certain
|
46
|
+
that everyone understands that there is no warranty for this free
|
47
|
+
software. If the software is modified by someone else and passed on, we
|
48
|
+
want its recipients to know that what they have is not the original, so
|
49
|
+
that any problems introduced by others will not reflect on the original
|
50
|
+
authors' reputations.
|
51
|
+
|
52
|
+
Finally, any free program is threatened constantly by software
|
53
|
+
patents. We wish to avoid the danger that redistributors of a free
|
54
|
+
program will individually obtain patent licenses, in effect making the
|
55
|
+
program proprietary. To prevent this, we have made it clear that any
|
56
|
+
patent must be licensed for everyone's free use or not licensed at all.
|
57
|
+
|
58
|
+
The precise terms and conditions for copying, distribution and
|
59
|
+
modification follow.
|
60
|
+
|
61
|
+
GNU GENERAL PUBLIC LICENSE
|
62
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
63
|
+
|
64
|
+
0. This License applies to any program or other work which contains
|
65
|
+
a notice placed by the copyright holder saying it may be distributed
|
66
|
+
under the terms of this General Public License. The "Program", below,
|
67
|
+
refers to any such program or work, and a "work based on the Program"
|
68
|
+
means either the Program or any derivative work under copyright law:
|
69
|
+
that is to say, a work containing the Program or a portion of it,
|
70
|
+
either verbatim or with modifications and/or translated into another
|
71
|
+
language. (Hereinafter, translation is included without limitation in
|
72
|
+
the term "modification".) Each licensee is addressed as "you".
|
73
|
+
|
74
|
+
Activities other than copying, distribution and modification are not
|
75
|
+
covered by this License; they are outside its scope. The act of
|
76
|
+
running the Program is not restricted, and the output from the Program
|
77
|
+
is covered only if its contents constitute a work based on the
|
78
|
+
Program (independent of having been made by running the Program).
|
79
|
+
Whether that is true depends on what the Program does.
|
80
|
+
|
81
|
+
1. You may copy and distribute verbatim copies of the Program's
|
82
|
+
source code as you receive it, in any medium, provided that you
|
83
|
+
conspicuously and appropriately publish on each copy an appropriate
|
84
|
+
copyright notice and disclaimer of warranty; keep intact all the
|
85
|
+
notices that refer to this License and to the absence of any warranty;
|
86
|
+
and give any other recipients of the Program a copy of this License
|
87
|
+
along with the Program.
|
88
|
+
|
89
|
+
You may charge a fee for the physical act of transferring a copy, and
|
90
|
+
you may at your option offer warranty protection in exchange for a fee.
|
91
|
+
|
92
|
+
2. You may modify your copy or copies of the Program or any portion
|
93
|
+
of it, thus forming a work based on the Program, and copy and
|
94
|
+
distribute such modifications or work under the terms of Section 1
|
95
|
+
above, provided that you also meet all of these conditions:
|
96
|
+
|
97
|
+
a) You must cause the modified files to carry prominent notices
|
98
|
+
stating that you changed the files and the date of any change.
|
99
|
+
|
100
|
+
b) You must cause any work that you distribute or publish, that in
|
101
|
+
whole or in part contains or is derived from the Program or any
|
102
|
+
part thereof, to be licensed as a whole at no charge to all third
|
103
|
+
parties under the terms of this License.
|
104
|
+
|
105
|
+
c) If the modified program normally reads commands interactively
|
106
|
+
when run, you must cause it, when started running for such
|
107
|
+
interactive use in the most ordinary way, to print or display an
|
108
|
+
announcement including an appropriate copyright notice and a
|
109
|
+
notice that there is no warranty (or else, saying that you provide
|
110
|
+
a warranty) and that users may redistribute the program under
|
111
|
+
these conditions, and telling the user how to view a copy of this
|
112
|
+
License. (Exception: if the Program itself is interactive but
|
113
|
+
does not normally print such an announcement, your work based on
|
114
|
+
the Program is not required to print an announcement.)
|
115
|
+
|
116
|
+
These requirements apply to the modified work as a whole. If
|
117
|
+
identifiable sections of that work are not derived from the Program,
|
118
|
+
and can be reasonably considered independent and separate works in
|
119
|
+
themselves, then this License, and its terms, do not apply to those
|
120
|
+
sections when you distribute them as separate works. But when you
|
121
|
+
distribute the same sections as part of a whole which is a work based
|
122
|
+
on the Program, the distribution of the whole must be on the terms of
|
123
|
+
this License, whose permissions for other licensees extend to the
|
124
|
+
entire whole, and thus to each and every part regardless of who wrote it.
|
125
|
+
|
126
|
+
Thus, it is not the intent of this section to claim rights or contest
|
127
|
+
your rights to work written entirely by you; rather, the intent is to
|
128
|
+
exercise the right to control the distribution of derivative or
|
129
|
+
collective works based on the Program.
|
130
|
+
|
131
|
+
In addition, mere aggregation of another work not based on the Program
|
132
|
+
with the Program (or with a work based on the Program) on a volume of
|
133
|
+
a storage or distribution medium does not bring the other work under
|
134
|
+
the scope of this License.
|
135
|
+
|
136
|
+
3. You may copy and distribute the Program (or a work based on it,
|
137
|
+
under Section 2) in object code or executable form under the terms of
|
138
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
139
|
+
|
140
|
+
a) Accompany it with the complete corresponding machine-readable
|
141
|
+
source code, which must be distributed under the terms of Sections
|
142
|
+
1 and 2 above on a medium customarily used for software interchange; or,
|
143
|
+
|
144
|
+
b) Accompany it with a written offer, valid for at least three
|
145
|
+
years, to give any third party, for a charge no more than your
|
146
|
+
cost of physically performing source distribution, a complete
|
147
|
+
machine-readable copy of the corresponding source code, to be
|
148
|
+
distributed under the terms of Sections 1 and 2 above on a medium
|
149
|
+
customarily used for software interchange; or,
|
150
|
+
|
151
|
+
c) Accompany it with the information you received as to the offer
|
152
|
+
to distribute corresponding source code. (This alternative is
|
153
|
+
allowed only for noncommercial distribution and only if you
|
154
|
+
received the program in object code or executable form with such
|
155
|
+
an offer, in accord with Subsection b above.)
|
156
|
+
|
157
|
+
The source code for a work means the preferred form of the work for
|
158
|
+
making modifications to it. For an executable work, complete source
|
159
|
+
code means all the source code for all modules it contains, plus any
|
160
|
+
associated interface definition files, plus the scripts used to
|
161
|
+
control compilation and installation of the executable. However, as a
|
162
|
+
special exception, the source code distributed need not include
|
163
|
+
anything that is normally distributed (in either source or binary
|
164
|
+
form) with the major components (compiler, kernel, and so on) of the
|
165
|
+
operating system on which the executable runs, unless that component
|
166
|
+
itself accompanies the executable.
|
167
|
+
|
168
|
+
If distribution of executable or object code is made by offering
|
169
|
+
access to copy from a designated place, then offering equivalent
|
170
|
+
access to copy the source code from the same place counts as
|
171
|
+
distribution of the source code, even though third parties are not
|
172
|
+
compelled to copy the source along with the object code.
|
173
|
+
|
174
|
+
4. You may not copy, modify, sublicense, or distribute the Program
|
175
|
+
except as expressly provided under this License. Any attempt
|
176
|
+
otherwise to copy, modify, sublicense or distribute the Program is
|
177
|
+
void, and will automatically terminate your rights under this License.
|
178
|
+
However, parties who have received copies, or rights, from you under
|
179
|
+
this License will not have their licenses terminated so long as such
|
180
|
+
parties remain in full compliance.
|
181
|
+
|
182
|
+
5. You are not required to accept this License, since you have not
|
183
|
+
signed it. However, nothing else grants you permission to modify or
|
184
|
+
distribute the Program or its derivative works. These actions are
|
185
|
+
prohibited by law if you do not accept this License. Therefore, by
|
186
|
+
modifying or distributing the Program (or any work based on the
|
187
|
+
Program), you indicate your acceptance of this License to do so, and
|
188
|
+
all its terms and conditions for copying, distributing or modifying
|
189
|
+
the Program or works based on it.
|
190
|
+
|
191
|
+
6. Each time you redistribute the Program (or any work based on the
|
192
|
+
Program), the recipient automatically receives a license from the
|
193
|
+
original licensor to copy, distribute or modify the Program subject to
|
194
|
+
these terms and conditions. You may not impose any further
|
195
|
+
restrictions on the recipients' exercise of the rights granted herein.
|
196
|
+
You are not responsible for enforcing compliance by third parties to
|
197
|
+
this License.
|
198
|
+
|
199
|
+
7. If, as a consequence of a court judgment or allegation of patent
|
200
|
+
infringement or for any other reason (not limited to patent issues),
|
201
|
+
conditions are imposed on you (whether by court order, agreement or
|
202
|
+
otherwise) that contradict the conditions of this License, they do not
|
203
|
+
excuse you from the conditions of this License. If you cannot
|
204
|
+
distribute so as to satisfy simultaneously your obligations under this
|
205
|
+
License and any other pertinent obligations, then as a consequence you
|
206
|
+
may not distribute the Program at all. For example, if a patent
|
207
|
+
license would not permit royalty-free redistribution of the Program by
|
208
|
+
all those who receive copies directly or indirectly through you, then
|
209
|
+
the only way you could satisfy both it and this License would be to
|
210
|
+
refrain entirely from distribution of the Program.
|
211
|
+
|
212
|
+
If any portion of this section is held invalid or unenforceable under
|
213
|
+
any particular circumstance, the balance of the section is intended to
|
214
|
+
apply and the section as a whole is intended to apply in other
|
215
|
+
circumstances.
|
216
|
+
|
217
|
+
It is not the purpose of this section to induce you to infringe any
|
218
|
+
patents or other property right claims or to contest validity of any
|
219
|
+
such claims; this section has the sole purpose of protecting the
|
220
|
+
integrity of the free software distribution system, which is
|
221
|
+
implemented by public license practices. Many people have made
|
222
|
+
generous contributions to the wide range of software distributed
|
223
|
+
through that system in reliance on consistent application of that
|
224
|
+
system; it is up to the author/donor to decide if he or she is willing
|
225
|
+
to distribute software through any other system and a licensee cannot
|
226
|
+
impose that choice.
|
227
|
+
|
228
|
+
This section is intended to make thoroughly clear what is believed to
|
229
|
+
be a consequence of the rest of this License.
|
230
|
+
|
231
|
+
8. If the distribution and/or use of the Program is restricted in
|
232
|
+
certain countries either by patents or by copyrighted interfaces, the
|
233
|
+
original copyright holder who places the Program under this License
|
234
|
+
may add an explicit geographical distribution limitation excluding
|
235
|
+
those countries, so that distribution is permitted only in or among
|
236
|
+
countries not thus excluded. In such case, this License incorporates
|
237
|
+
the limitation as if written in the body of this License.
|
238
|
+
|
239
|
+
9. The Free Software Foundation may publish revised and/or new versions
|
240
|
+
of the General Public License from time to time. Such new versions will
|
241
|
+
be similar in spirit to the present version, but may differ in detail to
|
242
|
+
address new problems or concerns.
|
243
|
+
|
244
|
+
Each version is given a distinguishing version number. If the Program
|
245
|
+
specifies a version number of this License which applies to it and "any
|
246
|
+
later version", you have the option of following the terms and conditions
|
247
|
+
either of that version or of any later version published by the Free
|
248
|
+
Software Foundation. If the Program does not specify a version number of
|
249
|
+
this License, you may choose any version ever published by the Free Software
|
250
|
+
Foundation.
|
251
|
+
|
252
|
+
10. If you wish to incorporate parts of the Program into other free
|
253
|
+
programs whose distribution conditions are different, write to the author
|
254
|
+
to ask for permission. For software which is copyrighted by the Free
|
255
|
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
256
|
+
make exceptions for this. Our decision will be guided by the two goals
|
257
|
+
of preserving the free status of all derivatives of our free software and
|
258
|
+
of promoting the sharing and reuse of software generally.
|
259
|
+
|
260
|
+
NO WARRANTY
|
261
|
+
|
262
|
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
263
|
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
264
|
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
265
|
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
266
|
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
267
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
268
|
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
269
|
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
270
|
+
REPAIR OR CORRECTION.
|
271
|
+
|
272
|
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
273
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
274
|
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
275
|
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
276
|
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
277
|
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
278
|
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
279
|
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
280
|
+
POSSIBILITY OF SUCH DAMAGES.
|
281
|
+
|
282
|
+
END OF TERMS AND CONDITIONS
|
283
|
+
|
284
|
+
How to Apply These Terms to Your New Programs
|
285
|
+
|
286
|
+
If you develop a new program, and you want it to be of the greatest
|
287
|
+
possible use to the public, the best way to achieve this is to make it
|
288
|
+
free software which everyone can redistribute and change under these terms.
|
289
|
+
|
290
|
+
To do so, attach the following notices to the program. It is safest
|
291
|
+
to attach them to the start of each source file to most effectively
|
292
|
+
convey the exclusion of warranty; and each file should have at least
|
293
|
+
the "copyright" line and a pointer to where the full notice is found.
|
294
|
+
|
295
|
+
<one line to give the program's name and a brief idea of what it does.>
|
296
|
+
Copyright (C) <year> <name of author>
|
297
|
+
|
298
|
+
This program is free software; you can redistribute it and/or modify
|
299
|
+
it under the terms of the GNU General Public License as published by
|
300
|
+
the Free Software Foundation; either version 2 of the License, or
|
301
|
+
(at your option) any later version.
|
302
|
+
|
303
|
+
This program is distributed in the hope that it will be useful,
|
304
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
305
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
306
|
+
GNU General Public License for more details.
|
307
|
+
|
308
|
+
You should have received a copy of the GNU General Public License along
|
309
|
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
310
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
311
|
+
|
312
|
+
Also add information on how to contact you by electronic and paper mail.
|
313
|
+
|
314
|
+
If the program is interactive, make it output a short notice like this
|
315
|
+
when it starts in an interactive mode:
|
316
|
+
|
317
|
+
Gnomovision version 69, Copyright (C) year name of author
|
318
|
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
319
|
+
This is free software, and you are welcome to redistribute it
|
320
|
+
under certain conditions; type `show c' for details.
|
321
|
+
|
322
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
323
|
+
parts of the General Public License. Of course, the commands you use may
|
324
|
+
be called something other than `show w' and `show c'; they could even be
|
325
|
+
mouse-clicks or menu items--whatever suits your program.
|
326
|
+
|
327
|
+
You should also get your employer (if you work as a programmer) or your
|
328
|
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
329
|
+
necessary. Here is a sample; alter the names:
|
330
|
+
|
331
|
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
332
|
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
333
|
+
|
334
|
+
<signature of Ty Coon>, 1 April 1989
|
335
|
+
Ty Coon, President of Vice
|
336
|
+
|
337
|
+
This General Public License does not permit incorporating your program into
|
338
|
+
proprietary programs. If your program is a subroutine library, you may
|
339
|
+
consider it more useful to permit linking proprietary applications with the
|
340
|
+
library. If this is what you want to do, use the GNU Lesser General
|
341
|
+
Public License instead of this License.
|
data/README.md
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Arachni-RPC Pure
|
2
|
+
<table>
|
3
|
+
<tr>
|
4
|
+
<th>Version</th>
|
5
|
+
<td>0.1</td>
|
6
|
+
</tr>
|
7
|
+
<tr>
|
8
|
+
<th>Github page</th>
|
9
|
+
<td><a href="http://github.com/Arachni/arachni-rpc-pure">http://github.com/Arachni/arachni-rpc-pure</a></td>
|
10
|
+
<tr/>
|
11
|
+
<tr>
|
12
|
+
<th>Code Documentation</th>
|
13
|
+
<td><a href="http://rubydoc.info/github/Arachni/arachni-rpc-pure/">http://rubydoc.info/github/Arachni/arachni-rpc-pure/</a></td>
|
14
|
+
</tr>
|
15
|
+
<tr>
|
16
|
+
<th>Author</th>
|
17
|
+
<td><a href="mailto:tasos.laskos@gmail.com">Tasos</a> "<a href="mailto:zapotek@segfault.gr">Zapotek</a>" <a href="mailto:tasos.laskos@gmail.com">Laskos</a></td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<th>Twitter</th>
|
21
|
+
<td><a href="http://twitter.com/Zap0tek">@Zap0tek</a></td>
|
22
|
+
</tr>
|
23
|
+
<tr>
|
24
|
+
<th>Copyright</th>
|
25
|
+
<td>2011</td>
|
26
|
+
</tr>
|
27
|
+
<tr>
|
28
|
+
<th>License</th>
|
29
|
+
<td><a href="file.LICENSE.html">GNU General Public License v2</a></td>
|
30
|
+
</tr>
|
31
|
+
</table>
|
32
|
+
|
33
|
+
## Synopsis
|
34
|
+
|
35
|
+
Arachni-RPC Pure is a simple implementation of a client for the <a href="http://github.com/Arachni/arachni-rpc-pure">Arachni-RPC</a> protocol.<br/>
|
36
|
+
It's written in pure Ruby using SSL sockets and does not have any 3rd party dependencies -- besides the Arachni-RPC spec itself.
|
37
|
+
|
38
|
+
## Usage
|
39
|
+
|
40
|
+
Check out the files in the <i>examples/</i> directory, they go through everything in great detail.
|
41
|
+
|
42
|
+
## Installation
|
43
|
+
|
44
|
+
### Gem
|
45
|
+
|
46
|
+
The Gem hasn't been pushed yet, the system is still under development.
|
47
|
+
|
48
|
+
### Source
|
49
|
+
|
50
|
+
If you want to clone the repository and work with the source code:
|
51
|
+
|
52
|
+
git co git://github.com/arachni/arachni-rpc-pure.git
|
53
|
+
cd arachni-rpc-pure
|
54
|
+
rake install
|
55
|
+
|
56
|
+
## Running the Specs
|
57
|
+
|
58
|
+
In order to run the specs you must first fire up 2 sample servers although they are not part of this project -- as it is only a client implementation.<br/>
|
59
|
+
You can find the required servers in the [Arachni-RPC EM](https://github.com/Arachni/arachni-rpc-em) project.
|
60
|
+
|
61
|
+
From inside the Arachni-RPC EM directory run:
|
62
|
+
|
63
|
+
ruby spec/servers/basic.rb
|
64
|
+
ruby spec/servers/with_ssl_primitives.rb
|
65
|
+
|
66
|
+
Then, from inside the directory of Arachni-RPC Pure:
|
67
|
+
|
68
|
+
rake spec
|
69
|
+
|
70
|
+
## Bug reports/Feature requests
|
71
|
+
Please send your feedback using Github's issue system at
|
72
|
+
[http://github.com/arachni/arachni-rpc-pure/issues](http://github.com/arachni/arachni-rpc-pure/issues).
|
73
|
+
|
74
|
+
|
75
|
+
## License
|
76
|
+
Arachni is licensed under the GNU General Public License v2.<br/>
|
77
|
+
See the [LICENSE](file.LICENSE.html) file for more information.
|
78
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
Arachni
|
3
|
+
Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
4
|
+
|
5
|
+
This is free software; you can copy and distribute and modify
|
6
|
+
this program under the term of the GPL v2.0 License
|
7
|
+
(See LICENSE file for details)
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'rubygems'
|
12
|
+
require 'rspec'
|
13
|
+
require 'rspec/core/rake_task'
|
14
|
+
|
15
|
+
require File.expand_path( File.dirname( __FILE__ ) ) + '/lib/arachni/rpc/pure/version'
|
16
|
+
|
17
|
+
RSpec::Core::RakeTask.new do |t|
|
18
|
+
t.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Generate docs"
|
22
|
+
|
23
|
+
task :docs do
|
24
|
+
|
25
|
+
outdir = "../arachni-rpc-pages"
|
26
|
+
sh "mkdir #{outdir}" if !File.directory?( outdir )
|
27
|
+
|
28
|
+
sh "yardoc --verbose --title \
|
29
|
+
\"Arachni-RPC\" \
|
30
|
+
lib/* -o #{outdir} \
|
31
|
+
- CHANGELOG.md LICENSE.md"
|
32
|
+
|
33
|
+
|
34
|
+
sh "rm -rf .yard*"
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
#
|
39
|
+
# Cleans reports and logs
|
40
|
+
#
|
41
|
+
desc "Cleaning..."
|
42
|
+
task :clean do
|
43
|
+
sh "rm *.gem || true"
|
44
|
+
end
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
#
|
49
|
+
# Building
|
50
|
+
#
|
51
|
+
desc "Build the arachni-rpc-pure gem."
|
52
|
+
task :build => [ :clean ] do
|
53
|
+
sh "gem build arachni-rpc-pure.gemspec"
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
#
|
58
|
+
# Installing
|
59
|
+
#
|
60
|
+
desc "Build and install the arachni-rpc-pure gem."
|
61
|
+
task :install => [ :build ] do
|
62
|
+
sh "gem install arachni-rpc-pure-#{Arachni::RPC::Pure::VERSION}.gem"
|
63
|
+
end
|
64
|
+
|
65
|
+
|
66
|
+
#
|
67
|
+
# Publishing
|
68
|
+
#
|
69
|
+
desc "Push a new version to Gemcutter"
|
70
|
+
task :publish => [ :build ] do
|
71
|
+
sh "gem push arachni-rpc-pure-#{Arachni::RPC::Pure::VERSION}.gem"
|
72
|
+
end
|
data/examples/client.rb
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
require File.join( File.expand_path( File.dirname( __FILE__ ) ), '../lib/arachni/rpc/', 'pure' )
|
2
|
+
|
3
|
+
# require 'arachni/rpc/pure'
|
4
|
+
require 'pp'
|
5
|
+
|
6
|
+
client = Arachni::RPC::Pure::Client.new(
|
7
|
+
:host => 'localhost',
|
8
|
+
:port => 7332,
|
9
|
+
:token => 'superdupersecret',
|
10
|
+
:serializer => Marshal
|
11
|
+
)
|
12
|
+
|
13
|
+
begin
|
14
|
+
# 'bench2' doesn't exist...
|
15
|
+
client.call( 'bench2.foo', 1 )
|
16
|
+
rescue Arachni::RPC::Exceptions::InvalidObject => e
|
17
|
+
pp e
|
18
|
+
# => #<Arachni::RPC::Exceptions::InvalidObject: Trying to access non-existent object 'bench2'.>
|
19
|
+
end
|
20
|
+
|
21
|
+
# This is just an echo method so it will return: 1
|
22
|
+
pp client.call( 'bench.foo', 1 )
|
23
|
+
# => 1
|
24
|
+
|
25
|
+
# make access more natural, map (proxy actually) the remote object to a local one
|
26
|
+
bench = Arachni::RPC::RemoteObjectMapper.new( client, 'bench' )
|
27
|
+
|
28
|
+
pp bench.foo( 2 )
|
29
|
+
# => 2
|
30
|
+
|
31
|
+
begin
|
32
|
+
# doesn't exist so we'll get an exception,
|
33
|
+
# won't reach the remote object
|
34
|
+
#
|
35
|
+
bench.does_not_exist
|
36
|
+
rescue Arachni::RPC::Exceptions::InvalidMethod => e
|
37
|
+
pp e
|
38
|
+
# => #<Arachni::RPC::Exceptions::InvalidMethod: Trying to access non-public method 'does_not_exist'.>
|
39
|
+
end
|
40
|
+
|
41
|
+
begin
|
42
|
+
# foo() expects an argument but arity is not checked so the call will be
|
43
|
+
# forwarded to the remote object which will throw a remote exception
|
44
|
+
bench.foo
|
45
|
+
rescue Arachni::RPC::Exceptions::RemoteException => e
|
46
|
+
pp e
|
47
|
+
# => #<Arachni::RPC::Exceptions::RemoteException: wrong number of arguments (0 for 1)>
|
48
|
+
end
|
49
|
+
|
50
|
+
client = Arachni::RPC::Pure::Client.new(
|
51
|
+
:host => 'localhost',
|
52
|
+
:port => 7332,
|
53
|
+
:token => 'invalidtoken',
|
54
|
+
:serializer => Marshal
|
55
|
+
)
|
56
|
+
|
57
|
+
begin
|
58
|
+
# the token is not valid so the remote server won't let us through
|
59
|
+
client.call( 'bench.foo', 1 )
|
60
|
+
rescue Arachni::RPC::Exceptions::InvalidToken => e
|
61
|
+
pp e
|
62
|
+
# => #<Arachni::RPC::Exceptions::InvalidToken: Token missing or invalid while calling: bench.foo>
|
63
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
=begin
|
2
|
+
Arachni-RPC
|
3
|
+
Copyright (c) 2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
4
|
+
|
5
|
+
This is free software; you can copy and distribute and modify
|
6
|
+
this program under the term of the GPL v2.0 License
|
7
|
+
(See LICENSE file for details)
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'openssl'
|
12
|
+
require 'socket'
|
13
|
+
require 'yaml'
|
14
|
+
YAML::ENGINE.yamler = 'syck'
|
15
|
+
|
16
|
+
require 'arachni/rpc'
|
17
|
+
require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'pure', 'connection' )
|
18
|
+
require File.join( File.expand_path( File.dirname( __FILE__ ) ), 'pure', 'client' )
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
Arachni-RPC
|
3
|
+
Copyright (c) 2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
4
|
+
|
5
|
+
This is free software; you can copy and distribute and modify
|
6
|
+
this program under the term of the GPL v2.0 License
|
7
|
+
(See LICENSE file for details)
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
module Arachni
|
12
|
+
module RPC
|
13
|
+
module Pure
|
14
|
+
|
15
|
+
class Client
|
16
|
+
|
17
|
+
def initialize( opts )
|
18
|
+
@opts = opts
|
19
|
+
end
|
20
|
+
|
21
|
+
def call( msg, *args )
|
22
|
+
conn = nil
|
23
|
+
begin
|
24
|
+
conn = Connection.new( @opts )
|
25
|
+
rescue OpenSSL::SSL::SSLError => ex
|
26
|
+
e = Arachni::RPC::Exceptions::SSLPeerVerificationFailed.new( ex.to_s )
|
27
|
+
e.set_backtrace( ex.backtrace )
|
28
|
+
raise e
|
29
|
+
rescue Errno::ECONNREFUSED => ex
|
30
|
+
e = Arachni::RPC::Exceptions::ConnectionError.new( ex.to_s )
|
31
|
+
e.set_backtrace( ex.backtrace )
|
32
|
+
raise e
|
33
|
+
end
|
34
|
+
|
35
|
+
response = conn.perform( request( msg, *args ) )
|
36
|
+
conn.close
|
37
|
+
|
38
|
+
handle_exception( response )
|
39
|
+
return response.obj
|
40
|
+
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def handle_exception( response )
|
45
|
+
if exception?( response )
|
46
|
+
raise Arachni::RPC::Exceptions.from_response( response )
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def exception?( response )
|
51
|
+
response.obj.is_a?( Hash ) && response.obj.include?( 'exception' )
|
52
|
+
end
|
53
|
+
|
54
|
+
def request( msg, *args )
|
55
|
+
Request.new(
|
56
|
+
:message => msg,
|
57
|
+
:args => args,
|
58
|
+
:token => @opts[:token]
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
=begin
|
2
|
+
Arachni-RPC
|
3
|
+
Copyright (c) 2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
4
|
+
|
5
|
+
This is free software; you can copy and distribute and modify
|
6
|
+
this program under the term of the GPL v2.0 License
|
7
|
+
(See LICENSE file for details)
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
module Arachni
|
12
|
+
module RPC
|
13
|
+
module Pure
|
14
|
+
|
15
|
+
class Connection
|
16
|
+
|
17
|
+
def initialize( opts )
|
18
|
+
@opts = opts
|
19
|
+
|
20
|
+
socket = TCPSocket.new( opts[:host], opts[:port] )
|
21
|
+
|
22
|
+
@ssl_context = OpenSSL::SSL::SSLContext.new
|
23
|
+
|
24
|
+
if opts[:ssl_cert] && opts[:ssl_pkey]
|
25
|
+
@ssl_context.cert = OpenSSL::X509::Certificate.new( File.open( opts[:ssl_cert] ) )
|
26
|
+
@ssl_context.key = OpenSSL::PKey::RSA.new( File.open( opts[:ssl_pkey] ) )
|
27
|
+
@ssl_context.ca_file = opts[:ssl_ca]
|
28
|
+
@ssl_context.verify_mode =
|
29
|
+
OpenSSL::SSL::VERIFY_PEER | OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
|
30
|
+
end
|
31
|
+
|
32
|
+
@ssl_socket = OpenSSL::SSL::SSLSocket.new( socket, @ssl_context )
|
33
|
+
@ssl_socket.sync_close = true
|
34
|
+
@ssl_socket.connect
|
35
|
+
end
|
36
|
+
|
37
|
+
def close
|
38
|
+
@ssl_socket.close
|
39
|
+
end
|
40
|
+
|
41
|
+
def perform( request )
|
42
|
+
Response.new( send_rcv_object( request.prepare_for_tx ) )
|
43
|
+
end
|
44
|
+
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def send_rcv_object( obj )
|
49
|
+
send_object( obj )
|
50
|
+
receive_object
|
51
|
+
end
|
52
|
+
|
53
|
+
def send_object( obj )
|
54
|
+
serialized = serializer.dump( obj )
|
55
|
+
@ssl_socket.puts( [ serialized.bytesize, serialized ].pack( 'Na*' ) )
|
56
|
+
end
|
57
|
+
|
58
|
+
def receive_object
|
59
|
+
while data = @ssl_socket.sysread( 99999 )
|
60
|
+
(@buf ||= '') << data
|
61
|
+
while @buf.size >= 4
|
62
|
+
if @buf.size >= 4 + ( size = @buf.unpack( 'N' ).first )
|
63
|
+
@buf.slice!(0,4)
|
64
|
+
|
65
|
+
complete = @buf.slice!( 0, size )
|
66
|
+
@buf = ''
|
67
|
+
return serializer.load( complete )
|
68
|
+
else
|
69
|
+
break
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
private
|
76
|
+
|
77
|
+
def serializer
|
78
|
+
@opts[:serializer] ? @opts[:serializer] : YAML
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
=begin
|
2
|
+
Arachni-RPC
|
3
|
+
Copyright (c) 2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
4
|
+
|
5
|
+
This is free software; you can copy and distribute and modify
|
6
|
+
this program under the term of the GPL v2.0 License
|
7
|
+
(See LICENSE file for details)
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
module Arachni
|
12
|
+
module RPC
|
13
|
+
module Pure
|
14
|
+
VERSION = '0.1'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
require File.join( File.expand_path( File.dirname( __FILE__ ) ), '../../../', 'spec_helper' )
|
2
|
+
|
3
|
+
describe Arachni::RPC::Pure::Client do
|
4
|
+
|
5
|
+
before( :all ) do
|
6
|
+
@arg = [
|
7
|
+
'one',
|
8
|
+
2,
|
9
|
+
{ :three => 3 },
|
10
|
+
[ 4 ]
|
11
|
+
]
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "raw interface" do
|
15
|
+
|
16
|
+
it "should be able to perform calls" do
|
17
|
+
@arg.should == start_client( rpc_opts ).call( 'test.foo', @arg )
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
describe "Arachni::RPC::RemoteObjectMapper interface" do
|
23
|
+
|
24
|
+
it "should be able to properly forward calls" do
|
25
|
+
test = Arachni::RPC::RemoteObjectMapper.new( start_client( rpc_opts ), 'test' )
|
26
|
+
test.foo( @arg ).should == @arg
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "exception" do
|
32
|
+
|
33
|
+
it "should be raised when requesting inexistent objects" do
|
34
|
+
begin
|
35
|
+
start_client( rpc_opts ).call( 'bar2.foo' )
|
36
|
+
rescue Exception => e
|
37
|
+
e.rpc_invalid_object_error?.should be_true
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should be raised when requesting inexistent or non-public methods" do
|
42
|
+
begin
|
43
|
+
start_client( rpc_opts ).call( 'test.bar2' )
|
44
|
+
rescue Exception => e
|
45
|
+
e.rpc_invalid_method_error?.should be_true
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should be raised when there's a remote exception" do
|
51
|
+
begin
|
52
|
+
start_client( rpc_opts ).call( 'test.foo' )
|
53
|
+
rescue Exception => e
|
54
|
+
e.rpc_remote_exception?.should be_true
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should be able to retain stability and consistency under heavy load" do
|
61
|
+
client = start_client( rpc_opts )
|
62
|
+
|
63
|
+
n = 1000
|
64
|
+
cnt = 0
|
65
|
+
|
66
|
+
mismatches = []
|
67
|
+
|
68
|
+
n.times {
|
69
|
+
|i|
|
70
|
+
client.call( 'test.foo', i ) {
|
71
|
+
|res|
|
72
|
+
|
73
|
+
cnt += 1
|
74
|
+
|
75
|
+
mismatches << [i, res] if i != res
|
76
|
+
break if cnt == n || !mismatches.empty?
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
mismatches.should be_empty
|
81
|
+
end
|
82
|
+
|
83
|
+
it "should throw error when connecting to inexistent server" do
|
84
|
+
begin
|
85
|
+
start_client( rpc_opts.merge( :port => 9999 ) ).call( 'test.foo', @arg )
|
86
|
+
rescue Exception => e
|
87
|
+
e.rpc_connection_error?.should be_true
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
context "when using valid SSL primitives" do
|
92
|
+
it "should be able to establish a connection" do
|
93
|
+
res = start_client( rpc_opts_with_ssl_primitives ).call( 'test.foo', @arg )
|
94
|
+
res.should == @arg
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
context "when using invalid SSL primitives" do
|
99
|
+
it "should not be able to establish a connection" do
|
100
|
+
begin
|
101
|
+
start_client( rpc_opts_with_invalid_ssl_primitives ).call( 'test.foo', @arg )
|
102
|
+
rescue Exception => e
|
103
|
+
e.rpc_connection_error?.should be_true
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
context "when using mixed SSL primitives" do
|
109
|
+
it "should not be able to establish a connection" do
|
110
|
+
begin
|
111
|
+
start_client( rpc_opts_with_mixed_ssl_primitives ).call( 'test.foo', @arg )
|
112
|
+
rescue Exception => e
|
113
|
+
e.rpc_conn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
JImaLG2dx+x9icsuCR5HVyHqxgU64gqyqO4Mf3fxwX4LmO2rXuiUPKmvtHkOLApp
|
42
|
+
Qy6UNa+tCAHx3Z6EpHXuHmsMdASo77y4clvvqQtZvcv9ZGayhEI41g6YF4lPw3Ch
|
43
|
+
osGgoWecAwYkcVtfyDid3FWGQ4Ku2f+o8P0HkCuQXbjhXNLDkOVovt7mLOg18adl
|
44
|
+
dV7Vg/dcNkP3ZD2Li1Rc2XPGx5PB1rGkkYEHYYS12vFY5uU9R/21F3nKGG9YmmCm
|
45
|
+
ldnA2rY6mVeIzw3u+Ckwm1ifk85g6JEpAoIBAQDtscJiVYuCkuOtHTYzTkZx0sRb
|
46
|
+
ZVkswbkleeQpG6qgoQXuqAYnLm5GGbix+/9DLtiz8PWOTQgZnCBWNxgIZXWBGhmG
|
47
|
+
J9J3ss9HCXJoIo1DHZVqGMy4Rf5l5Pzq3gaUzHC/XQU67qatAyie2D8bFnFPb8LK
|
48
|
+
J0ELcCb0XjEIEvt4TRiX6bnok45r42H7eRLvb4ex8zgiXBKoW903ZwvF9XrxAmyl
|
49
|
+
lkSwQfmRVbxzainIgRs2YAa6+7+VWlhxzHqkPrEot9Eox0b59jWfOcMPtOlaaE2o
|
50
|
+
yxrk1r0IspUPjYWSjCkDYCLrDBkSOw12CZcfbGSZ5u7mTMkHBHuDpmCXrILO
|
51
|
+
-----END RSA PRIVATE KEY-----
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
def cwd
|
2
|
+
File.expand_path( File.dirname( __FILE__ ) )
|
3
|
+
end
|
4
|
+
|
5
|
+
require File.join( cwd, '../lib/arachni/rpc/', 'pure' )
|
6
|
+
|
7
|
+
def rpc_opts
|
8
|
+
{
|
9
|
+
:host => 'localhost',
|
10
|
+
:port => 7331,
|
11
|
+
:token => 'superdupersecret',
|
12
|
+
:serializer => Marshal,
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def rpc_opts_with_ssl_primitives
|
17
|
+
rpc_opts.merge(
|
18
|
+
:port => 7332,
|
19
|
+
:ssl_ca => cwd + '/pems/cacert.pem',
|
20
|
+
:ssl_pkey => cwd + '/pems/client/key.pem',
|
21
|
+
:ssl_cert => cwd + '/pems/client/cert.pem'
|
22
|
+
)
|
23
|
+
end
|
24
|
+
|
25
|
+
def rpc_opts_with_invalid_ssl_primitives
|
26
|
+
rpc_opts_with_ssl_primitives.merge(
|
27
|
+
:ssl_pkey => cwd + '/pems/client/foo-key.pem',
|
28
|
+
:ssl_cert => cwd + '/pems/client/foo-cert.pem'
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
def rpc_opts_with_mixed_ssl_primitives
|
33
|
+
rpc_opts_with_ssl_primitives.merge(
|
34
|
+
:ssl_pkey => cwd + '/pems/client/key.pem',
|
35
|
+
:ssl_cert => cwd + '/pems/client/foo-cert.pem'
|
36
|
+
)
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
def start_client( opts )
|
41
|
+
Arachni::RPC::Pure::Client.new( opts )
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: arachni-rpc-pure
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tasos Laskos
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: arachni-rpc
|
16
|
+
requirement: &15908920 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0.1'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *15908920
|
25
|
+
description: ! ' Pure Ruby client implementation of the Arachni-RPC protocol.
|
26
|
+
|
27
|
+
'
|
28
|
+
email: tasos.laskos@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.md
|
33
|
+
- LICENSE.md
|
34
|
+
- CHANGELOG.md
|
35
|
+
files:
|
36
|
+
- README.md
|
37
|
+
- Rakefile
|
38
|
+
- LICENSE.md
|
39
|
+
- CHANGELOG.md
|
40
|
+
- lib/arachni/rpc/pure/version.rb
|
41
|
+
- lib/arachni/rpc/pure/connection.rb
|
42
|
+
- lib/arachni/rpc/pure/client.rb
|
43
|
+
- lib/arachni/rpc/pure.rb
|
44
|
+
- examples/client.rb
|
45
|
+
- spec/spec_helper.rb
|
46
|
+
- spec/arachni/rpc/pure/client_spec.rb
|
47
|
+
- spec/pems/cacert.pem
|
48
|
+
- spec/pems/client/key.pem
|
49
|
+
- spec/pems/client/foo-cert.pem
|
50
|
+
- spec/pems/client/foo-key.pem
|
51
|
+
- spec/pems/client/cert.pem
|
52
|
+
- spec/spec.opts
|
53
|
+
homepage: https://github.com/Arachni/arachni-rpc-pure
|
54
|
+
licenses: []
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options:
|
57
|
+
- --charset=UTF-8
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
requirements: []
|
73
|
+
rubyforge_project:
|
74
|
+
rubygems_version: 1.8.10
|
75
|
+
signing_key:
|
76
|
+
specification_version: 3
|
77
|
+
summary: Pure Ruby client for Arachni-RPC.
|
78
|
+
test_files:
|
79
|
+
- examples/client.rb
|
80
|
+
- spec/spec_helper.rb
|
81
|
+
- spec/arachni/rpc/pure/client_spec.rb
|
82
|
+
- spec/pems/cacert.pem
|
83
|
+
- spec/pems/client/key.pem
|
84
|
+
- spec/pems/client/foo-cert.pem
|
85
|
+
- spec/pems/client/foo-key.pem
|
86
|
+
- spec/pems/client/cert.pem
|
87
|
+
- spec/spec.opts
|
88
|
+
has_rdoc:
|