ronin-db 0.1.0-java → 0.1.3-java

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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/.document +0 -1
  3. data/.github/workflows/ruby.yml +15 -1
  4. data/.rubocop.yml +16 -0
  5. data/ChangeLog.md +19 -1
  6. data/Gemfile +7 -3
  7. data/README.md +0 -1
  8. data/Rakefile +2 -3
  9. data/bin/ronin-db +6 -7
  10. data/lib/ronin/db/cli/command.rb +3 -0
  11. data/lib/ronin/db/cli/commands/asn.rb +1 -1
  12. data/lib/ronin/db/cli/commands/creds.rb +18 -18
  13. data/lib/ronin/db/cli/commands/migrate.rb +1 -1
  14. data/lib/ronin/db/cli/commands/urls.rb +6 -6
  15. data/lib/ronin/db/cli/resources_command.rb +0 -2
  16. data/lib/ronin/db/cli/uri_methods.rb +8 -3
  17. data/lib/ronin/db/cli.rb +5 -0
  18. data/lib/ronin/db/config_file.rb +14 -8
  19. data/lib/ronin/db/exceptions.rb +9 -0
  20. data/lib/ronin/db/version.rb +1 -1
  21. data/lib/ronin/db.rb +15 -1
  22. data/man/ronin-db-add.1 +45 -14
  23. data/man/ronin-db-add.1.md +30 -10
  24. data/man/ronin-db-asn.1 +37 -5
  25. data/man/ronin-db-asn.1.md +25 -3
  26. data/man/ronin-db-creds.1 +36 -18
  27. data/man/ronin-db-creds.1.md +27 -16
  28. data/man/ronin-db-edit.1 +21 -14
  29. data/man/ronin-db-edit.1.md +15 -10
  30. data/man/ronin-db-emails.1 +38 -20
  31. data/man/ronin-db-emails.1.md +28 -17
  32. data/man/ronin-db-hosts.1 +34 -16
  33. data/man/ronin-db-hosts.1.md +25 -14
  34. data/man/ronin-db-ips.1 +37 -19
  35. data/man/ronin-db-ips.1.md +28 -17
  36. data/man/ronin-db-irb.1 +30 -14
  37. data/man/ronin-db-irb.1.md +19 -10
  38. data/man/ronin-db-list.1 +21 -14
  39. data/man/ronin-db-list.1.md +15 -10
  40. data/man/ronin-db-migrate.1 +36 -3
  41. data/man/ronin-db-migrate.1.md +24 -1
  42. data/man/ronin-db-remove.1 +21 -14
  43. data/man/ronin-db-remove.1.md +15 -10
  44. data/man/ronin-db-urls.1 +39 -21
  45. data/man/ronin-db-urls.1.md +28 -17
  46. data/ronin-db.gemspec +4 -3
  47. metadata +4 -3
data/man/ronin-db-asn.1 CHANGED
@@ -1,10 +1,10 @@
1
- .\" Generated by kramdown-man 0.1.8
1
+ .\" Generated by kramdown-man 0.1.9
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-asn 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
7
- .HP
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
- (ex: \fBpostgres://user:password@host/db\fR)\.
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
@@ -1,4 +1,4 @@
1
- # ronin-db-asn 1 "April 2012" Ronin "User Manuals"
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
- (ex: `postgres://user:password@host/db`).
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.8
1
+ .\" Generated by kramdown-man 0.1.9
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-creds 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
7
- .HP
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
- (ex: \fBmysql://user:password@host/ronin\fR)\.
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 value from the database\.
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 Credentials associated with the USER\.
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 Credentials that have the PASSWORD\.
60
+ Searches for credentials that have the \fIPASSWORD\fP\.
53
61
  .LP
54
- .SH FILES
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
- \fI\[ti]\[sl]\.ronin\[sl]\fP
58
- Ronin configuration directory\.
69
+ \fIHOME\fP
70
+ Alternate location for the user\[cq]s home directory\.
59
71
  .LP
60
72
  .TP
61
- \fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
62
- Database log\.
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
- \fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
66
- The default sqlite3 Database file\.
83
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
84
+ The default sqlite3 database file\.
67
85
  .LP
68
86
  .TP
69
- \fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
70
- Optional Database configuration\.
87
+ \fB~/.config/ronin-db/database.yml\fR
88
+ Optional database configuration\.
71
89
  .LP
72
90
  .SH AUTHOR
73
91
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-db-creds 1 "April 2012" Ronin "User Manuals"
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
- (ex: `mysql://user:password@host/ronin`).
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 value from the database.
36
+ Deletes every credential from the database.
34
37
 
35
38
  `-u`, `--for-user` *USER*
36
- Searches for Credentials associated with the USER.
39
+ Searches for credentials associated with the *USER*.
37
40
 
38
41
  `-p`, `--with-password` *PASSWORD*
39
- Searches for Credentials that have the PASSWORD.
42
+ Searches for credentials that have the *PASSWORD*.
40
43
 
41
- ## FILES
44
+ `-h`, `--help`
45
+ Print help information.
46
+
47
+ ## ENVIRONMENT
42
48
 
43
- *~/.ronin/*
44
- Ronin configuration directory.
49
+ *HOME*
50
+ Alternate location for the user's home directory.
45
51
 
46
- *~/.ronin/database.log*
47
- Database log.
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
- *~/.ronin/database.sqlite3*
50
- The default sqlite3 Database file.
60
+ `~/.local/share/ronin-db/database.sqlite3`
61
+ The default sqlite3 database file.
51
62
 
52
- *~/.ronin/database.yml*
53
- Optional Database configuration.
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.8
1
+ .\" Generated by kramdown-man 0.1.9
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-edit 1 "2022-01-01" Ronin DB "User Manuals"
3
+ .TH ronin-db-edit 1 "2023-02-01" Ronin DB "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
7
- .HP
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 FILES
21
+ .SH ENVIRONMENT
22
22
  .LP
23
23
  .TP
24
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
25
- The \fBronin-db\fR database(s) configuration file\.
24
+ \fIHOME\fP
25
+ Alternate location for the user\[cq]s home directory\.
26
26
  .LP
27
- .SH ENVIRONMENT
27
+ .TP
28
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
29
+ Alternate location for the \fB~/.config\fR directory\.
28
30
  .LP
29
- .PP
30
- HOME
31
- Specifies the home directory of the user\. Ronin will search for the
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
- .PP
35
- XDG\[ru]CONFIG\[ru]HOME
36
- Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
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
@@ -1,4 +1,4 @@
1
- # ronin-db-edit 1 "2022-01-01" Ronin DB "User Manuals"
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
- ## FILES
16
+ ## ENVIRONMENT
17
17
 
18
- *~/.config/ronin-db/database.yml*
19
- The `ronin-db` database(s) configuration file.
18
+ *HOME*
19
+ Alternate location for the user's home directory.
20
20
 
21
- ## ENVIRONMENT
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
- HOME
24
- Specifies the home directory of the user. Ronin will search for the
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
- XDG_CONFIG_HOME
28
- Specifies the cache directory to use. Defaults to *$HOME/.config*.
32
+ `~/.config/ronin-db/database.yml`
33
+ Optional database configuration.
29
34
 
30
35
  ## AUTHOR
31
36
 
@@ -1,10 +1,10 @@
1
- .\" Generated by kramdown-man 0.1.8
1
+ .\" Generated by kramdown-man 0.1.9
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-emails 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-emails 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
7
- .HP
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
- (ex: \fBmysql://user:password@host/ronin\fR)\.
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 \fIUSER\fP:\fIPASSWORD\fP
32
- Adds the \fIUSER\fP and \fIPASSWORD\fP to the database\.
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 credentials from the given \fIFILE\fP\.
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 a value from the database\.
48
+ Deletes the email address from the database\.
41
49
  .LP
42
50
  .TP
43
51
  \fB--delete-all\fR
44
- Deletes every value from the database\.
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
- .HP
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
- .SH FILES
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
- \fI\[ti]\[sl]\.ronin\[sl]\fP
62
- Ronin configuration directory\.
77
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
78
+ Alternate location for the \fB~/.config\fR directory\.
63
79
  .LP
64
80
  .TP
65
- \fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
66
- Database log\.
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
- \fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
70
- The default sqlite3 Database file\.
87
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
88
+ The default sqlite3 database file\.
71
89
  .LP
72
90
  .TP
73
- \fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
74
- Optional Database configuration\.
91
+ \fB~/.config/ronin-db/database.yml\fR
92
+ Optional database configuration\.
75
93
  .LP
76
94
  .SH AUTHOR
77
95
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-db-emails 1 "April 2012" Ronin "User Manuals"
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
- (ex: `mysql://user:password@host/ronin`).
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` *USER*:*PASSWORD*
24
- Adds the *USER* and *PASSWORD* to the database.
26
+ `--add` *VALUE*
27
+ Adds the email address to the database.
25
28
 
26
29
  `--import` *FILE*
27
- Imports the credentials from the given *FILE*.
30
+ Imports the email addresses from the given *FILE*.
28
31
 
29
32
  `--delete` *VALUE*
30
- Deletes a value from the database.
33
+ Deletes the email address from the database.
31
34
 
32
35
  `--delete-all`
33
- Deletes every value from the database.
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
- ## FILES
47
+ `-h`, `--help`
48
+ Print help information.
49
+
50
+ ## ENVIRONMENT
45
51
 
46
- *~/.ronin/*
47
- Ronin configuration directory.
52
+ *HOME*
53
+ Alternate location for the user's home directory.
48
54
 
49
- *~/.ronin/database.log*
50
- Database log.
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
- *~/.ronin/database.sqlite3*
53
- The default sqlite3 Database file.
63
+ `~/.local/share/ronin-db/database.sqlite3`
64
+ The default sqlite3 database file.
54
65
 
55
- *~/.ronin/database.yml*
56
- Optional Database configuration.
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.8
1
+ .\" Generated by kramdown-man 0.1.9
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-hosts 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-hosts 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
7
- .HP
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
- (ex: \fBmysql://user:password@host/ronin\fR)\.
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 \fIUSER\fP:\fIPASSWORD\fP
32
- Adds the \fIUSER\fP and \fIPASSWORD\fP to the database\.
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
- .SH FILES
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
- \fI\[ti]\[sl]\.ronin\[sl]\fP
66
- Ronin configuration directory\.
77
+ \fIHOME\fP
78
+ Alternate location for the user\[cq]s home directory\.
67
79
  .LP
68
80
  .TP
69
- \fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
70
- Database log\.
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
- \fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
74
- The default sqlite3 Database file\.
91
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
92
+ The default sqlite3 database file\.
75
93
  .LP
76
94
  .TP
77
- \fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
78
- Optional Database configuration\.
95
+ \fB~/.config/ronin-db/database.yml\fR
96
+ Optional database configuration\.
79
97
  .LP
80
98
  .SH AUTHOR
81
99
  .LP