ronin-db 0.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.github/workflows/ruby.yml +31 -0
  4. data/.gitignore +13 -0
  5. data/.rspec +1 -0
  6. data/.ruby-version +1 -0
  7. data/.yardopts +1 -0
  8. data/COPYING.txt +165 -0
  9. data/ChangeLog.md +12 -0
  10. data/Gemfile +39 -0
  11. data/README.md +272 -0
  12. data/Rakefile +76 -0
  13. data/bin/ronin-db +35 -0
  14. data/gemspec.yml +46 -0
  15. data/lib/ronin/db/cli/command.rb +37 -0
  16. data/lib/ronin/db/cli/commands/add.rb +206 -0
  17. data/lib/ronin/db/cli/commands/asn.rb +218 -0
  18. data/lib/ronin/db/cli/commands/creds.rb +80 -0
  19. data/lib/ronin/db/cli/commands/edit.rb +58 -0
  20. data/lib/ronin/db/cli/commands/emails.rb +90 -0
  21. data/lib/ronin/db/cli/commands/hosts.rb +100 -0
  22. data/lib/ronin/db/cli/commands/ips.rb +100 -0
  23. data/lib/ronin/db/cli/commands/irb.rb +81 -0
  24. data/lib/ronin/db/cli/commands/list.rb +124 -0
  25. data/lib/ronin/db/cli/commands/migrate.rb +75 -0
  26. data/lib/ronin/db/cli/commands/remove.rb +69 -0
  27. data/lib/ronin/db/cli/commands/urls.rb +170 -0
  28. data/lib/ronin/db/cli/database_command.rb +71 -0
  29. data/lib/ronin/db/cli/model_command.rb +202 -0
  30. data/lib/ronin/db/cli/modifiable.rb +141 -0
  31. data/lib/ronin/db/cli/resources_command.rb +120 -0
  32. data/lib/ronin/db/cli/ruby_shell.rb +51 -0
  33. data/lib/ronin/db/cli/uri_methods.rb +97 -0
  34. data/lib/ronin/db/cli.rb +38 -0
  35. data/lib/ronin/db/config_file.rb +132 -0
  36. data/lib/ronin/db/exceptions.rb +26 -0
  37. data/lib/ronin/db/home.rb +36 -0
  38. data/lib/ronin/db/root.rb +28 -0
  39. data/lib/ronin/db/version.rb +26 -0
  40. data/lib/ronin/db.rb +123 -0
  41. data/man/ronin-db-add.1 +99 -0
  42. data/man/ronin-db-add.1.md +75 -0
  43. data/man/ronin-db-asn.1 +79 -0
  44. data/man/ronin-db-asn.1.md +59 -0
  45. data/man/ronin-db-creds.1 +78 -0
  46. data/man/ronin-db-creds.1.md +58 -0
  47. data/man/ronin-db-edit.1 +48 -0
  48. data/man/ronin-db-edit.1.md +36 -0
  49. data/man/ronin-db-emails.1 +82 -0
  50. data/man/ronin-db-emails.1.md +61 -0
  51. data/man/ronin-db-hosts.1 +86 -0
  52. data/man/ronin-db-hosts.1.md +64 -0
  53. data/man/ronin-db-ips.1 +90 -0
  54. data/man/ronin-db-ips.1.md +67 -0
  55. data/man/ronin-db-irb.1 +61 -0
  56. data/man/ronin-db-irb.1.md +46 -0
  57. data/man/ronin-db-list.1 +58 -0
  58. data/man/ronin-db-list.1.md +44 -0
  59. data/man/ronin-db-migrate.1 +44 -0
  60. data/man/ronin-db-migrate.1.md +32 -0
  61. data/man/ronin-db-remove.1 +55 -0
  62. data/man/ronin-db-remove.1.md +42 -0
  63. data/man/ronin-db-urls.1 +98 -0
  64. data/man/ronin-db-urls.1.md +73 -0
  65. data/ronin-db.gemspec +78 -0
  66. data/spec/cli/commands/add_spec.rb +220 -0
  67. data/spec/cli/commands/edit_spec.rb +12 -0
  68. data/spec/cli/commands/irb_spec.rb +26 -0
  69. data/spec/cli/database_command_spec.rb +53 -0
  70. data/spec/cli/model_command_spec.rb +237 -0
  71. data/spec/cli/ruby_shell_spec.rb +14 -0
  72. data/spec/cli/uri_methods_spec.rb +190 -0
  73. data/spec/spec_helper.rb +15 -0
  74. 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)
@@ -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
+
@@ -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