ronin-db 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +14 -0
- data/.rubocop.yml +16 -0
- data/ChangeLog.md +9 -1
- data/Gemfile +7 -3
- data/Rakefile +2 -3
- data/bin/ronin-db +6 -7
- data/lib/ronin/db/cli/command.rb +3 -0
- data/lib/ronin/db/cli/commands/asn.rb +1 -1
- data/lib/ronin/db/cli/commands/migrate.rb +1 -1
- data/lib/ronin/db/cli/commands/urls.rb +6 -6
- data/lib/ronin/db/cli/resources_command.rb +0 -2
- data/lib/ronin/db/cli/uri_methods.rb +8 -3
- data/lib/ronin/db/cli.rb +5 -0
- data/lib/ronin/db/config_file.rb +2 -1
- data/lib/ronin/db/version.rb +1 -1
- data/lib/ronin/db.rb +3 -0
- data/man/ronin-db-add.1 +43 -12
- data/man/ronin-db-add.1.md +30 -10
- data/man/ronin-db-asn.1 +25 -1
- data/man/ronin-db-asn.1.md +20 -1
- data/man/ronin-db-creds.1 +20 -14
- data/man/ronin-db-creds.1.md +19 -14
- data/man/ronin-db-edit.1 +19 -12
- data/man/ronin-db-edit.1.md +15 -10
- data/man/ronin-db-emails.1 +21 -15
- data/man/ronin-db-emails.1.md +20 -15
- data/man/ronin-db-hosts.1 +18 -12
- data/man/ronin-db-hosts.1.md +17 -12
- data/man/ronin-db-ips.1 +21 -15
- data/man/ronin-db-ips.1.md +20 -15
- data/man/ronin-db-irb.1 +19 -12
- data/man/ronin-db-irb.1.md +15 -10
- data/man/ronin-db-list.1 +19 -12
- data/man/ronin-db-list.1.md +15 -10
- data/man/ronin-db-migrate.1 +25 -1
- data/man/ronin-db-migrate.1.md +20 -1
- data/man/ronin-db-remove.1 +19 -12
- data/man/ronin-db-remove.1.md +15 -10
- data/man/ronin-db-urls.1 +21 -15
- data/man/ronin-db-urls.1.md +20 -15
- data/ronin-db.gemspec +4 -3
- metadata +3 -2
data/man/ronin-db-remove.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-remove 1 "
|
3
|
+
.TH ronin-db-remove 1 "2023-02-01" Ronin DB "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -25,22 +25,29 @@ The database entry to remove\.
|
|
25
25
|
\fB-h\fR, \fB--help\fR
|
26
26
|
Print help information\.
|
27
27
|
.LP
|
28
|
-
.SH
|
28
|
+
.SH ENVIRONMENT
|
29
29
|
.LP
|
30
30
|
.TP
|
31
|
-
\
|
32
|
-
|
31
|
+
\fIHOME\fP
|
32
|
+
Alternate location for the user\[cq]s home directory\.
|
33
33
|
.LP
|
34
|
-
.
|
34
|
+
.TP
|
35
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
36
|
+
Alternate location for the \fB~/.config\fR directory\.
|
35
37
|
.LP
|
36
|
-
.
|
37
|
-
HOME
|
38
|
-
|
39
|
-
\fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
|
38
|
+
.TP
|
39
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
40
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
40
41
|
.LP
|
41
|
-
.
|
42
|
-
|
43
|
-
|
42
|
+
.SH FILES
|
43
|
+
.LP
|
44
|
+
.TP
|
45
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
46
|
+
The default sqlite3 database file\.
|
47
|
+
.LP
|
48
|
+
.TP
|
49
|
+
\fB~/.config/ronin-db/database.yml\fR
|
50
|
+
Optional database configuration\.
|
44
51
|
.LP
|
45
52
|
.SH AUTHOR
|
46
53
|
.LP
|
data/man/ronin-db-remove.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-remove 1 "
|
1
|
+
# ronin-db-remove 1 "2023-02-01" Ronin DB "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -19,19 +19,24 @@ configuration file.
|
|
19
19
|
`-h`, `--help`
|
20
20
|
Print help information.
|
21
21
|
|
22
|
-
##
|
22
|
+
## ENVIRONMENT
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
*HOME*
|
25
|
+
Alternate location for the user's home directory.
|
26
26
|
|
27
|
-
|
27
|
+
*XDG_CONFIG_HOME*
|
28
|
+
Alternate location for the `~/.config` directory.
|
29
|
+
|
30
|
+
*XDG_DATA_HOME*
|
31
|
+
Alternate location for the `~/.local/share` directory.
|
32
|
+
|
33
|
+
## FILES
|
28
34
|
|
29
|
-
|
30
|
-
|
31
|
-
*~/.config/ronin-db* cache directory within the home directory.
|
35
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
36
|
+
The default sqlite3 database file.
|
32
37
|
|
33
|
-
|
34
|
-
|
38
|
+
`~/.config/ronin-db/database.yml`
|
39
|
+
Optional database configuration.
|
35
40
|
|
36
41
|
## AUTHOR
|
37
42
|
|
data/man/ronin-db-urls.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-urls 1 "
|
3
|
+
.TH ronin-db-urls 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -28,20 +28,20 @@ The explicit database URI to connect to
|
|
28
28
|
Enable verbose output\.
|
29
29
|
.LP
|
30
30
|
.TP
|
31
|
-
\fB--add\fR \
|
32
|
-
Adds the
|
31
|
+
\fB--add\fR \fIVALUE\fP
|
32
|
+
Adds the URL to the database\.
|
33
33
|
.LP
|
34
34
|
.TP
|
35
35
|
\fB--import\fR \fIFILE\fP
|
36
|
-
Imports the
|
36
|
+
Imports the URLs from the given \fIFILE\fP\.
|
37
37
|
.LP
|
38
38
|
.TP
|
39
39
|
\fB--delete\fR \fIVALUE\fP
|
40
|
-
Deletes
|
40
|
+
Deletes the URL from the database\.
|
41
41
|
.LP
|
42
42
|
.TP
|
43
43
|
\fB--delete-all\fR
|
44
|
-
Deletes every
|
44
|
+
Deletes every URL from the database\.
|
45
45
|
.LP
|
46
46
|
.TP
|
47
47
|
\fB--http\fR
|
@@ -71,23 +71,29 @@ Searches for URLs containing the query\-param NAME\.
|
|
71
71
|
\fB-Q\fR, \fB--with-query-value\fR \fIVALUE\fP \[lB]\.\.\.\[rB]
|
72
72
|
Searches for URLs containing the query\-param VALUE\.
|
73
73
|
.LP
|
74
|
-
.SH
|
74
|
+
.SH ENVIRONMENT
|
75
|
+
.LP
|
76
|
+
.TP
|
77
|
+
\fIHOME\fP
|
78
|
+
Alternate location for the user\[cq]s home directory\.
|
75
79
|
.LP
|
76
80
|
.TP
|
77
|
-
\
|
78
|
-
|
81
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
82
|
+
Alternate location for the \fB~/.config\fR directory\.
|
79
83
|
.LP
|
80
84
|
.TP
|
81
|
-
\
|
82
|
-
|
85
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
86
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
87
|
+
.LP
|
88
|
+
.SH FILES
|
83
89
|
.LP
|
84
90
|
.TP
|
85
|
-
\
|
86
|
-
The default sqlite3
|
91
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
92
|
+
The default sqlite3 database file\.
|
87
93
|
.LP
|
88
94
|
.TP
|
89
|
-
\
|
90
|
-
Optional
|
95
|
+
\fB~/.config/ronin-db/database.yml\fR
|
96
|
+
Optional database configuration\.
|
91
97
|
.LP
|
92
98
|
.SH AUTHOR
|
93
99
|
.LP
|
data/man/ronin-db-urls.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-urls 1 "
|
1
|
+
# ronin-db-urls 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -20,17 +20,17 @@ Manages URLs.
|
|
20
20
|
`-v`, `--verbose`
|
21
21
|
Enable verbose output.
|
22
22
|
|
23
|
-
`--add` *
|
24
|
-
Adds the
|
23
|
+
`--add` *VALUE*
|
24
|
+
Adds the URL to the database.
|
25
25
|
|
26
26
|
`--import` *FILE*
|
27
|
-
Imports the
|
27
|
+
Imports the URLs from the given *FILE*.
|
28
28
|
|
29
29
|
`--delete` *VALUE*
|
30
|
-
Deletes
|
30
|
+
Deletes the URL from the database.
|
31
31
|
|
32
32
|
`--delete-all`
|
33
|
-
Deletes every
|
33
|
+
Deletes every URL from the database.
|
34
34
|
|
35
35
|
`--http`
|
36
36
|
Searches for `http://` URLs.
|
@@ -53,19 +53,24 @@ Manages URLs.
|
|
53
53
|
`-Q`, `--with-query-value` *VALUE* [...]
|
54
54
|
Searches for URLs containing the query-param VALUE.
|
55
55
|
|
56
|
-
##
|
56
|
+
## ENVIRONMENT
|
57
|
+
|
58
|
+
*HOME*
|
59
|
+
Alternate location for the user's home directory.
|
57
60
|
|
58
|
-
|
59
|
-
|
61
|
+
*XDG_CONFIG_HOME*
|
62
|
+
Alternate location for the `~/.config` directory.
|
60
63
|
|
61
|
-
|
62
|
-
|
64
|
+
*XDG_DATA_HOME*
|
65
|
+
Alternate location for the `~/.local/share` directory.
|
66
|
+
|
67
|
+
## FILES
|
63
68
|
|
64
|
-
|
65
|
-
|
69
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
70
|
+
The default sqlite3 database file.
|
66
71
|
|
67
|
-
|
68
|
-
|
72
|
+
`~/.config/ronin-db/database.yml`
|
73
|
+
Optional database configuration.
|
69
74
|
|
70
75
|
## AUTHOR
|
71
76
|
|
data/ronin-db.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'yaml'
|
4
4
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.homepage = gemspec['homepage']
|
23
23
|
gem.metadata = gemspec['metadata'] if gemspec['metadata']
|
24
24
|
|
25
|
-
glob =
|
25
|
+
glob = ->(patterns) { gem.files & Dir[*patterns] }
|
26
26
|
|
27
27
|
gem.files = `git ls-files`.split($/)
|
28
28
|
gem.files = glob[gemspec['files']] if gemspec['files']
|
@@ -33,6 +33,7 @@ Gem::Specification.new do |gem|
|
|
33
33
|
gem.executables = gemspec.fetch('executables') do
|
34
34
|
glob['bin/*'].map { |path| File.basename(path) }
|
35
35
|
end
|
36
|
+
|
36
37
|
gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
|
37
38
|
|
38
39
|
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
|
@@ -47,7 +48,7 @@ Gem::Specification.new do |gem|
|
|
47
48
|
gem.required_rubygems_version = gemspec['required_rubygems_version']
|
48
49
|
gem.post_install_message = gemspec['post_install_message']
|
49
50
|
|
50
|
-
split =
|
51
|
+
split = ->(string) { string.split(/,\s*/) }
|
51
52
|
|
52
53
|
if RUBY_PLATFORM =~ /java/
|
53
54
|
gem.platform = Gem::Platform.new("java")
|
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.1.
|
4
|
+
version: 0.1.1
|
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-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- ".github/workflows/ruby.yml"
|
100
100
|
- ".gitignore"
|
101
101
|
- ".rspec"
|
102
|
+
- ".rubocop.yml"
|
102
103
|
- ".ruby-version"
|
103
104
|
- ".yardopts"
|
104
105
|
- COPYING.txt
|