ronin 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +95 -0
- data/Manifest.txt +55 -25
- data/README.txt +64 -52
- data/Rakefile +21 -14
- data/bin/ronin +1 -1
- data/bin/ronin-add +1 -1
- data/bin/ronin-console +1 -1
- data/bin/ronin-help +1 -1
- data/bin/ronin-install +1 -1
- data/bin/ronin-list +1 -1
- data/bin/ronin-remove +1 -1
- data/bin/ronin-uninstall +1 -1
- data/bin/ronin-update +1 -1
- data/lib/ronin.rb +2 -4
- data/lib/ronin/arch.rb +66 -21
- data/lib/ronin/author.rb +27 -18
- data/lib/ronin/cacheable.rb +63 -23
- data/lib/ronin/code/emittable.rb +1 -4
- data/lib/ronin/code/reference.rb +2 -5
- data/lib/ronin/code/symbol_table.rb +1 -4
- data/lib/ronin/code/token.rb +1 -4
- data/lib/ronin/config.rb +31 -10
- data/lib/ronin/database.rb +1 -4
- data/lib/ronin/database/database.rb +42 -23
- data/lib/ronin/database/exceptions.rb +1 -4
- data/lib/ronin/database/exceptions/invalid_config.rb +1 -4
- data/lib/ronin/environment.rb +1 -5
- data/lib/ronin/extensions.rb +1 -5
- data/lib/ronin/extensions/array.rb +8 -6
- data/lib/ronin/extensions/file.rb +9 -4
- data/lib/ronin/extensions/ip_addr.rb +33 -13
- data/lib/ronin/extensions/kernel.rb +44 -9
- data/lib/ronin/extensions/meta.rb +1 -4
- data/lib/ronin/extensions/string.rb +8 -7
- data/lib/ronin/extensions/uri.rb +1 -4
- data/lib/ronin/extensions/uri/http.rb +1 -48
- data/lib/ronin/extensions/uri/query_params.rb +27 -8
- data/lib/ronin/formatting.rb +1 -4
- data/lib/ronin/formatting/binary.rb +1 -4
- data/lib/ronin/formatting/digest.rb +1 -4
- data/lib/ronin/formatting/extensions.rb +1 -4
- data/lib/ronin/formatting/extensions/binary.rb +1 -4
- data/lib/ronin/formatting/extensions/binary/file.rb +3 -28
- data/lib/ronin/formatting/extensions/binary/integer.rb +31 -12
- data/lib/ronin/formatting/extensions/binary/string.rb +59 -36
- data/lib/ronin/formatting/extensions/digest.rb +1 -4
- data/lib/ronin/formatting/extensions/digest/string.rb +31 -9
- data/lib/ronin/formatting/extensions/http.rb +1 -4
- data/lib/ronin/formatting/extensions/http/string.rb +16 -9
- data/lib/ronin/formatting/extensions/text.rb +1 -4
- data/lib/ronin/formatting/extensions/text/array.rb +17 -7
- data/lib/ronin/formatting/extensions/text/string.rb +70 -27
- data/lib/ronin/formatting/http.rb +1 -4
- data/lib/ronin/formatting/text.rb +1 -4
- data/lib/ronin/license.rb +72 -65
- data/lib/ronin/model.rb +1 -4
- data/lib/ronin/model/has_description.rb +37 -8
- data/lib/ronin/model/has_license.rb +12 -8
- data/lib/ronin/model/has_name.rb +10 -7
- data/lib/ronin/model/has_version.rb +14 -4
- data/lib/ronin/model/model.rb +71 -14
- data/lib/ronin/network.rb +1 -4
- data/lib/ronin/network/esmtp.rb +1 -4
- data/lib/ronin/network/extensions.rb +1 -4
- data/lib/ronin/network/extensions/esmtp.rb +1 -4
- data/lib/ronin/network/extensions/esmtp/net.rb +49 -21
- data/lib/ronin/network/extensions/http.rb +1 -4
- data/lib/ronin/network/extensions/http/net.rb +319 -531
- data/lib/ronin/network/extensions/imap.rb +1 -4
- data/lib/ronin/network/extensions/imap/net.rb +50 -23
- data/lib/ronin/network/extensions/pop3.rb +1 -4
- data/lib/ronin/network/extensions/pop3/net.rb +40 -17
- data/lib/ronin/network/extensions/smtp.rb +1 -4
- data/lib/ronin/network/extensions/smtp/net.rb +49 -21
- data/lib/ronin/network/extensions/tcp.rb +1 -4
- data/lib/ronin/network/extensions/tcp/net.rb +234 -31
- data/lib/ronin/network/extensions/telnet.rb +1 -4
- data/lib/ronin/network/extensions/telnet/net.rb +83 -51
- data/lib/ronin/network/extensions/udp.rb +1 -4
- data/lib/ronin/network/extensions/udp/net.rb +164 -27
- data/lib/ronin/{sessions.rb → network/helpers.rb} +10 -13
- data/lib/ronin/network/helpers/esmtp.rb +129 -0
- data/lib/ronin/{sessions/session.rb → network/helpers/helper.rb} +25 -17
- data/lib/ronin/network/helpers/http.rb +444 -0
- data/lib/ronin/network/helpers/imap.rb +115 -0
- data/lib/ronin/network/helpers/pop3.rb +110 -0
- data/lib/ronin/network/helpers/smtp.rb +123 -0
- data/lib/ronin/network/helpers/tcp.rb +309 -0
- data/lib/ronin/network/helpers/telnet.rb +158 -0
- data/lib/ronin/network/helpers/udp.rb +197 -0
- data/lib/ronin/network/http.rb +3 -156
- data/lib/ronin/network/http/exceptions.rb +1 -4
- data/lib/ronin/network/http/exceptions/unknown_request.rb +1 -4
- data/lib/ronin/network/http/http.rb +214 -0
- data/lib/ronin/network/http/proxy.rb +308 -0
- data/lib/ronin/network/imap.rb +7 -6
- data/lib/ronin/network/pop3.rb +7 -6
- data/lib/ronin/network/smtp.rb +1 -4
- data/lib/ronin/network/smtp/email.rb +34 -18
- data/lib/ronin/network/smtp/smtp.rb +19 -7
- data/lib/ronin/network/tcp.rb +1 -4
- data/lib/ronin/network/telnet.rb +25 -12
- data/lib/ronin/network/udp.rb +1 -4
- data/lib/ronin/os.rb +43 -21
- data/lib/ronin/path.rb +29 -9
- data/lib/ronin/platform.rb +1 -4
- data/lib/ronin/platform/exceptions.rb +1 -4
- data/lib/ronin/platform/exceptions/extension_not_found.rb +1 -4
- data/lib/ronin/platform/exceptions/overlay_cached.rb +1 -4
- data/lib/ronin/platform/exceptions/overlay_not_found.rb +1 -4
- data/lib/ronin/platform/extension.rb +195 -52
- data/lib/ronin/platform/extension_cache.rb +60 -24
- data/lib/ronin/platform/maintainer.rb +15 -8
- data/lib/ronin/platform/object_cache.rb +29 -8
- data/lib/ronin/platform/overlay.rb +82 -26
- data/lib/ronin/platform/overlay_cache.rb +179 -56
- data/lib/ronin/platform/platform.rb +154 -58
- data/lib/ronin/platform/ronin.rb +38 -11
- data/lib/ronin/product.rb +17 -17
- data/lib/ronin/rpc.rb +1 -4
- data/lib/ronin/rpc/call.rb +1 -4
- data/lib/ronin/rpc/client.rb +1 -4
- data/lib/ronin/rpc/console.rb +1 -4
- data/lib/ronin/rpc/exceptions.rb +1 -4
- data/lib/ronin/rpc/exceptions/not_implemented.rb +1 -4
- data/lib/ronin/rpc/exceptions/response_missing.rb +1 -4
- data/lib/ronin/rpc/response.rb +1 -4
- data/lib/ronin/rpc/service.rb +1 -4
- data/lib/ronin/rpc/shell.rb +1 -4
- data/lib/ronin/scanners.rb +1 -4
- data/lib/ronin/scanners/exceptions.rb +1 -4
- data/lib/ronin/scanners/exceptions/unknown_category.rb +1 -4
- data/lib/ronin/scanners/scanner.rb +82 -26
- data/lib/ronin/static.rb +1 -4
- data/lib/ronin/static/finders.rb +1 -4
- data/lib/ronin/static/static.rb +16 -7
- data/lib/ronin/templates.rb +2 -4
- data/lib/ronin/templates/erb.rb +24 -10
- data/lib/ronin/templates/template.rb +130 -0
- data/lib/ronin/ui.rb +2 -6
- data/lib/ronin/ui/command_line.rb +1 -4
- data/lib/ronin/ui/command_line/command.rb +137 -68
- data/lib/ronin/ui/command_line/command_line.rb +52 -29
- data/lib/ronin/ui/command_line/commands/add.rb +39 -67
- data/lib/ronin/ui/command_line/commands/console.rb +23 -27
- data/lib/ronin/ui/command_line/commands/help.rb +10 -29
- data/lib/ronin/ui/command_line/commands/install.rb +31 -56
- data/lib/ronin/ui/command_line/commands/list.rb +34 -52
- data/lib/ronin/ui/command_line/commands/remove.rb +12 -32
- data/lib/ronin/ui/command_line/commands/uninstall.rb +11 -31
- data/lib/ronin/ui/command_line/commands/update.rb +15 -35
- data/lib/ronin/ui/command_line/exceptions.rb +1 -4
- data/lib/ronin/ui/command_line/exceptions/unknown_command.rb +1 -4
- data/lib/ronin/ui/console.rb +54 -23
- data/lib/ronin/ui/hexdump.rb +1 -4
- data/lib/ronin/ui/hexdump/extensions.rb +1 -4
- data/lib/ronin/ui/hexdump/extensions/file.rb +8 -6
- data/lib/ronin/ui/hexdump/extensions/kernel.rb +4 -5
- data/lib/ronin/ui/hexdump/hexdump.rb +8 -5
- data/lib/ronin/{sessions/exceptions.rb → ui/output.rb} +3 -5
- data/lib/ronin/ui/output/handler.rb +121 -0
- data/lib/ronin/ui/output/helpers.rb +110 -0
- data/lib/ronin/ui/output/output.rb +144 -0
- data/lib/ronin/ui/shell.rb +38 -12
- data/lib/ronin/version.rb +2 -5
- data/lib/ronin/{sessions/exceptions/variable_missing.rb → yard.rb} +2 -10
- data/lib/ronin/{ronin.rb → yard/handlers.rb} +5 -15
- data/lib/ronin/yard/handlers/ruby.rb +27 -0
- data/lib/ronin/yard/handlers/ruby/base.rb +27 -0
- data/lib/ronin/yard/handlers/ruby/belongs_to_handler.rb +45 -0
- data/lib/ronin/yard/handlers/ruby/eval_block_handler.rb +18 -0
- data/lib/ronin/yard/handlers/ruby/has_handler.rb +49 -0
- data/lib/ronin/yard/handlers/ruby/legacy.rb +26 -0
- data/lib/ronin/yard/handlers/ruby/legacy/belongs_to_handler.rb +41 -0
- data/lib/ronin/yard/handlers/ruby/legacy/eval_block_handler.rb +19 -0
- data/lib/ronin/yard/handlers/ruby/legacy/has_handler.rb +34 -0
- data/lib/ronin/yard/handlers/ruby/legacy/metaclass_eval_handler.rb +21 -0
- data/lib/ronin/yard/handlers/ruby/legacy/property_handler.rb +41 -0
- data/lib/ronin/yard/handlers/ruby/legacy/scanner_handler.rb +61 -0
- data/lib/ronin/yard/handlers/ruby/metaclass_eval_handler.rb +18 -0
- data/lib/ronin/yard/handlers/ruby/property_handler.rb +45 -0
- data/lib/ronin/yard/handlers/ruby/scanner_handler.rb +66 -0
- data/spec/author_spec.rb +3 -3
- data/spec/extensions/classes/some_class.rb +2 -0
- data/spec/extensions/kernel_spec.rb +17 -0
- data/spec/extensions/uri/http_spec.rb +0 -31
- data/spec/formatting/binary/integer_spec.rb +4 -0
- data/spec/formatting/text/string_spec.rb +96 -0
- data/spec/license_spec.rb +6 -6
- data/spec/model/classes/basic_model.rb +13 -0
- data/spec/model/classes/custom_model.rb +17 -0
- data/spec/model/classes/described_model.rb +10 -0
- data/spec/model/has_description_spec.rb +42 -0
- data/spec/model/has_license_spec.rb +18 -4
- data/spec/model/model_spec.rb +68 -0
- data/spec/network/helpers/classes/test_helper.rb +11 -0
- data/spec/network/helpers/classes/uses_test_helper.rb +10 -0
- data/spec/network/helpers/helper_spec.rb +25 -0
- data/spec/network/{http_spec.rb → http/http_spec.rb} +0 -0
- data/spec/network/http/proxy_spec.rb +116 -0
- data/spec/os_spec.rb +4 -4
- data/spec/platform/extension_cache_spec.rb +14 -0
- data/spec/platform/extension_spec.rb +11 -0
- data/spec/platform/platform_spec.rb +8 -0
- data/spec/product_spec.rb +9 -9
- data/spec/spec_helper.rb +1 -1
- data/spec/templates/classes/{uses_erb.rb → example_erb.rb} +1 -1
- data/spec/templates/classes/example_template.rb +21 -0
- data/spec/templates/erb_spec.rb +2 -2
- data/spec/templates/helpers/static.rb +5 -0
- data/spec/templates/helpers/static/templates/_relative.erb +1 -0
- data/spec/templates/helpers/static/templates/example.erb +1 -0
- data/spec/templates/template_spec.rb +41 -0
- data/spec/ui/command_line/classes/test_command.rb +23 -0
- data/spec/ui/command_line/command_spec.rb +31 -0
- data/spec/ui/output_spec.rb +29 -0
- data/static/ronin/platform/overlay.xsl +135 -114
- data/tasks/spec.rb +1 -0
- data/tasks/yard.rb +18 -0
- metadata +98 -59
- metadata.gz.sig +0 -0
- data/TODO.txt +0 -15
- data/lib/ronin/extensions/hash.rb +0 -62
- data/lib/ronin/sessions/esmtp.rb +0 -57
- data/lib/ronin/sessions/http.rb +0 -678
- data/lib/ronin/sessions/imap.rb +0 -54
- data/lib/ronin/sessions/pop3.rb +0 -52
- data/lib/ronin/sessions/smtp.rb +0 -57
- data/lib/ronin/sessions/tcp.rb +0 -100
- data/lib/ronin/sessions/telnet.rb +0 -55
- data/lib/ronin/sessions/udp.rb +0 -73
- data/lib/ronin/ui/command_line/options.rb +0 -136
- data/lib/ronin/ui/diagnostics.rb +0 -66
- data/lib/ronin/ui/verbose.rb +0 -58
- data/spec/extensions/hash_spec.rb +0 -38
- data/spec/sessions/classes/test_session.rb +0 -11
- data/spec/sessions/classes/uses_test_session.rb +0 -10
- data/spec/sessions/session_spec.rb +0 -25
- data/spec/ui/verbose_spec.rb +0 -17
data/tasks/spec.rb
CHANGED
data/tasks/yard.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
lib_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
|
2
|
+
unless $LOAD_PATH.include?(lib_dir)
|
3
|
+
$LOAD_PATH.unshift(lib_dir)
|
4
|
+
end
|
5
|
+
|
6
|
+
require 'ronin/yard/handlers'
|
7
|
+
|
8
|
+
YARD::Rake::YardocTask.new do |t|
|
9
|
+
t.files = ['lib/**/*.rb']
|
10
|
+
t.options = [
|
11
|
+
'--protected',
|
12
|
+
'--files', 'History.txt',
|
13
|
+
'--title', 'Ronin',
|
14
|
+
'--quiet'
|
15
|
+
]
|
16
|
+
end
|
17
|
+
|
18
|
+
task :docs => :yardoc
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
@@ -30,18 +30,18 @@ cert_chain:
|
|
30
30
|
pDj+ws7QjtH/Qcrr1l9jfN0ehDs=
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2009-
|
33
|
+
date: 2009-09-25 00:00:00 -07:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: yard
|
38
38
|
type: :runtime
|
39
39
|
version_requirement:
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 2.
|
44
|
+
version: 0.2.3.5
|
45
45
|
version:
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: nokogiri
|
@@ -51,17 +51,7 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
55
|
-
version:
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: addressable
|
58
|
-
type: :runtime
|
59
|
-
version_requirement:
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
61
|
-
requirements:
|
62
|
-
- - "="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 2.0.2
|
54
|
+
version: 1.3.3
|
65
55
|
version:
|
66
56
|
- !ruby/object:Gem::Dependency
|
67
57
|
name: extlib
|
@@ -71,7 +61,7 @@ dependencies:
|
|
71
61
|
requirements:
|
72
62
|
- - ">="
|
73
63
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.9.
|
64
|
+
version: 0.9.13
|
75
65
|
version:
|
76
66
|
- !ruby/object:Gem::Dependency
|
77
67
|
name: data_objects
|
@@ -81,7 +71,7 @@ dependencies:
|
|
81
71
|
requirements:
|
82
72
|
- - ">="
|
83
73
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
74
|
+
version: 0.10.0
|
85
75
|
version:
|
86
76
|
- !ruby/object:Gem::Dependency
|
87
77
|
name: do_sqlite3
|
@@ -91,7 +81,7 @@ dependencies:
|
|
91
81
|
requirements:
|
92
82
|
- - ">="
|
93
83
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.
|
84
|
+
version: 0.10.0
|
95
85
|
version:
|
96
86
|
- !ruby/object:Gem::Dependency
|
97
87
|
name: dm-core
|
@@ -101,7 +91,7 @@ dependencies:
|
|
101
91
|
requirements:
|
102
92
|
- - ">="
|
103
93
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
94
|
+
version: 0.10.0
|
105
95
|
version:
|
106
96
|
- !ruby/object:Gem::Dependency
|
107
97
|
name: dm-types
|
@@ -111,7 +101,7 @@ dependencies:
|
|
111
101
|
requirements:
|
112
102
|
- - ">="
|
113
103
|
- !ruby/object:Gem::Version
|
114
|
-
version: 0.
|
104
|
+
version: 0.10.0
|
115
105
|
version:
|
116
106
|
- !ruby/object:Gem::Dependency
|
117
107
|
name: dm-validations
|
@@ -121,7 +111,7 @@ dependencies:
|
|
121
111
|
requirements:
|
122
112
|
- - ">="
|
123
113
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
114
|
+
version: 0.10.0
|
125
115
|
version:
|
126
116
|
- !ruby/object:Gem::Dependency
|
127
117
|
name: dm-predefined
|
@@ -131,7 +121,7 @@ dependencies:
|
|
131
121
|
requirements:
|
132
122
|
- - ">="
|
133
123
|
- !ruby/object:Gem::Version
|
134
|
-
version: 0.
|
124
|
+
version: 0.2.0
|
135
125
|
version:
|
136
126
|
- !ruby/object:Gem::Dependency
|
137
127
|
name: chars
|
@@ -141,7 +131,7 @@ dependencies:
|
|
141
131
|
requirements:
|
142
132
|
- - ">="
|
143
133
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.1.
|
134
|
+
version: 0.1.2
|
145
135
|
version:
|
146
136
|
- !ruby/object:Gem::Dependency
|
147
137
|
name: parameters
|
@@ -151,7 +141,7 @@ dependencies:
|
|
151
141
|
requirements:
|
152
142
|
- - ">="
|
153
143
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.1.
|
144
|
+
version: 0.1.8
|
155
145
|
version:
|
156
146
|
- !ruby/object:Gem::Dependency
|
157
147
|
name: contextify
|
@@ -161,7 +151,7 @@ dependencies:
|
|
161
151
|
requirements:
|
162
152
|
- - ">="
|
163
153
|
- !ruby/object:Gem::Version
|
164
|
-
version: 0.1.
|
154
|
+
version: 0.1.3
|
165
155
|
version:
|
166
156
|
- !ruby/object:Gem::Dependency
|
167
157
|
name: reverse-require
|
@@ -181,7 +171,27 @@ dependencies:
|
|
181
171
|
requirements:
|
182
172
|
- - ">="
|
183
173
|
- !ruby/object:Gem::Version
|
184
|
-
version: 0.2.
|
174
|
+
version: 0.2.3
|
175
|
+
version:
|
176
|
+
- !ruby/object:Gem::Dependency
|
177
|
+
name: thor
|
178
|
+
type: :runtime
|
179
|
+
version_requirement:
|
180
|
+
version_requirements: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: 0.11.5
|
185
|
+
version:
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
name: rspec
|
188
|
+
type: :development
|
189
|
+
version_requirement:
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.1.12
|
185
195
|
version:
|
186
196
|
- !ruby/object:Gem::Dependency
|
187
197
|
name: hoe
|
@@ -191,12 +201,12 @@ dependencies:
|
|
191
201
|
requirements:
|
192
202
|
- - ">="
|
193
203
|
- !ruby/object:Gem::Version
|
194
|
-
version: 2.3.
|
204
|
+
version: 2.3.3
|
195
205
|
version:
|
196
206
|
description: |-
|
197
|
-
Ronin is a Ruby platform
|
198
|
-
|
199
|
-
|
207
|
+
Ronin is a Ruby platform for exploit development and security research.
|
208
|
+
Ronin allows for the rapid development and distribution of code, exploits
|
209
|
+
or payloads over many common Source-Code-Management (SCM) systems.
|
200
210
|
email:
|
201
211
|
- postmodern.mod3@gmail.com
|
202
212
|
executables:
|
@@ -216,13 +226,11 @@ extra_rdoc_files:
|
|
216
226
|
- COPYING.txt
|
217
227
|
- Manifest.txt
|
218
228
|
- README.txt
|
219
|
-
- TODO.txt
|
220
229
|
files:
|
221
230
|
- History.txt
|
222
231
|
- COPYING.txt
|
223
232
|
- Manifest.txt
|
224
233
|
- README.txt
|
225
|
-
- TODO.txt
|
226
234
|
- Rakefile
|
227
235
|
- bin/ronin
|
228
236
|
- bin/ronin-add
|
@@ -239,13 +247,13 @@ files:
|
|
239
247
|
- lib/ronin/static/static.rb
|
240
248
|
- lib/ronin/static/finders.rb
|
241
249
|
- lib/ronin/templates.rb
|
250
|
+
- lib/ronin/templates/template.rb
|
242
251
|
- lib/ronin/templates/erb.rb
|
243
252
|
- lib/ronin/extensions.rb
|
244
253
|
- lib/ronin/extensions/meta.rb
|
245
254
|
- lib/ronin/extensions/meta/object.rb
|
246
255
|
- lib/ronin/extensions/kernel.rb
|
247
256
|
- lib/ronin/extensions/array.rb
|
248
|
-
- lib/ronin/extensions/hash.rb
|
249
257
|
- lib/ronin/extensions/uri.rb
|
250
258
|
- lib/ronin/extensions/uri/query_params.rb
|
251
259
|
- lib/ronin/extensions/uri/http.rb
|
@@ -288,6 +296,16 @@ files:
|
|
288
296
|
- lib/ronin/network/extensions/telnet/net.rb
|
289
297
|
- lib/ronin/network/extensions/http.rb
|
290
298
|
- lib/ronin/network/extensions/http/net.rb
|
299
|
+
- lib/ronin/network/helpers.rb
|
300
|
+
- lib/ronin/network/helpers/helper.rb
|
301
|
+
- lib/ronin/network/helpers/tcp.rb
|
302
|
+
- lib/ronin/network/helpers/udp.rb
|
303
|
+
- lib/ronin/network/helpers/smtp.rb
|
304
|
+
- lib/ronin/network/helpers/esmtp.rb
|
305
|
+
- lib/ronin/network/helpers/pop3.rb
|
306
|
+
- lib/ronin/network/helpers/imap.rb
|
307
|
+
- lib/ronin/network/helpers/telnet.rb
|
308
|
+
- lib/ronin/network/helpers/http.rb
|
291
309
|
- lib/ronin/network/tcp.rb
|
292
310
|
- lib/ronin/network/udp.rb
|
293
311
|
- lib/ronin/network/smtp.rb
|
@@ -300,6 +318,8 @@ files:
|
|
300
318
|
- lib/ronin/network/http.rb
|
301
319
|
- lib/ronin/network/http/exceptions.rb
|
302
320
|
- lib/ronin/network/http/exceptions/unknown_request.rb
|
321
|
+
- lib/ronin/network/http/proxy.rb
|
322
|
+
- lib/ronin/network/http/http.rb
|
303
323
|
- lib/ronin/code/emittable.rb
|
304
324
|
- lib/ronin/code/token.rb
|
305
325
|
- lib/ronin/code/reference.rb
|
@@ -318,18 +338,6 @@ files:
|
|
318
338
|
- lib/ronin/scanners/exceptions.rb
|
319
339
|
- lib/ronin/scanners/exceptions/unknown_category.rb
|
320
340
|
- lib/ronin/scanners/scanner.rb
|
321
|
-
- lib/ronin/sessions.rb
|
322
|
-
- lib/ronin/sessions/exceptions.rb
|
323
|
-
- lib/ronin/sessions/exceptions/variable_missing.rb
|
324
|
-
- lib/ronin/sessions/session.rb
|
325
|
-
- lib/ronin/sessions/tcp.rb
|
326
|
-
- lib/ronin/sessions/udp.rb
|
327
|
-
- lib/ronin/sessions/smtp.rb
|
328
|
-
- lib/ronin/sessions/esmtp.rb
|
329
|
-
- lib/ronin/sessions/pop3.rb
|
330
|
-
- lib/ronin/sessions/imap.rb
|
331
|
-
- lib/ronin/sessions/telnet.rb
|
332
|
-
- lib/ronin/sessions/http.rb
|
333
341
|
- lib/ronin/database.rb
|
334
342
|
- lib/ronin/database/exceptions.rb
|
335
343
|
- lib/ronin/database/exceptions/invalid_config.rb
|
@@ -362,8 +370,10 @@ files:
|
|
362
370
|
- lib/ronin/platform/platform.rb
|
363
371
|
- lib/ronin/platform/ronin.rb
|
364
372
|
- lib/ronin/ui.rb
|
365
|
-
- lib/ronin/ui/
|
366
|
-
- lib/ronin/ui/
|
373
|
+
- lib/ronin/ui/output.rb
|
374
|
+
- lib/ronin/ui/output/handler.rb
|
375
|
+
- lib/ronin/ui/output/helpers.rb
|
376
|
+
- lib/ronin/ui/output/output.rb
|
367
377
|
- lib/ronin/ui/hexdump.rb
|
368
378
|
- lib/ronin/ui/hexdump/hexdump.rb
|
369
379
|
- lib/ronin/ui/hexdump/extensions.rb
|
@@ -375,7 +385,6 @@ files:
|
|
375
385
|
- lib/ronin/ui/command_line/exceptions.rb
|
376
386
|
- lib/ronin/ui/command_line/exceptions/unknown_command.rb
|
377
387
|
- lib/ronin/ui/command_line/command.rb
|
378
|
-
- lib/ronin/ui/command_line/options.rb
|
379
388
|
- lib/ronin/ui/command_line/commands/console.rb
|
380
389
|
- lib/ronin/ui/command_line/commands/add.rb
|
381
390
|
- lib/ronin/ui/command_line/commands/install.rb
|
@@ -385,9 +394,26 @@ files:
|
|
385
394
|
- lib/ronin/ui/command_line/commands/uninstall.rb
|
386
395
|
- lib/ronin/ui/command_line/commands/help.rb
|
387
396
|
- lib/ronin/ui/command_line/command_line.rb
|
388
|
-
- lib/ronin/
|
397
|
+
- lib/ronin/yard.rb
|
398
|
+
- lib/ronin/yard/handlers.rb
|
399
|
+
- lib/ronin/yard/handlers/ruby.rb
|
400
|
+
- lib/ronin/yard/handlers/ruby/base.rb
|
401
|
+
- lib/ronin/yard/handlers/ruby/eval_block_handler.rb
|
402
|
+
- lib/ronin/yard/handlers/ruby/metaclass_eval_handler.rb
|
403
|
+
- lib/ronin/yard/handlers/ruby/property_handler.rb
|
404
|
+
- lib/ronin/yard/handlers/ruby/belongs_to_handler.rb
|
405
|
+
- lib/ronin/yard/handlers/ruby/has_handler.rb
|
406
|
+
- lib/ronin/yard/handlers/ruby/scanner_handler.rb
|
407
|
+
- lib/ronin/yard/handlers/ruby/legacy.rb
|
408
|
+
- lib/ronin/yard/handlers/ruby/legacy/eval_block_handler.rb
|
409
|
+
- lib/ronin/yard/handlers/ruby/legacy/metaclass_eval_handler.rb
|
410
|
+
- lib/ronin/yard/handlers/ruby/legacy/property_handler.rb
|
411
|
+
- lib/ronin/yard/handlers/ruby/legacy/belongs_to_handler.rb
|
412
|
+
- lib/ronin/yard/handlers/ruby/legacy/has_handler.rb
|
413
|
+
- lib/ronin/yard/handlers/ruby/legacy/scanner_handler.rb
|
389
414
|
- lib/ronin/version.rb
|
390
415
|
- tasks/spec.rb
|
416
|
+
- tasks/yard.rb
|
391
417
|
- spec/spec_helper.rb
|
392
418
|
- spec/classes/cacheable_model.rb
|
393
419
|
- spec/helpers/database.rb
|
@@ -400,13 +426,18 @@ files:
|
|
400
426
|
- spec/static/helpers/static.rb
|
401
427
|
- spec/static/finders_spec.rb
|
402
428
|
- spec/static/static_spec.rb
|
403
|
-
- spec/templates/classes/
|
429
|
+
- spec/templates/classes/example_template.rb
|
430
|
+
- spec/templates/classes/example_erb.rb
|
431
|
+
- spec/templates/helpers/static.rb
|
432
|
+
- spec/templates/helpers/static/templates/example.erb
|
433
|
+
- spec/templates/helpers/static/templates/_relative.erb
|
434
|
+
- spec/templates/template_spec.rb
|
404
435
|
- spec/templates/erb_spec.rb
|
405
436
|
- spec/arch_spec.rb
|
406
437
|
- spec/author_spec.rb
|
438
|
+
- spec/extensions/classes/some_class.rb
|
407
439
|
- spec/extensions/kernel_spec.rb
|
408
440
|
- spec/extensions/array_spec.rb
|
409
|
-
- spec/extensions/hash_spec.rb
|
410
441
|
- spec/extensions/string_spec.rb
|
411
442
|
- spec/extensions/ip_addr_spec.rb
|
412
443
|
- spec/extensions/uri/http_spec.rb
|
@@ -438,11 +469,20 @@ files:
|
|
438
469
|
- spec/formatting/http/string_spec.rb
|
439
470
|
- spec/formatting/text/string_spec.rb
|
440
471
|
- spec/formatting/text/array_spec.rb
|
441
|
-
- spec/network/
|
472
|
+
- spec/network/helpers/classes/test_helper.rb
|
473
|
+
- spec/network/helpers/classes/uses_test_helper.rb
|
474
|
+
- spec/network/helpers/helper_spec.rb
|
475
|
+
- spec/network/http/proxy_spec.rb
|
476
|
+
- spec/network/http/http_spec.rb
|
442
477
|
- spec/code/classes/thing.rb
|
443
478
|
- spec/code/reference_spec.rb
|
444
479
|
- spec/code/symbol_table_spec.rb
|
480
|
+
- spec/model/classes/basic_model.rb
|
481
|
+
- spec/model/classes/custom_model.rb
|
482
|
+
- spec/model/classes/described_model.rb
|
445
483
|
- spec/model/classes/licensed_model.rb
|
484
|
+
- spec/model/model_spec.rb
|
485
|
+
- spec/model/has_description_spec.rb
|
446
486
|
- spec/model/has_license_spec.rb
|
447
487
|
- spec/license_spec.rb
|
448
488
|
- spec/path_spec.rb
|
@@ -452,9 +492,6 @@ files:
|
|
452
492
|
- spec/scanners/classes/example_scanner.rb
|
453
493
|
- spec/scanners/classes/another_scanner.rb
|
454
494
|
- spec/scanners/scanner_spec.rb
|
455
|
-
- spec/sessions/classes/test_session.rb
|
456
|
-
- spec/sessions/classes/uses_test_session.rb
|
457
|
-
- spec/sessions/session_spec.rb
|
458
495
|
- spec/platform/helpers/overlays.rb
|
459
496
|
- spec/platform/helpers/overlays.yaml.erb
|
460
497
|
- spec/platform/helpers/overlays/test1/ronin.xml
|
@@ -475,10 +512,12 @@ files:
|
|
475
512
|
- spec/platform/extension_cache_spec.rb
|
476
513
|
- spec/platform/platform_spec.rb
|
477
514
|
- spec/platform/ronin_spec.rb
|
478
|
-
- spec/ui/
|
515
|
+
- spec/ui/output_spec.rb
|
516
|
+
- spec/ui/command_line/classes/test_command.rb
|
517
|
+
- spec/ui/command_line/command_spec.rb
|
479
518
|
- spec/ronin_spec.rb
|
480
519
|
- static/ronin/platform/overlay.xsl
|
481
|
-
has_rdoc:
|
520
|
+
has_rdoc: yard
|
482
521
|
homepage: http://ronin.rubyforge.org/
|
483
522
|
licenses: []
|
484
523
|
|
@@ -503,9 +542,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
503
542
|
requirements: []
|
504
543
|
|
505
544
|
rubyforge_project: ronin
|
506
|
-
rubygems_version: 1.3.
|
545
|
+
rubygems_version: 1.3.5
|
507
546
|
signing_key:
|
508
547
|
specification_version: 3
|
509
|
-
summary: Ronin is a Ruby platform
|
548
|
+
summary: Ronin is a Ruby platform for exploit development and security research
|
510
549
|
test_files: []
|
511
550
|
|
metadata.gz.sig
CHANGED
Binary file
|
data/TODO.txt
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
== TODO:
|
2
|
-
|
3
|
-
=== Ronin 0.2.5:
|
4
|
-
|
5
|
-
* Move Ronin::RPC code into ronin-exploits.
|
6
|
-
|
7
|
-
=== Longterm:
|
8
|
-
|
9
|
-
* Move to YARD for API documentation.
|
10
|
-
* Develop a custom YARD Template for Ronin libraries.
|
11
|
-
* Look into using Ronin over Tor/i2p.
|
12
|
-
* Discuss ideas for a Web UI:
|
13
|
-
* Configurable menu-bar / side-bar.
|
14
|
-
* Sinatra would be a worthy candidate.
|
15
|
-
|
@@ -1,62 +0,0 @@
|
|
1
|
-
#
|
2
|
-
#--
|
3
|
-
# Ronin - A Ruby platform designed for information security and data
|
4
|
-
# exploration tasks.
|
5
|
-
#
|
6
|
-
# Copyright (c) 2006-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
|
7
|
-
#
|
8
|
-
# This program is free software; you can redistribute it and/or modify
|
9
|
-
# it under the terms of the GNU General Public License as published by
|
10
|
-
# the Free Software Foundation; either version 2 of the License, or
|
11
|
-
# (at your option) any later version.
|
12
|
-
#
|
13
|
-
# This program is distributed in the hope that it will be useful,
|
14
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
-
# GNU General Public License for more details.
|
17
|
-
#
|
18
|
-
# You should have received a copy of the GNU General Public License
|
19
|
-
# along with this program; if not, write to the Free Software
|
20
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
|
-
#++
|
22
|
-
#
|
23
|
-
|
24
|
-
class Hash
|
25
|
-
|
26
|
-
#
|
27
|
-
# Explodes the hash into a Hash of hashes using the given _options_, where
|
28
|
-
# each Hash has the value of one key replaced with the specified _value_.
|
29
|
-
# If a _block_ is given, it will be passed each key that was replaced and
|
30
|
-
# the resulting Hash.
|
31
|
-
#
|
32
|
-
# _options_ may contain the following keys:
|
33
|
-
# <tt>:included</tt>:: The keys whos values are to be replaced.
|
34
|
-
# <tt>:excluded</tt>:: The keys whos values will not be replaced.
|
35
|
-
#
|
36
|
-
# hash = {:a => 1, :b => 2}
|
37
|
-
# hash.explode('z')
|
38
|
-
# # => {:a=>{:a=>"z", :b=>2}, :b=>{:a=>1, :b=>"z"}}
|
39
|
-
#
|
40
|
-
# hash = {:a => 1, :b => 2, :c => 3}
|
41
|
-
# hash.explode('z', :excluded => [:b])
|
42
|
-
# # => {:c=>{:c=>"z", :a=>1, :b=>2}, :a=>{:c=>3, :a=>"z", :b=>2}}
|
43
|
-
#
|
44
|
-
def explode(value,options={},&block)
|
45
|
-
included = (options[:included] || keys)
|
46
|
-
excluded = (options[:excluded] || [])
|
47
|
-
selected_keys = included - excluded
|
48
|
-
|
49
|
-
hashes = {}
|
50
|
-
|
51
|
-
selected_keys.each do |key|
|
52
|
-
new_hash = clone
|
53
|
-
new_hash[key] = value
|
54
|
-
|
55
|
-
block.call(key,new_hash) if block
|
56
|
-
hashes[key] = new_hash
|
57
|
-
end
|
58
|
-
|
59
|
-
return hashes
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|