ronin-db-activerecord 0.1.0.beta1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -0
- data/.yardopts +1 -1
- data/README.md +69 -34
- data/db/migrate/0001_create_ronin_ip_address_mac_addresses_table.rb +1 -1
- data/db/migrate/0002_create_ronin_vulnerabilities_table.rb +1 -1
- data/db/migrate/0003_create_ronin_url_schemes_table.rb +1 -1
- data/db/migrate/0004_create_ronin_url_query_param_names_table.rb +1 -1
- data/db/migrate/0005_create_ronin_user_names_table.rb +1 -1
- data/db/migrate/0006_create_ronin_software_vendors_table.rb +1 -1
- data/db/migrate/0007_create_ronin_advisories_table.rb +1 -1
- data/db/migrate/0008_create_ronin_host_name_ip_addresses_table.rb +1 -1
- data/db/migrate/0009_create_ronin_host_names_table.rb +1 -1
- data/db/migrate/0010_create_ronin_arches_table.rb +1 -1
- data/db/migrate/0011_create_ronin_email_addresses_table.rb +1 -1
- data/db/migrate/0012_create_ronin_oses_table.rb +1 -1
- data/db/migrate/0013_create_ronin_organizations_table.rb +1 -1
- data/db/migrate/0014_create_ronin_ip_addresses_table.rb +1 -1
- data/db/migrate/0015_create_ronin_os_guesses_table.rb +1 -1
- data/db/migrate/0016_create_ronin_url_query_params_table.rb +1 -1
- data/db/migrate/0017_create_ronin_passwords_table.rb +1 -1
- data/db/migrate/0018_create_ronin_open_ports_table.rb +1 -1
- data/db/migrate/0019_create_ronin_urls_table.rb +1 -1
- data/db/migrate/0020_create_ronin_softwares_table.rb +1 -1
- data/db/migrate/0021_create_ronin_mac_addresses_table.rb +1 -1
- data/db/migrate/0022_create_ronin_countries_table.rb +1 -1
- data/db/migrate/0023_create_ronin_services_table.rb +1 -1
- data/db/migrate/0024_create_ronin_credentials_table.rb +1 -1
- data/db/migrate/0025_create_ronin_ports_table.rb +1 -1
- data/db/migrate/0026_create_ronin_asns_table.rb +1 -1
- data/db/migrate/0027_create_ronin_http_query_param_names_table.rb +1 -1
- data/db/migrate/0028_create_ronin_http_query_params_table.rb +1 -1
- data/db/migrate/0029_create_ronin_http_header_names_table.rb +1 -1
- data/db/migrate/0030_create_ronin_http_request_headers_table.rb +1 -1
- data/db/migrate/0031_create_ronin_http_response_headers_table.rb +1 -1
- data/db/migrate/0032_create_ronin_http_requests_table.rb +1 -1
- data/db/migrate/0033_create_ronin_http_responses_table.rb +1 -1
- data/db/migrate/0034_create_ronin_service_credentials_table.rb +1 -1
- data/db/migrate/0035_create_ronin_web_credentials_table.rb +1 -1
- data/gemspec.yml +3 -3
- data/lib/ronin/db/address.rb +1 -1
- data/lib/ronin/db/advisory.rb +2 -2
- data/lib/ronin/db/arch.rb +1 -1
- data/lib/ronin/db/asn.rb +1 -1
- data/lib/ronin/db/credential.rb +1 -1
- data/lib/ronin/db/email_address.rb +1 -1
- data/lib/ronin/db/host_name.rb +2 -2
- data/lib/ronin/db/host_name_ip_address.rb +1 -1
- data/lib/ronin/db/http_header_name.rb +1 -1
- data/lib/ronin/db/http_query_param.rb +1 -1
- data/lib/ronin/db/http_query_param_name.rb +1 -1
- data/lib/ronin/db/http_request.rb +1 -1
- data/lib/ronin/db/http_request_header.rb +1 -1
- data/lib/ronin/db/http_response.rb +2 -2
- data/lib/ronin/db/http_response_header.rb +1 -1
- data/lib/ronin/db/ip_address.rb +1 -1
- data/lib/ronin/db/ip_address_mac_address.rb +1 -1
- data/lib/ronin/db/mac_address.rb +1 -1
- data/lib/ronin/db/migrations.rb +1 -1
- data/lib/ronin/db/model/has_name.rb +1 -1
- data/lib/ronin/db/model/has_unique_name.rb +2 -2
- data/lib/ronin/db/model/importable.rb +1 -1
- data/lib/ronin/db/model/last_scanned_at.rb +1 -1
- data/lib/ronin/db/model.rb +1 -1
- data/lib/ronin/db/models.rb +1 -1
- data/lib/ronin/db/open_port.rb +1 -1
- data/lib/ronin/db/organization.rb +1 -1
- data/lib/ronin/db/os.rb +1 -1
- data/lib/ronin/db/os_guess.rb +1 -1
- data/lib/ronin/db/password.rb +1 -1
- data/lib/ronin/db/port.rb +1 -1
- data/lib/ronin/db/schema_migration.rb +1 -1
- data/lib/ronin/db/service.rb +1 -1
- data/lib/ronin/db/service_credential.rb +1 -1
- data/lib/ronin/db/software.rb +1 -1
- data/lib/ronin/db/software_vendor.rb +1 -1
- data/lib/ronin/db/url.rb +1 -1
- data/lib/ronin/db/url_query_param.rb +1 -1
- data/lib/ronin/db/url_query_param_name.rb +1 -1
- data/lib/ronin/db/url_scheme.rb +1 -1
- data/lib/ronin/db/user_name.rb +1 -1
- data/lib/ronin/db/vulnerability.rb +1 -1
- data/lib/ronin/db/web_credential.rb +1 -1
- data/ronin-db-activerecord.gemspec +2 -1
- metadata +5 -87
- data/lib/ronin/db/root.rb +0 -28
- data/spec/advisory_spec.rb +0 -277
- data/spec/arch_spec.rb +0 -228
- data/spec/asn_spec.rb +0 -504
- data/spec/credential_spec.rb +0 -362
- data/spec/email_address_spec.rb +0 -372
- data/spec/host_name_ip_address_spec.rb +0 -8
- data/spec/host_name_spec.rb +0 -207
- data/spec/http_header_name_spec.rb +0 -25
- data/spec/http_query_param_name_spec.rb +0 -25
- data/spec/http_query_param_spec.rb +0 -104
- data/spec/http_request_header_spec.rb +0 -72
- data/spec/http_request_spec.rb +0 -168
- data/spec/http_response_header_spec.rb +0 -74
- data/spec/http_response_spec.rb +0 -103
- data/spec/ip_address_mac_addresses_spec.rb +0 -8
- data/spec/ip_address_spec.rb +0 -386
- data/spec/mac_address_spec.rb +0 -67
- data/spec/migrations_spec.rb +0 -122
- data/spec/model/has_name_spec.rb +0 -65
- data/spec/model/has_unique_name_spec.rb +0 -61
- data/spec/model/importable_spec.rb +0 -105
- data/spec/models_spec.rb +0 -60
- data/spec/open_port_spec.rb +0 -87
- data/spec/organization_spec.rb +0 -10
- data/spec/os_guess_spec.rb +0 -43
- data/spec/os_spec.rb +0 -114
- data/spec/password_spec.rb +0 -81
- data/spec/port_spec.rb +0 -102
- data/spec/schema_migration_spec.rb +0 -8
- data/spec/service_credential_spec.rb +0 -43
- data/spec/service_spec.rb +0 -39
- data/spec/software_spec.rb +0 -76
- data/spec/software_vendor_spec.rb +0 -33
- data/spec/spec_helper.rb +0 -13
- data/spec/url_query_param_name_spec.rb +0 -25
- data/spec/url_query_param_spec.rb +0 -110
- data/spec/url_scheme_spec.rb +0 -39
- data/spec/url_spec.rb +0 -951
- data/spec/user_name_spec.rb +0 -54
- data/spec/vulnerability_spec.rb +0 -8
- data/spec/web_credential_spec.rb +0 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961854d0ed83159a94b3ad04616b608a43c340fb9f45113cbc5002e1b3df710e
|
4
|
+
data.tar.gz: dab49d6cf9c686814f16f64558ded87a0ee9e44f2b4c27cb7253965e6f2e0073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 790935eefed1bcd41ea104f30b6e2e44acc4f1f3e06e8be58e9ba6bb56a3d775a8a268c7970d8dd6399e1cac75a6d8c8c2b8613fe0ceed5d920362d0b6a86344
|
7
|
+
data.tar.gz: 8e32ea9e4cb27ce1d0f172c43170bf3d7ac3599f703bc5ecdaaeb095d73e502bf6bdc405a4ca42fcb263ac156d069aec401ff2eb356512a1bf2553a002198606
|
data/.github/workflows/ruby.yml
CHANGED
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--markup markdown --title '
|
1
|
+
--markup markdown --title 'Ronin::DB Documentation' --protected
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![CI](https://github.com/ronin-rb/ronin-db-activerecord/actions/workflows/ruby.yml/badge.svg)](https://github.com/ronin-rb/ronin-db-activerecord/actions/workflows/ruby.yml)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/ronin-rb/ronin-db-activerecord.svg)](https://codeclimate.com/github/ronin-rb/ronin-db-activerecord)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/ronin-db-activerecord.svg)](https://badge.fury.io/rb/ronin-db-activerecord)
|
5
6
|
|
6
7
|
* [Website](https://ronin-rb.dev/)
|
7
8
|
* [Source](https://github.com/ronin-rb/ronin-db-activerecord)
|
@@ -20,42 +21,76 @@ ronin-db-activerecord contains [ActiveRecord] models and migrations for the
|
|
20
21
|
|
21
22
|
* Can be used both as a standalone library or in a web app.
|
22
23
|
* Provides common [ActiveRecord] models:
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
-
*
|
29
|
-
*
|
30
|
-
*
|
31
|
-
*
|
32
|
-
*
|
33
|
-
*
|
34
|
-
*
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
*
|
40
|
-
*
|
41
|
-
*
|
42
|
-
*
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
50
|
-
*
|
51
|
-
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
55
|
-
*
|
24
|
+
* [Ronin::DB::Advisory]
|
25
|
+
* [Ronin::DB::Arch]
|
26
|
+
* [Ronin::DB::ASN]
|
27
|
+
* [Ronin::DB::EmailAddress]
|
28
|
+
* [Ronin::DB::HostName]
|
29
|
+
* [Ronin::DB::HostNameIPAddress]
|
30
|
+
* [Ronin::DB::HTTPHeaderName]
|
31
|
+
* [Ronin::DB::HTTPQueryParam]
|
32
|
+
* [Ronin::DB::HTTPQueryParamName]
|
33
|
+
* [Ronin::DB::HTTPRequest]
|
34
|
+
* [Ronin::DB::HTTPRequestHeader]
|
35
|
+
* [Ronin::DB::HTTPResponse]
|
36
|
+
* [Ronin::DB::HTTPResponseHeader]
|
37
|
+
* [Ronin::DB::IPAddress]
|
38
|
+
* [Ronin::DB::IPAddressMACAddress]
|
39
|
+
* [Ronin::DB::MACAddress]
|
40
|
+
* [Ronin::DB::OpenPort]
|
41
|
+
* [Ronin::DB::Organization]
|
42
|
+
* [Ronin::DB::OS]
|
43
|
+
* [Ronin::DB::OSGuess]
|
44
|
+
* [Ronin::DB::Password]
|
45
|
+
* [Ronin::DB::Port]
|
46
|
+
* [Ronin::DB::Service]
|
47
|
+
* [Ronin::DB::ServiceCredential]
|
48
|
+
* [Ronin::DB::Software]
|
49
|
+
* [Ronin::DB::SoftwareVendor]
|
50
|
+
* [Ronin::DB::URL]
|
51
|
+
* [Ronin::DB::URLQueryParam]
|
52
|
+
* [Ronin::DB::URLQueryParamName]
|
53
|
+
* [Ronin::DB::URLScheme]
|
54
|
+
* [Ronin::DB::UserName]
|
55
|
+
* [Ronin::DB::Vulnerability]
|
56
|
+
* [Ronin::DB::WebCredential]
|
56
57
|
* Has 96% documentation coverage.
|
57
58
|
* Has 99% test coverage.
|
58
59
|
|
60
|
+
[Ronin::DB::Advisory]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Advisory.html
|
61
|
+
[Ronin::DB::Arch]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Arch.html
|
62
|
+
[Ronin::DB::ASN]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/ASN.html
|
63
|
+
[Ronin::DB::EmailAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/EmailAddress.html
|
64
|
+
[Ronin::DB::HostName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HostName.html
|
65
|
+
[Ronin::DB::HostNameIPAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HostNameIPAddress.html
|
66
|
+
[Ronin::DB::HTTPHeaderName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPHeaderName.html
|
67
|
+
[Ronin::DB::HTTPQueryParam]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPQueryParam.html
|
68
|
+
[Ronin::DB::HTTPQueryParamName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPQueryParamName.html
|
69
|
+
[Ronin::DB::HTTPRequest]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPRequest.html
|
70
|
+
[Ronin::DB::HTTPRequestHeader]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPRequestHeader.html
|
71
|
+
[Ronin::DB::HTTPResponse]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPResponse.html
|
72
|
+
[Ronin::DB::HTTPResponseHeader]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/HTTPResponseHeader.html
|
73
|
+
[Ronin::DB::IPAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/IPAddress.html
|
74
|
+
[Ronin::DB::IPAddressMACAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/IPAddressMACAddress.html
|
75
|
+
[Ronin::DB::MACAddress]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/MACAddress.html
|
76
|
+
[Ronin::DB::OpenPort]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/OpenPort.html
|
77
|
+
[Ronin::DB::Organization]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Organization.html
|
78
|
+
[Ronin::DB::OS]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/OS.html
|
79
|
+
[Ronin::DB::OSGuess]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/OSGuess.html
|
80
|
+
[Ronin::DB::Password]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Password.html
|
81
|
+
[Ronin::DB::Port]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Port.html
|
82
|
+
[Ronin::DB::Service]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Service.html
|
83
|
+
[Ronin::DB::ServiceCredential]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/ServiceCredential.html
|
84
|
+
[Ronin::DB::Software]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Software.html
|
85
|
+
[Ronin::DB::SoftwareVendor]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/SoftwareVendor.html
|
86
|
+
[Ronin::DB::URL]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URL.html
|
87
|
+
[Ronin::DB::URLQueryParam]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URLQueryParam.html
|
88
|
+
[Ronin::DB::URLQueryParamName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URLQueryParamName.html
|
89
|
+
[Ronin::DB::URLScheme]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/URLScheme.html
|
90
|
+
[Ronin::DB::UserName]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/UserName.html
|
91
|
+
[Ronin::DB::Vulnerability]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/Vulnerability.html
|
92
|
+
[Ronin::DB::WebCredential]: https://ronin-rb.dev/docs/ronin-db-activerecord/Ronin/DB/WebCredential.html
|
93
|
+
|
59
94
|
## Examples
|
60
95
|
|
61
96
|
Create a database:
|
@@ -122,7 +157,7 @@ local database console.
|
|
122
157
|
|
123
158
|
## License
|
124
159
|
|
125
|
-
Copyright (c) 2022 Hal Brodigan (postmodern.mod3@gmail.com)
|
160
|
+
Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3@gmail.com)
|
126
161
|
|
127
162
|
ronin-db-activerecord is free software: you can redistribute it and/or modify
|
128
163
|
it under the terms of the GNU Lesser General Public License as published
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# ronin-exploits - A Ruby library for ronin-rb that provides exploitation and
|
3
3
|
# payload crafting functionality.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2007-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2007-2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# This file is part of ronin-exploits.
|
8
8
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# ronin-exploits - A Ruby library for ronin-rb that provides exploitation and
|
3
3
|
# payload crafting functionality.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2007-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2007-2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# This file is part of ronin-exploits.
|
8
8
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
3
3
|
#
|
4
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This file is part of ronin-db-activerecord.
|
7
7
|
#
|
data/gemspec.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
name: ronin-db-activerecord
|
2
|
-
version: 0.1.0
|
2
|
+
version: 0.1.0
|
3
3
|
summary: ActiveRecord backend for the Ronin Database
|
4
4
|
description:
|
5
5
|
ronin-db-activerecord contains ActiveRecord models and migrations for the
|
@@ -12,10 +12,10 @@ homepage: https://ronin-rb.dev/
|
|
12
12
|
has_yard: true
|
13
13
|
|
14
14
|
metadata:
|
15
|
-
documentation_uri: https://
|
15
|
+
documentation_uri: https://ronin-rb.dev/docs/ronin-db-activerecord
|
16
16
|
source_code_uri: https://github.com/ronin-rb/ronin-db-activerecord
|
17
17
|
bug_tracker_uri: https://github.com/ronin-rb/ronin-db-activerecord/issues
|
18
|
-
changelog_uri: https://github.com/ronin-rb/ronin-db-activerecord/blob/
|
18
|
+
changelog_uri: https://github.com/ronin-rb/ronin-db-activerecord/blob/main/ChangeLog.md
|
19
19
|
rubygems_mfa_required: 'true'
|
20
20
|
|
21
21
|
required_ruby_version: ">= 3.0.0"
|
data/lib/ronin/db/address.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/db/advisory.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -72,7 +72,7 @@ module Ronin
|
|
72
72
|
#
|
73
73
|
module ID
|
74
74
|
#
|
75
|
-
# Parses a security
|
75
|
+
# Parses a security advisory ID.
|
76
76
|
#
|
77
77
|
# @param [String] string
|
78
78
|
# The security advisory ID String to split.
|
data/lib/ronin/db/arch.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/db/asn.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/db/credential.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
data/lib/ronin/db/host_name.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -38,7 +38,7 @@ module Ronin
|
|
38
38
|
include Model::LastScannedAt
|
39
39
|
|
40
40
|
# @!attribute [rw] id
|
41
|
-
# The primary ID of the host
|
41
|
+
# The primary ID of the host name.
|
42
42
|
#
|
43
43
|
# @return [Integer]
|
44
44
|
attribute :id, :integer
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
|
+
# Copyright (c) 2022-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|