ronin 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/COPYING.txt +339 -0
  2. data/History.txt +34 -0
  3. data/Manifest.txt +157 -0
  4. data/README.txt +131 -0
  5. data/Rakefile +23 -0
  6. data/TODO.txt +6 -0
  7. data/bin/ronin +12 -0
  8. data/lib/ronin.rb +35 -0
  9. data/lib/ronin/arch.rb +86 -0
  10. data/lib/ronin/author.rb +88 -0
  11. data/lib/ronin/cache.rb +27 -0
  12. data/lib/ronin/cache/config.rb +34 -0
  13. data/lib/ronin/cache/exceptions.rb +25 -0
  14. data/lib/ronin/cache/exceptions/extension_not_found.rb +29 -0
  15. data/lib/ronin/cache/exceptions/overlay_cached.rb +29 -0
  16. data/lib/ronin/cache/exceptions/overlay_not_found.rb +29 -0
  17. data/lib/ronin/cache/extension.rb +706 -0
  18. data/lib/ronin/cache/extension_cache.rb +108 -0
  19. data/lib/ronin/cache/overlay.rb +418 -0
  20. data/lib/ronin/cache/overlay_cache.rb +228 -0
  21. data/lib/ronin/cache/ronin.rb +50 -0
  22. data/lib/ronin/chars.rb +25 -0
  23. data/lib/ronin/chars/char_set.rb +121 -0
  24. data/lib/ronin/chars/chars.rb +180 -0
  25. data/lib/ronin/config.rb +31 -0
  26. data/lib/ronin/console.rb +127 -0
  27. data/lib/ronin/context.rb +233 -0
  28. data/lib/ronin/database.rb +122 -0
  29. data/lib/ronin/environment.rb +39 -0
  30. data/lib/ronin/exceptions/context_not_found.rb +27 -0
  31. data/lib/ronin/exceptions/invalid_database_config.rb +27 -0
  32. data/lib/ronin/exceptions/object_context_not_found.rb +27 -0
  33. data/lib/ronin/exceptions/unknown_context.rb +27 -0
  34. data/lib/ronin/exceptions/unknown_object_context.rb +27 -0
  35. data/lib/ronin/extensions.rb +28 -0
  36. data/lib/ronin/extensions/hash.rb +62 -0
  37. data/lib/ronin/extensions/kernel.rb +34 -0
  38. data/lib/ronin/extensions/meta.rb +24 -0
  39. data/lib/ronin/extensions/meta/object.rb +24 -0
  40. data/lib/ronin/extensions/string.rb +37 -0
  41. data/lib/ronin/extensions/uri.rb +24 -0
  42. data/lib/ronin/extensions/uri/http.rb +78 -0
  43. data/lib/ronin/extensions/uri/query_params.rb +97 -0
  44. data/lib/ronin/formatting.rb +29 -0
  45. data/lib/ronin/formatting/binary.rb +24 -0
  46. data/lib/ronin/formatting/digest.rb +24 -0
  47. data/lib/ronin/formatting/extensions.rb +26 -0
  48. data/lib/ronin/formatting/extensions/binary.rb +25 -0
  49. data/lib/ronin/formatting/extensions/binary/integer.rb +59 -0
  50. data/lib/ronin/formatting/extensions/binary/string.rb +73 -0
  51. data/lib/ronin/formatting/extensions/digest.rb +24 -0
  52. data/lib/ronin/formatting/extensions/digest/string.rb +65 -0
  53. data/lib/ronin/formatting/extensions/html.rb +24 -0
  54. data/lib/ronin/formatting/extensions/html/string.rb +75 -0
  55. data/lib/ronin/formatting/extensions/http.rb +24 -0
  56. data/lib/ronin/formatting/extensions/http/string.rb +69 -0
  57. data/lib/ronin/formatting/extensions/text.rb +24 -0
  58. data/lib/ronin/formatting/extensions/text/string.rb +96 -0
  59. data/lib/ronin/formatting/html.rb +24 -0
  60. data/lib/ronin/formatting/http.rb +24 -0
  61. data/lib/ronin/formatting/text.rb +24 -0
  62. data/lib/ronin/license.rb +87 -0
  63. data/lib/ronin/model.rb +44 -0
  64. data/lib/ronin/models.rb +34 -0
  65. data/lib/ronin/network.rb +31 -0
  66. data/lib/ronin/network/esmtp.rb +24 -0
  67. data/lib/ronin/network/extensions.rb +31 -0
  68. data/lib/ronin/network/extensions/esmtp.rb +24 -0
  69. data/lib/ronin/network/extensions/esmtp/net.rb +68 -0
  70. data/lib/ronin/network/extensions/http.rb +24 -0
  71. data/lib/ronin/network/extensions/http/net.rb +303 -0
  72. data/lib/ronin/network/extensions/imap.rb +24 -0
  73. data/lib/ronin/network/extensions/imap/net.rb +92 -0
  74. data/lib/ronin/network/extensions/pop3.rb +24 -0
  75. data/lib/ronin/network/extensions/pop3/net.rb +65 -0
  76. data/lib/ronin/network/extensions/smtp.rb +24 -0
  77. data/lib/ronin/network/extensions/smtp/net.rb +80 -0
  78. data/lib/ronin/network/extensions/tcp.rb +24 -0
  79. data/lib/ronin/network/extensions/tcp/net.rb +94 -0
  80. data/lib/ronin/network/extensions/telnet.rb +24 -0
  81. data/lib/ronin/network/extensions/telnet/net.rb +132 -0
  82. data/lib/ronin/network/extensions/udp.rb +24 -0
  83. data/lib/ronin/network/extensions/udp/net.rb +99 -0
  84. data/lib/ronin/network/http.rb +128 -0
  85. data/lib/ronin/network/http/exceptions.rb +24 -0
  86. data/lib/ronin/network/http/exceptions/unknown_request.rb +31 -0
  87. data/lib/ronin/network/imap.rb +47 -0
  88. data/lib/ronin/network/pop3.rb +47 -0
  89. data/lib/ronin/network/smtp.rb +26 -0
  90. data/lib/ronin/network/smtp/email.rb +126 -0
  91. data/lib/ronin/network/smtp/smtp.rb +55 -0
  92. data/lib/ronin/network/tcp.rb +24 -0
  93. data/lib/ronin/network/telnet.rb +95 -0
  94. data/lib/ronin/network/udp.rb +24 -0
  95. data/lib/ronin/object_context.rb +257 -0
  96. data/lib/ronin/objects.rb +29 -0
  97. data/lib/ronin/parameters.rb +27 -0
  98. data/lib/ronin/parameters/class_param.rb +45 -0
  99. data/lib/ronin/parameters/exceptions.rb +25 -0
  100. data/lib/ronin/parameters/exceptions/missing_param.rb +29 -0
  101. data/lib/ronin/parameters/exceptions/param_not_found.rb +29 -0
  102. data/lib/ronin/parameters/instance_param.rb +57 -0
  103. data/lib/ronin/parameters/param.rb +45 -0
  104. data/lib/ronin/parameters/parameters.rb +275 -0
  105. data/lib/ronin/path.rb +70 -0
  106. data/lib/ronin/pending_context.rb +42 -0
  107. data/lib/ronin/persistence.rb +32 -0
  108. data/lib/ronin/platform.rb +95 -0
  109. data/lib/ronin/product.rb +56 -0
  110. data/lib/ronin/ronin.rb +49 -0
  111. data/lib/ronin/rpc.rb +27 -0
  112. data/lib/ronin/rpc/call.rb +75 -0
  113. data/lib/ronin/rpc/client.rb +91 -0
  114. data/lib/ronin/rpc/console.rb +79 -0
  115. data/lib/ronin/rpc/exceptions.rb +25 -0
  116. data/lib/ronin/rpc/exceptions/not_implemented.rb +29 -0
  117. data/lib/ronin/rpc/exceptions/response_missing.rb +29 -0
  118. data/lib/ronin/rpc/interactive.rb +55 -0
  119. data/lib/ronin/rpc/interactive_console.rb +58 -0
  120. data/lib/ronin/rpc/interactive_shell.rb +59 -0
  121. data/lib/ronin/rpc/response.rb +57 -0
  122. data/lib/ronin/rpc/service.rb +69 -0
  123. data/lib/ronin/rpc/shell.rb +66 -0
  124. data/lib/ronin/runner.rb +24 -0
  125. data/lib/ronin/runner/program.rb +26 -0
  126. data/lib/ronin/runner/program/command.rb +204 -0
  127. data/lib/ronin/runner/program/commands.rb +33 -0
  128. data/lib/ronin/runner/program/commands/add.rb +73 -0
  129. data/lib/ronin/runner/program/commands/help.rb +52 -0
  130. data/lib/ronin/runner/program/commands/install.rb +65 -0
  131. data/lib/ronin/runner/program/commands/list.rb +81 -0
  132. data/lib/ronin/runner/program/commands/remove.rb +57 -0
  133. data/lib/ronin/runner/program/commands/uninstall.rb +57 -0
  134. data/lib/ronin/runner/program/commands/update.rb +55 -0
  135. data/lib/ronin/runner/program/exceptions.rb +24 -0
  136. data/lib/ronin/runner/program/exceptions/unknown_command.rb +31 -0
  137. data/lib/ronin/runner/program/options.rb +205 -0
  138. data/lib/ronin/runner/program/program.rb +173 -0
  139. data/lib/ronin/runner/program/runner.rb +35 -0
  140. data/lib/ronin/sessions.rb +32 -0
  141. data/lib/ronin/sessions/esmtp.rb +76 -0
  142. data/lib/ronin/sessions/imap.rb +73 -0
  143. data/lib/ronin/sessions/pop3.rb +70 -0
  144. data/lib/ronin/sessions/session.rb +52 -0
  145. data/lib/ronin/sessions/smtp.rb +76 -0
  146. data/lib/ronin/sessions/tcp.rb +111 -0
  147. data/lib/ronin/sessions/telnet.rb +76 -0
  148. data/lib/ronin/sessions/udp.rb +99 -0
  149. data/lib/ronin/sessions/web.rb +83 -0
  150. data/lib/ronin/shell.rb +81 -0
  151. data/lib/ronin/target.rb +40 -0
  152. data/lib/ronin/version.rb +27 -0
  153. data/lib/ronin/web.rb +24 -0
  154. data/lib/ronin/web/web.rb +265 -0
  155. data/spec/spec_helper.rb +9 -0
  156. data/tasks/spec.rb +7 -0
  157. metadata +324 -0
data/tasks/spec.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'spec/rake/spectask'
2
+
3
+ desc "Run all specifications"
4
+ Spec::Rake::SpecTask.new(:spec) do |t|
5
+ t.libs += ['lib', 'spec']
6
+ t.spec_opts = ['--colour', '--format', 'specdoc']
7
+ end
metadata ADDED
@@ -0,0 +1,324 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ronin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9
5
+ platform: ruby
6
+ authors:
7
+ - Postmodern Modulus III
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-08-21 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hpricot
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: mechanize
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: dm-core
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.9.3
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: data_objects
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.3
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: do_sqlite3
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.9.3
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: dm-types
67
+ type: :runtime
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 0.9.3
74
+ version:
75
+ - !ruby/object:Gem::Dependency
76
+ name: dm-serializer
77
+ type: :runtime
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: 0.9.3
84
+ version:
85
+ - !ruby/object:Gem::Dependency
86
+ name: dm-aggregates
87
+ type: :runtime
88
+ version_requirement:
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: 0.9.3
94
+ version:
95
+ - !ruby/object:Gem::Dependency
96
+ name: reverserequire
97
+ type: :runtime
98
+ version_requirement:
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 0.1.0
104
+ version:
105
+ - !ruby/object:Gem::Dependency
106
+ name: repertoire
107
+ type: :runtime
108
+ version_requirement:
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 0.1.2
114
+ version:
115
+ - !ruby/object:Gem::Dependency
116
+ name: hoe
117
+ type: :development
118
+ version_requirement:
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: 1.7.0
124
+ version:
125
+ description: Ronin is a Ruby platform designed for information security and data exploration tasks. Ronin allows for the rapid development and distribution of code over many of the common Source-Code-Management (SCM) systems.
126
+ email:
127
+ - postmodern.mod3@gmail.com
128
+ executables:
129
+ - ronin
130
+ extensions: []
131
+
132
+ extra_rdoc_files:
133
+ - History.txt
134
+ - COPYING.txt
135
+ - Manifest.txt
136
+ - README.txt
137
+ - TODO.txt
138
+ files:
139
+ - History.txt
140
+ - COPYING.txt
141
+ - Manifest.txt
142
+ - README.txt
143
+ - TODO.txt
144
+ - Rakefile
145
+ - bin/ronin
146
+ - lib/ronin.rb
147
+ - lib/ronin/config.rb
148
+ - lib/ronin/environment.rb
149
+ - lib/ronin/exceptions/invalid_database_config.rb
150
+ - lib/ronin/exceptions/unknown_context.rb
151
+ - lib/ronin/exceptions/context_not_found.rb
152
+ - lib/ronin/exceptions/unknown_object_context.rb
153
+ - lib/ronin/exceptions/object_context_not_found.rb
154
+ - lib/ronin/extensions.rb
155
+ - lib/ronin/extensions/meta.rb
156
+ - lib/ronin/extensions/meta/object.rb
157
+ - lib/ronin/extensions/hash.rb
158
+ - lib/ronin/extensions/uri.rb
159
+ - lib/ronin/extensions/uri/query_params.rb
160
+ - lib/ronin/extensions/uri/http.rb
161
+ - lib/ronin/extensions/string.rb
162
+ - lib/ronin/extensions/kernel.rb
163
+ - lib/ronin/parameters.rb
164
+ - lib/ronin/parameters/exceptions.rb
165
+ - lib/ronin/parameters/exceptions/missing_param.rb
166
+ - lib/ronin/parameters/exceptions/param_not_found.rb
167
+ - lib/ronin/parameters/class_param.rb
168
+ - lib/ronin/parameters/instance_param.rb
169
+ - lib/ronin/parameters/param.rb
170
+ - lib/ronin/parameters/parameters.rb
171
+ - lib/ronin/formatting.rb
172
+ - lib/ronin/formatting/digest.rb
173
+ - lib/ronin/formatting/binary.rb
174
+ - lib/ronin/formatting/text.rb
175
+ - lib/ronin/formatting/html.rb
176
+ - lib/ronin/formatting/http.rb
177
+ - lib/ronin/formatting/extensions.rb
178
+ - lib/ronin/formatting/extensions/digest.rb
179
+ - lib/ronin/formatting/extensions/digest/string.rb
180
+ - lib/ronin/formatting/extensions/binary.rb
181
+ - lib/ronin/formatting/extensions/binary/integer.rb
182
+ - lib/ronin/formatting/extensions/binary/string.rb
183
+ - lib/ronin/formatting/extensions/text.rb
184
+ - lib/ronin/formatting/extensions/text/string.rb
185
+ - lib/ronin/formatting/extensions/html.rb
186
+ - lib/ronin/formatting/extensions/html/string.rb
187
+ - lib/ronin/formatting/extensions/http.rb
188
+ - lib/ronin/formatting/extensions/http/string.rb
189
+ - lib/ronin/chars.rb
190
+ - lib/ronin/chars/char_set.rb
191
+ - lib/ronin/chars/chars.rb
192
+ - lib/ronin/path.rb
193
+ - lib/ronin/network.rb
194
+ - lib/ronin/network/extensions.rb
195
+ - lib/ronin/network/extensions/tcp.rb
196
+ - lib/ronin/network/extensions/tcp/net.rb
197
+ - lib/ronin/network/extensions/udp.rb
198
+ - lib/ronin/network/extensions/udp/net.rb
199
+ - lib/ronin/network/extensions/smtp.rb
200
+ - lib/ronin/network/extensions/smtp/net.rb
201
+ - lib/ronin/network/extensions/esmtp.rb
202
+ - lib/ronin/network/extensions/esmtp/net.rb
203
+ - lib/ronin/network/extensions/pop3.rb
204
+ - lib/ronin/network/extensions/pop3/net.rb
205
+ - lib/ronin/network/extensions/imap.rb
206
+ - lib/ronin/network/extensions/imap/net.rb
207
+ - lib/ronin/network/extensions/telnet.rb
208
+ - lib/ronin/network/extensions/telnet/net.rb
209
+ - lib/ronin/network/extensions/http.rb
210
+ - lib/ronin/network/extensions/http/net.rb
211
+ - lib/ronin/network/tcp.rb
212
+ - lib/ronin/network/udp.rb
213
+ - lib/ronin/network/smtp.rb
214
+ - lib/ronin/network/smtp/smtp.rb
215
+ - lib/ronin/network/smtp/email.rb
216
+ - lib/ronin/network/esmtp.rb
217
+ - lib/ronin/network/pop3.rb
218
+ - lib/ronin/network/imap.rb
219
+ - lib/ronin/network/telnet.rb
220
+ - lib/ronin/network/http.rb
221
+ - lib/ronin/network/http/exceptions.rb
222
+ - lib/ronin/network/http/exceptions/unknown_request.rb
223
+ - lib/ronin/rpc.rb
224
+ - lib/ronin/rpc/exceptions.rb
225
+ - lib/ronin/rpc/exceptions/not_implemented.rb
226
+ - lib/ronin/rpc/exceptions/response_missing.rb
227
+ - lib/ronin/rpc/call.rb
228
+ - lib/ronin/rpc/response.rb
229
+ - lib/ronin/rpc/client.rb
230
+ - lib/ronin/rpc/service.rb
231
+ - lib/ronin/rpc/console.rb
232
+ - lib/ronin/rpc/shell.rb
233
+ - lib/ronin/rpc/interactive.rb
234
+ - lib/ronin/rpc/interactive_console.rb
235
+ - lib/ronin/rpc/interactive_shell.rb
236
+ - lib/ronin/web.rb
237
+ - lib/ronin/web/web.rb
238
+ - lib/ronin/sessions.rb
239
+ - lib/ronin/sessions/session.rb
240
+ - lib/ronin/sessions/tcp.rb
241
+ - lib/ronin/sessions/udp.rb
242
+ - lib/ronin/sessions/smtp.rb
243
+ - lib/ronin/sessions/esmtp.rb
244
+ - lib/ronin/sessions/pop3.rb
245
+ - lib/ronin/sessions/imap.rb
246
+ - lib/ronin/sessions/telnet.rb
247
+ - lib/ronin/sessions/web.rb
248
+ - lib/ronin/database.rb
249
+ - lib/ronin/model.rb
250
+ - lib/ronin/models.rb
251
+ - lib/ronin/author.rb
252
+ - lib/ronin/license.rb
253
+ - lib/ronin/arch.rb
254
+ - lib/ronin/platform.rb
255
+ - lib/ronin/target.rb
256
+ - lib/ronin/product.rb
257
+ - lib/ronin/pending_context.rb
258
+ - lib/ronin/context.rb
259
+ - lib/ronin/object_context.rb
260
+ - lib/ronin/objects.rb
261
+ - lib/ronin/persistence.rb
262
+ - lib/ronin/cache.rb
263
+ - lib/ronin/cache/exceptions.rb
264
+ - lib/ronin/cache/exceptions/extension_not_found.rb
265
+ - lib/ronin/cache/exceptions/overlay_cached.rb
266
+ - lib/ronin/cache/exceptions/overlay_not_found.rb
267
+ - lib/ronin/cache/overlay_cache.rb
268
+ - lib/ronin/cache/overlay.rb
269
+ - lib/ronin/cache/config.rb
270
+ - lib/ronin/cache/extension_cache.rb
271
+ - lib/ronin/cache/extension.rb
272
+ - lib/ronin/cache/ronin.rb
273
+ - lib/ronin/console.rb
274
+ - lib/ronin/shell.rb
275
+ - lib/ronin/runner.rb
276
+ - lib/ronin/runner/program.rb
277
+ - lib/ronin/runner/program/exceptions.rb
278
+ - lib/ronin/runner/program/exceptions/unknown_command.rb
279
+ - lib/ronin/runner/program/command.rb
280
+ - lib/ronin/runner/program/options.rb
281
+ - lib/ronin/runner/program/commands.rb
282
+ - lib/ronin/runner/program/commands/add.rb
283
+ - lib/ronin/runner/program/commands/install.rb
284
+ - lib/ronin/runner/program/commands/list.rb
285
+ - lib/ronin/runner/program/commands/update.rb
286
+ - lib/ronin/runner/program/commands/remove.rb
287
+ - lib/ronin/runner/program/commands/uninstall.rb
288
+ - lib/ronin/runner/program/commands/help.rb
289
+ - lib/ronin/runner/program/program.rb
290
+ - lib/ronin/runner/program/runner.rb
291
+ - lib/ronin/ronin.rb
292
+ - lib/ronin/version.rb
293
+ - tasks/spec.rb
294
+ - spec/helpers/
295
+ - spec/spec_helper.rb
296
+ has_rdoc: true
297
+ homepage: http://ronin.rubyforge.org/
298
+ post_install_message:
299
+ rdoc_options:
300
+ - --main
301
+ - README.txt
302
+ require_paths:
303
+ - lib
304
+ required_ruby_version: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ version: "0"
309
+ version:
310
+ required_rubygems_version: !ruby/object:Gem::Requirement
311
+ requirements:
312
+ - - ">="
313
+ - !ruby/object:Gem::Version
314
+ version: "0"
315
+ version:
316
+ requirements: []
317
+
318
+ rubyforge_project: ronin
319
+ rubygems_version: 1.2.0
320
+ signing_key:
321
+ specification_version: 2
322
+ summary: Ronin is a Ruby platform designed for information security and data exploration tasks
323
+ test_files: []
324
+