ronin-db 0.2.0.rc1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b90bbeaeeb69cfb2ed584046153d06bc8a39102e15bb0a9d9ac5d59fed440604
4
- data.tar.gz: 0a5f6a3dbd2ed0f68f3cb0d3b387a62ac584d6673065d9b6195c862e65a85f5f
3
+ metadata.gz: 8e1b111bf10b19e01b6123eb96e1605bdd562b889f4535f8f103deb231f6094d
4
+ data.tar.gz: b157e16ce8d3ef566b84efa3b9e77aa025936d89f83cba1e086f2be8ecbd237e
5
5
  SHA512:
6
- metadata.gz: 8c7ab06b4bd961799a7f861a2ab0063fa9f86fb92642ce06766a88467def08a2711ce80d4668ccbe0571f0a0707aba08b15ca2ffd5d239279765e8b204aa1b5a
7
- data.tar.gz: ec4013b311a613042e00e7604491fd42499a24b33f8d9f0225e4db042f9bc689806e455fb2fff65e0209647e89315924eda443d6c1067df18314a3734d19551f
6
+ metadata.gz: a8f6c9c84ae1cba6b06a2f915e65c46582c4965beceadd2762dbface8ede9a5cb18c495c94a3646dbf28b5cede20598d7b1e936c6b4165a5fb94991526ff374e
7
+ data.tar.gz: 1b7ad99e38d10b0fc0e3b267b4120aba53b214a51a19b6de29e387ffc00da499211d14146c5281a8dfbb5e3f69f98966058efc7ab36f3fcbfa63d25dbf628bf0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1
1
+ ruby-3.3
data/ChangeLog.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 0.2.0 / 2024-XX-XX
1
+ ### 0.2.0 / 2024-07-22
2
2
 
3
3
  * Require [ronin-db-activerecord] ~> 0.2.
4
4
  * Added {Ronin::DB::Tasks}.
@@ -9,7 +9,7 @@
9
9
 
10
10
  * Added the `--db-file` option to all `ronin-db` commands.
11
11
  * Added the `ronin-db completion` command to install shell completion files for
12
- all `ronin-repos` commands for Bash and Zsh shells.
12
+ all `ronin-db` commands for Bash and Zsh shells.
13
13
  * Added the `ronin-db ports` command.
14
14
  * Added the `ronin-db open-ports` command.
15
15
  * Added the `ronin-db services` command.
@@ -11,7 +11,7 @@ _ronin-db_completions_filter() {
11
11
 
12
12
  if [[ "${cur:0:1}" == "-" ]]; then
13
13
  echo "$words"
14
-
14
+
15
15
  else
16
16
  for word in $words; do
17
17
  [[ "${word:0:1}" != "-" ]] && result+=("$word")
@@ -29,243 +29,243 @@ _ronin-db_completions() {
29
29
 
30
30
  case "$compline" in
31
31
  'certs'*'--subject-alt-name')
32
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
32
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
33
33
  ;;
34
34
 
35
35
  'phone-numbers'*'--import')
36
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
36
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
37
37
  ;;
38
38
 
39
- 'passwords'*'--for-user')
40
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
39
+ 'web-vulns'*'--for-host')
40
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
41
41
  ;;
42
42
 
43
- 'web-vulns'*'--for-host')
44
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
43
+ 'passwords'*'--for-user')
44
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
45
45
  ;;
46
46
 
47
47
  'certs'*'--common-name')
48
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
48
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
49
49
  ;;
50
50
 
51
- 'emails'*'--with-host')
52
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
51
+ 'emails'*'--with-user')
52
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
53
53
  ;;
54
54
 
55
- 'emails'*'--with-user')
56
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
55
+ 'emails'*'--with-host')
56
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
57
57
  ;;
58
58
 
59
59
  'passwords'*'--import')
60
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
60
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
61
61
  ;;
62
62
 
63
63
  'services'*'--import')
64
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
64
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
65
65
  ;;
66
66
 
67
- 'creds'*'--for-user')
68
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
67
+ 'urls'*'--directory')
68
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A directory -- "$cur")
69
69
  ;;
70
70
 
71
71
  'street-addresses'*)
72
- 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" )
72
+ 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
73
  ;;
74
74
 
75
- 'urls'*'--directory')
76
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -- "$cur" )
77
- ;;
78
-
79
- 'emails'*'--import')
80
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
75
+ 'creds'*'--for-user')
76
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
81
77
  ;;
82
78
 
83
79
  'ips'*'--with-host')
84
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
80
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
85
81
  ;;
86
82
 
87
- 'people'*'--import')
88
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
89
- ;;
90
-
91
- 'add'*'--username')
92
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
83
+ 'emails'*'--import')
84
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
93
85
  ;;
94
86
 
95
- 'certs'*'--import')
96
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
87
+ 'people'*'--import')
88
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
97
89
  ;;
98
90
 
99
91
  'creds'*'--import')
100
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
92
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
101
93
  ;;
102
94
 
103
95
  'hosts'*'--import')
104
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
96
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
97
+ ;;
98
+
99
+ 'certs'*'--import')
100
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
105
101
  ;;
106
102
 
107
103
  'ports'*'--import')
108
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
104
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
109
105
  ;;
110
106
 
111
- 'add'*'--sqlite3')
112
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
107
+ 'add'*'--username')
108
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
113
109
  ;;
114
110
 
115
111
  'phone-numbers'*)
116
- 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" )
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")
117
113
  ;;
118
114
 
119
115
  'urls'*'--import')
120
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
116
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
121
117
  ;;
122
118
 
123
- 'ips'*'--import')
124
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
119
+ 'add'*'--sqlite3')
120
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
125
121
  ;;
126
122
 
127
123
  'passwords'*'-u')
128
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
124
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
129
125
  ;;
130
126
 
131
- 'web-vulns'*'-H')
132
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
127
+ 'ips'*'--import')
128
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
133
129
  ;;
134
130
 
135
- 'urls'*'--host')
136
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
131
+ 'web-vulns'*'-H')
132
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
137
133
  ;;
138
134
 
139
- 'add'*'--host')
140
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
135
+ 'urls'*'--host')
136
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
141
137
  ;;
142
138
 
143
139
  'asn'*'--file')
144
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
140
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
145
141
  ;;
146
142
 
147
143
  'completion'*)
148
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--print --install --uninstall")" -- "$cur" )
144
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--print --install --uninstall")" -- "$cur")
149
145
  ;;
150
146
 
151
147
  'open-ports'*)
152
- 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" )
148
+ 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")
153
149
  ;;
154
150
 
155
- 'emails'*'-H')
156
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
151
+ 'add'*'--host')
152
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
157
153
  ;;
158
154
 
159
- 'emails'*'-u')
160
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
155
+ 'passwords'*)
156
+ 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")
161
157
  ;;
162
158
 
163
- 'passwords'*)
164
- 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" )
159
+ 'emails'*'-H')
160
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
161
+ ;;
162
+
163
+ 'emails'*'-u')
164
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
165
165
  ;;
166
166
 
167
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" )
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
169
  ;;
170
170
 
171
171
  'creds'*'-u')
172
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
172
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
173
+ ;;
174
+
175
+ 'software'*)
176
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --name -N --named --version -V --vendor")" -- "$cur")
173
177
  ;;
174
178
 
175
179
  'services'*)
176
- 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" )
180
+ 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")
177
181
  ;;
178
182
 
179
- 'software'*)
180
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --name -N --named --version -V --vendor")" -- "$cur" )
183
+ 'urls'*'-H')
184
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
181
185
  ;;
182
186
 
183
187
  'migrate'*)
184
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file")" -- "$cur" )
188
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file")" -- "$cur")
185
189
  ;;
186
190
 
187
- 'urls'*'-H')
188
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
191
+ 'urls'*'-d')
192
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A directory -- "$cur")
189
193
  ;;
190
194
 
191
- 'urls'*'-d')
192
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -- "$cur" )
195
+ 'ips'*'-H')
196
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
193
197
  ;;
194
198
 
195
- 'add'*'-H')
196
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
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")
197
201
  ;;
198
202
 
199
- 'add'*'-u')
200
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
203
+ 'add'*'-H')
204
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A hostname -- "$cur")
201
205
  ;;
202
206
 
203
- 'asn'*'-f')
204
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
207
+ 'people'*)
208
+ 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-address -a --for-city -c --for-state -s --for-province -p --for-zipcode -z --for-country -C --with-prefix -P --with-first-name -f --with-middle-name -m --with-middle-initial -M --with-last-name -l --with-suffix -S")" -- "$cur")
205
209
  ;;
206
210
 
207
- 'emails'*)
208
- 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" )
211
+ 'add'*'-u')
212
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A user -- "$cur")
209
213
  ;;
210
214
 
211
- 'ips'*'-H')
212
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A hostname -- "$cur" )
215
+ 'asn'*'-f')
216
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -A file -- "$cur")
213
217
  ;;
214
218
 
215
- 'people'*)
216
- 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-address -a --for-city -c --for-state -s --for-province -p --for-zipcode -z --for-country -C --with-prefix -P --with-first-name -f --with-middle-name -m --with-middle-initial -M --with-last-name -l --with-suffix -S")" -- "$cur" )
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")
217
221
  ;;
218
222
 
219
223
  'certs'*)
220
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --active -A --expired -E --issuer-common-name --issuer-organization --issuer-organizational-unit --issuer-locality --issuer-state --issuer-country --common-name --subject-alt-name --organization --organizational-unit --locality --state --country --import")" -- "$cur" )
224
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --verbose -v --active -A --expired -E --issuer-common-name --issuer-organization --issuer-organizational-unit --issuer-locality --issuer-state --issuer-country --common-name --subject-alt-name --organization --organizational-unit --locality --state --country --import")" -- "$cur")
221
225
  ;;
222
226
 
223
227
  'creds'*)
224
- 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-password -P")" -- "$cur" )
228
+ 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-password -P")" -- "$cur")
225
229
  ;;
226
230
 
227
231
  'hosts'*)
228
- 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" )
232
+ 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")
229
233
  ;;
230
234
 
231
- 'ports'*)
232
- 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" )
233
- ;;
234
-
235
- 'list'*)
236
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--verbose -v")" -- "$cur" )
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")
237
237
  ;;
238
238
 
239
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" )
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")
241
241
  ;;
242
242
 
243
- 'urls'*)
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 --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" )
243
+ 'list'*)
244
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--verbose -v")" -- "$cur")
245
245
  ;;
246
246
 
247
- 'add'*)
248
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--adapter -A --sqlite3 --mysql2 --postgresql --host -H --port -p --username -u --password -P --read-password --database -D")" -- "$cur" )
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")
249
249
  ;;
250
250
 
251
- 'asn'*)
252
- 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" )
251
+ 'irb'*)
252
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --no-connect")" -- "$cur")
253
253
  ;;
254
254
 
255
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" )
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")
257
257
  ;;
258
258
 
259
- 'irb'*)
260
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--db --db-uri --db-file --no-connect")" -- "$cur" )
259
+ 'add'*)
260
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--adapter -A --sqlite3 --mysql2 --postgresql --host -H --port -p --username -u --password -P --read-password --database -D")" -- "$cur")
261
261
  ;;
262
262
 
263
263
  *)
264
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_ronin-db_completions_filter "--version -V help add asn certs completion creds edit emails hosts ips irb list migrate open-ports oses passwords people phone-numbers ports remove services software street-addresses urls web-vulns console")" -- "$cur" )
264
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen -W "$(_ronin-db_completions_filter "--version -V help add asn certs completion creds edit emails hosts ips irb list migrate open-ports oses passwords people phone-numbers ports remove services software street-addresses urls web-vulns console")" -- "$cur")
265
265
  ;;
266
266
 
267
267
  esac
268
268
  } &&
269
- complete -F _ronin-db_completions ronin-db
269
+ complete -F _ronin-db_completions ronin-db
270
270
 
271
271
  # ex: filetype=sh
data/gemspec.yml CHANGED
@@ -60,9 +60,9 @@ jruby_dependencies:
60
60
 
61
61
  dependencies:
62
62
  # Ronin dependencies:
63
- ronin-db-activerecord: ~> 0.2.0.rc1
63
+ ronin-db-activerecord: ~> 0.2
64
64
  ronin-support: ~> 1.0
65
- ronin-core: ~> 0.2.0.rc1
65
+ ronin-core: ~> 0.2
66
66
 
67
67
  development_dependencies:
68
68
  bundler: ~> 2.0
data/lib/ronin/db/cli.rb CHANGED
@@ -19,6 +19,7 @@
19
19
  #
20
20
 
21
21
  require 'ronin/db/version'
22
+ require 'ronin/core/cli/help/banner'
22
23
 
23
24
  require 'command_kit/commands'
24
25
  require 'command_kit/commands/auto_load'
@@ -39,6 +40,7 @@ module Ronin
39
40
  namespace: "#{self}::Commands"
40
41
  )
41
42
  include CommandKit::Options::Version
43
+ include Core::CLI::Help::Banner
42
44
 
43
45
  command_name 'ronin-db'
44
46
  version Ronin::DB::VERSION
@@ -21,6 +21,6 @@
21
21
  module Ronin
22
22
  module DB
23
23
  # ronin-db version
24
- VERSION = '0.2.0.rc1'
24
+ VERSION = '0.2.0'
25
25
  end
26
26
  end
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.rc1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.0.rc1
33
+ version: '0.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0.rc1
40
+ version: '0.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ronin-support
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0.rc1
61
+ version: '0.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.0.rc1
68
+ version: '0.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -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.3.27
230
+ rubygems_version: 3.5.11
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: A common database library for managing and querying security data