ronin-db 0.1.2-java → 0.2.0-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.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -2
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/ChangeLog.md +35 -0
- data/Gemfile +6 -4
- data/README.md +17 -5
- data/Rakefile +13 -35
- data/data/completions/ronin-db +271 -0
- data/gemspec.yml +17 -2
- data/lib/ronin/db/cli/command.rb +1 -1
- data/lib/ronin/db/cli/commands/add.rb +1 -1
- data/lib/ronin/db/cli/commands/asn.rb +12 -2
- data/lib/ronin/db/cli/commands/certs.rb +322 -0
- data/lib/ronin/db/cli/commands/completion.rb +63 -0
- data/lib/ronin/db/cli/commands/creds.rb +2 -1
- data/lib/ronin/db/cli/commands/edit.rb +1 -1
- data/lib/ronin/db/cli/commands/emails.rb +22 -1
- data/lib/ronin/db/cli/commands/hosts.rb +2 -1
- data/lib/ronin/db/cli/commands/ips.rb +2 -1
- data/lib/ronin/db/cli/commands/irb.rb +8 -4
- data/lib/ronin/db/cli/commands/list.rb +1 -1
- data/lib/ronin/db/cli/commands/migrate.rb +12 -8
- data/lib/ronin/db/cli/commands/open_ports.rb +102 -0
- data/lib/ronin/db/cli/commands/oses.rb +95 -0
- data/lib/ronin/db/cli/commands/passwords.rb +83 -0
- data/lib/ronin/db/cli/commands/people.rb +185 -0
- data/lib/ronin/db/cli/commands/phone_numbers.rb +136 -0
- data/lib/ronin/db/cli/commands/ports.rb +103 -0
- data/lib/ronin/db/cli/commands/remove.rb +1 -1
- data/lib/ronin/db/cli/commands/services.rb +102 -0
- data/lib/ronin/db/cli/commands/software.rb +95 -0
- data/lib/ronin/db/cli/commands/street_addresses.rb +129 -0
- data/lib/ronin/db/cli/commands/urls.rb +2 -1
- data/lib/ronin/db/cli/commands/web_vulns.rb +235 -0
- data/lib/ronin/db/cli/database_options.rb +87 -0
- data/lib/ronin/db/cli/deletable.rb +85 -0
- data/lib/ronin/db/cli/importable.rb +108 -0
- data/lib/ronin/db/cli/model_command.rb +8 -6
- data/lib/ronin/db/cli/modifiable.rb +12 -104
- data/lib/ronin/db/cli/printing.rb +58 -0
- data/lib/ronin/db/cli/ruby_shell.rb +1 -1
- data/lib/ronin/db/cli/uri_methods.rb +1 -1
- data/lib/ronin/db/cli.rb +5 -1
- data/lib/ronin/db/config_file.rb +13 -8
- data/lib/ronin/db/exceptions.rb +10 -1
- data/lib/ronin/db/home.rb +1 -1
- data/lib/ronin/db/root.rb +1 -1
- data/lib/ronin/db/tasks.rb +87 -0
- data/lib/ronin/db/version.rb +2 -2
- data/lib/ronin/db.rb +24 -7
- data/man/ronin-db-add.1 +48 -70
- data/man/ronin-db-add.1.md +26 -22
- data/man/ronin-db-asn.1 +37 -55
- data/man/ronin-db-asn.1.md +29 -19
- data/man/ronin-db-certs.1 +108 -0
- data/man/ronin-db-certs.1.md +106 -0
- data/man/ronin-db-completion.1 +76 -0
- data/man/ronin-db-completion.1.md +78 -0
- data/man/ronin-db-creds.1 +29 -47
- data/man/ronin-db-creds.1.md +23 -16
- data/man/ronin-db-edit.1 +16 -27
- data/man/ronin-db-edit.1.md +11 -7
- data/man/ronin-db-emails.1 +37 -50
- data/man/ronin-db-emails.1.md +30 -17
- data/man/ronin-db-hosts.1 +32 -52
- data/man/ronin-db-hosts.1.md +25 -18
- data/man/ronin-db-ips.1 +32 -53
- data/man/ronin-db-ips.1.md +26 -19
- data/man/ronin-db-irb.1 +23 -36
- data/man/ronin-db-irb.1.md +17 -10
- data/man/ronin-db-list.1 +17 -31
- data/man/ronin-db-list.1.md +13 -9
- data/man/ronin-db-migrate.1 +23 -36
- data/man/ronin-db-migrate.1.md +17 -10
- data/man/ronin-db-open-ports.1 +72 -0
- data/man/ronin-db-open-ports.1.md +70 -0
- data/man/ronin-db-oses.1 +72 -0
- data/man/ronin-db-oses.1.md +70 -0
- data/man/ronin-db-passwords.1 +75 -0
- data/man/ronin-db-passwords.1.md +73 -0
- data/man/ronin-db-people.1 +96 -0
- data/man/ronin-db-people.1.md +94 -0
- data/man/ronin-db-phone-numbers.1 +93 -0
- data/man/ronin-db-phone-numbers.1.md +91 -0
- data/man/ronin-db-ports.1 +87 -0
- data/man/ronin-db-ports.1.md +85 -0
- data/man/ronin-db-remove.1 +16 -29
- data/man/ronin-db-remove.1.md +12 -8
- data/man/ronin-db-services.1 +84 -0
- data/man/ronin-db-services.1.md +82 -0
- data/man/ronin-db-software.1 +72 -0
- data/man/ronin-db-software.1.md +70 -0
- data/man/ronin-db-street-addresses.1 +81 -0
- data/man/ronin-db-street-addresses.1.md +79 -0
- data/man/ronin-db-urls.1 +38 -61
- data/man/ronin-db-urls.1.md +28 -21
- data/man/ronin-db-web-vulns.1 +87 -0
- data/man/ronin-db-web-vulns.1.md +85 -0
- data/man/ronin-db.1 +118 -0
- data/man/ronin-db.1.md +99 -0
- data/scripts/setup +58 -0
- metadata +70 -13
- data/lib/ronin/db/cli/database_command.rb +0 -71
- data/lib/ronin/db/cli/resources_command.rb +0 -118
data/man/ronin-db-add.1
CHANGED
|
@@ -1,130 +1,108 @@
|
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
|
3
3
|
.TH ronin-db-add 1 "2023-02-01" Ronin DB "User Manuals"
|
|
4
|
-
.
|
|
4
|
+
.SH NAME
|
|
5
|
+
.PP
|
|
6
|
+
ronin\-db\-add \- Adds a pre\-existing database to ronin\-db
|
|
5
7
|
.SH SYNOPSIS
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
\fBronin-db add\fR \[lB]\fIoptions\fP\[rB] \fINAME\fP \[lB]\fIURI\fP\[rB]
|
|
9
|
-
.LP
|
|
8
|
+
.PP
|
|
9
|
+
\fBronin\-db add\fR \[lB]\fIoptions\fP\[rB] \fINAME\fP \[lB]\fIURI\fP\[rB]
|
|
10
10
|
.SH DESCRIPTION
|
|
11
|
-
.LP
|
|
12
11
|
.PP
|
|
13
|
-
Adds a pre\-existing database to the \fB
|
|
12
|
+
Adds a pre\-existing database to the \fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
|
|
14
13
|
configuration file\.
|
|
15
|
-
.LP
|
|
16
14
|
.SH ARGUMENTS
|
|
17
|
-
.LP
|
|
18
15
|
.TP
|
|
19
16
|
\fINAME\fP
|
|
20
17
|
The name of the database to add\.
|
|
21
|
-
.LP
|
|
22
18
|
.TP
|
|
23
19
|
\fIURI\fP
|
|
24
20
|
The optional URI to the database to add\.
|
|
25
|
-
.LP
|
|
26
21
|
.SH OPTIONS
|
|
27
|
-
.LP
|
|
28
22
|
.TP
|
|
29
|
-
\fB
|
|
23
|
+
\fB\-A\fR, \fB\-\-adapter\fR \fBsqlite3\[or]mysql2\[or]postgres\[or]\.\.\.\fR
|
|
30
24
|
The adapter of the database to add\.
|
|
31
|
-
.LP
|
|
32
25
|
.TP
|
|
33
|
-
\fB
|
|
34
|
-
Alias for \fB
|
|
35
|
-
.LP
|
|
26
|
+
\fB\-\-sqlite3\fR \fIFILE\fP
|
|
27
|
+
Alias for \fB\-\-adapter sqlite3 \-\-database\fR \fIFILE\fP\.
|
|
36
28
|
.TP
|
|
37
|
-
\fB
|
|
38
|
-
Alias for \fB
|
|
39
|
-
.LP
|
|
29
|
+
\fB\-\-mysql2\fR
|
|
30
|
+
Alias for \fB\-\-adapter mysql2\fR\.
|
|
40
31
|
.TP
|
|
41
|
-
\fB
|
|
42
|
-
Alias for \fB
|
|
43
|
-
.LP
|
|
32
|
+
\fB\-\-postgresql\fR
|
|
33
|
+
Alias for \fB\-\-adapter postgresql\fR\.
|
|
44
34
|
.TP
|
|
45
|
-
\fB
|
|
35
|
+
\fB\-H\fR, \fB\-\-host\fR \fIHOST\fP
|
|
46
36
|
The host of the database to add\.
|
|
47
|
-
.LP
|
|
48
37
|
.TP
|
|
49
|
-
\fB
|
|
38
|
+
\fB\-p\fR, \fB\-\-port\fR \fIPORT\fP
|
|
50
39
|
The port of the database to add\.
|
|
51
|
-
.LP
|
|
52
40
|
.TP
|
|
53
|
-
\fB
|
|
41
|
+
\fB\-u\fR, \fB\-\-username\fR \fIUSER\fP
|
|
54
42
|
The username to authenticate with for the database\.
|
|
55
|
-
.LP
|
|
56
43
|
.TP
|
|
57
|
-
\fB
|
|
44
|
+
\fB\-P\fR, \fB\-\-password\fR \fIPASSWORD\fP
|
|
58
45
|
The password to authenticate with for the database\.
|
|
59
|
-
.LP
|
|
60
46
|
.TP
|
|
61
|
-
\fB
|
|
47
|
+
\fB\-\-read\-password\fR
|
|
62
48
|
Reads the database password from STDIN\.
|
|
63
|
-
.LP
|
|
64
49
|
.TP
|
|
65
|
-
\fB
|
|
66
|
-
The database name to connect to\. If \fB
|
|
50
|
+
\fB\-D\fR, \fB\-\-database\fR \fINAME\fP\[or]\fIPATH\fP
|
|
51
|
+
The database name to connect to\. If \fB\-\-adapter sqlite3\fR is given then a path
|
|
67
52
|
may be given instead\.
|
|
68
|
-
.LP
|
|
69
53
|
.TP
|
|
70
|
-
\fB
|
|
54
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
71
55
|
Print help information\.
|
|
72
|
-
.LP
|
|
73
56
|
.SH EXAMPLES
|
|
74
|
-
.LP
|
|
75
57
|
.PP
|
|
76
58
|
Add a sqlite3 database file:
|
|
77
|
-
.
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.
|
|
59
|
+
.PP
|
|
60
|
+
.RS 4
|
|
61
|
+
.EX
|
|
62
|
+
\[Do] ronin\-db add other\[ru]db \-\-sqlite3 path\[sl]to\[sl]db\.sqlite3
|
|
63
|
+
.EE
|
|
64
|
+
.RE
|
|
82
65
|
.PP
|
|
83
66
|
Add a PostgeSQL database:
|
|
84
|
-
.
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
.
|
|
67
|
+
.PP
|
|
68
|
+
.RS 4
|
|
69
|
+
.EX
|
|
70
|
+
\[Do] ronin\-db add other\[ru]db \-\-postgres \-\-host example\.com \-\-port 5432 \-\-username ronin \-\-password s3r3t \-\-database ronin\[ru]db
|
|
71
|
+
.EE
|
|
72
|
+
.RE
|
|
89
73
|
.PP
|
|
90
74
|
Add a MySQL database:
|
|
91
|
-
.
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
.
|
|
75
|
+
.PP
|
|
76
|
+
.RS 4
|
|
77
|
+
.EX
|
|
78
|
+
\[Do] ronin\-db add other\[ru]db \-\-mysql2 \-\-host example\.com \-\-port 3306 \-\-username ronin \-\-password s3r3t \-\-database ronin\[ru]db
|
|
79
|
+
.EE
|
|
80
|
+
.RE
|
|
96
81
|
.SH ENVIRONMENT
|
|
97
|
-
.LP
|
|
98
82
|
.TP
|
|
99
83
|
\fIHOME\fP
|
|
100
84
|
Alternate location for the user\[cq]s home directory\.
|
|
101
|
-
.LP
|
|
102
85
|
.TP
|
|
103
86
|
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
|
104
|
-
Alternate location for the \fB
|
|
105
|
-
.LP
|
|
87
|
+
Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
|
|
106
88
|
.TP
|
|
107
89
|
\fIXDG\[ru]DATA\[ru]HOME\fP
|
|
108
|
-
Alternate location for the \fB
|
|
109
|
-
.LP
|
|
90
|
+
Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
|
|
110
91
|
.SH FILES
|
|
111
|
-
.LP
|
|
112
92
|
.TP
|
|
113
|
-
\fB
|
|
93
|
+
\fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
|
|
114
94
|
The default sqlite3 database file\.
|
|
115
|
-
.LP
|
|
116
95
|
.TP
|
|
117
|
-
\fB
|
|
96
|
+
\fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
|
|
118
97
|
Optional database configuration\.
|
|
119
|
-
.LP
|
|
120
98
|
.SH AUTHOR
|
|
121
|
-
.LP
|
|
122
99
|
.PP
|
|
123
100
|
Postmodern
|
|
124
101
|
.MT postmodern\.mod3\[at]gmail\.com
|
|
125
102
|
.ME
|
|
126
|
-
.LP
|
|
127
103
|
.SH SEE ALSO
|
|
128
|
-
.LP
|
|
129
104
|
.PP
|
|
130
|
-
|
|
105
|
+
.BR ronin\-db (1)
|
|
106
|
+
.BR ronin\-db\-list (1)
|
|
107
|
+
.BR ronin\-db\-edit (1)
|
|
108
|
+
.BR ronin\-db\-remove (1)
|
data/man/ronin-db-add.1.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# ronin-db-add 1 "2023-02-01" Ronin DB "User Manuals"
|
|
2
2
|
|
|
3
|
+
## NAME
|
|
4
|
+
|
|
5
|
+
ronin-db-add - Adds a pre-existing database to ronin-db
|
|
6
|
+
|
|
3
7
|
## SYNOPSIS
|
|
4
8
|
|
|
5
9
|
`ronin-db add` [*options*] *NAME* [*URI*]
|
|
@@ -12,79 +16,79 @@ configuration file.
|
|
|
12
16
|
## ARGUMENTS
|
|
13
17
|
|
|
14
18
|
*NAME*
|
|
15
|
-
|
|
19
|
+
: The name of the database to add.
|
|
16
20
|
|
|
17
21
|
*URI*
|
|
18
|
-
|
|
22
|
+
: The optional URI to the database to add.
|
|
19
23
|
|
|
20
24
|
## OPTIONS
|
|
21
25
|
|
|
22
26
|
`-A`, `--adapter` `sqlite3|mysql2|postgres|...`
|
|
23
|
-
|
|
27
|
+
: The adapter of the database to add.
|
|
24
28
|
|
|
25
29
|
`--sqlite3` *FILE*
|
|
26
|
-
|
|
30
|
+
: Alias for `--adapter sqlite3 --database` *FILE*.
|
|
27
31
|
|
|
28
32
|
`--mysql2`
|
|
29
|
-
|
|
33
|
+
: Alias for `--adapter mysql2`.
|
|
30
34
|
|
|
31
35
|
`--postgresql`
|
|
32
|
-
|
|
36
|
+
: Alias for `--adapter postgresql`.
|
|
33
37
|
|
|
34
38
|
`-H`, `--host` *HOST*
|
|
35
|
-
|
|
39
|
+
: The host of the database to add.
|
|
36
40
|
|
|
37
41
|
`-p`, `--port` *PORT*
|
|
38
|
-
|
|
42
|
+
: The port of the database to add.
|
|
39
43
|
|
|
40
44
|
`-u`, `--username` *USER*
|
|
41
|
-
|
|
45
|
+
: The username to authenticate with for the database.
|
|
42
46
|
|
|
43
47
|
`-P`, `--password` *PASSWORD*
|
|
44
|
-
|
|
48
|
+
: The password to authenticate with for the database.
|
|
45
49
|
|
|
46
50
|
`--read-password`
|
|
47
|
-
|
|
51
|
+
: Reads the database password from STDIN.
|
|
48
52
|
|
|
49
53
|
`-D`, `--database` *NAME*|*PATH*
|
|
50
|
-
|
|
54
|
+
: The database name to connect to. If `--adapter sqlite3` is given then a path
|
|
51
55
|
may be given instead.
|
|
52
56
|
|
|
53
57
|
`-h`, `--help`
|
|
54
|
-
|
|
58
|
+
: Print help information.
|
|
55
59
|
|
|
56
60
|
## EXAMPLES
|
|
57
61
|
|
|
58
62
|
Add a sqlite3 database file:
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
$ ronin-db add other_db --sqlite3 path/to/db.sqlite3
|
|
61
65
|
|
|
62
66
|
Add a PostgeSQL database:
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
$ ronin-db add other_db --postgres --host example.com --port 5432 --username ronin --password s3r3t --database ronin_db
|
|
65
69
|
|
|
66
70
|
Add a MySQL database:
|
|
67
71
|
|
|
68
|
-
|
|
72
|
+
$ ronin-db add other_db --mysql2 --host example.com --port 3306 --username ronin --password s3r3t --database ronin_db
|
|
69
73
|
|
|
70
74
|
## ENVIRONMENT
|
|
71
75
|
|
|
72
76
|
*HOME*
|
|
73
|
-
|
|
77
|
+
: Alternate location for the user's home directory.
|
|
74
78
|
|
|
75
79
|
*XDG_CONFIG_HOME*
|
|
76
|
-
|
|
80
|
+
: Alternate location for the `~/.config` directory.
|
|
77
81
|
|
|
78
82
|
*XDG_DATA_HOME*
|
|
79
|
-
|
|
83
|
+
: Alternate location for the `~/.local/share` directory.
|
|
80
84
|
|
|
81
85
|
## FILES
|
|
82
86
|
|
|
83
87
|
`~/.local/share/ronin-db/database.sqlite3`
|
|
84
|
-
|
|
88
|
+
: The default sqlite3 database file.
|
|
85
89
|
|
|
86
90
|
`~/.config/ronin-db/database.yml`
|
|
87
|
-
|
|
91
|
+
: Optional database configuration.
|
|
88
92
|
|
|
89
93
|
## AUTHOR
|
|
90
94
|
|
|
@@ -92,4 +96,4 @@ Postmodern <postmodern.mod3@gmail.com>
|
|
|
92
96
|
|
|
93
97
|
## SEE ALSO
|
|
94
98
|
|
|
95
|
-
ronin-db(1) ronin-db-list(1) ronin-db-edit(1) ronin-db-remove(1)
|
|
99
|
+
[ronin-db](ronin-db.1.md) [ronin-db-list](ronin-db-list.1.md) [ronin-db-edit](ronin-db-edit.1.md) [ronin-db-remove](ronin-db-remove.1.md)
|
data/man/ronin-db-asn.1
CHANGED
|
@@ -1,111 +1,93 @@
|
|
|
1
|
-
.\" Generated by kramdown-man 0.1
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
|
3
|
-
.TH ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
|
|
4
|
-
.
|
|
3
|
+
.TH ronin-db-asn 1 "2023-02-01" Ronin DB "User Manuals"
|
|
4
|
+
.SH NAME
|
|
5
|
+
.PP
|
|
6
|
+
ronin\-db\-asn \- Queries and updates ASNs
|
|
5
7
|
.SH SYNOPSIS
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
\fBronin-db asn\fR \[lB]\fIoptions\fP\[rB]
|
|
9
|
-
.LP
|
|
8
|
+
.PP
|
|
9
|
+
\fBronin\-db asn\fR \[lB]\fIoptions\fP\[rB]
|
|
10
10
|
.SH DESCRIPTION
|
|
11
|
-
.LP
|
|
12
11
|
.PP
|
|
13
12
|
Queries or updates Autonomous System Numbers (ASNs) in the database\.
|
|
14
|
-
.LP
|
|
15
13
|
.SH OPTIONS
|
|
16
|
-
.LP
|
|
17
14
|
.TP
|
|
18
|
-
\fB
|
|
15
|
+
\fB\-\-db\fR \fINAME\fP
|
|
19
16
|
The database name to connect to\. Defaults to \fBdefault\fR if not given\.
|
|
20
|
-
.LP
|
|
21
17
|
.TP
|
|
22
|
-
\fB
|
|
18
|
+
\fB\-\-db\-uri\fR \fIURI\fP
|
|
23
19
|
The explicit database URI to connect to\.
|
|
24
|
-
.
|
|
20
|
+
.RS
|
|
25
21
|
.RS
|
|
26
22
|
.IP \(bu 2
|
|
27
|
-
\fBsqlite3\fP: \fBsqlite3:relative
|
|
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
|
|
25
|
+
\fBmysql\fP: \fBmysql:\[sl]\[sl]user:password\[at]host\[sl]database\fR
|
|
30
26
|
.IP \(bu 2
|
|
31
|
-
\fBpostgres\fP: \fBpostgres
|
|
27
|
+
\fBpostgres\fP: \fBpostgres:\[sl]\[sl]user:password\[at]host\[sl]database\fR
|
|
32
28
|
.RE
|
|
33
|
-
.
|
|
29
|
+
.RE
|
|
30
|
+
.TP
|
|
31
|
+
\fB\-\-db\-file\fR \fIPATH\fP
|
|
32
|
+
The sqlite3 database file to use\.
|
|
34
33
|
.TP
|
|
35
|
-
\fB
|
|
34
|
+
\fB\-v\fR, \fB\-\-verbose\fR
|
|
36
35
|
Enables verbose output
|
|
37
|
-
.LP
|
|
38
36
|
.TP
|
|
39
|
-
\fB
|
|
37
|
+
\fB\-n\fR, \fB\-\-number\fR \fIINT\fP
|
|
40
38
|
Searches for all ASN records with the AS number\.
|
|
41
|
-
.LP
|
|
42
39
|
.TP
|
|
43
|
-
\fB
|
|
40
|
+
\fB\-C\fR, \fB\-\-country\-code\fR \fIXX\fP\[or]\fBNone\fR\[or]\fBUnknown\fR
|
|
44
41
|
Searches for all ASN records with the country code\.
|
|
45
|
-
.LP
|
|
46
42
|
.TP
|
|
47
|
-
\fB
|
|
43
|
+
\fB\-N\fR, \fB\-\-name\fR \fINAME\fP
|
|
48
44
|
Searches for all ASN records with the matching name\.
|
|
49
|
-
.LP
|
|
50
45
|
.TP
|
|
51
|
-
\fB
|
|
46
|
+
\fB\-\-named\fR \fINAME\fP
|
|
47
|
+
Searches for all ASN records containing the name\.
|
|
48
|
+
.TP
|
|
49
|
+
\fB\-I\fR, \fB\-\-ip\fR \fIIP\fP
|
|
52
50
|
Queries the ASN record for the IP\.
|
|
53
|
-
.LP
|
|
54
51
|
.TP
|
|
55
|
-
\fB
|
|
52
|
+
\fB\-4\fR, \fB\-\-ipv4\fR
|
|
56
53
|
Filter ASN records for only IPv4 ranges\.
|
|
57
|
-
.LP
|
|
58
54
|
.TP
|
|
59
|
-
\fB
|
|
55
|
+
\fB\-6\fR, \fB\-\-ipv6\fR
|
|
60
56
|
Filter ASN records for only IPv6 ranges\.
|
|
61
|
-
.LP
|
|
62
57
|
.TP
|
|
63
|
-
\fB
|
|
58
|
+
\fB\-u\fR, \fB\-\-update\fR
|
|
64
59
|
Updates the ASN records\.
|
|
65
|
-
.LP
|
|
66
60
|
.TP
|
|
67
|
-
\fB
|
|
61
|
+
\fB\-U\fR, \fB\-\-url\fR \fIURI\fP
|
|
68
62
|
Overrides the default ASN list URL\.
|
|
69
|
-
Defaults to \fBhttps
|
|
70
|
-
.LP
|
|
63
|
+
Defaults to \fBhttps:\[sl]\[sl]iptoasn\.com\[sl]data\[sl]ip2asn\-combined\.tsv\.gz\fR if not given\.
|
|
71
64
|
.TP
|
|
72
|
-
\fB
|
|
65
|
+
\fB\-f\fR, \fB\-\-file\fR \fIFILE\fP
|
|
73
66
|
Overrides the default ASN list file\.
|
|
74
|
-
Defaults to \fB
|
|
67
|
+
Defaults to \fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\[sl]ronin\-support\[sl]ip2asn\-combined\.tsv\.gz\fR
|
|
75
68
|
if not given\.
|
|
76
|
-
.LP
|
|
77
69
|
.TP
|
|
78
|
-
\fB
|
|
70
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
79
71
|
Print help information\.
|
|
80
|
-
.LP
|
|
81
72
|
.SH ENVIRONMENT
|
|
82
|
-
.LP
|
|
83
73
|
.TP
|
|
84
74
|
\fIHOME\fP
|
|
85
75
|
Alternate location for the user\[cq]s home directory\.
|
|
86
|
-
.LP
|
|
87
76
|
.TP
|
|
88
77
|
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
|
89
|
-
Alternate location for the \fB
|
|
90
|
-
.LP
|
|
78
|
+
Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
|
|
91
79
|
.TP
|
|
92
80
|
\fIXDG\[ru]DATA\[ru]HOME\fP
|
|
93
|
-
Alternate location for the \fB
|
|
94
|
-
.LP
|
|
81
|
+
Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
|
|
95
82
|
.SH FILES
|
|
96
|
-
.LP
|
|
97
83
|
.TP
|
|
98
|
-
\fB
|
|
84
|
+
\fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
|
|
99
85
|
The default sqlite3 database file\.
|
|
100
|
-
.LP
|
|
101
86
|
.TP
|
|
102
|
-
\fB
|
|
87
|
+
\fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
|
|
103
88
|
Optional database configuration\.
|
|
104
|
-
.LP
|
|
105
89
|
.SH AUTHOR
|
|
106
|
-
.LP
|
|
107
90
|
.PP
|
|
108
91
|
Postmodern
|
|
109
92
|
.MT postmodern\.mod3\[at]gmail\.com
|
|
110
93
|
.ME
|
|
111
|
-
.LP
|
data/man/ronin-db-asn.1.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
# ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
|
|
1
|
+
# ronin-db-asn 1 "2023-02-01" Ronin DB "User Manuals"
|
|
2
|
+
|
|
3
|
+
## NAME
|
|
4
|
+
|
|
5
|
+
ronin-db-asn - Queries and updates ASNs
|
|
2
6
|
|
|
3
7
|
## SYNOPSIS
|
|
4
8
|
|
|
@@ -11,69 +15,75 @@ Queries or updates Autonomous System Numbers (ASNs) in the database.
|
|
|
11
15
|
## OPTIONS
|
|
12
16
|
|
|
13
17
|
`--db` *NAME*
|
|
14
|
-
|
|
18
|
+
: The database name to connect to. Defaults to `default` if not given.
|
|
15
19
|
|
|
16
20
|
`--db-uri` *URI*
|
|
17
|
-
|
|
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
|
-
|
|
31
|
+
: Enables verbose output
|
|
25
32
|
|
|
26
33
|
`-n`, `--number` *INT*
|
|
27
|
-
|
|
34
|
+
: Searches for all ASN records with the AS number.
|
|
28
35
|
|
|
29
36
|
`-C`, `--country-code` *XX*\|`None`\|`Unknown`
|
|
30
|
-
|
|
37
|
+
: Searches for all ASN records with the country code.
|
|
31
38
|
|
|
32
39
|
`-N`, `--name` *NAME*
|
|
33
|
-
|
|
40
|
+
: Searches for all ASN records with the matching name.
|
|
41
|
+
|
|
42
|
+
`--named` *NAME*
|
|
43
|
+
: Searches for all ASN records containing the name.
|
|
34
44
|
|
|
35
45
|
`-I`, `--ip` *IP*
|
|
36
|
-
|
|
46
|
+
: Queries the ASN record for the IP.
|
|
37
47
|
|
|
38
48
|
`-4`, `--ipv4`
|
|
39
|
-
|
|
49
|
+
: Filter ASN records for only IPv4 ranges.
|
|
40
50
|
|
|
41
51
|
`-6`, `--ipv6`
|
|
42
|
-
|
|
52
|
+
: Filter ASN records for only IPv6 ranges.
|
|
43
53
|
|
|
44
54
|
`-u`, `--update`
|
|
45
|
-
|
|
55
|
+
: Updates the ASN records.
|
|
46
56
|
|
|
47
57
|
`-U`, `--url` *URI*
|
|
48
|
-
|
|
58
|
+
: Overrides the default ASN list URL.
|
|
49
59
|
Defaults to `https://iptoasn.com/data/ip2asn-combined.tsv.gz` if not given.
|
|
50
60
|
|
|
51
61
|
`-f`, `--file` *FILE*
|
|
52
|
-
|
|
62
|
+
: Overrides the default ASN list file.
|
|
53
63
|
Defaults to `~/.local/share/ronin/ronin-support/ip2asn-combined.tsv.gz`
|
|
54
64
|
if not given.
|
|
55
65
|
|
|
56
66
|
`-h`, `--help`
|
|
57
|
-
|
|
67
|
+
: Print help information.
|
|
58
68
|
|
|
59
69
|
## ENVIRONMENT
|
|
60
70
|
|
|
61
71
|
*HOME*
|
|
62
|
-
|
|
72
|
+
: Alternate location for the user's home directory.
|
|
63
73
|
|
|
64
74
|
*XDG_CONFIG_HOME*
|
|
65
|
-
|
|
75
|
+
: Alternate location for the `~/.config` directory.
|
|
66
76
|
|
|
67
77
|
*XDG_DATA_HOME*
|
|
68
|
-
|
|
78
|
+
: Alternate location for the `~/.local/share` directory.
|
|
69
79
|
|
|
70
80
|
## FILES
|
|
71
81
|
|
|
72
82
|
`~/.local/share/ronin-db/database.sqlite3`
|
|
73
|
-
|
|
83
|
+
: The default sqlite3 database file.
|
|
74
84
|
|
|
75
85
|
`~/.config/ronin-db/database.yml`
|
|
76
|
-
|
|
86
|
+
: Optional database configuration.
|
|
77
87
|
|
|
78
88
|
## AUTHOR
|
|
79
89
|
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
|
3
|
+
.TH ronin-db-certs 1 "2023-02-01" Ronin DB "User Manuals"
|
|
4
|
+
.SH NAME
|
|
5
|
+
.PP
|
|
6
|
+
ronin\-db\-certs \- Queries or imports SSL\[sl]TLS certificates
|
|
7
|
+
.SH SYNOPSIS
|
|
8
|
+
.PP
|
|
9
|
+
\fBronin\-db certs\fR \[lB]\fIoptions\fP\[rB]
|
|
10
|
+
.SH DESCRIPTION
|
|
11
|
+
.PP
|
|
12
|
+
Queries or imports SSL\[sl]TLS certificates into the database\.
|
|
13
|
+
.SH OPTIONS
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-db\fR \fINAME\fP
|
|
16
|
+
The database name to connect to\. Defaults to \fBdefault\fR if not given\.
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-db\-uri\fR \fIURI\fP
|
|
19
|
+
The explicit database URI to connect to\.
|
|
20
|
+
.RS
|
|
21
|
+
.RS
|
|
22
|
+
.IP \(bu 2
|
|
23
|
+
\fBsqlite3\fP: \fBsqlite3:relative\[sl]path\.db\fR or \fBsqlite3:\[sl]\[sl]\[sl]absolute\[sl]path\.db\fR
|
|
24
|
+
.IP \(bu 2
|
|
25
|
+
\fBmysql\fP: \fBmysql:\[sl]\[sl]user:password\[at]host\[sl]database\fR
|
|
26
|
+
.IP \(bu 2
|
|
27
|
+
\fBpostgres\fP: \fBpostgres:\[sl]\[sl]user:password\[at]host\[sl]database\fR
|
|
28
|
+
.RE
|
|
29
|
+
.RE
|
|
30
|
+
.TP
|
|
31
|
+
\fB\-\-db\-file\fR \fIPATH\fP
|
|
32
|
+
The sqlite3 database file to use\.
|
|
33
|
+
.TP
|
|
34
|
+
\fB\-v\fR, \fB\-\-verbose\fR
|
|
35
|
+
Enables verbose output
|
|
36
|
+
.TP
|
|
37
|
+
\fB\-A\fR, \fB\-\-active\fR
|
|
38
|
+
Searches for all Certs that are still valid\.
|
|
39
|
+
.TP
|
|
40
|
+
\fB\-E\fR, \fB\-\-expired\fR
|
|
41
|
+
Searches for all Certs that are expired\.
|
|
42
|
+
.TP
|
|
43
|
+
\fB\-\-issuer\-common\-name\fR \fINAME\fP
|
|
44
|
+
Searches for all Certs with the Issuer Common Name (CN)\.
|
|
45
|
+
.TP
|
|
46
|
+
\fB\-\-issuer\-organization\fR \fINAME\fP
|
|
47
|
+
Searches for all Certs with the Issuer Organization (O)\.
|
|
48
|
+
.TP
|
|
49
|
+
\fB\-\-issuer\-organizational\-unit\fR \fINAME\fP
|
|
50
|
+
Searches for all Certs with the Issuer Organizational Unit (OU)\.
|
|
51
|
+
.TP
|
|
52
|
+
\fB\-\-issuer\-locality\fR \fILOCALITY\fP
|
|
53
|
+
Searches for all Certs with the Issuer Locality (L)\.
|
|
54
|
+
.TP
|
|
55
|
+
\fB\-\-issuer\-state\fR \fISTATE\fP
|
|
56
|
+
Searches for all Certs with the Issuer State (ST)\.
|
|
57
|
+
.TP
|
|
58
|
+
\fB\-\-issuer\-country\fR \fICOUNTRY\fP
|
|
59
|
+
Searches for all Certs with the Issuer Country (C)\.
|
|
60
|
+
.TP
|
|
61
|
+
\fB\-\-common\-name\fR \fIHOST\fP
|
|
62
|
+
Searches for all Certs with the Subject Common Name (CN)\.
|
|
63
|
+
.TP
|
|
64
|
+
\fB\-\-subject\-alt\-name\fR \fIHOST\fP
|
|
65
|
+
Searches for all Certs with the Subject Alternative Name (SAN)\.
|
|
66
|
+
.TP
|
|
67
|
+
\fB\-\-organization\fR \fINAME\fP
|
|
68
|
+
Searches for all Certs with the Subject Organization (O)\.
|
|
69
|
+
.TP
|
|
70
|
+
\fB\-\-organizational\-unit\fR \fINAME\fP
|
|
71
|
+
Searches for all Certs with the Subject Organizational Unit (OU)\.
|
|
72
|
+
.TP
|
|
73
|
+
\fB\-\-locality\fR \fILOCALITY\fP
|
|
74
|
+
Searches for all Certs with the Subject Locality (L)\.
|
|
75
|
+
.TP
|
|
76
|
+
\fB\-\-state\fR \fISTATE\fP
|
|
77
|
+
Searches for all Certs with the Subject State (ST)\.
|
|
78
|
+
.TP
|
|
79
|
+
\fB\-\-country\fR \fICOUNTRY\fP
|
|
80
|
+
Searches for all Certs with the Subject Country (C)\.
|
|
81
|
+
.TP
|
|
82
|
+
\fB\-\-import\fR \fIFILE\fP
|
|
83
|
+
Imports a SSL\[sl]TLS certificate from a PEM encoded file\.
|
|
84
|
+
.TP
|
|
85
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
86
|
+
Print help information\.
|
|
87
|
+
.SH ENVIRONMENT
|
|
88
|
+
.TP
|
|
89
|
+
\fIHOME\fP
|
|
90
|
+
Alternate location for the user\[cq]s home directory\.
|
|
91
|
+
.TP
|
|
92
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
|
93
|
+
Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
|
|
94
|
+
.TP
|
|
95
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
|
96
|
+
Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
|
|
97
|
+
.SH FILES
|
|
98
|
+
.TP
|
|
99
|
+
\fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
|
|
100
|
+
The default sqlite3 database file\.
|
|
101
|
+
.TP
|
|
102
|
+
\fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
|
|
103
|
+
Optional database configuration\.
|
|
104
|
+
.SH AUTHOR
|
|
105
|
+
.PP
|
|
106
|
+
Postmodern
|
|
107
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
|
108
|
+
.ME
|