ronin-db 0.1.3 → 0.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/.gitignore +1 -0
  4. data/ChangeLog.md +28 -0
  5. data/Gemfile +6 -4
  6. data/README.md +17 -5
  7. data/Rakefile +13 -35
  8. data/data/completions/ronin-db +271 -0
  9. data/gemspec.yml +17 -2
  10. data/lib/ronin/db/cli/command.rb +1 -1
  11. data/lib/ronin/db/cli/commands/add.rb +1 -1
  12. data/lib/ronin/db/cli/commands/asn.rb +12 -2
  13. data/lib/ronin/db/cli/commands/certs.rb +322 -0
  14. data/lib/ronin/db/cli/commands/completion.rb +63 -0
  15. data/lib/ronin/db/cli/commands/creds.rb +2 -1
  16. data/lib/ronin/db/cli/commands/edit.rb +1 -1
  17. data/lib/ronin/db/cli/commands/emails.rb +22 -1
  18. data/lib/ronin/db/cli/commands/hosts.rb +2 -1
  19. data/lib/ronin/db/cli/commands/ips.rb +2 -1
  20. data/lib/ronin/db/cli/commands/irb.rb +8 -4
  21. data/lib/ronin/db/cli/commands/list.rb +1 -1
  22. data/lib/ronin/db/cli/commands/migrate.rb +12 -8
  23. data/lib/ronin/db/cli/commands/open_ports.rb +102 -0
  24. data/lib/ronin/db/cli/commands/oses.rb +95 -0
  25. data/lib/ronin/db/cli/commands/passwords.rb +83 -0
  26. data/lib/ronin/db/cli/commands/people.rb +185 -0
  27. data/lib/ronin/db/cli/commands/phone_numbers.rb +136 -0
  28. data/lib/ronin/db/cli/commands/ports.rb +103 -0
  29. data/lib/ronin/db/cli/commands/remove.rb +1 -1
  30. data/lib/ronin/db/cli/commands/services.rb +102 -0
  31. data/lib/ronin/db/cli/commands/software.rb +95 -0
  32. data/lib/ronin/db/cli/commands/street_addresses.rb +129 -0
  33. data/lib/ronin/db/cli/commands/urls.rb +2 -1
  34. data/lib/ronin/db/cli/commands/web_vulns.rb +235 -0
  35. data/lib/ronin/db/cli/database_options.rb +87 -0
  36. data/lib/ronin/db/cli/deletable.rb +85 -0
  37. data/lib/ronin/db/cli/importable.rb +108 -0
  38. data/lib/ronin/db/cli/model_command.rb +8 -6
  39. data/lib/ronin/db/cli/modifiable.rb +12 -104
  40. data/lib/ronin/db/cli/printing.rb +58 -0
  41. data/lib/ronin/db/cli/ruby_shell.rb +1 -1
  42. data/lib/ronin/db/cli/uri_methods.rb +1 -1
  43. data/lib/ronin/db/cli.rb +3 -1
  44. data/lib/ronin/db/config_file.rb +1 -1
  45. data/lib/ronin/db/exceptions.rb +1 -1
  46. data/lib/ronin/db/home.rb +1 -1
  47. data/lib/ronin/db/root.rb +1 -1
  48. data/lib/ronin/db/tasks.rb +87 -0
  49. data/lib/ronin/db/version.rb +2 -2
  50. data/lib/ronin/db.rb +15 -7
  51. data/man/ronin-db-add.1 +47 -69
  52. data/man/ronin-db-add.1.md +26 -22
  53. data/man/ronin-db-asn.1 +36 -54
  54. data/man/ronin-db-asn.1.md +29 -19
  55. data/man/ronin-db-certs.1 +108 -0
  56. data/man/ronin-db-certs.1.md +106 -0
  57. data/man/ronin-db-completion.1 +76 -0
  58. data/man/ronin-db-completion.1.md +78 -0
  59. data/man/ronin-db-creds.1 +28 -46
  60. data/man/ronin-db-creds.1.md +23 -16
  61. data/man/ronin-db-edit.1 +15 -26
  62. data/man/ronin-db-edit.1.md +11 -7
  63. data/man/ronin-db-emails.1 +36 -49
  64. data/man/ronin-db-emails.1.md +30 -17
  65. data/man/ronin-db-hosts.1 +31 -51
  66. data/man/ronin-db-hosts.1.md +25 -18
  67. data/man/ronin-db-ips.1 +31 -52
  68. data/man/ronin-db-ips.1.md +26 -19
  69. data/man/ronin-db-irb.1 +22 -35
  70. data/man/ronin-db-irb.1.md +17 -10
  71. data/man/ronin-db-list.1 +16 -30
  72. data/man/ronin-db-list.1.md +13 -9
  73. data/man/ronin-db-migrate.1 +22 -35
  74. data/man/ronin-db-migrate.1.md +17 -10
  75. data/man/ronin-db-open-ports.1 +72 -0
  76. data/man/ronin-db-open-ports.1.md +70 -0
  77. data/man/ronin-db-oses.1 +72 -0
  78. data/man/ronin-db-oses.1.md +70 -0
  79. data/man/ronin-db-passwords.1 +75 -0
  80. data/man/ronin-db-passwords.1.md +73 -0
  81. data/man/ronin-db-people.1 +96 -0
  82. data/man/ronin-db-people.1.md +94 -0
  83. data/man/ronin-db-phone-numbers.1 +93 -0
  84. data/man/ronin-db-phone-numbers.1.md +91 -0
  85. data/man/ronin-db-ports.1 +87 -0
  86. data/man/ronin-db-ports.1.md +85 -0
  87. data/man/ronin-db-remove.1 +15 -28
  88. data/man/ronin-db-remove.1.md +12 -8
  89. data/man/ronin-db-services.1 +84 -0
  90. data/man/ronin-db-services.1.md +82 -0
  91. data/man/ronin-db-software.1 +72 -0
  92. data/man/ronin-db-software.1.md +70 -0
  93. data/man/ronin-db-street-addresses.1 +81 -0
  94. data/man/ronin-db-street-addresses.1.md +79 -0
  95. data/man/ronin-db-urls.1 +37 -60
  96. data/man/ronin-db-urls.1.md +28 -21
  97. data/man/ronin-db-web-vulns.1 +87 -0
  98. data/man/ronin-db-web-vulns.1.md +85 -0
  99. data/man/ronin-db.1 +118 -0
  100. data/man/ronin-db.1.md +99 -0
  101. data/scripts/setup +58 -0
  102. metadata +52 -9
  103. data/lib/ronin/db/cli/database_command.rb +0 -71
  104. data/lib/ronin/db/cli/resources_command.rb +0 -118
data/man/ronin-db-hosts.1 CHANGED
@@ -1,104 +1,84 @@
1
- .\" Generated by kramdown-man 0.1.9
1
+ .\" Generated by kramdown-man 1.0.1
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-hosts 1 "2023-02-01" Ronin "User Manuals"
4
- .LP
3
+ .TH ronin-db-hosts 1 "2023-02-01" Ronin DB "User Manuals"
4
+ .SH NAME
5
+ .PP
6
+ ronin\-db\-hosts \- Manages host names in the database
5
7
  .SH SYNOPSIS
6
- .LP
7
8
  .PP
8
- \fBronin-db hosts\fR \[lB]\fIoptions\fP\[rB]
9
- .LP
9
+ \fBronin\-db hosts\fR \[lB]\fIoptions\fP\[rB]
10
10
  .SH DESCRIPTION
11
- .LP
12
11
  .PP
13
12
  Manages host names\.
14
- .LP
15
13
  .SH OPTIONS
16
- .LP
17
14
  .TP
18
- \fB--db\fR \fINAME\fP
15
+ \fB\-\-db\fR \fINAME\fP
19
16
  The database to connect to\. Defaults to \fBdefault\fR if not given\.
20
- .LP
21
17
  .TP
22
- \fB--db-uri\fR \fIURI\fP
18
+ \fB\-\-db\-uri\fR \fIURI\fP
23
19
  The explicit database URI to connect to\.
24
- .LP
20
+ .RS
25
21
  .RS
26
22
  .IP \(bu 2
27
- \fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
23
+ \fBsqlite3\fP: \fBsqlite3:relative\[sl]path\.db\fR or \fBsqlite3:\[sl]\[sl]\[sl]absolute\[sl]path\.db\fR
28
24
  .IP \(bu 2
29
- \fBmysql\fP: \fBmysql://user:password@host/database\fR
25
+ \fBmysql\fP: \fBmysql:\[sl]\[sl]user:password\[at]host\[sl]database\fR
30
26
  .IP \(bu 2
31
- \fBpostgres\fP: \fBpostgres://user:password@host/database\fR
27
+ \fBpostgres\fP: \fBpostgres:\[sl]\[sl]user:password\[at]host\[sl]database\fR
32
28
  .RE
33
- .LP
29
+ .RE
30
+ .TP
31
+ \fB\-\-db\-file\fR \fIPATH\fP
32
+ The sqlite3 database file to use\.
34
33
  .TP
35
- \fB-v\fR, \fB--verbose\fR
34
+ \fB\-v\fR, \fB\-\-verbose\fR
36
35
  Enable verbose output\.
37
- .LP
38
36
  .TP
39
- \fB--add\fR \fIVALUE\fP
37
+ \fB\-\-add\fR \fIVALUE\fP
40
38
  Adds the hostname to the database\.
41
- .LP
42
39
  .TP
43
- \fB--import\fR \fIFILE\fP
40
+ \fB\-\-import\fR \fIFILE\fP
44
41
  Imports the credentials from the given \fIFILE\fP\.
45
- .LP
46
42
  .TP
47
- \fB--delete\fR \fIVALUE\fP
43
+ \fB\-\-delete\fR \fIVALUE\fP
48
44
  Deletes a value from the database\.
49
- .LP
50
45
  .TP
51
- \fB--delete-all\fR
46
+ \fB\-\-delete\-all\fR
52
47
  Deletes every value from the database\.
53
- .LP
54
48
  .TP
55
- \fB-I\fR, \fB--with-ip\fR \fIIP\fP
49
+ \fB\-I\fR, \fB\-\-with\-ip\fR \fIIP\fP
56
50
  Searches for HostNames associated with the IP address\.
57
- .LP
58
51
  .TP
59
- \fB-p\fR, \fB--with-port\fR \fIPORT\fP
52
+ \fB\-p\fR, \fB\-\-with\-port\fR \fIPORT\fP
60
53
  Searches for HostNames associated with the \fIPORT\fP\.
61
- .LP
62
54
  .TP
63
- \fB-D\fR, \fB--domain\fR \fIDOMAIN\fP
64
- Searches for HostNames belonging to the DOMAIN (\fBco.uk\fR)\.
65
- .LP
55
+ \fB\-D\fR, \fB\-\-domain\fR \fIDOMAIN\fP
56
+ Searches for HostNames belonging to the DOMAIN (\fBco\.uk\fR)\.
66
57
  .TP
67
- \fB-T\fR, \fB--tld\fR \fITLD\fP
58
+ \fB\-T\fR, \fB\-\-tld\fR \fITLD\fP
68
59
  Searches for HostNames with the Top\-Level\-Domain (TLD) (\fBru\fR)\.
69
- .LP
70
60
  .TP
71
- \fB-h\fR, \fB--help\fR
61
+ \fB\-h\fR, \fB\-\-help\fR
72
62
  Print help information\.
73
- .LP
74
63
  .SH ENVIRONMENT
75
- .LP
76
64
  .TP
77
65
  \fIHOME\fP
78
66
  Alternate location for the user\[cq]s home directory\.
79
- .LP
80
67
  .TP
81
68
  \fIXDG\[ru]CONFIG\[ru]HOME\fP
82
- Alternate location for the \fB~/.config\fR directory\.
83
- .LP
69
+ Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
84
70
  .TP
85
71
  \fIXDG\[ru]DATA\[ru]HOME\fP
86
- Alternate location for the \fB~/.local/share\fR directory\.
87
- .LP
72
+ Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
88
73
  .SH FILES
89
- .LP
90
74
  .TP
91
- \fB~/.local/share/ronin-db/database.sqlite3\fR
75
+ \fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
92
76
  The default sqlite3 database file\.
93
- .LP
94
77
  .TP
95
- \fB~/.config/ronin-db/database.yml\fR
78
+ \fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
96
79
  Optional database configuration\.
97
- .LP
98
80
  .SH AUTHOR
99
- .LP
100
81
  .PP
101
82
  Postmodern
102
83
  .MT postmodern\.mod3\[at]gmail\.com
103
84
  .ME
104
- .LP
@@ -1,4 +1,8 @@
1
- # ronin-db-hosts 1 "2023-02-01" Ronin "User Manuals"
1
+ # ronin-db-hosts 1 "2023-02-01" Ronin DB "User Manuals"
2
+
3
+ ## NAME
4
+
5
+ ronin-db-hosts - Manages host names in the database
2
6
 
3
7
  ## SYNOPSIS
4
8
 
@@ -11,63 +15,66 @@ Manages host names.
11
15
  ## OPTIONS
12
16
 
13
17
  `--db` *NAME*
14
- The database to connect to. Defaults to `default` if not given.
18
+ : The database to connect to. Defaults to `default` if not given.
15
19
 
16
20
  `--db-uri` *URI*
17
- The explicit database URI to connect to.
21
+ : The explicit database URI to connect to.
18
22
 
19
23
  * **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
20
24
  * **mysql**: `mysql://user:password@host/database`
21
25
  * **postgres**: `postgres://user:password@host/database`
22
26
 
27
+ `--db-file` *PATH*
28
+ : The sqlite3 database file to use.
29
+
23
30
  `-v`, `--verbose`
24
- Enable verbose output.
31
+ : Enable verbose output.
25
32
 
26
33
  `--add` *VALUE*
27
- Adds the hostname to the database.
34
+ : Adds the hostname to the database.
28
35
 
29
36
  `--import` *FILE*
30
- Imports the credentials from the given *FILE*.
37
+ : Imports the credentials from the given *FILE*.
31
38
 
32
39
  `--delete` *VALUE*
33
- Deletes a value from the database.
40
+ : Deletes a value from the database.
34
41
 
35
42
  `--delete-all`
36
- Deletes every value from the database.
43
+ : Deletes every value from the database.
37
44
 
38
45
  `-I`, `--with-ip` *IP*
39
- Searches for HostNames associated with the IP address.
46
+ : Searches for HostNames associated with the IP address.
40
47
 
41
48
  `-p`, `--with-port` *PORT*
42
- Searches for HostNames associated with the *PORT*.
49
+ : Searches for HostNames associated with the *PORT*.
43
50
 
44
51
  `-D`, `--domain` *DOMAIN*
45
- Searches for HostNames belonging to the DOMAIN (`co.uk`).
52
+ : Searches for HostNames belonging to the DOMAIN (`co.uk`).
46
53
 
47
54
  `-T`, `--tld` *TLD*
48
- Searches for HostNames with the Top-Level-Domain (TLD) (`ru`).
55
+ : Searches for HostNames with the Top-Level-Domain (TLD) (`ru`).
49
56
 
50
57
  `-h`, `--help`
51
- Print help information.
58
+ : Print help information.
52
59
 
53
60
  ## ENVIRONMENT
54
61
 
55
62
  *HOME*
56
- Alternate location for the user's home directory.
63
+ : Alternate location for the user's home directory.
57
64
 
58
65
  *XDG_CONFIG_HOME*
59
- Alternate location for the `~/.config` directory.
66
+ : Alternate location for the `~/.config` directory.
60
67
 
61
68
  *XDG_DATA_HOME*
62
- Alternate location for the `~/.local/share` directory.
69
+ : Alternate location for the `~/.local/share` directory.
63
70
 
64
71
  ## FILES
65
72
 
66
73
  `~/.local/share/ronin-db/database.sqlite3`
67
- The default sqlite3 database file.
74
+ : The default sqlite3 database file.
68
75
 
69
76
  `~/.config/ronin-db/database.yml`
70
- Optional database configuration.
77
+ : Optional database configuration.
71
78
 
72
79
  ## AUTHOR
73
80
 
data/man/ronin-db-ips.1 CHANGED
@@ -1,108 +1,87 @@
1
- .\" Generated by kramdown-man 0.1.9
1
+ .\" Generated by kramdown-man 1.0.1
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-ips 1 "2023-02-01" Ronin "User Manuals"
4
- .LP
3
+ .TH ronin-db-ips 1 "2023-02-01" Ronin DB "User Manuals"
4
+ .SH NAME
5
+ .PP
6
+ ronin\-db\-ips \- Manages IP addresses in the database
5
7
  .SH SYNOPSIS
6
- .LP
7
8
  .PP
8
- \fBronin-db ips\fR \[lB]\fIoptions\fP\[rB]
9
- .LP
9
+ \fBronin\-db ips\fR \[lB]\fIoptions\fP\[rB]
10
10
  .SH DESCRIPTION
11
- .LP
12
11
  .PP
13
12
  Manages IP addresses\.
14
- .LP
15
13
  .SH OPTIONS
16
- .LP
17
14
  .TP
18
- \fB--db\fR \fINAME\fP
15
+ \fB\-\-db\fR \fINAME\fP
19
16
  The database to connect to\. Defaults to \fBdefault\fR if not given\.
20
- .LP
21
17
  .TP
22
- \fB--db-uri\fR \fIURI\fP
18
+ \fB\-\-db\-uri\fR \fIURI\fP
23
19
  The explicit database URI to connect to\.
24
- .LP
20
+ .RS
25
21
  .RS
26
22
  .IP \(bu 2
27
- \fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
23
+ \fBsqlite3\fP: \fBsqlite3:relative\[sl]path\.db\fR or \fBsqlite3:\[sl]\[sl]\[sl]absolute\[sl]path\.db\fR
28
24
  .IP \(bu 2
29
- \fBmysql\fP: \fBmysql://user:password@host/database\fR
25
+ \fBmysql\fP: \fBmysql:\[sl]\[sl]user:password\[at]host\[sl]database\fR
30
26
  .IP \(bu 2
31
- \fBpostgres\fP: \fBpostgres://user:password@host/database\fR
27
+ \fBpostgres\fP: \fBpostgres:\[sl]\[sl]user:password\[at]host\[sl]database\fR
32
28
  .RE
33
- .LP
29
+ .RE
30
+ .TP
31
+ \fB\-\-db\-file\fR \fIPATH\fP
32
+ The sqlite3 database file to use\.
34
33
  .TP
35
- \fB-v\fR, \fB--verbose\fR
34
+ \fB\-v\fR, \fB\-\-verbose\fR
36
35
  Enable verbose output\.
37
- .LP
38
36
  .TP
39
- \fB--add\fR \fIVALUE\fP
37
+ \fB\-\-add\fR \fIVALUE\fP
40
38
  Adds the IP address to the database\.
41
- .LP
42
39
  .TP
43
- \fB--import\fR \fIFILE\fP
40
+ \fB\-\-import\fR \fIFILE\fP
44
41
  Imports the IP addresses from the given \fIFILE\fP\.
45
- .LP
46
42
  .TP
47
- \fB--delete\fR \fIVALUE\fP
43
+ \fB\-\-delete\fR \fIVALUE\fP
48
44
  Deletes a IP address from the database\.
49
- .LP
50
45
  .TP
51
- \fB--delete-all\fR
46
+ \fB\-\-delete\-all\fR
52
47
  Deletes every IP address from the database\.
53
- .LP
54
48
  .TP
55
- \fB-4\fR, \fB--v4\fR
49
+ \fB\-4\fR, \fB\-\-v4\fR
56
50
  Searches for IPv4 addresses\.
57
- .LP
58
51
  .TP
59
- \fB-6\fR, \fB--v6\fR
52
+ \fB\-6\fR, \fB\-\-v6\fR
60
53
  Searches for IPv6 addresses\.
61
- .LP
62
54
  .TP
63
- \fB-p\fR, \fB--with-port\fR \fIPORT\fP
55
+ \fB\-p\fR, \fB\-\-with\-port\fR \fIPORT\fP
64
56
  Searches for IP addresses associated with the user \fIPORT\fP\.
65
- .LP
66
57
  .TP
67
- \fB-I\fR, \fB--with-mac-addr\fR \fIMAC\fP
58
+ \fB\-I\fR, \fB\-\-with\-mac\-addr\fR \fIMAC\fP
68
59
  Searches for IP addresses associated with the MAC address\.
69
- .LP
70
60
  .TP
71
- \fB-I\fR, \fB--with-host\fR \fIHOST\fP
61
+ \fB\-I\fR, \fB\-\-with\-host\fR \fIHOST\fP
72
62
  Searches for IP addresses associated with the \fIHOST\fP\.
73
- .LP
74
63
  .TP
75
- \fB-h\fR, \fB--help\fR
64
+ \fB\-h\fR, \fB\-\-help\fR
76
65
  Print help information\.
77
- .LP
78
66
  .SH ENVIRONMENT
79
- .LP
80
67
  .TP
81
68
  \fIHOME\fP
82
69
  Alternate location for the user\[cq]s home directory\.
83
- .LP
84
70
  .TP
85
71
  \fIXDG\[ru]CONFIG\[ru]HOME\fP
86
- Alternate location for the \fB~/.config\fR directory\.
87
- .LP
72
+ Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
88
73
  .TP
89
74
  \fIXDG\[ru]DATA\[ru]HOME\fP
90
- Alternate location for the \fB~/.local/share\fR directory\.
91
- .LP
75
+ Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
92
76
  .SH FILES
93
- .LP
94
77
  .TP
95
- \fB~/.local/share/ronin-db/database.sqlite3\fR
78
+ \fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
96
79
  The default sqlite3 database file\.
97
- .LP
98
80
  .TP
99
- \fB~/.config/ronin-db/database.yml\fR
81
+ \fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
100
82
  Optional database configuration\.
101
- .LP
102
83
  .SH AUTHOR
103
- .LP
104
84
  .PP
105
85
  Postmodern
106
86
  .MT postmodern\.mod3\[at]gmail\.com
107
87
  .ME
108
- .LP
@@ -1,4 +1,8 @@
1
- # ronin-db-ips 1 "2023-02-01" Ronin "User Manuals"
1
+ # ronin-db-ips 1 "2023-02-01" Ronin DB "User Manuals"
2
+
3
+ ## NAME
4
+
5
+ ronin-db-ips - Manages IP addresses in the database
2
6
 
3
7
  ## SYNOPSIS
4
8
 
@@ -11,66 +15,69 @@ Manages IP addresses.
11
15
  ## OPTIONS
12
16
 
13
17
  `--db` *NAME*
14
- The database to connect to. Defaults to `default` if not given.
18
+ : The database to connect to. Defaults to `default` if not given.
15
19
 
16
20
  `--db-uri` *URI*
17
- The explicit database URI to connect to.
21
+ : The explicit database URI to connect to.
18
22
 
19
23
  * **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
20
24
  * **mysql**: `mysql://user:password@host/database`
21
25
  * **postgres**: `postgres://user:password@host/database`
22
26
 
27
+ `--db-file` *PATH*
28
+ : The sqlite3 database file to use.
29
+
23
30
  `-v`, `--verbose`
24
- Enable verbose output.
31
+ : Enable verbose output.
25
32
 
26
33
  `--add` *VALUE*
27
- Adds the IP address to the database.
34
+ : Adds the IP address to the database.
28
35
 
29
36
  `--import` *FILE*
30
- Imports the IP addresses from the given *FILE*.
37
+ : Imports the IP addresses from the given *FILE*.
31
38
 
32
39
  `--delete` *VALUE*
33
- Deletes a IP address from the database.
40
+ : Deletes a IP address from the database.
34
41
 
35
42
  `--delete-all`
36
- Deletes every IP address from the database.
43
+ : Deletes every IP address from the database.
37
44
 
38
45
  `-4`, `--v4`
39
- Searches for IPv4 addresses.
46
+ : Searches for IPv4 addresses.
40
47
 
41
48
  `-6`, `--v6`
42
- Searches for IPv6 addresses.
49
+ : Searches for IPv6 addresses.
43
50
 
44
51
  `-p`, `--with-port` *PORT*
45
- Searches for IP addresses associated with the user *PORT*.
52
+ : Searches for IP addresses associated with the user *PORT*.
46
53
 
47
54
  `-I`, `--with-mac-addr` *MAC*
48
- Searches for IP addresses associated with the MAC address.
55
+ : Searches for IP addresses associated with the MAC address.
49
56
 
50
57
  `-I`, `--with-host` *HOST*
51
- Searches for IP addresses associated with the *HOST*.
58
+ : Searches for IP addresses associated with the *HOST*.
52
59
 
53
60
  `-h`, `--help`
54
- Print help information.
61
+ : Print help information.
55
62
 
56
63
  ## ENVIRONMENT
57
64
 
58
65
  *HOME*
59
- Alternate location for the user's home directory.
66
+ : Alternate location for the user's home directory.
60
67
 
61
68
  *XDG_CONFIG_HOME*
62
- Alternate location for the `~/.config` directory.
69
+ : Alternate location for the `~/.config` directory.
63
70
 
64
71
  *XDG_DATA_HOME*
65
- Alternate location for the `~/.local/share` directory.
72
+ : Alternate location for the `~/.local/share` directory.
66
73
 
67
74
  ## FILES
68
75
 
69
76
  `~/.local/share/ronin-db/database.sqlite3`
70
- The default sqlite3 database file.
77
+ : The default sqlite3 database file.
71
78
 
72
79
  `~/.config/ronin-db/database.yml`
73
- Optional database configuration.
80
+ : Optional database configuration.
74
81
 
75
82
  ## AUTHOR
76
83
 
data/man/ronin-db-irb.1 CHANGED
@@ -1,77 +1,64 @@
1
- .\" Generated by kramdown-man 0.1.9
1
+ .\" Generated by kramdown-man 1.0.1
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
3
  .TH ronin-db-irb 1 "2023-02-01" Ronin DB "User Manuals"
4
- .LP
4
+ .SH NAME
5
+ .PP
6
+ ronin\-db\-irb \- Connects to a database and start an interactive Ruby shell
5
7
  .SH SYNOPSIS
6
- .LP
7
8
  .PP
8
- \fBronin-db irb\fR \[lB]\fIoptions\fP\[rB]
9
- .LP
9
+ \fBronin\-db irb\fR \[lB]\fIoptions\fP\[rB]
10
10
  .SH DESCRIPTION
11
- .LP
12
11
  .PP
13
12
  Connects to a database and start an interactive Ruby shell\.
14
- .LP
15
13
  .SH OPTIONS
16
- .LP
17
14
  .TP
18
- \fB--db\fR \fINAME\fP
15
+ \fB\-\-db\fR \fINAME\fP
19
16
  The database to connect to\. Will connect to the \fBdefault\fR database if not
20
17
  specified\.
21
- .LP
22
18
  .TP
23
- \fB--db-uri\fR \fIURI\fP
19
+ \fB\-\-db\-uri\fR \fIURI\fP
24
20
  The database URI to connect to\.
25
- .LP
21
+ .RS
26
22
  .RS
27
23
  .IP \(bu 2
28
- \fBsqlite3\fP: \fBsqlite3:relative/path.db\fR or \fBsqlite3:///absolute/path.db\fR
24
+ \fBsqlite3\fP: \fBsqlite3:relative\[sl]path\.db\fR or \fBsqlite3:\[sl]\[sl]\[sl]absolute\[sl]path\.db\fR
29
25
  .IP \(bu 2
30
- \fBmysql\fP: \fBmysql://user:password@host/database\fR
26
+ \fBmysql\fP: \fBmysql:\[sl]\[sl]user:password\[at]host\[sl]database\fR
31
27
  .IP \(bu 2
32
- \fBpostgres\fP: \fBpostgres://user:password@host/database\fR
28
+ \fBpostgres\fP: \fBpostgres:\[sl]\[sl]user:password\[at]host\[sl]database\fR
33
29
  .RE
34
- .LP
30
+ .RE
31
+ .TP
32
+ \fB\-\-db\-file\fR \fIPATH\fP
33
+ The sqlite3 database file to use\.
35
34
  .TP
36
- \fB--no-connect\fR
35
+ \fB\-\-no\-connect\fR
37
36
  Causes the Ruby shell to not connect to a database on startup\.
38
- .LP
39
37
  .TP
40
- \fB-h\fR, \fB--help\fR
38
+ \fB\-h\fR, \fB\-\-help\fR
41
39
  Print help information\.
42
- .LP
43
40
  .SH ENVIRONMENT
44
- .LP
45
41
  .TP
46
42
  \fIHOME\fP
47
43
  Alternate location for the user\[cq]s home directory\.
48
- .LP
49
44
  .TP
50
45
  \fIXDG\[ru]CONFIG\[ru]HOME\fP
51
- Alternate location for the \fB~/.config\fR directory\.
52
- .LP
46
+ Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
53
47
  .TP
54
48
  \fIXDG\[ru]DATA\[ru]HOME\fP
55
- Alternate location for the \fB~/.local/share\fR directory\.
56
- .LP
49
+ Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
57
50
  .SH FILES
58
- .LP
59
51
  .TP
60
- \fB~/.local/share/ronin-db/database.sqlite3\fR
52
+ \fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
61
53
  The default sqlite3 database file\.
62
- .LP
63
54
  .TP
64
- \fB~/.config/ronin-db/database.yml\fR
55
+ \fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
65
56
  Optional database configuration\.
66
- .LP
67
57
  .SH AUTHOR
68
- .LP
69
58
  .PP
70
59
  Postmodern
71
60
  .MT postmodern\.mod3\[at]gmail\.com
72
61
  .ME
73
- .LP
74
62
  .SH SEE ALSO
75
- .LP
76
63
  .PP
77
- ronin\-db(1)
64
+ .BR ronin\-db (1)
@@ -1,5 +1,9 @@
1
1
  # ronin-db-irb 1 "2023-02-01" Ronin DB "User Manuals"
2
2
 
3
+ ## NAME
4
+
5
+ ronin-db-irb - Connects to a database and start an interactive Ruby shell
6
+
3
7
  ## SYNOPSIS
4
8
 
5
9
  `ronin-db irb` [*options*]
@@ -11,40 +15,43 @@ Connects to a database and start an interactive Ruby shell.
11
15
  ## OPTIONS
12
16
 
13
17
  `--db` *NAME*
14
- The database to connect to. Will connect to the `default` database if not
18
+ : The database to connect to. Will connect to the `default` database if not
15
19
  specified.
16
20
 
17
21
  `--db-uri` *URI*
18
- The database URI to connect to.
22
+ : The database URI to connect to.
19
23
 
20
24
  * **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
21
25
  * **mysql**: `mysql://user:password@host/database`
22
26
  * **postgres**: `postgres://user:password@host/database`
23
27
 
28
+ `--db-file` *PATH*
29
+ : The sqlite3 database file to use.
30
+
24
31
  `--no-connect`
25
- Causes the Ruby shell to not connect to a database on startup.
32
+ : Causes the Ruby shell to not connect to a database on startup.
26
33
 
27
34
  `-h`, `--help`
28
- Print help information.
35
+ : Print help information.
29
36
 
30
37
  ## ENVIRONMENT
31
38
 
32
39
  *HOME*
33
- Alternate location for the user's home directory.
40
+ : Alternate location for the user's home directory.
34
41
 
35
42
  *XDG_CONFIG_HOME*
36
- Alternate location for the `~/.config` directory.
43
+ : Alternate location for the `~/.config` directory.
37
44
 
38
45
  *XDG_DATA_HOME*
39
- Alternate location for the `~/.local/share` directory.
46
+ : Alternate location for the `~/.local/share` directory.
40
47
 
41
48
  ## FILES
42
49
 
43
50
  `~/.local/share/ronin-db/database.sqlite3`
44
- The default sqlite3 database file.
51
+ : The default sqlite3 database file.
45
52
 
46
53
  `~/.config/ronin-db/database.yml`
47
- Optional database configuration.
54
+ : Optional database configuration.
48
55
 
49
56
  ## AUTHOR
50
57
 
@@ -52,4 +59,4 @@ Postmodern <postmodern.mod3@gmail.com>
52
59
 
53
60
  ## SEE ALSO
54
61
 
55
- ronin-db(1)
62
+ [ronin-db](ronin-db.1.md)