ronin-db 0.2.0 → 0.2.1

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/ChangeLog.md +6 -0
  4. data/README.md +1 -1
  5. data/data/completions/ronin-db +129 -41
  6. data/gemspec.yml +1 -1
  7. data/lib/ronin/db/cli/command.rb +2 -2
  8. data/lib/ronin/db/cli/commands/add.rb +4 -4
  9. data/lib/ronin/db/cli/commands/asn.rb +3 -3
  10. data/lib/ronin/db/cli/commands/certs.rb +2 -2
  11. data/lib/ronin/db/cli/commands/completion.rb +3 -2
  12. data/lib/ronin/db/cli/commands/creds.rb +3 -3
  13. data/lib/ronin/db/cli/commands/edit.rb +3 -3
  14. data/lib/ronin/db/cli/commands/emails.rb +3 -3
  15. data/lib/ronin/db/cli/commands/hosts.rb +3 -3
  16. data/lib/ronin/db/cli/commands/ips.rb +3 -3
  17. data/lib/ronin/db/cli/commands/irb.rb +4 -4
  18. data/lib/ronin/db/cli/commands/list.rb +3 -3
  19. data/lib/ronin/db/cli/commands/migrate.rb +4 -4
  20. data/lib/ronin/db/cli/commands/open_ports.rb +2 -2
  21. data/lib/ronin/db/cli/commands/oses.rb +2 -2
  22. data/lib/ronin/db/cli/commands/passwords.rb +3 -3
  23. data/lib/ronin/db/cli/commands/people.rb +3 -3
  24. data/lib/ronin/db/cli/commands/phone_numbers.rb +3 -3
  25. data/lib/ronin/db/cli/commands/ports.rb +3 -3
  26. data/lib/ronin/db/cli/commands/remove.rb +3 -3
  27. data/lib/ronin/db/cli/commands/services.rb +3 -3
  28. data/lib/ronin/db/cli/commands/software.rb +2 -2
  29. data/lib/ronin/db/cli/commands/street_addresses.rb +2 -2
  30. data/lib/ronin/db/cli/commands/urls.rb +3 -3
  31. data/lib/ronin/db/cli/commands/web_vulns.rb +2 -2
  32. data/lib/ronin/db/cli/database_options.rb +3 -3
  33. data/lib/ronin/db/cli/deletable.rb +1 -1
  34. data/lib/ronin/db/cli/importable.rb +1 -1
  35. data/lib/ronin/db/cli/model_command.rb +4 -4
  36. data/lib/ronin/db/cli/modifiable.rb +3 -3
  37. data/lib/ronin/db/cli/printing.rb +1 -1
  38. data/lib/ronin/db/cli/ruby_shell.rb +1 -1
  39. data/lib/ronin/db/cli/uri_methods.rb +3 -3
  40. data/lib/ronin/db/cli.rb +3 -2
  41. data/lib/ronin/db/config_file.rb +3 -3
  42. data/lib/ronin/db/exceptions.rb +1 -1
  43. data/lib/ronin/db/home.rb +1 -1
  44. data/lib/ronin/db/root.rb +1 -1
  45. data/lib/ronin/db/tasks.rb +1 -1
  46. data/lib/ronin/db/version.rb +2 -2
  47. data/lib/ronin/db.rb +4 -4
  48. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e1b111bf10b19e01b6123eb96e1605bdd562b889f4535f8f103deb231f6094d
4
- data.tar.gz: b157e16ce8d3ef566b84efa3b9e77aa025936d89f83cba1e086f2be8ecbd237e
3
+ metadata.gz: fdc9f1c153fca20ad658526060c01de97c8a5a9b926b2b43a03bef3b0e960fb7
4
+ data.tar.gz: e75fe5e088836975eac58bf3abcc0b2ac4f4b462ae3fe41d1ad50ebd8fd77612
5
5
  SHA512:
6
- metadata.gz: a8f6c9c84ae1cba6b06a2f915e65c46582c4965beceadd2762dbface8ede9a5cb18c495c94a3646dbf28b5cede20598d7b1e936c6b4165a5fb94991526ff374e
7
- data.tar.gz: 1b7ad99e38d10b0fc0e3b267b4120aba53b214a51a19b6de29e387ffc00da499211d14146c5281a8dfbb5e3f69f98966058efc7ab36f3fcbfa63d25dbf628bf0
6
+ metadata.gz: e646b2296ae19a34671fc731cf5f6649585b289a5ed251e0070131a63d3c66357df9a4fcd579bf901f23d6de698932810acbbc87e57c92c5c28f4a95e38882e1
7
+ data.tar.gz: 96866b2296fa71f397e3680ae1975931ae6dfa3eb4d4b027d7e3286e36c24b1ff2870c1a420ebbf7f0ece1c774c0b57f564528dda734c604ab221525ccca5df0
@@ -13,6 +13,7 @@ jobs:
13
13
  - '3.1'
14
14
  - '3.2'
15
15
  - '3.3'
16
+ - '3.4'
16
17
  - jruby
17
18
  - truffleruby
18
19
  name: Ruby ${{ matrix.ruby }}
data/ChangeLog.md CHANGED
@@ -1,6 +1,11 @@
1
+ ### 0.2.1 / 2025-02-14
2
+
3
+ * Use `require_relative` to improve load times.
4
+
1
5
  ### 0.2.0 / 2024-07-22
2
6
 
3
7
  * Require [ronin-db-activerecord] ~> 0.2.
8
+ * Require [ronin-core] ~> 0.2.
4
9
  * Added {Ronin::DB::Tasks}.
5
10
  * Added the `pool:` keyword argument to {Ronin::DB.connect}.
6
11
  * Allow {Ronin::DB.connect} to accept a String URL.
@@ -56,3 +61,4 @@
56
61
 
57
62
  [sqlite]: https://sqlite.org/
58
63
  [ronin-db-activerecord]: https://github.com/ronin-rb/ronin-db-activerecord#readme
64
+ [ronin-core]: https://github.com/ronin-rb/ronin-core#readme
data/README.md CHANGED
@@ -257,7 +257,7 @@ local database console.
257
257
 
258
258
  ## License
259
259
 
260
- Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
260
+ Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
261
261
 
262
262
  ronin-db is free software: you can redistribute it and/or modify
263
263
  it under the terms of the GNU Lesser General Public License as published
@@ -28,14 +28,30 @@ _ronin-db_completions() {
28
28
  local compline="${compwords[*]}"
29
29
 
30
30
  case "$compline" in
31
+ 'street-addresses'*'--db-file')
32
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
33
+ ;;
34
+
31
35
  'certs'*'--subject-alt-name')
32
36
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
33
37
  ;;
34
38
 
39
+ 'phone-numbers'*'--db-file')
40
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
41
+ ;;
42
+
35
43
  'phone-numbers'*'--import')
36
44
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
37
45
  ;;
38
46
 
47
+ 'web-vulns'*'--for-path')
48
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
49
+ ;;
50
+
51
+ 'open-ports'*'--db-file')
52
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
53
+ ;;
54
+
39
55
  'web-vulns'*'--for-host')
40
56
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
41
57
  ;;
@@ -44,6 +60,14 @@ _ronin-db_completions() {
44
60
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
45
61
  ;;
46
62
 
63
+ 'web-vulns'*'--db-file')
64
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
65
+ ;;
66
+
67
+ 'passwords'*'--db-file')
68
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
69
+ ;;
70
+
47
71
  'certs'*'--common-name')
48
72
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
49
73
  ;;
@@ -56,30 +80,58 @@ _ronin-db_completions() {
56
80
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
57
81
  ;;
58
82
 
83
+ 'software'*'--db-file')
84
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
85
+ ;;
86
+
59
87
  'passwords'*'--import')
60
88
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
61
89
  ;;
62
90
 
91
+ 'services'*'--db-file')
92
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
93
+ ;;
94
+
63
95
  'services'*'--import')
64
96
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
65
97
  ;;
66
98
 
99
+ 'migrate'*'--db-file')
100
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
101
+ ;;
102
+
103
+ 'people'*'--db-file')
104
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
105
+ ;;
106
+
67
107
  'urls'*'--directory')
68
108
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A directory -- "$cur")
69
109
  ;;
70
110
 
111
+ 'creds'*'--for-user')
112
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
113
+ ;;
114
+
71
115
  'street-addresses'*)
72
116
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --for-person -P --for-organization -O --with-address -a --with-city -c --with-state -s --with-country -C --with-zipcode -z")" -- "$cur")
73
117
  ;;
74
118
 
75
- 'creds'*'--for-user')
76
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
119
+ 'emails'*'--db-file')
120
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
77
121
  ;;
78
122
 
79
123
  'ips'*'--with-host')
80
124
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
81
125
  ;;
82
126
 
127
+ 'hosts'*'--db-file')
128
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
129
+ ;;
130
+
131
+ 'ports'*'--db-file')
132
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
133
+ ;;
134
+
83
135
  'emails'*'--import')
84
136
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
85
137
  ;;
@@ -88,36 +140,72 @@ _ronin-db_completions() {
88
140
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
89
141
  ;;
90
142
 
91
- 'creds'*'--import')
143
+ 'creds'*'--db-file')
144
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
145
+ ;;
146
+
147
+ 'certs'*'--db-file')
148
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
149
+ ;;
150
+
151
+ 'ports'*'--import')
92
152
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
93
153
  ;;
94
154
 
155
+ 'oses'*'--db-file')
156
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
157
+ ;;
158
+
159
+ 'urls'*'--db-file')
160
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
161
+ ;;
162
+
95
163
  'hosts'*'--import')
96
164
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
97
165
  ;;
98
166
 
167
+ 'add'*'--username')
168
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
169
+ ;;
170
+
99
171
  'certs'*'--import')
100
172
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
101
173
  ;;
102
174
 
103
- 'ports'*'--import')
175
+ 'creds'*'--import')
104
176
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
105
177
  ;;
106
178
 
107
- 'add'*'--username')
108
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
179
+ 'ips'*'--db-file')
180
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
109
181
  ;;
110
182
 
111
- 'phone-numbers'*)
112
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --for-person -P --for-organization -O --with-country-code -c --with-area-code -a --with-prefix -p --with-line-number -l --similar-to -S")" -- "$cur")
183
+ 'add'*'--sqlite3')
184
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
113
185
  ;;
114
186
 
115
187
  'urls'*'--import')
116
188
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
117
189
  ;;
118
190
 
119
- 'add'*'--sqlite3')
120
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
191
+ 'irb'*'--db-file')
192
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
193
+ ;;
194
+
195
+ 'asn'*'--db-file')
196
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
197
+ ;;
198
+
199
+ 'phone-numbers'*)
200
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --for-person -P --for-organization -O --with-country-code -c --with-area-code -a --with-prefix -p --with-line-number -l --similar-to -S")" -- "$cur")
201
+ ;;
202
+
203
+ 'web-vulns'*'-p')
204
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
205
+ ;;
206
+
207
+ 'web-vulns'*'-H')
208
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
121
209
  ;;
122
210
 
123
211
  'passwords'*'-u')
@@ -128,22 +216,22 @@ _ronin-db_completions() {
128
216
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
129
217
  ;;
130
218
 
131
- 'web-vulns'*'-H')
132
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
219
+ 'urls'*'--path')
220
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -A directory -- "$cur")
133
221
  ;;
134
222
 
135
223
  'urls'*'--host')
136
224
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
137
225
  ;;
138
226
 
139
- 'asn'*'--file')
140
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
141
- ;;
142
-
143
227
  'completion'*)
144
228
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--print --install --uninstall")" -- "$cur")
145
229
  ;;
146
230
 
231
+ 'asn'*'--file')
232
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
233
+ ;;
234
+
147
235
  'open-ports'*)
148
236
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --with-port -p --with-protocol -P --with-service -S --with-ip -I")" -- "$cur")
149
237
  ;;
@@ -156,6 +244,10 @@ _ronin-db_completions() {
156
244
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --for-user -u --with-email -e")" -- "$cur")
157
245
  ;;
158
246
 
247
+ 'web-vulns'*)
248
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --with-type -t --for-host -H --for-domain -d --for-path -p --with-query-param -q --with-header-name --with-cookie-param -c --with-form-param -f --with-request-method -M")" -- "$cur")
249
+ ;;
250
+
159
251
  'emails'*'-H')
160
252
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
161
253
  ;;
@@ -164,10 +256,6 @@ _ronin-db_completions() {
164
256
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
165
257
  ;;
166
258
 
167
- 'web-vulns'*)
168
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --with-type -t --for-host -H --for-domain -d --for-path -p --with-query-param -q --with-header-name --with-cookie-param -c --with-form-param -f --with-request-method -M")" -- "$cur")
169
- ;;
170
-
171
259
  'creds'*'-u')
172
260
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
173
261
  ;;
@@ -180,24 +268,16 @@ _ronin-db_completions() {
180
268
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --named --with-port -p --with-protocol -P --with-ip -I")" -- "$cur")
181
269
  ;;
182
270
 
183
- 'urls'*'-H')
184
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
185
- ;;
186
-
187
- 'migrate'*)
188
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file")" -- "$cur")
189
- ;;
190
-
191
271
  'urls'*'-d')
192
272
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A directory -- "$cur")
193
273
  ;;
194
274
 
195
- 'ips'*'-H')
275
+ 'urls'*'-H')
196
276
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
197
277
  ;;
198
278
 
199
- 'emails'*)
200
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --with-host -H --with-ip -I --with-user -u --for-person -P --for-organization -O")" -- "$cur")
279
+ 'migrate'*)
280
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file")" -- "$cur")
201
281
  ;;
202
282
 
203
283
  'add'*'-H')
@@ -216,8 +296,12 @@ _ronin-db_completions() {
216
296
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
217
297
  ;;
218
298
 
219
- 'ports'*)
220
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --number -N --with-protocol -P --with-service -S --with-ip -I")" -- "$cur")
299
+ 'ips'*'-H')
300
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
301
+ ;;
302
+
303
+ 'emails'*)
304
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --with-host -H --with-ip -I --with-user -u --for-person -P --for-organization -O")" -- "$cur")
221
305
  ;;
222
306
 
223
307
  'certs'*)
@@ -232,28 +316,32 @@ _ronin-db_completions() {
232
316
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --with-ip -I --with-port -p --domain -D --tld -T")" -- "$cur")
233
317
  ;;
234
318
 
235
- 'urls'*)
236
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --http --https --host -H --port -p --path --fragment --directory -d --with-ext -E --query-string -q --with-query-param -P --with-query-param-name --with-query-param-value")" -- "$cur")
319
+ 'ports'*)
320
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --number -N --with-protocol -P --with-service -S --with-ip -I")" -- "$cur")
237
321
  ;;
238
322
 
239
- 'oses'*)
240
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --name -N --named --flavor -F --version -V")" -- "$cur")
323
+ 'urls'*)
324
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --http --https --host -H --port -p --path --fragment --directory -d --with-ext -E --query-string -q --with-query-param -P --with-query-param-name --with-query-param-value")" -- "$cur")
241
325
  ;;
242
326
 
243
327
  'list'*)
244
328
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--verbose -v")" -- "$cur")
245
329
  ;;
246
330
 
247
- 'asn'*)
248
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --number -n --country-code -C --name -N --named --ip -I --ipv4 -4 --ipv6 -6 --update -u --url -U --file -f")" -- "$cur")
331
+ 'oses'*)
332
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --name -N --named --flavor -F --version -V")" -- "$cur")
333
+ ;;
334
+
335
+ 'ips'*)
336
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --v4 -4 --v6 -6 --with-port -p --with-mac-addr -M --with-host -H")" -- "$cur")
249
337
  ;;
250
338
 
251
339
  'irb'*)
252
340
  while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --no-connect")" -- "$cur")
253
341
  ;;
254
342
 
255
- 'ips'*)
256
- while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --delete --delete-all --add --import --v4 -4 --v6 -6 --with-port -p --with-mac-addr -M --with-host -H")" -- "$cur")
343
+ 'asn'*)
344
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --number -n --country-code -C --name -N --named --ip -I --ipv4 -4 --ipv6 -6 --update -u --url -U --file -f")" -- "$cur")
257
345
  ;;
258
346
 
259
347
  'add'*)
data/gemspec.yml CHANGED
@@ -7,7 +7,7 @@ description: |
7
7
  host names, IPs, ports, etc. ronin-db also provides CLI commands for managing
8
8
  the database(s).
9
9
 
10
- license: LGPL-3.0
10
+ license: LGPL-3.0-or-later
11
11
  authors: Postmodern
12
12
  email: postmodern.mod3@gmail.com
13
13
  homepage: https://ronin-rb.dev
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/root'
21
+ require_relative '../root'
22
22
 
23
23
  require 'ronin/core/cli/command'
24
24
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/cli/uri_methods'
23
- require 'ronin/db/config_file'
21
+ require_relative '../command'
22
+ require_relative '../uri_methods'
23
+ require_relative '../../config_file'
24
24
 
25
25
  require 'command_kit/options/verbose'
26
26
  require 'command_kit/printing'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/core/cli/logging'
21
+ require_relative '../model_command'
23
22
 
23
+ require 'ronin/core/cli/logging'
24
24
  require 'ronin/support/network/asn'
25
25
  require 'ronin/support/network/asn/list'
26
26
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
21
+ require_relative '../model_command'
22
22
 
23
23
  require 'command_kit/printing/indent'
24
24
  require 'command_kit/printing/fields'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,9 +18,10 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/root'
22
21
  require 'ronin/core/cli/completion_command'
23
22
 
23
+ require_relative '../../root'
24
+
24
25
  module Ronin
25
26
  module DB
26
27
  class CLI
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/config_file'
21
+ require_relative '../command'
22
+ require_relative '../../config_file'
23
23
 
24
24
  require 'command_kit/edit'
25
25
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/cli/database_options'
23
- require 'ronin/db/cli/ruby_shell'
21
+ require_relative '../command'
22
+ require_relative '../database_options'
23
+ require_relative '../ruby_shell'
24
24
 
25
25
  module Ronin
26
26
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/config_file'
21
+ require_relative '../command'
22
+ require_relative '../../config_file'
23
23
 
24
24
  require 'command_kit/options/verbose'
25
25
  require 'command_kit/printing'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/cli/database_options'
23
- require 'ronin/db'
21
+ require_relative '../command'
22
+ require_relative '../database_options'
23
+ require_relative '../../../db'
24
24
 
25
25
  module Ronin
26
26
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
21
+ require_relative '../model_command'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
21
+ require_relative '../model_command'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/config_file'
21
+ require_relative '../command'
22
+ require_relative '../../config_file'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
21
+ require_relative '../model_command'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
21
+ require_relative '../model_command'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
22
- require 'ronin/db/cli/modifiable'
21
+ require_relative '../model_command'
22
+ require_relative '../modifiable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,7 +18,7 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/model_command'
21
+ require_relative '../model_command'
22
22
 
23
23
  module Ronin
24
24
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/uri_methods'
22
- require 'ronin/db'
21
+ require_relative 'uri_methods'
22
+ require_relative '../../db'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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 - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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 - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,10 +18,10 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db/cli/database_options'
23
- require 'ronin/core/cli/logging'
21
+ require_relative 'command'
22
+ require_relative 'database_options'
24
23
 
24
+ require 'ronin/core/cli/logging'
25
25
  require 'command_kit/options/verbose'
26
26
 
27
27
  module Ronin
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/deletable'
22
- require 'ronin/db/cli/importable'
21
+ require_relative 'deletable'
22
+ require_relative 'importable'
23
23
 
24
24
  module Ronin
25
25
  module DB
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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 - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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 - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/cli/command'
22
- require 'ronin/db'
21
+ require_relative 'command'
22
+ require_relative '../../db'
23
23
 
24
24
  module Ronin
25
25
  module DB
data/lib/ronin/db/cli.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,13 +18,14 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/version'
22
21
  require 'ronin/core/cli/help/banner'
23
22
 
24
23
  require 'command_kit/commands'
25
24
  require 'command_kit/commands/auto_load'
26
25
  require 'command_kit/options/version'
27
26
 
27
+ require_relative 'version'
28
+
28
29
  module Ronin
29
30
  module DB
30
31
  #
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,8 +18,8 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/exceptions'
22
- require 'ronin/db/home'
21
+ require_relative 'exceptions'
22
+ require_relative 'home'
23
23
 
24
24
  require 'fileutils'
25
25
  require 'yaml'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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/home.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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/root.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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 - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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 - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -21,6 +21,6 @@
21
21
  module Ronin
22
22
  module DB
23
23
  # ronin-db version
24
- VERSION = '0.2.0'
24
+ VERSION = '0.2.1'
25
25
  end
26
26
  end
data/lib/ronin/db.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db 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
@@ -18,9 +18,9 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/db/exceptions'
22
- require 'ronin/db/config_file'
23
- require 'ronin/db/version'
21
+ require_relative 'db/exceptions'
22
+ require_relative 'db/config_file'
23
+ require_relative 'db/version'
24
24
 
25
25
  module Ronin
26
26
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2025-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -205,7 +205,7 @@ files:
205
205
  - scripts/setup
206
206
  homepage: https://ronin-rb.dev
207
207
  licenses:
208
- - LGPL-3.0
208
+ - LGPL-3.0-or-later
209
209
  metadata:
210
210
  documentation_uri: https://ronin-rb.dev/docs/ronin-db
211
211
  source_code_uri: https://github.com/ronin-rb/ronin-db
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 3.5.11
230
+ rubygems_version: 3.5.22
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: A common database library for managing and querying security data