ronin 1.0.0.pre3 → 1.0.0.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING.txt +623 -288
- data/ChangeLog.md +21 -2
- data/Gemfile +5 -12
- data/README.md +6 -7
- data/gemspec.yml +3 -3
- data/lib/ronin.rb +6 -7
- data/lib/ronin/address.rb +18 -7
- data/lib/ronin/arch.rb +6 -7
- data/lib/ronin/author.rb +6 -7
- data/lib/ronin/bootstrap.rb +6 -8
- data/lib/ronin/cached_file.rb +6 -7
- data/lib/ronin/campaign.rb +10 -11
- data/lib/ronin/class_methods.rb +6 -7
- data/lib/ronin/config.rb +6 -7
- data/lib/ronin/credential.rb +19 -8
- data/lib/ronin/database.rb +6 -7
- data/lib/ronin/database/database.rb +8 -9
- data/lib/ronin/database/exceptions.rb +6 -7
- data/lib/ronin/database/exceptions/invalid_config.rb +6 -7
- data/lib/ronin/database/exceptions/unknown_repository.rb +6 -7
- data/lib/ronin/database/migrations.rb +6 -7
- data/lib/ronin/database/migrations/create_addresses_table.rb +6 -7
- data/lib/ronin/database/migrations/create_arches_table.rb +6 -7
- data/lib/ronin/database/migrations/create_authors_table.rb +6 -7
- data/lib/ronin/database/migrations/create_cached_files_table.rb +6 -7
- data/lib/ronin/database/migrations/create_campaigns_table.rb +8 -7
- data/lib/ronin/database/migrations/create_countries_table.rb +6 -7
- data/lib/ronin/database/migrations/create_credentials_table.rb +16 -10
- data/lib/ronin/database/migrations/create_email_addresses_table.rb +10 -11
- data/lib/ronin/database/migrations/create_host_name_ip_addresses_table.rb +14 -9
- data/lib/ronin/database/migrations/create_ip_address_mac_addresses_table.rb +14 -9
- data/lib/ronin/database/migrations/create_licenses_table.rb +6 -7
- data/lib/ronin/database/migrations/create_open_ports_table.rb +11 -7
- data/lib/ronin/database/migrations/create_organizations_table.rb +8 -7
- data/lib/ronin/database/migrations/create_os_guesses_table.rb +13 -9
- data/lib/ronin/database/migrations/create_os_table.rb +6 -7
- data/lib/ronin/database/migrations/create_passwords_table.rb +6 -7
- data/lib/ronin/database/migrations/create_ports_table.rb +6 -7
- data/lib/ronin/database/migrations/create_proxies_table.rb +6 -7
- data/lib/ronin/database/migrations/create_remote_files_table.rb +6 -7
- data/lib/ronin/database/migrations/create_repositories_table.rb +6 -7
- data/lib/ronin/database/migrations/create_services_table.rb +6 -8
- data/lib/ronin/database/migrations/create_softwares_table.rb +6 -7
- data/lib/ronin/database/migrations/create_taggings_table.rb +6 -7
- data/lib/ronin/database/migrations/create_tags_table.rb +6 -7
- data/lib/ronin/database/migrations/create_targets_table.rb +7 -8
- data/lib/ronin/database/migrations/create_url_query_params_table.rb +6 -7
- data/lib/ronin/database/migrations/create_url_schemes_table.rb +6 -7
- data/lib/ronin/database/migrations/create_urls_table.rb +16 -9
- data/lib/ronin/database/migrations/create_user_names_table.rb +6 -7
- data/lib/ronin/database/migrations/create_vendors_table.rb +6 -7
- data/lib/ronin/database/migrations/exceptions.rb +6 -7
- data/lib/ronin/database/migrations/exceptions/duplicate_migration.rb +6 -7
- data/lib/ronin/database/migrations/exceptions/unknown_migration.rb +6 -7
- data/lib/ronin/database/migrations/graph.rb +19 -0
- data/lib/ronin/database/migrations/migration.rb +6 -7
- data/lib/ronin/database/migrations/migrations.rb +6 -7
- data/lib/ronin/email_address.rb +34 -13
- data/lib/ronin/engine.rb +6 -7
- data/lib/ronin/engine/buildable.rb +6 -7
- data/lib/ronin/engine/class_methods.rb +6 -7
- data/lib/ronin/engine/deployable.rb +6 -7
- data/lib/ronin/engine/engine.rb +6 -7
- data/lib/ronin/engine/exceptions.rb +6 -7
- data/lib/ronin/engine/exceptions/deploy_failed.rb +6 -7
- data/lib/ronin/engine/exceptions/not_built.rb +6 -7
- data/lib/ronin/engine/exceptions/verification_failed.rb +6 -7
- data/lib/ronin/engine/instance_methods.rb +6 -7
- data/lib/ronin/engine/verifiable.rb +6 -7
- data/lib/ronin/environment.rb +11 -7
- data/lib/ronin/exceptions.rb +6 -7
- data/lib/ronin/exceptions/duplicate_repository.rb +6 -7
- data/lib/ronin/exceptions/repository_not_found.rb +6 -7
- data/lib/ronin/host_name.rb +40 -22
- data/lib/ronin/host_name_ip_address.rb +11 -9
- data/lib/ronin/installation.rb +6 -7
- data/lib/ronin/ip_address.rb +41 -33
- data/lib/ronin/ip_address_mac_address.rb +11 -9
- data/lib/ronin/license.rb +6 -7
- data/lib/ronin/mac_address.rb +8 -13
- data/lib/ronin/model.rb +6 -7
- data/lib/ronin/model/cacheable.rb +6 -7
- data/lib/ronin/model/cacheable/cacheable.rb +6 -7
- data/lib/ronin/model/cacheable/class_methods.rb +6 -7
- data/lib/ronin/model/class_methods.rb +6 -7
- data/lib/ronin/model/has_authors.rb +6 -7
- data/lib/ronin/model/has_authors/class_methods.rb +8 -9
- data/lib/ronin/model/has_authors/has_authors.rb +6 -7
- data/lib/ronin/model/has_description.rb +6 -7
- data/lib/ronin/model/has_description/class_methods.rb +7 -8
- data/lib/ronin/model/has_description/has_description.rb +6 -7
- data/lib/ronin/model/has_license.rb +6 -7
- data/lib/ronin/model/has_license/class_methods.rb +7 -8
- data/lib/ronin/model/has_license/has_license.rb +6 -7
- data/lib/ronin/model/has_name.rb +6 -7
- data/lib/ronin/model/has_name/class_methods.rb +7 -12
- data/lib/ronin/model/has_name/has_name.rb +6 -7
- data/lib/ronin/model/has_title.rb +6 -7
- data/lib/ronin/model/has_title/class_methods.rb +7 -8
- data/lib/ronin/model/has_title/has_title.rb +6 -7
- data/lib/ronin/model/has_unique_name.rb +18 -7
- data/lib/ronin/model/has_version.rb +6 -7
- data/lib/ronin/model/has_version/class_methods.rb +7 -8
- data/lib/ronin/model/has_version/has_version.rb +6 -7
- data/lib/ronin/model/model.rb +6 -7
- data/lib/ronin/model/types.rb +6 -7
- data/lib/ronin/model/types/description.rb +6 -7
- data/lib/ronin/network/mixins.rb +11 -13
- data/lib/ronin/network/mixins/esmtp.rb +11 -13
- data/lib/ronin/network/mixins/http.rb +11 -13
- data/lib/ronin/network/mixins/imap.rb +11 -13
- data/lib/ronin/network/mixins/pop3.rb +11 -13
- data/lib/ronin/network/mixins/smtp.rb +11 -13
- data/lib/ronin/network/mixins/tcp.rb +11 -13
- data/lib/ronin/network/mixins/telnet.rb +11 -13
- data/lib/ronin/network/mixins/udp.rb +11 -13
- data/lib/ronin/open_port.rb +11 -11
- data/lib/ronin/organization.rb +8 -9
- data/lib/ronin/os.rb +6 -7
- data/lib/ronin/os_guess.rb +14 -12
- data/lib/ronin/password.rb +18 -7
- data/lib/ronin/port.rb +18 -7
- data/lib/ronin/proxy.rb +6 -7
- data/lib/ronin/proxy_credential.rb +6 -7
- data/lib/ronin/remote_file.rb +13 -11
- data/lib/ronin/repository.rb +8 -12
- data/lib/ronin/ronin.rb +6 -7
- data/lib/ronin/service.rb +8 -23
- data/lib/ronin/service_credential.rb +6 -7
- data/lib/ronin/software.rb +6 -7
- data/lib/ronin/spec/database.rb +6 -7
- data/lib/ronin/spec/ui/output.rb +6 -7
- data/lib/ronin/target.rb +11 -9
- data/lib/ronin/tcp_port.rb +6 -7
- data/lib/ronin/udp_port.rb +6 -7
- data/lib/ronin/ui.rb +6 -7
- data/lib/ronin/ui/cli.rb +6 -7
- data/lib/ronin/ui/cli/cli.rb +6 -7
- data/lib/ronin/ui/cli/command.rb +6 -7
- data/lib/ronin/ui/cli/commands.rb +6 -7
- data/lib/ronin/ui/cli/commands/campaigns.rb +6 -7
- data/lib/ronin/ui/cli/commands/console.rb +7 -8
- data/lib/ronin/ui/cli/commands/creds.rb +6 -7
- data/lib/ronin/ui/cli/commands/database.rb +6 -7
- data/lib/ronin/ui/cli/commands/emails.rb +6 -7
- data/lib/ronin/ui/cli/commands/exec.rb +6 -7
- data/lib/ronin/ui/cli/commands/help.rb +6 -7
- data/lib/ronin/ui/cli/commands/hosts.rb +10 -9
- data/lib/ronin/ui/cli/commands/ips.rb +10 -9
- data/lib/ronin/ui/cli/commands/repos.rb +6 -7
- data/lib/ronin/ui/cli/commands/urls.rb +6 -7
- data/lib/ronin/ui/cli/engine_command.rb +6 -7
- data/lib/ronin/ui/cli/exceptions.rb +6 -7
- data/lib/ronin/ui/cli/exceptions/unknown_command.rb +6 -7
- data/lib/ronin/ui/cli/model_command.rb +6 -7
- data/lib/ronin/ui/console.rb +8 -12
- data/lib/ronin/ui/hexdump.rb +6 -7
- data/lib/ronin/ui/hexdump/extensions.rb +6 -7
- data/lib/ronin/ui/hexdump/extensions/file.rb +6 -7
- data/lib/ronin/ui/hexdump/extensions/kernel.rb +6 -7
- data/lib/ronin/ui/hexdump/hexdump.rb +13 -7
- data/lib/ronin/ui/output.rb +6 -7
- data/lib/ronin/ui/output/helpers.rb +6 -7
- data/lib/ronin/ui/output/output.rb +6 -7
- data/lib/ronin/ui/output/terminal.rb +6 -7
- data/lib/ronin/ui/output/terminal/color.rb +6 -7
- data/lib/ronin/ui/output/terminal/raw.rb +6 -7
- data/lib/ronin/ui/shell.rb +6 -7
- data/lib/ronin/url.rb +123 -30
- data/lib/ronin/url_query_param.rb +32 -7
- data/lib/ronin/url_scheme.rb +6 -7
- data/lib/ronin/user_name.rb +6 -7
- data/lib/ronin/vendor.rb +6 -7
- data/lib/ronin/version.rb +7 -8
- data/lib/ronin/web_credential.rb +52 -8
- data/spec/arch_spec.rb +7 -0
- data/spec/author_spec.rb +1 -1
- data/spec/campaign_spec.rb +1 -1
- data/spec/credential_spec.rb +33 -0
- data/spec/database_spec.rb +23 -0
- data/spec/email_address_spec.rb +15 -0
- data/spec/engine/buildable_spec.rb +2 -2
- data/spec/engine/deployable_spec.rb +2 -2
- data/spec/host_name_spec.rb +20 -0
- data/spec/ip_address.rb +20 -3
- data/spec/model/cacheable_spec.rb +1 -1
- data/spec/model/has_description_spec.rb +1 -1
- data/spec/os_spec.rb +26 -0
- data/spec/password_spec.rb +4 -0
- data/spec/port_spec.rb +43 -0
- data/spec/repository_spec.rb +10 -10
- data/spec/service_spec.rb +18 -0
- data/spec/software_spec.rb +15 -5
- data/spec/url_query_param_spec.rb +30 -0
- data/spec/url_scheme_spec.rb +18 -0
- data/spec/url_spec.rb +54 -37
- metadata +18 -9
- data/lib/ronin/ui/async_console.rb +0 -130
data/ChangeLog.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
### 1.0.0 / 2011-02-01
|
|
2
2
|
|
|
3
|
+
* Upgraded to the GPL-3 license.
|
|
3
4
|
* Require Ruby >= 1.8.7.
|
|
4
5
|
* Require i18n ~> 0.4.1.
|
|
5
6
|
* Require tzinfo ~> 0.3.22.
|
|
@@ -23,17 +24,17 @@
|
|
|
23
24
|
* Require contextify ~> 0.2.0.
|
|
24
25
|
* Require pullr ~> 0.1.2.
|
|
25
26
|
* Require thor ~> 0.14.3.
|
|
26
|
-
* Require ripl ~> 0.
|
|
27
|
+
* Require ripl ~> 0.3.0.
|
|
27
28
|
* Require ripl-multi_line ~> 0.2.0.
|
|
28
29
|
* Require ripl-auto_indent ~> 0.1.0.
|
|
29
30
|
* Require ripl-short_errors ~> 0.1.0.
|
|
30
31
|
* Require ripl-color_result ~> 0.2.0.
|
|
31
32
|
* Require ronin-support ~> 0.1.0.
|
|
32
33
|
* Require bundler ~> 1.0.0.
|
|
33
|
-
* Require rspec ~> 2.0.0.
|
|
34
34
|
* Require yard ~> 0.6.4.
|
|
35
35
|
* Added `ronin/bootstrap` which only loads configuration and the Database.
|
|
36
36
|
* Added {Ronin::Database::Migrations}.
|
|
37
|
+
* Added {Ronin::Model::HasUniqueName}.
|
|
37
38
|
* Added {Ronin::Address}:
|
|
38
39
|
* Added {Ronin::MACAddress}.
|
|
39
40
|
* Added {Ronin::IPAddress}.
|
|
@@ -58,6 +59,22 @@
|
|
|
58
59
|
* Added {Ronin::Engine}.
|
|
59
60
|
* Added {Ronin::UI::Output::Terminal::Raw}.
|
|
60
61
|
* Added {Ronin::UI::Output::Terminal::Color}.
|
|
62
|
+
* Added the `ronin-repos` command for listing, adding, installing and
|
|
63
|
+
uninstalling Repositories.
|
|
64
|
+
* Added the `ronin-exec` command for running Ruby scripts (local files
|
|
65
|
+
or `bin/` scripts in Repositories) within the Ronin environment.
|
|
66
|
+
* Added the `ronin-ips` command for listing, importing and exporting
|
|
67
|
+
IP addresses from the Database.
|
|
68
|
+
* Added the `ronin-hosts` command for listing, importing and exporting
|
|
69
|
+
host names from the Database.
|
|
70
|
+
* Added the `ronin-urls` command for listing, importing and exporting
|
|
71
|
+
URLs from the Database.
|
|
72
|
+
* Added the `ronin-emails` command for listing, importing and exporting
|
|
73
|
+
Email addresses from the Database.
|
|
74
|
+
* Added the `ronin-creds` command for listing, importing and exporting
|
|
75
|
+
credentials from the Database.
|
|
76
|
+
* Added the `ronin-campaigns` command for listing, importing and exporting
|
|
77
|
+
Campaigns from the Database.
|
|
61
78
|
* Renamed `Ronin::Product` to {Ronin::Software}.
|
|
62
79
|
* Renamed `Ronin::UI::CommandLine` to {Ronin::UI::CLI}.
|
|
63
80
|
* Renamed `Ronin::Platform::Overlay` to {Ronin::Repository}.
|
|
@@ -65,6 +82,8 @@
|
|
|
65
82
|
* Renamed `Ronin::Platform::Cacheable` to {Ronin::Model::Cacheable}.
|
|
66
83
|
* Removed `Ronin::Platform::Extension`.
|
|
67
84
|
* Removed `Ronin::Platform`.
|
|
85
|
+
* Moved the `ronin-add`, `ronin-install`, `ronin-list` and `ronin-uninstall`
|
|
86
|
+
commands into the `ronin-repos` command.
|
|
68
87
|
* Switched from [Jeweler](https://github.com/technicalpickles/jeweler)
|
|
69
88
|
to [Ore](http://github.com/ruby-ore/ore) and [Bundler](http://gembundler.com).
|
|
70
89
|
* Use [OpenNamespace](http://github.com/postmodern/open_namespace) to auto-load
|
data/Gemfile
CHANGED
|
@@ -12,20 +12,13 @@ gemspec
|
|
|
12
12
|
group :development do
|
|
13
13
|
gem 'rake', '~> 0.8.7'
|
|
14
14
|
|
|
15
|
-
platforms :jruby do
|
|
16
|
-
gem 'BlueCloth'
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
platforms :ruby do
|
|
20
|
-
gem 'rdiscount', '~> 1.6.3'
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
gem 'ruby-graphviz', '~> 0.9.10'
|
|
24
|
-
gem 'dm-visualizer', '~> 0.1.0'
|
|
25
|
-
|
|
26
15
|
gem 'ore-core', '~> 0.1.0'
|
|
27
16
|
gem 'ore-tasks', '~> 0.3.0'
|
|
28
|
-
gem 'rspec', '~> 2.
|
|
17
|
+
gem 'rspec', '~> 2.3.0'
|
|
18
|
+
|
|
19
|
+
gem 'kramdown', '~> 0.12.0'
|
|
20
|
+
gem 'ruby-graphviz', '~> 0.9.10'
|
|
21
|
+
gem 'dm-visualizer', '~> 0.1.0'
|
|
29
22
|
end
|
|
30
23
|
|
|
31
24
|
group :test do
|
data/README.md
CHANGED
|
@@ -205,20 +205,19 @@ functionality.
|
|
|
205
205
|
|
|
206
206
|
## License
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
This file is part of Ronin.
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
Ronin is free software: you can redistribute it and/or modify
|
|
213
213
|
it under the terms of the GNU General Public License as published by
|
|
214
|
-
the Free Software Foundation
|
|
214
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
215
215
|
(at your option) any later version.
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
Ronin is distributed in the hope that it will be useful,
|
|
218
218
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
219
219
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
220
220
|
GNU General Public License for more details.
|
|
221
221
|
|
|
222
222
|
You should have received a copy of the GNU General Public License
|
|
223
|
-
along with
|
|
224
|
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
223
|
+
along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
data/gemspec.yml
CHANGED
|
@@ -5,7 +5,7 @@ description:
|
|
|
5
5
|
Ronin allows for the rapid development and distribution of code, exploits
|
|
6
6
|
or payloads over many common Source-Code-Management (SCM) systems.
|
|
7
7
|
|
|
8
|
-
license: GPL-
|
|
8
|
+
license: GPL-3
|
|
9
9
|
authors: Postmodern
|
|
10
10
|
email: postmodern.mod3@gmail.com
|
|
11
11
|
homepage: http://github.com/ronin-ruby/ronin
|
|
@@ -61,13 +61,13 @@ dependencies:
|
|
|
61
61
|
contextify: ~> 0.2.0
|
|
62
62
|
pullr: ~> 0.1.2
|
|
63
63
|
thor: ~> 0.14.3
|
|
64
|
-
ripl: ~> 0.
|
|
64
|
+
ripl: ~> 0.3.0
|
|
65
65
|
ripl-multi_line: ~> 0.2.0
|
|
66
66
|
ripl-auto_indent: ~> 0.1.0
|
|
67
67
|
ripl-short_errors: ~> 0.1.0
|
|
68
68
|
ripl-color_result: ~> 0.2.0
|
|
69
69
|
# Ronin dependencies:
|
|
70
|
-
ronin-support: ~> 0.1.0.
|
|
70
|
+
ronin-support: ~> 0.1.0.pre3
|
|
71
71
|
|
|
72
72
|
development_dependencies:
|
|
73
73
|
bundler: ~> 1.0.0
|
data/lib/ronin.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'ronin/bootstrap'
|
data/lib/ronin/address.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'ronin/organization'
|
|
@@ -89,5 +88,17 @@ module Ronin
|
|
|
89
88
|
self.address.to_s
|
|
90
89
|
end
|
|
91
90
|
|
|
91
|
+
#
|
|
92
|
+
# Inspects the address.
|
|
93
|
+
#
|
|
94
|
+
# @return [String]
|
|
95
|
+
# The inspected address.
|
|
96
|
+
#
|
|
97
|
+
# @since 1.0.0
|
|
98
|
+
#
|
|
99
|
+
def inspect
|
|
100
|
+
"#<#{self.class}: #{self.address}>"
|
|
101
|
+
end
|
|
102
|
+
|
|
92
103
|
end
|
|
93
104
|
end
|
data/lib/ronin/arch.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'ronin/model'
|
data/lib/ronin/author.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'ronin/model'
|
data/lib/ronin/bootstrap.rb
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
|
-
require 'ronin/ronin'
|
|
22
20
|
require 'ronin/config'
|
|
23
21
|
require 'ronin/database'
|
|
24
22
|
|
data/lib/ronin/cached_file.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'ronin/support/inflector'
|
data/lib/ronin/campaign.rb
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'ronin/model'
|
|
22
|
-
require 'ronin/model/
|
|
21
|
+
require 'ronin/model/has_unique_name'
|
|
23
22
|
require 'ronin/model/has_description'
|
|
24
23
|
require 'ronin/config'
|
|
25
24
|
require 'ronin/target'
|
|
@@ -30,7 +29,7 @@ module Ronin
|
|
|
30
29
|
class Campaign
|
|
31
30
|
|
|
32
31
|
include Model
|
|
33
|
-
include Model::
|
|
32
|
+
include Model::HasUniqueName
|
|
34
33
|
include Model::HasDescription
|
|
35
34
|
|
|
36
35
|
# Primary key of the campaign
|
|
@@ -57,7 +56,7 @@ module Ronin
|
|
|
57
56
|
# @since 1.0.0
|
|
58
57
|
#
|
|
59
58
|
def self.targeting(addr)
|
|
60
|
-
all(
|
|
59
|
+
all(:addresses => {:address => addr})
|
|
61
60
|
end
|
|
62
61
|
|
|
63
62
|
#
|
|
@@ -72,7 +71,7 @@ module Ronin
|
|
|
72
71
|
# @since 1.0.0
|
|
73
72
|
#
|
|
74
73
|
def self.targeting_orgs(names)
|
|
75
|
-
all(
|
|
74
|
+
all(:organizations => {:name => names})
|
|
76
75
|
end
|
|
77
76
|
|
|
78
77
|
#
|
data/lib/ronin/class_methods.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
module Ronin
|
data/lib/ronin/config.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#
|
|
2
|
-
#
|
|
2
|
+
# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
3
3
|
#
|
|
4
|
-
#
|
|
4
|
+
# This file is part of Ronin.
|
|
5
5
|
#
|
|
6
|
-
#
|
|
6
|
+
# Ronin is free software: you can redistribute it and/or modify
|
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
|
8
|
-
# the Free Software Foundation
|
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
9
9
|
# (at your option) any later version.
|
|
10
10
|
#
|
|
11
|
-
#
|
|
11
|
+
# Ronin is distributed in the hope that it will be useful,
|
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
14
|
# GNU General Public License for more details.
|
|
15
15
|
#
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
|
-
# along with
|
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
|
19
18
|
#
|
|
20
19
|
|
|
21
20
|
require 'data_paths'
|