ronin-db 0.1.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.github/workflows/ruby.yml +31 -0
- data/.gitignore +13 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/COPYING.txt +165 -0
- data/ChangeLog.md +12 -0
- data/Gemfile +39 -0
- data/README.md +272 -0
- data/Rakefile +76 -0
- data/bin/ronin-db +35 -0
- data/gemspec.yml +46 -0
- data/lib/ronin/db/cli/command.rb +37 -0
- data/lib/ronin/db/cli/commands/add.rb +206 -0
- data/lib/ronin/db/cli/commands/asn.rb +218 -0
- data/lib/ronin/db/cli/commands/creds.rb +80 -0
- data/lib/ronin/db/cli/commands/edit.rb +58 -0
- data/lib/ronin/db/cli/commands/emails.rb +90 -0
- data/lib/ronin/db/cli/commands/hosts.rb +100 -0
- data/lib/ronin/db/cli/commands/ips.rb +100 -0
- data/lib/ronin/db/cli/commands/irb.rb +81 -0
- data/lib/ronin/db/cli/commands/list.rb +124 -0
- data/lib/ronin/db/cli/commands/migrate.rb +75 -0
- data/lib/ronin/db/cli/commands/remove.rb +69 -0
- data/lib/ronin/db/cli/commands/urls.rb +170 -0
- data/lib/ronin/db/cli/database_command.rb +71 -0
- data/lib/ronin/db/cli/model_command.rb +202 -0
- data/lib/ronin/db/cli/modifiable.rb +141 -0
- data/lib/ronin/db/cli/resources_command.rb +120 -0
- data/lib/ronin/db/cli/ruby_shell.rb +51 -0
- data/lib/ronin/db/cli/uri_methods.rb +97 -0
- data/lib/ronin/db/cli.rb +38 -0
- data/lib/ronin/db/config_file.rb +132 -0
- data/lib/ronin/db/exceptions.rb +26 -0
- data/lib/ronin/db/home.rb +36 -0
- data/lib/ronin/db/root.rb +28 -0
- data/lib/ronin/db/version.rb +26 -0
- data/lib/ronin/db.rb +123 -0
- data/man/ronin-db-add.1 +99 -0
- data/man/ronin-db-add.1.md +75 -0
- data/man/ronin-db-asn.1 +79 -0
- data/man/ronin-db-asn.1.md +59 -0
- data/man/ronin-db-creds.1 +78 -0
- data/man/ronin-db-creds.1.md +58 -0
- data/man/ronin-db-edit.1 +48 -0
- data/man/ronin-db-edit.1.md +36 -0
- data/man/ronin-db-emails.1 +82 -0
- data/man/ronin-db-emails.1.md +61 -0
- data/man/ronin-db-hosts.1 +86 -0
- data/man/ronin-db-hosts.1.md +64 -0
- data/man/ronin-db-ips.1 +90 -0
- data/man/ronin-db-ips.1.md +67 -0
- data/man/ronin-db-irb.1 +61 -0
- data/man/ronin-db-irb.1.md +46 -0
- data/man/ronin-db-list.1 +58 -0
- data/man/ronin-db-list.1.md +44 -0
- data/man/ronin-db-migrate.1 +44 -0
- data/man/ronin-db-migrate.1.md +32 -0
- data/man/ronin-db-remove.1 +55 -0
- data/man/ronin-db-remove.1.md +42 -0
- data/man/ronin-db-urls.1 +98 -0
- data/man/ronin-db-urls.1.md +73 -0
- data/ronin-db.gemspec +78 -0
- data/spec/cli/commands/add_spec.rb +220 -0
- data/spec/cli/commands/edit_spec.rb +12 -0
- data/spec/cli/commands/irb_spec.rb +26 -0
- data/spec/cli/database_command_spec.rb +53 -0
- data/spec/cli/model_command_spec.rb +237 -0
- data/spec/cli/ruby_shell_spec.rb +14 -0
- data/spec/cli/uri_methods_spec.rb +190 -0
- data/spec/spec_helper.rb +15 -0
- metadata +200 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
# ronin-db-add 1 "2022-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db add` [*options*] *NAME* [*URI*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Lists entries in the `~/.config/ronin-db/database.yml` configuration file.
|
10
|
+
|
11
|
+
## ARGUMENTS
|
12
|
+
|
13
|
+
*NAME*
|
14
|
+
The name of the database to add.
|
15
|
+
|
16
|
+
*URI*
|
17
|
+
The optional URI to the database to add.
|
18
|
+
|
19
|
+
## OPTIONS
|
20
|
+
|
21
|
+
`-A`, `--adapter` `sqlite3|mysql2|postgres|...`
|
22
|
+
The adapter of the database to add.
|
23
|
+
|
24
|
+
`--sqlite3` *FILE*
|
25
|
+
Alias for `--adapter sqlite3 --database` *FILE*.
|
26
|
+
|
27
|
+
`--mysql2`
|
28
|
+
Alias for `--adapter mysql2`.
|
29
|
+
|
30
|
+
`--postgresql`
|
31
|
+
Alias for `--adapter postgresql`.
|
32
|
+
|
33
|
+
`-H`, `--host` *HOST*
|
34
|
+
The host of the database to add.
|
35
|
+
|
36
|
+
`-p`, `--port` *PORT*
|
37
|
+
The port of the database to add.
|
38
|
+
|
39
|
+
`-u`, `--username` *USER*
|
40
|
+
The username to authenticate with for the database.
|
41
|
+
|
42
|
+
`-P`, `--password` *PASSWORD*
|
43
|
+
The password to authenticate with for the database.
|
44
|
+
|
45
|
+
`--read-password`
|
46
|
+
Reads the database password from STDIN.
|
47
|
+
|
48
|
+
`-D`, `--database` *NAME*|*PATH*
|
49
|
+
The database name to connect to. If `--adapter sqlite3` is given then a path
|
50
|
+
may be given instead.
|
51
|
+
|
52
|
+
`-h`, `--help`
|
53
|
+
Print help information.
|
54
|
+
|
55
|
+
## FILES
|
56
|
+
|
57
|
+
*~/.config/ronin-db/database.yml*
|
58
|
+
The `ronin-db` database(s) configuration file.
|
59
|
+
|
60
|
+
## ENVIRONMENT
|
61
|
+
|
62
|
+
HOME
|
63
|
+
Specifies the home directory of the user. Ronin will search for the
|
64
|
+
*~/.config/ronin-db* cache directory within the home directory.
|
65
|
+
|
66
|
+
XDG_CONFIG_HOME
|
67
|
+
Specifies the cache directory to use. Defaults to *$HOME/.config*.
|
68
|
+
|
69
|
+
## AUTHOR
|
70
|
+
|
71
|
+
Postmodern <postmodern.mod3@gmail.com>
|
72
|
+
|
73
|
+
## SEE ALSO
|
74
|
+
|
75
|
+
ronin-db(1) ronin-db-list(1) ronin-db-edit(1) ronin-db-remove(1)
|
data/man/ronin-db-asn.1
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-asn 1 "April 2012" Ronin "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db asn\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Queries or updates Autonomous System Numbers (ASNs) in the database\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB--db\fR \fINAME\fP
|
19
|
+
The database name to connect to\. Defaults to \fBdefault\fR if not given\.
|
20
|
+
.LP
|
21
|
+
.TP
|
22
|
+
\fB--db-uri\fR \fIURI\fP
|
23
|
+
The explicit database URI to connect to
|
24
|
+
(ex: \fBpostgres://user:password@host/db\fR)\.
|
25
|
+
.LP
|
26
|
+
.TP
|
27
|
+
\fB-v\fR, \fB--verbose\fR
|
28
|
+
Enables verbose output
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fB-n\fR, \fB--number\fR \fIINT\fP
|
32
|
+
Searches for all ASN records with the AS number\.
|
33
|
+
.LP
|
34
|
+
.TP
|
35
|
+
\fB-C\fR, \fB--country-code\fR \fIXX\fP\[or]\fBNone\fR\[or]\fBUknown\fR
|
36
|
+
Searches for all ASN records with the country code\.
|
37
|
+
.LP
|
38
|
+
.TP
|
39
|
+
\fB-N\fR, \fB--name\fR \fINAME\fP
|
40
|
+
Searches for all ASN records with the matching name\.
|
41
|
+
.LP
|
42
|
+
.TP
|
43
|
+
\fB-I\fR, \fB--ip\fR \fIIP\fP
|
44
|
+
Queries the ASN record for the IP\.
|
45
|
+
.LP
|
46
|
+
.TP
|
47
|
+
\fB-4\fR, \fB--ipv4\fR
|
48
|
+
Filter ASN records for only IPv4 ranges\.
|
49
|
+
.LP
|
50
|
+
.TP
|
51
|
+
\fB-6\fR, \fB--ipv6\fR
|
52
|
+
Filter ASN records for only IPv6 ranges\.
|
53
|
+
.LP
|
54
|
+
.TP
|
55
|
+
\fB-u\fR, \fB--update\fR
|
56
|
+
Updates the ASN records\.
|
57
|
+
.LP
|
58
|
+
.TP
|
59
|
+
\fB-U\fR, \fB--url\fR \fIURI\fP
|
60
|
+
Overrides the default ASN list URL\.
|
61
|
+
Defaults to \fBhttps://iptoasn.com/data/ip2asn-combined.tsv.gz\fR if not given\.
|
62
|
+
.LP
|
63
|
+
.TP
|
64
|
+
\fB-f\fR, \fB--file\fR \fIFILE\fP
|
65
|
+
Overrides the default ASN list file\.
|
66
|
+
Defaults to \fB~/.local/share/ronin/ronin-support/ip2asn-combined.tsv.gz\fR
|
67
|
+
if not given\.
|
68
|
+
.LP
|
69
|
+
.TP
|
70
|
+
\fB-h\fR, \fB--help\fR
|
71
|
+
Print help information\.
|
72
|
+
.LP
|
73
|
+
.SH AUTHOR
|
74
|
+
.LP
|
75
|
+
.PP
|
76
|
+
Postmodern
|
77
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
78
|
+
.ME
|
79
|
+
.LP
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# ronin-db-asn 1 "April 2012" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db asn` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Queries or updates Autonomous System Numbers (ASNs) in the database.
|
10
|
+
|
11
|
+
## OPTIONS
|
12
|
+
|
13
|
+
`--db` *NAME*
|
14
|
+
The database name to connect to. Defaults to `default` if not given.
|
15
|
+
|
16
|
+
`--db-uri` *URI*
|
17
|
+
The explicit database URI to connect to
|
18
|
+
(ex: `postgres://user:password@host/db`).
|
19
|
+
|
20
|
+
`-v`, `--verbose`
|
21
|
+
Enables verbose output
|
22
|
+
|
23
|
+
`-n`, `--number` *INT*
|
24
|
+
Searches for all ASN records with the AS number.
|
25
|
+
|
26
|
+
`-C`, `--country-code` *XX*\|`None`\|`Uknown`
|
27
|
+
Searches for all ASN records with the country code.
|
28
|
+
|
29
|
+
`-N`, `--name` *NAME*
|
30
|
+
Searches for all ASN records with the matching name.
|
31
|
+
|
32
|
+
`-I`, `--ip` *IP*
|
33
|
+
Queries the ASN record for the IP.
|
34
|
+
|
35
|
+
`-4`, `--ipv4`
|
36
|
+
Filter ASN records for only IPv4 ranges.
|
37
|
+
|
38
|
+
`-6`, `--ipv6`
|
39
|
+
Filter ASN records for only IPv6 ranges.
|
40
|
+
|
41
|
+
`-u`, `--update`
|
42
|
+
Updates the ASN records.
|
43
|
+
|
44
|
+
`-U`, `--url` *URI*
|
45
|
+
Overrides the default ASN list URL.
|
46
|
+
Defaults to `https://iptoasn.com/data/ip2asn-combined.tsv.gz` if not given.
|
47
|
+
|
48
|
+
`-f`, `--file` *FILE*
|
49
|
+
Overrides the default ASN list file.
|
50
|
+
Defaults to `~/.local/share/ronin/ronin-support/ip2asn-combined.tsv.gz`
|
51
|
+
if not given.
|
52
|
+
|
53
|
+
`-h`, `--help`
|
54
|
+
Print help information.
|
55
|
+
|
56
|
+
## AUTHOR
|
57
|
+
|
58
|
+
Postmodern <postmodern.mod3@gmail.com>
|
59
|
+
|
@@ -0,0 +1,78 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-creds 1 "April 2012" Ronin "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db creds\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Manages credentials\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB--db\fR \fINAME\fP
|
19
|
+
The database to connect to\. Defaults to \fBdefault\fR if not given\.
|
20
|
+
.LP
|
21
|
+
.TP
|
22
|
+
\fB--db-uri\fR \fIURI\fP
|
23
|
+
The explicit database URI to connect to
|
24
|
+
(ex: \fBmysql://user:password@host/ronin\fR)\.
|
25
|
+
.LP
|
26
|
+
.TP
|
27
|
+
\fB-v\fR, \fB--verbose\fR
|
28
|
+
Enable verbose output\.
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fB--add\fR \fIUSER\fP:\fIPASSWORD\fP
|
32
|
+
Adds the \fIUSER\fP and \fIPASSWORD\fP to the database\.
|
33
|
+
.LP
|
34
|
+
.TP
|
35
|
+
\fB--import\fR \fIFILE\fP
|
36
|
+
Imports the credentials from the given \fIFILE\fP\.
|
37
|
+
.LP
|
38
|
+
.TP
|
39
|
+
\fB--delete\fR \fIVALUE\fP
|
40
|
+
Deletes a value from the database\.
|
41
|
+
.LP
|
42
|
+
.TP
|
43
|
+
\fB--delete-all\fR
|
44
|
+
Deletes every value from the database\.
|
45
|
+
.LP
|
46
|
+
.TP
|
47
|
+
\fB-u\fR, \fB--for-user\fR \fIUSER\fP
|
48
|
+
Searches for Credentials associated with the USER\.
|
49
|
+
.LP
|
50
|
+
.TP
|
51
|
+
\fB-p\fR, \fB--with-password\fR \fIPASSWORD\fP
|
52
|
+
Searches for Credentials that have the PASSWORD\.
|
53
|
+
.LP
|
54
|
+
.SH FILES
|
55
|
+
.LP
|
56
|
+
.TP
|
57
|
+
\fI\[ti]\[sl]\.ronin\[sl]\fP
|
58
|
+
Ronin configuration directory\.
|
59
|
+
.LP
|
60
|
+
.TP
|
61
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
|
62
|
+
Database log\.
|
63
|
+
.LP
|
64
|
+
.TP
|
65
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
|
66
|
+
The default sqlite3 Database file\.
|
67
|
+
.LP
|
68
|
+
.TP
|
69
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
|
70
|
+
Optional Database configuration\.
|
71
|
+
.LP
|
72
|
+
.SH AUTHOR
|
73
|
+
.LP
|
74
|
+
.PP
|
75
|
+
Postmodern
|
76
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
77
|
+
.ME
|
78
|
+
.LP
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# ronin-db-creds 1 "April 2012" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db creds` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Manages credentials.
|
10
|
+
|
11
|
+
## OPTIONS
|
12
|
+
|
13
|
+
`--db` *NAME*
|
14
|
+
The database to connect to. Defaults to `default` if not given.
|
15
|
+
|
16
|
+
`--db-uri` *URI*
|
17
|
+
The explicit database URI to connect to
|
18
|
+
(ex: `mysql://user:password@host/ronin`).
|
19
|
+
|
20
|
+
`-v`, `--verbose`
|
21
|
+
Enable verbose output.
|
22
|
+
|
23
|
+
`--add` *USER*:*PASSWORD*
|
24
|
+
Adds the *USER* and *PASSWORD* to the database.
|
25
|
+
|
26
|
+
`--import` *FILE*
|
27
|
+
Imports the credentials from the given *FILE*.
|
28
|
+
|
29
|
+
`--delete` *VALUE*
|
30
|
+
Deletes a value from the database.
|
31
|
+
|
32
|
+
`--delete-all`
|
33
|
+
Deletes every value from the database.
|
34
|
+
|
35
|
+
`-u`, `--for-user` *USER*
|
36
|
+
Searches for Credentials associated with the USER.
|
37
|
+
|
38
|
+
`-p`, `--with-password` *PASSWORD*
|
39
|
+
Searches for Credentials that have the PASSWORD.
|
40
|
+
|
41
|
+
## FILES
|
42
|
+
|
43
|
+
*~/.ronin/*
|
44
|
+
Ronin configuration directory.
|
45
|
+
|
46
|
+
*~/.ronin/database.log*
|
47
|
+
Database log.
|
48
|
+
|
49
|
+
*~/.ronin/database.sqlite3*
|
50
|
+
The default sqlite3 Database file.
|
51
|
+
|
52
|
+
*~/.ronin/database.yml*
|
53
|
+
Optional Database configuration.
|
54
|
+
|
55
|
+
## AUTHOR
|
56
|
+
|
57
|
+
Postmodern <postmodern.mod3@gmail.com>
|
58
|
+
|
data/man/ronin-db-edit.1
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-edit 1 "2022-01-01" Ronin DB "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db edit\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Manually edits the \fB~/.config/ronin-db/database.yml\fR configuration file\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB-h\fR, \fB--help\fR
|
19
|
+
Print help information\.
|
20
|
+
.LP
|
21
|
+
.SH FILES
|
22
|
+
.LP
|
23
|
+
.TP
|
24
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
|
25
|
+
The \fBronin-db\fR database(s) configuration file\.
|
26
|
+
.LP
|
27
|
+
.SH ENVIRONMENT
|
28
|
+
.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\.
|
33
|
+
.LP
|
34
|
+
.PP
|
35
|
+
XDG\[ru]CONFIG\[ru]HOME
|
36
|
+
Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
|
37
|
+
.LP
|
38
|
+
.SH AUTHOR
|
39
|
+
.LP
|
40
|
+
.PP
|
41
|
+
Postmodern
|
42
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
43
|
+
.ME
|
44
|
+
.LP
|
45
|
+
.SH SEE ALSO
|
46
|
+
.LP
|
47
|
+
.PP
|
48
|
+
ronin\-db(1) ronin\-db\-add(1) ronin\-db\-list(1) ronin\-db\-remove(1)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# ronin-db-edit 1 "2022-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db edit` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Manually edits the `~/.config/ronin-db/database.yml` configuration file.
|
10
|
+
|
11
|
+
## OPTIONS
|
12
|
+
|
13
|
+
`-h`, `--help`
|
14
|
+
Print help information.
|
15
|
+
|
16
|
+
## FILES
|
17
|
+
|
18
|
+
*~/.config/ronin-db/database.yml*
|
19
|
+
The `ronin-db` database(s) configuration file.
|
20
|
+
|
21
|
+
## ENVIRONMENT
|
22
|
+
|
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.
|
26
|
+
|
27
|
+
XDG_CONFIG_HOME
|
28
|
+
Specifies the cache directory to use. Defaults to *$HOME/.config*.
|
29
|
+
|
30
|
+
## AUTHOR
|
31
|
+
|
32
|
+
Postmodern <postmodern.mod3@gmail.com>
|
33
|
+
|
34
|
+
## SEE ALSO
|
35
|
+
|
36
|
+
ronin-db(1) ronin-db-add(1) ronin-db-list(1) ronin-db-remove(1)
|
@@ -0,0 +1,82 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-emails 1 "April 2012" Ronin "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db emails\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Manages email addresses\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB--db\fR \fINAME\fP
|
19
|
+
The database to connect to\. Defaults to \fBdefault\fR if not given\.
|
20
|
+
.LP
|
21
|
+
.TP
|
22
|
+
\fB--db-uri\fR \fIURI\fP
|
23
|
+
The explicit database URI to connect to
|
24
|
+
(ex: \fBmysql://user:password@host/ronin\fR)\.
|
25
|
+
.LP
|
26
|
+
.TP
|
27
|
+
\fB-v\fR, \fB--verbose\fR
|
28
|
+
Enable verbose output\.
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fB--add\fR \fIUSER\fP:\fIPASSWORD\fP
|
32
|
+
Adds the \fIUSER\fP and \fIPASSWORD\fP to the database\.
|
33
|
+
.LP
|
34
|
+
.TP
|
35
|
+
\fB--import\fR \fIFILE\fP
|
36
|
+
Imports the credentials from the given \fIFILE\fP\.
|
37
|
+
.LP
|
38
|
+
.TP
|
39
|
+
\fB--delete\fR \fIVALUE\fP
|
40
|
+
Deletes a value from the database\.
|
41
|
+
.LP
|
42
|
+
.TP
|
43
|
+
\fB--delete-all\fR
|
44
|
+
Deletes every value from the database\.
|
45
|
+
.LP
|
46
|
+
.TP
|
47
|
+
\fB-H\fR, \fB--with-host\fR \fIHOST\fP
|
48
|
+
Searches for email addresses associated with the \fIHOST\fP\.
|
49
|
+
.LP
|
50
|
+
.TP
|
51
|
+
\fB-I\fR, \fB--with-ip\fR \fIIP\fP
|
52
|
+
Searches for email addresses associated with the IP address\.
|
53
|
+
.LP
|
54
|
+
.HP
|
55
|
+
\fB-u\fR, \fB--with-users\fR \fINAME\fP \[lB]\.\.\.\[rB]
|
56
|
+
Searches for email addresses associated with the user NAME(s)\.
|
57
|
+
.LP
|
58
|
+
.SH FILES
|
59
|
+
.LP
|
60
|
+
.TP
|
61
|
+
\fI\[ti]\[sl]\.ronin\[sl]\fP
|
62
|
+
Ronin configuration directory\.
|
63
|
+
.LP
|
64
|
+
.TP
|
65
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
|
66
|
+
Database log\.
|
67
|
+
.LP
|
68
|
+
.TP
|
69
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
|
70
|
+
The default sqlite3 Database file\.
|
71
|
+
.LP
|
72
|
+
.TP
|
73
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
|
74
|
+
Optional Database configuration\.
|
75
|
+
.LP
|
76
|
+
.SH AUTHOR
|
77
|
+
.LP
|
78
|
+
.PP
|
79
|
+
Postmodern
|
80
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
81
|
+
.ME
|
82
|
+
.LP
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# ronin-db-emails 1 "April 2012" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db emails` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Manages email addresses.
|
10
|
+
|
11
|
+
## OPTIONS
|
12
|
+
|
13
|
+
`--db` *NAME*
|
14
|
+
The database to connect to. Defaults to `default` if not given.
|
15
|
+
|
16
|
+
`--db-uri` *URI*
|
17
|
+
The explicit database URI to connect to
|
18
|
+
(ex: `mysql://user:password@host/ronin`).
|
19
|
+
|
20
|
+
`-v`, `--verbose`
|
21
|
+
Enable verbose output.
|
22
|
+
|
23
|
+
`--add` *USER*:*PASSWORD*
|
24
|
+
Adds the *USER* and *PASSWORD* to the database.
|
25
|
+
|
26
|
+
`--import` *FILE*
|
27
|
+
Imports the credentials from the given *FILE*.
|
28
|
+
|
29
|
+
`--delete` *VALUE*
|
30
|
+
Deletes a value from the database.
|
31
|
+
|
32
|
+
`--delete-all`
|
33
|
+
Deletes every value from the database.
|
34
|
+
|
35
|
+
`-H`, `--with-host` *HOST*
|
36
|
+
Searches for email addresses associated with the *HOST*.
|
37
|
+
|
38
|
+
`-I`, `--with-ip` *IP*
|
39
|
+
Searches for email addresses associated with the IP address.
|
40
|
+
|
41
|
+
`-u`, `--with-users` *NAME* [...]
|
42
|
+
Searches for email addresses associated with the user NAME(s).
|
43
|
+
|
44
|
+
## FILES
|
45
|
+
|
46
|
+
*~/.ronin/*
|
47
|
+
Ronin configuration directory.
|
48
|
+
|
49
|
+
*~/.ronin/database.log*
|
50
|
+
Database log.
|
51
|
+
|
52
|
+
*~/.ronin/database.sqlite3*
|
53
|
+
The default sqlite3 Database file.
|
54
|
+
|
55
|
+
*~/.ronin/database.yml*
|
56
|
+
Optional Database configuration.
|
57
|
+
|
58
|
+
## AUTHOR
|
59
|
+
|
60
|
+
Postmodern <postmodern.mod3@gmail.com>
|
61
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-hosts 1 "April 2012" Ronin "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db hosts\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Manages host names\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB--db\fR \fINAME\fP
|
19
|
+
The database to connect to\. Defaults to \fBdefault\fR if not given\.
|
20
|
+
.LP
|
21
|
+
.TP
|
22
|
+
\fB--db-uri\fR \fIURI\fP
|
23
|
+
The explicit database URI to connect to
|
24
|
+
(ex: \fBmysql://user:password@host/ronin\fR)\.
|
25
|
+
.LP
|
26
|
+
.TP
|
27
|
+
\fB-v\fR, \fB--verbose\fR
|
28
|
+
Enable verbose output\.
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fB--add\fR \fIUSER\fP:\fIPASSWORD\fP
|
32
|
+
Adds the \fIUSER\fP and \fIPASSWORD\fP to the database\.
|
33
|
+
.LP
|
34
|
+
.TP
|
35
|
+
\fB--import\fR \fIFILE\fP
|
36
|
+
Imports the credentials from the given \fIFILE\fP\.
|
37
|
+
.LP
|
38
|
+
.TP
|
39
|
+
\fB--delete\fR \fIVALUE\fP
|
40
|
+
Deletes a value from the database\.
|
41
|
+
.LP
|
42
|
+
.TP
|
43
|
+
\fB--delete-all\fR
|
44
|
+
Deletes every value from the database\.
|
45
|
+
.LP
|
46
|
+
.TP
|
47
|
+
\fB-I\fR, \fB--with-ip\fR \fIIP\fP
|
48
|
+
Searches for HostNames associated with the IP address\.
|
49
|
+
.LP
|
50
|
+
.TP
|
51
|
+
\fB-p\fR, \fB--with-port\fR \fIPORT\fP
|
52
|
+
Searches for HostNames associated with the \fIPORT\fP\.
|
53
|
+
.LP
|
54
|
+
.TP
|
55
|
+
\fB-D\fR, \fB--domain\fR \fIDOMAIN\fP
|
56
|
+
Searches for HostNames belonging to the DOMAIN (\fBco.uk\fR)\.
|
57
|
+
.LP
|
58
|
+
.TP
|
59
|
+
\fB-T\fR, \fB--tld\fR \fITLD\fP
|
60
|
+
Searches for HostNames with the Top\-Level\-Domain (TLD) (\fBru\fR)\.
|
61
|
+
.LP
|
62
|
+
.SH FILES
|
63
|
+
.LP
|
64
|
+
.TP
|
65
|
+
\fI\[ti]\[sl]\.ronin\[sl]\fP
|
66
|
+
Ronin configuration directory\.
|
67
|
+
.LP
|
68
|
+
.TP
|
69
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
|
70
|
+
Database log\.
|
71
|
+
.LP
|
72
|
+
.TP
|
73
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
|
74
|
+
The default sqlite3 Database file\.
|
75
|
+
.LP
|
76
|
+
.TP
|
77
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
|
78
|
+
Optional Database configuration\.
|
79
|
+
.LP
|
80
|
+
.SH AUTHOR
|
81
|
+
.LP
|
82
|
+
.PP
|
83
|
+
Postmodern
|
84
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
85
|
+
.ME
|
86
|
+
.LP
|