ronin-db 0.1.0-java → 0.1.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.document +0 -1
- data/.github/workflows/ruby.yml +15 -1
- data/.rubocop.yml +16 -0
- data/ChangeLog.md +19 -1
- data/Gemfile +7 -3
- data/README.md +0 -1
- 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/creds.rb +18 -18
- 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 +14 -8
- data/lib/ronin/db/exceptions.rb +9 -0
- data/lib/ronin/db/version.rb +1 -1
- data/lib/ronin/db.rb +15 -1
- data/man/ronin-db-add.1 +45 -14
- data/man/ronin-db-add.1.md +30 -10
- data/man/ronin-db-asn.1 +37 -5
- data/man/ronin-db-asn.1.md +25 -3
- data/man/ronin-db-creds.1 +36 -18
- data/man/ronin-db-creds.1.md +27 -16
- data/man/ronin-db-edit.1 +21 -14
- data/man/ronin-db-edit.1.md +15 -10
- data/man/ronin-db-emails.1 +38 -20
- data/man/ronin-db-emails.1.md +28 -17
- data/man/ronin-db-hosts.1 +34 -16
- data/man/ronin-db-hosts.1.md +25 -14
- data/man/ronin-db-ips.1 +37 -19
- data/man/ronin-db-ips.1.md +28 -17
- data/man/ronin-db-irb.1 +30 -14
- data/man/ronin-db-irb.1.md +19 -10
- data/man/ronin-db-list.1 +21 -14
- data/man/ronin-db-list.1.md +15 -10
- data/man/ronin-db-migrate.1 +36 -3
- data/man/ronin-db-migrate.1.md +24 -1
- data/man/ronin-db-remove.1 +21 -14
- data/man/ronin-db-remove.1.md +15 -10
- data/man/ronin-db-urls.1 +39 -21
- data/man/ronin-db-urls.1.md +28 -17
- data/ronin-db.gemspec +4 -3
- metadata +4 -3
data/man/ronin-db-asn.1
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1.
|
1
|
+
.\" Generated by kramdown-man 0.1.9
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-asn 1 "
|
3
|
+
.TH ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
7
|
-
.
|
7
|
+
.PP
|
8
8
|
\fBronin-db asn\fR \[lB]\fIoptions\fP\[rB]
|
9
9
|
.LP
|
10
10
|
.SH DESCRIPTION
|
@@ -20,8 +20,16 @@ The database name to connect to\. Defaults to \fBdefault\fR if not given\.
|
|
20
20
|
.LP
|
21
21
|
.TP
|
22
22
|
\fB--db-uri\fR \fIURI\fP
|
23
|
-
The explicit database URI to connect to
|
24
|
-
|
23
|
+
The explicit database URI to connect to\.
|
24
|
+
.LP
|
25
|
+
.RS
|
26
|
+
.IP \(bu 2
|
27
|
+
\fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
|
28
|
+
.IP \(bu 2
|
29
|
+
\fBmysql\fP: \fBmysql://user:password@host/database\fR
|
30
|
+
.IP \(bu 2
|
31
|
+
\fBpostgres\fP: \fBpostgres://user:password@host/database\fR
|
32
|
+
.RE
|
25
33
|
.LP
|
26
34
|
.TP
|
27
35
|
\fB-v\fR, \fB--verbose\fR
|
@@ -70,6 +78,30 @@ if not given\.
|
|
70
78
|
\fB-h\fR, \fB--help\fR
|
71
79
|
Print help information\.
|
72
80
|
.LP
|
81
|
+
.SH ENVIRONMENT
|
82
|
+
.LP
|
83
|
+
.TP
|
84
|
+
\fIHOME\fP
|
85
|
+
Alternate location for the user\[cq]s home directory\.
|
86
|
+
.LP
|
87
|
+
.TP
|
88
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
89
|
+
Alternate location for the \fB~/.config\fR directory\.
|
90
|
+
.LP
|
91
|
+
.TP
|
92
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
93
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
94
|
+
.LP
|
95
|
+
.SH FILES
|
96
|
+
.LP
|
97
|
+
.TP
|
98
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
99
|
+
The default sqlite3 database file\.
|
100
|
+
.LP
|
101
|
+
.TP
|
102
|
+
\fB~/.config/ronin-db/database.yml\fR
|
103
|
+
Optional database configuration\.
|
104
|
+
.LP
|
73
105
|
.SH AUTHOR
|
74
106
|
.LP
|
75
107
|
.PP
|
data/man/ronin-db-asn.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-asn 1 "
|
1
|
+
# ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -14,8 +14,11 @@ Queries or updates Autonomous System Numbers (ASNs) in the database.
|
|
14
14
|
The database name to connect to. Defaults to `default` if not given.
|
15
15
|
|
16
16
|
`--db-uri` *URI*
|
17
|
-
The explicit database URI to connect to
|
18
|
-
|
17
|
+
The explicit database URI to connect to.
|
18
|
+
|
19
|
+
* **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
|
20
|
+
* **mysql**: `mysql://user:password@host/database`
|
21
|
+
* **postgres**: `postgres://user:password@host/database`
|
19
22
|
|
20
23
|
`-v`, `--verbose`
|
21
24
|
Enables verbose output
|
@@ -53,6 +56,25 @@ Queries or updates Autonomous System Numbers (ASNs) in the database.
|
|
53
56
|
`-h`, `--help`
|
54
57
|
Print help information.
|
55
58
|
|
59
|
+
## ENVIRONMENT
|
60
|
+
|
61
|
+
*HOME*
|
62
|
+
Alternate location for the user's home directory.
|
63
|
+
|
64
|
+
*XDG_CONFIG_HOME*
|
65
|
+
Alternate location for the `~/.config` directory.
|
66
|
+
|
67
|
+
*XDG_DATA_HOME*
|
68
|
+
Alternate location for the `~/.local/share` directory.
|
69
|
+
|
70
|
+
## FILES
|
71
|
+
|
72
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
73
|
+
The default sqlite3 database file.
|
74
|
+
|
75
|
+
`~/.config/ronin-db/database.yml`
|
76
|
+
Optional database configuration.
|
77
|
+
|
56
78
|
## AUTHOR
|
57
79
|
|
58
80
|
Postmodern <postmodern.mod3@gmail.com>
|
data/man/ronin-db-creds.1
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1.
|
1
|
+
.\" Generated by kramdown-man 0.1.9
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-creds 1 "
|
3
|
+
.TH ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
7
|
-
.
|
7
|
+
.PP
|
8
8
|
\fBronin-db creds\fR \[lB]\fIoptions\fP\[rB]
|
9
9
|
.LP
|
10
10
|
.SH DESCRIPTION
|
@@ -20,8 +20,16 @@ The database to connect to\. Defaults to \fBdefault\fR if not given\.
|
|
20
20
|
.LP
|
21
21
|
.TP
|
22
22
|
\fB--db-uri\fR \fIURI\fP
|
23
|
-
The explicit database URI to connect to
|
24
|
-
|
23
|
+
The explicit database URI to connect to\.
|
24
|
+
.LP
|
25
|
+
.RS
|
26
|
+
.IP \(bu 2
|
27
|
+
\fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
|
28
|
+
.IP \(bu 2
|
29
|
+
\fBmysql\fP: \fBmysql://user:password@host/database\fR
|
30
|
+
.IP \(bu 2
|
31
|
+
\fBpostgres\fP: \fBpostgres://user:password@host/database\fR
|
32
|
+
.RE
|
25
33
|
.LP
|
26
34
|
.TP
|
27
35
|
\fB-v\fR, \fB--verbose\fR
|
@@ -37,37 +45,47 @@ Imports the credentials from the given \fIFILE\fP\.
|
|
37
45
|
.LP
|
38
46
|
.TP
|
39
47
|
\fB--delete\fR \fIVALUE\fP
|
40
|
-
Deletes a value from the database\.
|
48
|
+
Deletes a credential value from the database\.
|
41
49
|
.LP
|
42
50
|
.TP
|
43
51
|
\fB--delete-all\fR
|
44
|
-
Deletes every
|
52
|
+
Deletes every credential from the database\.
|
45
53
|
.LP
|
46
54
|
.TP
|
47
55
|
\fB-u\fR, \fB--for-user\fR \fIUSER\fP
|
48
|
-
Searches for
|
56
|
+
Searches for credentials associated with the \fIUSER\fP\.
|
49
57
|
.LP
|
50
58
|
.TP
|
51
59
|
\fB-p\fR, \fB--with-password\fR \fIPASSWORD\fP
|
52
|
-
Searches for
|
60
|
+
Searches for credentials that have the \fIPASSWORD\fP\.
|
53
61
|
.LP
|
54
|
-
.
|
62
|
+
.TP
|
63
|
+
\fB-h\fR, \fB--help\fR
|
64
|
+
Print help information\.
|
65
|
+
.LP
|
66
|
+
.SH ENVIRONMENT
|
55
67
|
.LP
|
56
68
|
.TP
|
57
|
-
\
|
58
|
-
|
69
|
+
\fIHOME\fP
|
70
|
+
Alternate location for the user\[cq]s home directory\.
|
59
71
|
.LP
|
60
72
|
.TP
|
61
|
-
\
|
62
|
-
|
73
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
74
|
+
Alternate location for the \fB~/.config\fR directory\.
|
75
|
+
.LP
|
76
|
+
.TP
|
77
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
78
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
79
|
+
.LP
|
80
|
+
.SH FILES
|
63
81
|
.LP
|
64
82
|
.TP
|
65
|
-
\
|
66
|
-
The default sqlite3
|
83
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
84
|
+
The default sqlite3 database file\.
|
67
85
|
.LP
|
68
86
|
.TP
|
69
|
-
\
|
70
|
-
Optional
|
87
|
+
\fB~/.config/ronin-db/database.yml\fR
|
88
|
+
Optional database configuration\.
|
71
89
|
.LP
|
72
90
|
.SH AUTHOR
|
73
91
|
.LP
|
data/man/ronin-db-creds.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-creds 1 "
|
1
|
+
# ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -14,8 +14,11 @@ Manages credentials.
|
|
14
14
|
The database to connect to. Defaults to `default` if not given.
|
15
15
|
|
16
16
|
`--db-uri` *URI*
|
17
|
-
The explicit database URI to connect to
|
18
|
-
|
17
|
+
The explicit database URI to connect to.
|
18
|
+
|
19
|
+
* **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
|
20
|
+
* **mysql**: `mysql://user:password@host/database`
|
21
|
+
* **postgres**: `postgres://user:password@host/database`
|
19
22
|
|
20
23
|
`-v`, `--verbose`
|
21
24
|
Enable verbose output.
|
@@ -27,30 +30,38 @@ Manages credentials.
|
|
27
30
|
Imports the credentials from the given *FILE*.
|
28
31
|
|
29
32
|
`--delete` *VALUE*
|
30
|
-
Deletes a value from the database.
|
33
|
+
Deletes a credential value from the database.
|
31
34
|
|
32
35
|
`--delete-all`
|
33
|
-
Deletes every
|
36
|
+
Deletes every credential from the database.
|
34
37
|
|
35
38
|
`-u`, `--for-user` *USER*
|
36
|
-
Searches for
|
39
|
+
Searches for credentials associated with the *USER*.
|
37
40
|
|
38
41
|
`-p`, `--with-password` *PASSWORD*
|
39
|
-
Searches for
|
42
|
+
Searches for credentials that have the *PASSWORD*.
|
40
43
|
|
41
|
-
|
44
|
+
`-h`, `--help`
|
45
|
+
Print help information.
|
46
|
+
|
47
|
+
## ENVIRONMENT
|
42
48
|
|
43
|
-
|
44
|
-
|
49
|
+
*HOME*
|
50
|
+
Alternate location for the user's home directory.
|
45
51
|
|
46
|
-
|
47
|
-
|
52
|
+
*XDG_CONFIG_HOME*
|
53
|
+
Alternate location for the `~/.config` directory.
|
54
|
+
|
55
|
+
*XDG_DATA_HOME*
|
56
|
+
Alternate location for the `~/.local/share` directory.
|
57
|
+
|
58
|
+
## FILES
|
48
59
|
|
49
|
-
|
50
|
-
|
60
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
61
|
+
The default sqlite3 database file.
|
51
62
|
|
52
|
-
|
53
|
-
|
63
|
+
`~/.config/ronin-db/database.yml`
|
64
|
+
Optional database configuration.
|
54
65
|
|
55
66
|
## AUTHOR
|
56
67
|
|
data/man/ronin-db-edit.1
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1.
|
1
|
+
.\" Generated by kramdown-man 0.1.9
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-edit 1 "
|
3
|
+
.TH ronin-db-edit 1 "2023-02-01" Ronin DB "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
7
|
-
.
|
7
|
+
.PP
|
8
8
|
\fBronin-db edit\fR \[lB]\fIoptions\fP\[rB]
|
9
9
|
.LP
|
10
10
|
.SH DESCRIPTION
|
@@ -18,22 +18,29 @@ Manually edits the \fB~/.config/ronin-db/database.yml\fR configuration file\.
|
|
18
18
|
\fB-h\fR, \fB--help\fR
|
19
19
|
Print help information\.
|
20
20
|
.LP
|
21
|
-
.SH
|
21
|
+
.SH ENVIRONMENT
|
22
22
|
.LP
|
23
23
|
.TP
|
24
|
-
\
|
25
|
-
|
24
|
+
\fIHOME\fP
|
25
|
+
Alternate location for the user\[cq]s home directory\.
|
26
26
|
.LP
|
27
|
-
.
|
27
|
+
.TP
|
28
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
29
|
+
Alternate location for the \fB~/.config\fR directory\.
|
28
30
|
.LP
|
29
|
-
.
|
30
|
-
HOME
|
31
|
-
|
32
|
-
\fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
|
31
|
+
.TP
|
32
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
33
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
33
34
|
.LP
|
34
|
-
.
|
35
|
-
|
36
|
-
|
35
|
+
.SH FILES
|
36
|
+
.LP
|
37
|
+
.TP
|
38
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
39
|
+
The default sqlite3 database file\.
|
40
|
+
.LP
|
41
|
+
.TP
|
42
|
+
\fB~/.config/ronin-db/database.yml\fR
|
43
|
+
Optional database configuration\.
|
37
44
|
.LP
|
38
45
|
.SH AUTHOR
|
39
46
|
.LP
|
data/man/ronin-db-edit.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-edit 1 "
|
1
|
+
# ronin-db-edit 1 "2023-02-01" Ronin DB "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -13,19 +13,24 @@ Manually edits the `~/.config/ronin-db/database.yml` configuration file.
|
|
13
13
|
`-h`, `--help`
|
14
14
|
Print help information.
|
15
15
|
|
16
|
-
##
|
16
|
+
## ENVIRONMENT
|
17
17
|
|
18
|
-
|
19
|
-
|
18
|
+
*HOME*
|
19
|
+
Alternate location for the user's home directory.
|
20
20
|
|
21
|
-
|
21
|
+
*XDG_CONFIG_HOME*
|
22
|
+
Alternate location for the `~/.config` directory.
|
23
|
+
|
24
|
+
*XDG_DATA_HOME*
|
25
|
+
Alternate location for the `~/.local/share` directory.
|
26
|
+
|
27
|
+
## FILES
|
22
28
|
|
23
|
-
|
24
|
-
|
25
|
-
*~/.config/ronin-db* cache directory within the home directory.
|
29
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
30
|
+
The default sqlite3 database file.
|
26
31
|
|
27
|
-
|
28
|
-
|
32
|
+
`~/.config/ronin-db/database.yml`
|
33
|
+
Optional database configuration.
|
29
34
|
|
30
35
|
## AUTHOR
|
31
36
|
|
data/man/ronin-db-emails.1
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1.
|
1
|
+
.\" Generated by kramdown-man 0.1.9
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-emails 1 "
|
3
|
+
.TH ronin-db-emails 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
7
|
-
.
|
7
|
+
.PP
|
8
8
|
\fBronin-db emails\fR \[lB]\fIoptions\fP\[rB]
|
9
9
|
.LP
|
10
10
|
.SH DESCRIPTION
|
@@ -20,28 +20,36 @@ The database to connect to\. Defaults to \fBdefault\fR if not given\.
|
|
20
20
|
.LP
|
21
21
|
.TP
|
22
22
|
\fB--db-uri\fR \fIURI\fP
|
23
|
-
The explicit database URI to connect to
|
24
|
-
|
23
|
+
The explicit database URI to connect to\.
|
24
|
+
.LP
|
25
|
+
.RS
|
26
|
+
.IP \(bu 2
|
27
|
+
\fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
|
28
|
+
.IP \(bu 2
|
29
|
+
\fBmysql\fP: \fBmysql://user:password@host/database\fR
|
30
|
+
.IP \(bu 2
|
31
|
+
\fBpostgres\fP: \fBpostgres://user:password@host/database\fR
|
32
|
+
.RE
|
25
33
|
.LP
|
26
34
|
.TP
|
27
35
|
\fB-v\fR, \fB--verbose\fR
|
28
36
|
Enable verbose output\.
|
29
37
|
.LP
|
30
38
|
.TP
|
31
|
-
\fB--add\fR \
|
32
|
-
Adds the
|
39
|
+
\fB--add\fR \fIVALUE\fP
|
40
|
+
Adds the email address to the database\.
|
33
41
|
.LP
|
34
42
|
.TP
|
35
43
|
\fB--import\fR \fIFILE\fP
|
36
|
-
Imports the
|
44
|
+
Imports the email addresses from the given \fIFILE\fP\.
|
37
45
|
.LP
|
38
46
|
.TP
|
39
47
|
\fB--delete\fR \fIVALUE\fP
|
40
|
-
Deletes
|
48
|
+
Deletes the email address from the database\.
|
41
49
|
.LP
|
42
50
|
.TP
|
43
51
|
\fB--delete-all\fR
|
44
|
-
Deletes every
|
52
|
+
Deletes every email address from the database\.
|
45
53
|
.LP
|
46
54
|
.TP
|
47
55
|
\fB-H\fR, \fB--with-host\fR \fIHOST\fP
|
@@ -51,27 +59,37 @@ Searches for email addresses associated with the \fIHOST\fP\.
|
|
51
59
|
\fB-I\fR, \fB--with-ip\fR \fIIP\fP
|
52
60
|
Searches for email addresses associated with the IP address\.
|
53
61
|
.LP
|
54
|
-
.
|
62
|
+
.PP
|
55
63
|
\fB-u\fR, \fB--with-users\fR \fINAME\fP \[lB]\.\.\.\[rB]
|
56
64
|
Searches for email addresses associated with the user NAME(s)\.
|
57
65
|
.LP
|
58
|
-
.
|
66
|
+
.TP
|
67
|
+
\fB-h\fR, \fB--help\fR
|
68
|
+
Print help information\.
|
69
|
+
.LP
|
70
|
+
.SH ENVIRONMENT
|
71
|
+
.LP
|
72
|
+
.TP
|
73
|
+
\fIHOME\fP
|
74
|
+
Alternate location for the user\[cq]s home directory\.
|
59
75
|
.LP
|
60
76
|
.TP
|
61
|
-
\
|
62
|
-
|
77
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
78
|
+
Alternate location for the \fB~/.config\fR directory\.
|
63
79
|
.LP
|
64
80
|
.TP
|
65
|
-
\
|
66
|
-
|
81
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
82
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
83
|
+
.LP
|
84
|
+
.SH FILES
|
67
85
|
.LP
|
68
86
|
.TP
|
69
|
-
\
|
70
|
-
The default sqlite3
|
87
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
88
|
+
The default sqlite3 database file\.
|
71
89
|
.LP
|
72
90
|
.TP
|
73
|
-
\
|
74
|
-
Optional
|
91
|
+
\fB~/.config/ronin-db/database.yml\fR
|
92
|
+
Optional database configuration\.
|
75
93
|
.LP
|
76
94
|
.SH AUTHOR
|
77
95
|
.LP
|
data/man/ronin-db-emails.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-emails 1 "
|
1
|
+
# ronin-db-emails 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -14,23 +14,26 @@ Manages email addresses.
|
|
14
14
|
The database to connect to. Defaults to `default` if not given.
|
15
15
|
|
16
16
|
`--db-uri` *URI*
|
17
|
-
The explicit database URI to connect to
|
18
|
-
|
17
|
+
The explicit database URI to connect to.
|
18
|
+
|
19
|
+
* **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
|
20
|
+
* **mysql**: `mysql://user:password@host/database`
|
21
|
+
* **postgres**: `postgres://user:password@host/database`
|
19
22
|
|
20
23
|
`-v`, `--verbose`
|
21
24
|
Enable verbose output.
|
22
25
|
|
23
|
-
`--add` *
|
24
|
-
Adds the
|
26
|
+
`--add` *VALUE*
|
27
|
+
Adds the email address to the database.
|
25
28
|
|
26
29
|
`--import` *FILE*
|
27
|
-
Imports the
|
30
|
+
Imports the email addresses from the given *FILE*.
|
28
31
|
|
29
32
|
`--delete` *VALUE*
|
30
|
-
Deletes
|
33
|
+
Deletes the email address from the database.
|
31
34
|
|
32
35
|
`--delete-all`
|
33
|
-
Deletes every
|
36
|
+
Deletes every email address from the database.
|
34
37
|
|
35
38
|
`-H`, `--with-host` *HOST*
|
36
39
|
Searches for email addresses associated with the *HOST*.
|
@@ -41,19 +44,27 @@ Manages email addresses.
|
|
41
44
|
`-u`, `--with-users` *NAME* [...]
|
42
45
|
Searches for email addresses associated with the user NAME(s).
|
43
46
|
|
44
|
-
|
47
|
+
`-h`, `--help`
|
48
|
+
Print help information.
|
49
|
+
|
50
|
+
## ENVIRONMENT
|
45
51
|
|
46
|
-
|
47
|
-
|
52
|
+
*HOME*
|
53
|
+
Alternate location for the user's home directory.
|
48
54
|
|
49
|
-
|
50
|
-
|
55
|
+
*XDG_CONFIG_HOME*
|
56
|
+
Alternate location for the `~/.config` directory.
|
57
|
+
|
58
|
+
*XDG_DATA_HOME*
|
59
|
+
Alternate location for the `~/.local/share` directory.
|
60
|
+
|
61
|
+
## FILES
|
51
62
|
|
52
|
-
|
53
|
-
|
63
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
64
|
+
The default sqlite3 database file.
|
54
65
|
|
55
|
-
|
56
|
-
|
66
|
+
`~/.config/ronin-db/database.yml`
|
67
|
+
Optional database configuration.
|
57
68
|
|
58
69
|
## AUTHOR
|
59
70
|
|
data/man/ronin-db-hosts.1
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
.\" Generated by kramdown-man 0.1.
|
1
|
+
.\" Generated by kramdown-man 0.1.9
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-hosts 1 "
|
3
|
+
.TH ronin-db-hosts 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
7
|
-
.
|
7
|
+
.PP
|
8
8
|
\fBronin-db hosts\fR \[lB]\fIoptions\fP\[rB]
|
9
9
|
.LP
|
10
10
|
.SH DESCRIPTION
|
@@ -20,16 +20,24 @@ The database to connect to\. Defaults to \fBdefault\fR if not given\.
|
|
20
20
|
.LP
|
21
21
|
.TP
|
22
22
|
\fB--db-uri\fR \fIURI\fP
|
23
|
-
The explicit database URI to connect to
|
24
|
-
|
23
|
+
The explicit database URI to connect to\.
|
24
|
+
.LP
|
25
|
+
.RS
|
26
|
+
.IP \(bu 2
|
27
|
+
\fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
|
28
|
+
.IP \(bu 2
|
29
|
+
\fBmysql\fP: \fBmysql://user:password@host/database\fR
|
30
|
+
.IP \(bu 2
|
31
|
+
\fBpostgres\fP: \fBpostgres://user:password@host/database\fR
|
32
|
+
.RE
|
25
33
|
.LP
|
26
34
|
.TP
|
27
35
|
\fB-v\fR, \fB--verbose\fR
|
28
36
|
Enable verbose output\.
|
29
37
|
.LP
|
30
38
|
.TP
|
31
|
-
\fB--add\fR \
|
32
|
-
Adds the
|
39
|
+
\fB--add\fR \fIVALUE\fP
|
40
|
+
Adds the hostname to the database\.
|
33
41
|
.LP
|
34
42
|
.TP
|
35
43
|
\fB--import\fR \fIFILE\fP
|
@@ -59,23 +67,33 @@ Searches for HostNames belonging to the DOMAIN (\fBco.uk\fR)\.
|
|
59
67
|
\fB-T\fR, \fB--tld\fR \fITLD\fP
|
60
68
|
Searches for HostNames with the Top\-Level\-Domain (TLD) (\fBru\fR)\.
|
61
69
|
.LP
|
62
|
-
.
|
70
|
+
.TP
|
71
|
+
\fB-h\fR, \fB--help\fR
|
72
|
+
Print help information\.
|
73
|
+
.LP
|
74
|
+
.SH ENVIRONMENT
|
63
75
|
.LP
|
64
76
|
.TP
|
65
|
-
\
|
66
|
-
|
77
|
+
\fIHOME\fP
|
78
|
+
Alternate location for the user\[cq]s home directory\.
|
67
79
|
.LP
|
68
80
|
.TP
|
69
|
-
\
|
70
|
-
|
81
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
82
|
+
Alternate location for the \fB~/.config\fR directory\.
|
83
|
+
.LP
|
84
|
+
.TP
|
85
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
86
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
87
|
+
.LP
|
88
|
+
.SH FILES
|
71
89
|
.LP
|
72
90
|
.TP
|
73
|
-
\
|
74
|
-
The default sqlite3
|
91
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
92
|
+
The default sqlite3 database file\.
|
75
93
|
.LP
|
76
94
|
.TP
|
77
|
-
\
|
78
|
-
Optional
|
95
|
+
\fB~/.config/ronin-db/database.yml\fR
|
96
|
+
Optional database configuration\.
|
79
97
|
.LP
|
80
98
|
.SH AUTHOR
|
81
99
|
.LP
|