ronin-db 0.1.0.beta1-java
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,64 @@
|
|
1
|
+
# ronin-db-hosts 1 "April 2012" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db hosts` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Manages host names.
|
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
|
+
`-I`, `--with-ip` *IP*
|
36
|
+
Searches for HostNames associated with the IP address.
|
37
|
+
|
38
|
+
`-p`, `--with-port` *PORT*
|
39
|
+
Searches for HostNames associated with the *PORT*.
|
40
|
+
|
41
|
+
`-D`, `--domain` *DOMAIN*
|
42
|
+
Searches for HostNames belonging to the DOMAIN (`co.uk`).
|
43
|
+
|
44
|
+
`-T`, `--tld` *TLD*
|
45
|
+
Searches for HostNames with the Top-Level-Domain (TLD) (`ru`).
|
46
|
+
|
47
|
+
## FILES
|
48
|
+
|
49
|
+
*~/.ronin/*
|
50
|
+
Ronin configuration directory.
|
51
|
+
|
52
|
+
*~/.ronin/database.log*
|
53
|
+
Database log.
|
54
|
+
|
55
|
+
*~/.ronin/database.sqlite3*
|
56
|
+
The default sqlite3 Database file.
|
57
|
+
|
58
|
+
*~/.ronin/database.yml*
|
59
|
+
Optional Database configuration.
|
60
|
+
|
61
|
+
## AUTHOR
|
62
|
+
|
63
|
+
Postmodern <postmodern.mod3@gmail.com>
|
64
|
+
|
data/man/ronin-db-ips.1
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-ips 1 "April 2012" Ronin "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db ips\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Manages IP 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-4\fR, \fB--v4\fR
|
48
|
+
Searches for IPv4 addresses\.
|
49
|
+
.LP
|
50
|
+
.TP
|
51
|
+
\fB-6\fR, \fB--v6\fR
|
52
|
+
Searches for IPv6 addresses\.
|
53
|
+
.LP
|
54
|
+
.TP
|
55
|
+
\fB-p\fR, \fB--with-port\fR \fIPORT\fP
|
56
|
+
Searches for IP addresses associated with the user \fIPORT\fP\.
|
57
|
+
.LP
|
58
|
+
.TP
|
59
|
+
\fB-I\fR, \fB--with-mac-addr\fR \fIMAC\fP
|
60
|
+
Searches for IP addresses associated with the MAC address\.
|
61
|
+
.LP
|
62
|
+
.TP
|
63
|
+
\fB-I\fR, \fB--with-host\fR \fIHOST\fP
|
64
|
+
Searches for IP addresses associated with the \fIHOST\fP\.
|
65
|
+
.LP
|
66
|
+
.SH FILES
|
67
|
+
.LP
|
68
|
+
.TP
|
69
|
+
\fI\[ti]\[sl]\.ronin\[sl]\fP
|
70
|
+
Ronin configuration directory\.
|
71
|
+
.LP
|
72
|
+
.TP
|
73
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
|
74
|
+
Database log\.
|
75
|
+
.LP
|
76
|
+
.TP
|
77
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
|
78
|
+
The default sqlite3 Database file\.
|
79
|
+
.LP
|
80
|
+
.TP
|
81
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
|
82
|
+
Optional Database configuration\.
|
83
|
+
.LP
|
84
|
+
.SH AUTHOR
|
85
|
+
.LP
|
86
|
+
.PP
|
87
|
+
Postmodern
|
88
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
89
|
+
.ME
|
90
|
+
.LP
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# ronin-db-ips 1 "April 2012" Ronin "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db ips` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Manages IP 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
|
+
`-4`, `--v4`
|
36
|
+
Searches for IPv4 addresses.
|
37
|
+
|
38
|
+
`-6`, `--v6`
|
39
|
+
Searches for IPv6 addresses.
|
40
|
+
|
41
|
+
`-p`, `--with-port` *PORT*
|
42
|
+
Searches for IP addresses associated with the user *PORT*.
|
43
|
+
|
44
|
+
`-I`, `--with-mac-addr` *MAC*
|
45
|
+
Searches for IP addresses associated with the MAC address.
|
46
|
+
|
47
|
+
`-I`, `--with-host` *HOST*
|
48
|
+
Searches for IP addresses associated with the *HOST*.
|
49
|
+
|
50
|
+
## FILES
|
51
|
+
|
52
|
+
*~/.ronin/*
|
53
|
+
Ronin configuration directory.
|
54
|
+
|
55
|
+
*~/.ronin/database.log*
|
56
|
+
Database log.
|
57
|
+
|
58
|
+
*~/.ronin/database.sqlite3*
|
59
|
+
The default sqlite3 Database file.
|
60
|
+
|
61
|
+
*~/.ronin/database.yml*
|
62
|
+
Optional Database configuration.
|
63
|
+
|
64
|
+
## AUTHOR
|
65
|
+
|
66
|
+
Postmodern <postmodern.mod3@gmail.com>
|
67
|
+
|
data/man/ronin-db-irb.1
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-irb 1 "2022-01-01" Ronin DB "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db irb\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Connects to a database and start an interactive Ruby shell\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB--db\fR \fINAME\fP
|
19
|
+
The database to connect to\. Will connect to the \fBdefault\fR database if not
|
20
|
+
specified\.
|
21
|
+
.LP
|
22
|
+
.TP
|
23
|
+
\fB--db-uri\fR \fIURI\fP
|
24
|
+
The database URI to connect to\.
|
25
|
+
.LP
|
26
|
+
.TP
|
27
|
+
\fB--no-connect\fR
|
28
|
+
Causes the Ruby shell to not connect to a database on startup\.
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fB-h\fR, \fB--help\fR
|
32
|
+
Print help information\.
|
33
|
+
.LP
|
34
|
+
.SH FILES
|
35
|
+
.LP
|
36
|
+
.TP
|
37
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
|
38
|
+
The \fBronin-db\fR database(s) configuration file\.
|
39
|
+
.LP
|
40
|
+
.SH ENVIRONMENT
|
41
|
+
.LP
|
42
|
+
.PP
|
43
|
+
HOME
|
44
|
+
Specifies the home directory of the user\. Ronin will search for the
|
45
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
|
46
|
+
.LP
|
47
|
+
.PP
|
48
|
+
XDG\[ru]CONFIG\[ru]HOME
|
49
|
+
Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
|
50
|
+
.LP
|
51
|
+
.SH AUTHOR
|
52
|
+
.LP
|
53
|
+
.PP
|
54
|
+
Postmodern
|
55
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
56
|
+
.ME
|
57
|
+
.LP
|
58
|
+
.SH SEE ALSO
|
59
|
+
.LP
|
60
|
+
.PP
|
61
|
+
ronin\-db(1)
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# ronin-db-irb 1 "2022-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db irb` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Connects to a database and start an interactive Ruby shell.
|
10
|
+
|
11
|
+
## OPTIONS
|
12
|
+
|
13
|
+
`--db` *NAME*
|
14
|
+
The database to connect to. Will connect to the `default` database if not
|
15
|
+
specified.
|
16
|
+
|
17
|
+
`--db-uri` *URI*
|
18
|
+
The database URI to connect to.
|
19
|
+
|
20
|
+
`--no-connect`
|
21
|
+
Causes the Ruby shell to not connect to a database on startup.
|
22
|
+
|
23
|
+
`-h`, `--help`
|
24
|
+
Print help information.
|
25
|
+
|
26
|
+
## FILES
|
27
|
+
|
28
|
+
*~/.config/ronin-db/database.yml*
|
29
|
+
The `ronin-db` database(s) configuration file.
|
30
|
+
|
31
|
+
## ENVIRONMENT
|
32
|
+
|
33
|
+
HOME
|
34
|
+
Specifies the home directory of the user. Ronin will search for the
|
35
|
+
*~/.config/ronin-db* cache directory within the home directory.
|
36
|
+
|
37
|
+
XDG_CONFIG_HOME
|
38
|
+
Specifies the cache directory to use. Defaults to *$HOME/.config*.
|
39
|
+
|
40
|
+
## AUTHOR
|
41
|
+
|
42
|
+
Postmodern <postmodern.mod3@gmail.com>
|
43
|
+
|
44
|
+
## SEE ALSO
|
45
|
+
|
46
|
+
ronin-db(1)
|
data/man/ronin-db-list.1
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-list 1 "2022-01-01" Ronin DB "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db list\fR \[lB]\fIoptions\fP\[rB] \[lB]\fINAME\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Lists entries in the \fB~/.config/ronin-db/database.yml\fR configuration file\.
|
14
|
+
.LP
|
15
|
+
.SH ARGUMENTS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fINAME\fP
|
19
|
+
The optional database name to print configuration information for\.
|
20
|
+
.LP
|
21
|
+
.SH OPTIONS
|
22
|
+
.LP
|
23
|
+
.TP
|
24
|
+
\fB-v\fR, \fB--verbose\fR
|
25
|
+
Enables verbose output\.
|
26
|
+
.LP
|
27
|
+
.TP
|
28
|
+
\fB-h\fR, \fB--help\fR
|
29
|
+
Print help information\.
|
30
|
+
.LP
|
31
|
+
.SH FILES
|
32
|
+
.LP
|
33
|
+
.TP
|
34
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
|
35
|
+
The \fBronin-db\fR database(s) configuration file\.
|
36
|
+
.LP
|
37
|
+
.SH ENVIRONMENT
|
38
|
+
.LP
|
39
|
+
.PP
|
40
|
+
HOME
|
41
|
+
Specifies the home directory of the user\. Ronin will search for the
|
42
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
|
43
|
+
.LP
|
44
|
+
.PP
|
45
|
+
XDG\[ru]CONFIG\[ru]HOME
|
46
|
+
Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
|
47
|
+
.LP
|
48
|
+
.SH AUTHOR
|
49
|
+
.LP
|
50
|
+
.PP
|
51
|
+
Postmodern
|
52
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
53
|
+
.ME
|
54
|
+
.LP
|
55
|
+
.SH SEE ALSO
|
56
|
+
.LP
|
57
|
+
.PP
|
58
|
+
ronin\-db(1) ronin\-db\-add(1) ronin\-db\-edit(1) ronin\-db\-remove(1)
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# ronin-db-list 1 "2022-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db list` [*options*] [*NAME*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Lists entries in the `~/.config/ronin-db/database.yml` configuration file.
|
10
|
+
|
11
|
+
## ARGUMENTS
|
12
|
+
|
13
|
+
*NAME*
|
14
|
+
The optional database name to print configuration information for.
|
15
|
+
|
16
|
+
## OPTIONS
|
17
|
+
|
18
|
+
`-v`, `--verbose`
|
19
|
+
Enables verbose output.
|
20
|
+
|
21
|
+
`-h`, `--help`
|
22
|
+
Print help information.
|
23
|
+
|
24
|
+
## FILES
|
25
|
+
|
26
|
+
*~/.config/ronin-db/database.yml*
|
27
|
+
The `ronin-db` database(s) configuration file.
|
28
|
+
|
29
|
+
## ENVIRONMENT
|
30
|
+
|
31
|
+
HOME
|
32
|
+
Specifies the home directory of the user. Ronin will search for the
|
33
|
+
*~/.config/ronin-db* cache directory within the home directory.
|
34
|
+
|
35
|
+
XDG_CONFIG_HOME
|
36
|
+
Specifies the cache directory to use. Defaults to *$HOME/.config*.
|
37
|
+
|
38
|
+
## AUTHOR
|
39
|
+
|
40
|
+
Postmodern <postmodern.mod3@gmail.com>
|
41
|
+
|
42
|
+
## SEE ALSO
|
43
|
+
|
44
|
+
ronin-db(1) ronin-db-add(1) ronin-db-edit(1) ronin-db-remove(1)
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-migrate 1 "2022-01-01" Ronin DB "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db migrate\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Runs database migrations\.
|
14
|
+
.LP
|
15
|
+
.SH OPTIONS
|
16
|
+
.LP
|
17
|
+
.TP
|
18
|
+
\fB--db\fR \fINAME\fP
|
19
|
+
The database to connect to\. Will connect to the \fBdefault\fR database if not
|
20
|
+
specified\.
|
21
|
+
.LP
|
22
|
+
.TP
|
23
|
+
\fB--db-uri\fR \fIURI\fP
|
24
|
+
The database URI to connect to\.
|
25
|
+
.LP
|
26
|
+
.TP
|
27
|
+
\fB--no-connect\fR
|
28
|
+
Causes the Ruby shell to not connect to a database on startup\.
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fB-h\fR, \fB--help\fR
|
32
|
+
Print help information\.
|
33
|
+
.LP
|
34
|
+
.SH AUTHOR
|
35
|
+
.LP
|
36
|
+
.PP
|
37
|
+
Postmodern
|
38
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
39
|
+
.ME
|
40
|
+
.LP
|
41
|
+
.SH SEE ALSO
|
42
|
+
.LP
|
43
|
+
.PP
|
44
|
+
ronin\-db\-add(1)
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# ronin-db-migrate 1 "2022-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db migrate` [*options*]
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Runs database migrations.
|
10
|
+
|
11
|
+
## OPTIONS
|
12
|
+
|
13
|
+
`--db` *NAME*
|
14
|
+
The database to connect to. Will connect to the `default` database if not
|
15
|
+
specified.
|
16
|
+
|
17
|
+
`--db-uri` *URI*
|
18
|
+
The database URI to connect to.
|
19
|
+
|
20
|
+
`--no-connect`
|
21
|
+
Causes the Ruby shell to not connect to a database on startup.
|
22
|
+
|
23
|
+
`-h`, `--help`
|
24
|
+
Print help information.
|
25
|
+
|
26
|
+
## AUTHOR
|
27
|
+
|
28
|
+
Postmodern <postmodern.mod3@gmail.com>
|
29
|
+
|
30
|
+
## SEE ALSO
|
31
|
+
|
32
|
+
ronin-db-add(1)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-remove 1 "2022-01-01" Ronin DB "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db remove\fR \[lB]\fIoptions\fP\[rB] \fINAME\fP
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Removes a database entry from the \fB~/.config/ronin-db/database.yml\fR
|
14
|
+
configuration file\.
|
15
|
+
.LP
|
16
|
+
.SH ARGUMENTS
|
17
|
+
.LP
|
18
|
+
.TP
|
19
|
+
\fINAME\fP
|
20
|
+
The database entry to remove\.
|
21
|
+
.LP
|
22
|
+
.SH OPTIONS
|
23
|
+
.LP
|
24
|
+
.TP
|
25
|
+
\fB-h\fR, \fB--help\fR
|
26
|
+
Print help information\.
|
27
|
+
.LP
|
28
|
+
.SH FILES
|
29
|
+
.LP
|
30
|
+
.TP
|
31
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
|
32
|
+
The \fBronin-db\fR database(s) configuration file\.
|
33
|
+
.LP
|
34
|
+
.SH ENVIRONMENT
|
35
|
+
.LP
|
36
|
+
.PP
|
37
|
+
HOME
|
38
|
+
Specifies the home directory of the user\. Ronin will search for the
|
39
|
+
\fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
|
40
|
+
.LP
|
41
|
+
.PP
|
42
|
+
XDG\[ru]CONFIG\[ru]HOME
|
43
|
+
Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
|
44
|
+
.LP
|
45
|
+
.SH AUTHOR
|
46
|
+
.LP
|
47
|
+
.PP
|
48
|
+
Postmodern
|
49
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
50
|
+
.ME
|
51
|
+
.LP
|
52
|
+
.SH SEE ALSO
|
53
|
+
.LP
|
54
|
+
.PP
|
55
|
+
ronin\-db(1) ronin\-db\-add(1) ronin\-db\-list(1) ronin\-db\-edit(1)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# ronin-db-remove 1 "2022-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## SYNOPSIS
|
4
|
+
|
5
|
+
`ronin-db remove` [*options*] *NAME*
|
6
|
+
|
7
|
+
## DESCRIPTION
|
8
|
+
|
9
|
+
Removes a database entry from the `~/.config/ronin-db/database.yml`
|
10
|
+
configuration file.
|
11
|
+
|
12
|
+
## ARGUMENTS
|
13
|
+
|
14
|
+
*NAME*
|
15
|
+
The database entry to remove.
|
16
|
+
|
17
|
+
## OPTIONS
|
18
|
+
|
19
|
+
`-h`, `--help`
|
20
|
+
Print help information.
|
21
|
+
|
22
|
+
## FILES
|
23
|
+
|
24
|
+
*~/.config/ronin-db/database.yml*
|
25
|
+
The `ronin-db` database(s) configuration file.
|
26
|
+
|
27
|
+
## ENVIRONMENT
|
28
|
+
|
29
|
+
HOME
|
30
|
+
Specifies the home directory of the user. Ronin will search for the
|
31
|
+
*~/.config/ronin-db* cache directory within the home directory.
|
32
|
+
|
33
|
+
XDG_CONFIG_HOME
|
34
|
+
Specifies the cache directory to use. Defaults to *$HOME/.config*.
|
35
|
+
|
36
|
+
## AUTHOR
|
37
|
+
|
38
|
+
Postmodern <postmodern.mod3@gmail.com>
|
39
|
+
|
40
|
+
## SEE ALSO
|
41
|
+
|
42
|
+
ronin-db(1) ronin-db-add(1) ronin-db-list(1) ronin-db-edit(1)
|
data/man/ronin-db-urls.1
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
.\" Generated by kramdown-man 0.1.8
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-urls 1 "April 2012" Ronin "User Manuals"
|
4
|
+
.LP
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.LP
|
7
|
+
.HP
|
8
|
+
\fBronin-db urls\fR \[lB]\fIoptions\fP\[rB]
|
9
|
+
.LP
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.LP
|
12
|
+
.PP
|
13
|
+
Manages URLs\.
|
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--http\fR
|
48
|
+
Searches for \fBhttp://\fR URLs\.
|
49
|
+
.LP
|
50
|
+
.TP
|
51
|
+
\fB--https\fR
|
52
|
+
Searches for \fBhttps://\fR URLs\.
|
53
|
+
.LP
|
54
|
+
.TP
|
55
|
+
\fB-H\fR, \fB--host\fR \fIHOST\fP
|
56
|
+
Searches for URLs with the given \fIHOST\fP\.
|
57
|
+
.LP
|
58
|
+
.TP
|
59
|
+
\fB-p\fR, \fB--with-port\fR \fIPORT\fP
|
60
|
+
Searches for URLs associated with the \fIPORT\fP\.
|
61
|
+
.LP
|
62
|
+
.TP
|
63
|
+
\fB-d\fR, \fB--directory\fR \fIDIRECTORY\fP
|
64
|
+
Searches for URLs sharing the DIRECTORY\.
|
65
|
+
.LP
|
66
|
+
.HP
|
67
|
+
\fB-q\fR, \fB--with-query-param\fR \fINAME\fP \[lB]\.\.\.\[rB]
|
68
|
+
Searches for URLs containing the query\-param NAME\.
|
69
|
+
.LP
|
70
|
+
.HP
|
71
|
+
\fB-Q\fR, \fB--with-query-value\fR \fIVALUE\fP \[lB]\.\.\.\[rB]
|
72
|
+
Searches for URLs containing the query\-param VALUE\.
|
73
|
+
.LP
|
74
|
+
.SH FILES
|
75
|
+
.LP
|
76
|
+
.TP
|
77
|
+
\fI\[ti]\[sl]\.ronin\[sl]\fP
|
78
|
+
Ronin configuration directory\.
|
79
|
+
.LP
|
80
|
+
.TP
|
81
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
|
82
|
+
Database log\.
|
83
|
+
.LP
|
84
|
+
.TP
|
85
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
|
86
|
+
The default sqlite3 Database file\.
|
87
|
+
.LP
|
88
|
+
.TP
|
89
|
+
\fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
|
90
|
+
Optional Database configuration\.
|
91
|
+
.LP
|
92
|
+
.SH AUTHOR
|
93
|
+
.LP
|
94
|
+
.PP
|
95
|
+
Postmodern
|
96
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
97
|
+
.ME
|
98
|
+
.LP
|