ronin-db-activerecord 0.1.0.beta1 → 0.1.0
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.
- 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
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -32,7 +32,7 @@ module Ronin
|
|
|
32
32
|
include Model
|
|
33
33
|
|
|
34
34
|
# @!attribute [rw] id
|
|
35
|
-
# The primary ID of the HTTP
|
|
35
|
+
# The primary ID of the HTTP response.
|
|
36
36
|
#
|
|
37
37
|
# @return [Integer]
|
|
38
38
|
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
|
data/lib/ronin/db/ip_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
|
|
@@ -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/mac_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/migrations.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
|
|
@@ -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
|
|
@@ -29,7 +29,7 @@ module Ronin
|
|
|
29
29
|
module HasUniqueName
|
|
30
30
|
#
|
|
31
31
|
# @!attribute [rw] name
|
|
32
|
-
# The
|
|
32
|
+
# The unique name of the model.
|
|
33
33
|
#
|
|
34
34
|
# @return [String]
|
|
35
35
|
#
|
|
@@ -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/model.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/models.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/open_port.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/os.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/os_guess.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/password.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/port.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/service.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/software.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/url.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
|
|
@@ -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/url_scheme.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/user_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
|
|
@@ -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
|
|
@@ -27,13 +27,14 @@ Gem::Specification.new do |gem|
|
|
|
27
27
|
gem.files = `git ls-files`.split($/)
|
|
28
28
|
gem.files = glob[gemspec['files']] if gemspec['files']
|
|
29
29
|
gem.files += Array(gemspec['generated_files'])
|
|
30
|
+
# exclude test files from the packages gem
|
|
31
|
+
gem.files -= glob[gemspec['test_files'] || 'spec/{**/}*']
|
|
30
32
|
|
|
31
33
|
gem.executables = gemspec.fetch('executables') do
|
|
32
34
|
glob['bin/*'].map { |path| File.basename(path) }
|
|
33
35
|
end
|
|
34
36
|
|
|
35
37
|
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
|
|
36
|
-
gem.test_files = glob[gemspec['test_files'] || 'spec/{**/}*_spec.rb']
|
|
37
38
|
gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
|
|
38
39
|
|
|
39
40
|
gem.require_paths = Array(gemspec.fetch('require_paths') {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ronin-db-activerecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Postmodern
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: uri-query_params
|
|
@@ -140,7 +140,6 @@ files:
|
|
|
140
140
|
- lib/ronin/db/os_guess.rb
|
|
141
141
|
- lib/ronin/db/password.rb
|
|
142
142
|
- lib/ronin/db/port.rb
|
|
143
|
-
- lib/ronin/db/root.rb
|
|
144
143
|
- lib/ronin/db/schema_migration.rb
|
|
145
144
|
- lib/ronin/db/service.rb
|
|
146
145
|
- lib/ronin/db/service_credential.rb
|
|
@@ -154,55 +153,14 @@ files:
|
|
|
154
153
|
- lib/ronin/db/vulnerability.rb
|
|
155
154
|
- lib/ronin/db/web_credential.rb
|
|
156
155
|
- ronin-db-activerecord.gemspec
|
|
157
|
-
- spec/advisory_spec.rb
|
|
158
|
-
- spec/arch_spec.rb
|
|
159
|
-
- spec/asn_spec.rb
|
|
160
|
-
- spec/credential_spec.rb
|
|
161
|
-
- spec/email_address_spec.rb
|
|
162
|
-
- spec/host_name_ip_address_spec.rb
|
|
163
|
-
- spec/host_name_spec.rb
|
|
164
|
-
- spec/http_header_name_spec.rb
|
|
165
|
-
- spec/http_query_param_name_spec.rb
|
|
166
|
-
- spec/http_query_param_spec.rb
|
|
167
|
-
- spec/http_request_header_spec.rb
|
|
168
|
-
- spec/http_request_spec.rb
|
|
169
|
-
- spec/http_response_header_spec.rb
|
|
170
|
-
- spec/http_response_spec.rb
|
|
171
|
-
- spec/ip_address_mac_addresses_spec.rb
|
|
172
|
-
- spec/ip_address_spec.rb
|
|
173
|
-
- spec/mac_address_spec.rb
|
|
174
|
-
- spec/migrations_spec.rb
|
|
175
|
-
- spec/model/has_name_spec.rb
|
|
176
|
-
- spec/model/has_unique_name_spec.rb
|
|
177
|
-
- spec/model/importable_spec.rb
|
|
178
|
-
- spec/models_spec.rb
|
|
179
|
-
- spec/open_port_spec.rb
|
|
180
|
-
- spec/organization_spec.rb
|
|
181
|
-
- spec/os_guess_spec.rb
|
|
182
|
-
- spec/os_spec.rb
|
|
183
|
-
- spec/password_spec.rb
|
|
184
|
-
- spec/port_spec.rb
|
|
185
|
-
- spec/schema_migration_spec.rb
|
|
186
|
-
- spec/service_credential_spec.rb
|
|
187
|
-
- spec/service_spec.rb
|
|
188
|
-
- spec/software_spec.rb
|
|
189
|
-
- spec/software_vendor_spec.rb
|
|
190
|
-
- spec/spec_helper.rb
|
|
191
|
-
- spec/url_query_param_name_spec.rb
|
|
192
|
-
- spec/url_query_param_spec.rb
|
|
193
|
-
- spec/url_scheme_spec.rb
|
|
194
|
-
- spec/url_spec.rb
|
|
195
|
-
- spec/user_name_spec.rb
|
|
196
|
-
- spec/vulnerability_spec.rb
|
|
197
|
-
- spec/web_credential_spec.rb
|
|
198
156
|
homepage: https://ronin-rb.dev/
|
|
199
157
|
licenses:
|
|
200
158
|
- LGPL-3.0
|
|
201
159
|
metadata:
|
|
202
|
-
documentation_uri: https://
|
|
160
|
+
documentation_uri: https://ronin-rb.dev/docs/ronin-db-activerecord
|
|
203
161
|
source_code_uri: https://github.com/ronin-rb/ronin-db-activerecord
|
|
204
162
|
bug_tracker_uri: https://github.com/ronin-rb/ronin-db-activerecord/issues
|
|
205
|
-
changelog_uri: https://github.com/ronin-rb/ronin-db-activerecord/blob/
|
|
163
|
+
changelog_uri: https://github.com/ronin-rb/ronin-db-activerecord/blob/main/ChangeLog.md
|
|
206
164
|
rubygems_mfa_required: 'true'
|
|
207
165
|
post_install_message:
|
|
208
166
|
rdoc_options: []
|
|
@@ -223,44 +181,4 @@ rubygems_version: 3.3.26
|
|
|
223
181
|
signing_key:
|
|
224
182
|
specification_version: 4
|
|
225
183
|
summary: ActiveRecord backend for the Ronin Database
|
|
226
|
-
test_files:
|
|
227
|
-
- spec/advisory_spec.rb
|
|
228
|
-
- spec/arch_spec.rb
|
|
229
|
-
- spec/asn_spec.rb
|
|
230
|
-
- spec/credential_spec.rb
|
|
231
|
-
- spec/email_address_spec.rb
|
|
232
|
-
- spec/host_name_ip_address_spec.rb
|
|
233
|
-
- spec/host_name_spec.rb
|
|
234
|
-
- spec/http_header_name_spec.rb
|
|
235
|
-
- spec/http_query_param_name_spec.rb
|
|
236
|
-
- spec/http_query_param_spec.rb
|
|
237
|
-
- spec/http_request_header_spec.rb
|
|
238
|
-
- spec/http_request_spec.rb
|
|
239
|
-
- spec/http_response_header_spec.rb
|
|
240
|
-
- spec/http_response_spec.rb
|
|
241
|
-
- spec/ip_address_mac_addresses_spec.rb
|
|
242
|
-
- spec/ip_address_spec.rb
|
|
243
|
-
- spec/mac_address_spec.rb
|
|
244
|
-
- spec/migrations_spec.rb
|
|
245
|
-
- spec/model/has_name_spec.rb
|
|
246
|
-
- spec/model/has_unique_name_spec.rb
|
|
247
|
-
- spec/model/importable_spec.rb
|
|
248
|
-
- spec/models_spec.rb
|
|
249
|
-
- spec/open_port_spec.rb
|
|
250
|
-
- spec/organization_spec.rb
|
|
251
|
-
- spec/os_guess_spec.rb
|
|
252
|
-
- spec/os_spec.rb
|
|
253
|
-
- spec/password_spec.rb
|
|
254
|
-
- spec/port_spec.rb
|
|
255
|
-
- spec/schema_migration_spec.rb
|
|
256
|
-
- spec/service_credential_spec.rb
|
|
257
|
-
- spec/service_spec.rb
|
|
258
|
-
- spec/software_spec.rb
|
|
259
|
-
- spec/software_vendor_spec.rb
|
|
260
|
-
- spec/url_query_param_name_spec.rb
|
|
261
|
-
- spec/url_query_param_spec.rb
|
|
262
|
-
- spec/url_scheme_spec.rb
|
|
263
|
-
- spec/url_spec.rb
|
|
264
|
-
- spec/user_name_spec.rb
|
|
265
|
-
- spec/vulnerability_spec.rb
|
|
266
|
-
- spec/web_credential_spec.rb
|
|
184
|
+
test_files: []
|
data/lib/ronin/db/root.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
#
|
|
3
|
-
# ronin-db-activerecord - ActiveRecord backend for the Ronin Database.
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2022 Hal Brodigan (postmodern.mod3 at gmail.com)
|
|
6
|
-
#
|
|
7
|
-
# ronin-db-activerecord is free software: you can redistribute it and/or modify
|
|
8
|
-
# it under the terms of the GNU Lesser General Public License as published
|
|
9
|
-
# by the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
# (at your option) any later version.
|
|
11
|
-
#
|
|
12
|
-
# ronin-db-activerecord is distributed in the hope that it will be useful,
|
|
13
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
# GNU Lesser General Public License for more details.
|
|
16
|
-
#
|
|
17
|
-
# You should have received a copy of the GNU Lesser General Public License
|
|
18
|
-
# along with ronin-db-activerecord. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
module Ronin
|
|
22
|
-
module DB
|
|
23
|
-
# Path to `ronin-db-activerecord` root directory.
|
|
24
|
-
#
|
|
25
|
-
# @api private
|
|
26
|
-
ROOT = File.expand_path(File.join(__dir__,'..','..','..'))
|
|
27
|
-
end
|
|
28
|
-
end
|