ronin-db 0.1.3-java → 0.2.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/ChangeLog.md +30 -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 +1 -1
- data/lib/ronin/db/exceptions.rb +1 -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 +15 -7
- data/man/ronin-db-add.1 +47 -69
- data/man/ronin-db-add.1.md +26 -22
- data/man/ronin-db-asn.1 +36 -54
- 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 +28 -46
- data/man/ronin-db-creds.1.md +23 -16
- data/man/ronin-db-edit.1 +15 -26
- data/man/ronin-db-edit.1.md +11 -7
- data/man/ronin-db-emails.1 +36 -49
- data/man/ronin-db-emails.1.md +30 -17
- data/man/ronin-db-hosts.1 +31 -51
- data/man/ronin-db-hosts.1.md +25 -18
- data/man/ronin-db-ips.1 +31 -52
- data/man/ronin-db-ips.1.md +26 -19
- data/man/ronin-db-irb.1 +22 -35
- data/man/ronin-db-irb.1.md +17 -10
- data/man/ronin-db-list.1 +16 -30
- data/man/ronin-db-list.1.md +13 -9
- data/man/ronin-db-migrate.1 +22 -35
- 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 +15 -28
- 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 +37 -60
- 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-urls.1.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
# ronin-db-urls 1 "2023-02-01" Ronin "User Manuals"
|
1
|
+
# ronin-db-urls 1 "2023-02-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-db-urls - Manages URLs in the database
|
2
6
|
|
3
7
|
## SYNOPSIS
|
4
8
|
|
@@ -11,72 +15,75 @@ Manages URLs.
|
|
11
15
|
## OPTIONS
|
12
16
|
|
13
17
|
`--db` *NAME*
|
14
|
-
|
18
|
+
: The database 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
|
+
: Enable verbose output.
|
25
32
|
|
26
33
|
`--add` *VALUE*
|
27
|
-
|
34
|
+
: Adds the URL to the database.
|
28
35
|
|
29
36
|
`--import` *FILE*
|
30
|
-
|
37
|
+
: Imports the URLs from the given *FILE*.
|
31
38
|
|
32
39
|
`--delete` *VALUE*
|
33
|
-
|
40
|
+
: Deletes the URL from the database.
|
34
41
|
|
35
42
|
`--delete-all`
|
36
|
-
|
43
|
+
: Deletes every URL from the database.
|
37
44
|
|
38
45
|
`--http`
|
39
|
-
|
46
|
+
: Searches for `http://` URLs.
|
40
47
|
|
41
48
|
`--https`
|
42
|
-
|
49
|
+
: Searches for `https://` URLs.
|
43
50
|
|
44
51
|
`-H`, `--host` *HOST*
|
45
|
-
|
52
|
+
: Searches for URLs with the given *HOST*.
|
46
53
|
|
47
54
|
`-p`, `--with-port` *PORT*
|
48
|
-
|
55
|
+
: Searches for URLs associated with the *PORT*.
|
49
56
|
|
50
57
|
`-d`, `--directory` *DIRECTORY*
|
51
|
-
|
58
|
+
: Searches for URLs sharing the DIRECTORY.
|
52
59
|
|
53
60
|
`-q`, `--with-query-param` *NAME* [...]
|
54
|
-
|
61
|
+
: Searches for URLs containing the query-param NAME.
|
55
62
|
|
56
63
|
`-Q`, `--with-query-value` *VALUE* [...]
|
57
|
-
|
64
|
+
: Searches for URLs containing the query-param VALUE.
|
58
65
|
|
59
66
|
`-h`, `--help`
|
60
|
-
|
67
|
+
: Print help information.
|
61
68
|
|
62
69
|
## ENVIRONMENT
|
63
70
|
|
64
71
|
*HOME*
|
65
|
-
|
72
|
+
: Alternate location for the user's home directory.
|
66
73
|
|
67
74
|
*XDG_CONFIG_HOME*
|
68
|
-
|
75
|
+
: Alternate location for the `~/.config` directory.
|
69
76
|
|
70
77
|
*XDG_DATA_HOME*
|
71
|
-
|
78
|
+
: Alternate location for the `~/.local/share` directory.
|
72
79
|
|
73
80
|
## FILES
|
74
81
|
|
75
82
|
`~/.local/share/ronin-db/database.sqlite3`
|
76
|
-
|
83
|
+
: The default sqlite3 database file.
|
77
84
|
|
78
85
|
`~/.config/ronin-db/database.yml`
|
79
|
-
|
86
|
+
: Optional database configuration.
|
80
87
|
|
81
88
|
## AUTHOR
|
82
89
|
|
@@ -0,0 +1,87 @@
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db-web-vulns 1 "2024-01-01" Ronin DB "User Manuals"
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-db\-web\-vulns \- Manages Web Vulns in the database
|
7
|
+
.SH SYNOPSIS
|
8
|
+
.PP
|
9
|
+
\fBronin\-db urls\fR \[lB]\fIoptions\fP\[rB]
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.PP
|
12
|
+
Manages and queries discovered Web Vulnerabilities in the database\.
|
13
|
+
.SH OPTIONS
|
14
|
+
.TP
|
15
|
+
\fB\-\-db\fR \fINAME\fP
|
16
|
+
The database 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
|
+
Enable verbose output\.
|
36
|
+
.TP
|
37
|
+
\fB\-t\fR, \fB\-\-with\-type\fR \fBlfi\fR\[or]\fBrfi\fR\[or]\fBsqli\fR\[or]\fBssti\fR\[or]\fBopen\-redirect\fR\[or]\fBreflected\-xss\fR\[or]\fBcommand\-injection\fR
|
38
|
+
Searches for all web vulnerabilities of the given type\.
|
39
|
+
.TP
|
40
|
+
\fB\-H\fR, \fB\-\-for\-host\fR \fIHOST\fP
|
41
|
+
Searches for web vulnerabilities effecting the host\.
|
42
|
+
.TP
|
43
|
+
\fB\-d\fR, \fB\-\-for\-domain\fR \fIDOMAIN\fP
|
44
|
+
Searches for web vulnerabilities effecting the domain\.
|
45
|
+
.TP
|
46
|
+
\fB\-p\fR, \fB\-\-for\-path\fR \fIPATH\fP
|
47
|
+
Searches for web vulnerabilities effecting the given URL\[cq]s path\.
|
48
|
+
.TP
|
49
|
+
\fB\-q\fR, \fB\-\-with\-query\-param\fR \fINAME\fP
|
50
|
+
Searches for web vulnerabilities effecting the query param name\.
|
51
|
+
.TP
|
52
|
+
\fB\-\-with\-header\-name\fR \fINAME\fP
|
53
|
+
Searches for web vulnerabilities effecting the HTTP header name\.
|
54
|
+
.TP
|
55
|
+
\fB\-c\fR, \fB\-\-with\-cookie\-param\fR \fINAME\fP
|
56
|
+
Searches for web vulnerabilities effecting the cookie param name\.
|
57
|
+
.TP
|
58
|
+
\fB\-f\fR, \fB\-\-with\-form\-param\fR \fINAME\fP
|
59
|
+
Searches for web vulnerabilities effecting the form param name\.
|
60
|
+
.TP
|
61
|
+
\fB\-M\fR, \fB\-\-with\-request\-method\fR \fIHTTP\[ru]METHOD\fP
|
62
|
+
Searches for all web vulnerabilities with the HTTP request method\.
|
63
|
+
.TP
|
64
|
+
\fB\-h\fR, \fB\-\-help\fR
|
65
|
+
Print help information\.
|
66
|
+
.SH ENVIRONMENT
|
67
|
+
.TP
|
68
|
+
\fIHOME\fP
|
69
|
+
Alternate location for the user\[cq]s home directory\.
|
70
|
+
.TP
|
71
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
72
|
+
Alternate location for the \fB\[ti]\[sl]\.config\fR directory\.
|
73
|
+
.TP
|
74
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
75
|
+
Alternate location for the \fB\[ti]\[sl]\.local\[sl]share\fR directory\.
|
76
|
+
.SH FILES
|
77
|
+
.TP
|
78
|
+
\fB\[ti]\[sl]\.local\[sl]share\[sl]ronin\-db\[sl]database\.sqlite3\fR
|
79
|
+
The default sqlite3 database file\.
|
80
|
+
.TP
|
81
|
+
\fB\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fR
|
82
|
+
Optional database configuration\.
|
83
|
+
.SH AUTHOR
|
84
|
+
.PP
|
85
|
+
Postmodern
|
86
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
87
|
+
.ME
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# ronin-db-web-vulns 1 "2024-01-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-db-web-vulns - Manages Web Vulns in the database
|
6
|
+
|
7
|
+
## SYNOPSIS
|
8
|
+
|
9
|
+
`ronin-db urls` [*options*]
|
10
|
+
|
11
|
+
## DESCRIPTION
|
12
|
+
|
13
|
+
Manages and queries discovered Web Vulnerabilities in the database.
|
14
|
+
|
15
|
+
## OPTIONS
|
16
|
+
|
17
|
+
`--db` *NAME*
|
18
|
+
: The database to connect to. Defaults to `default` if not given.
|
19
|
+
|
20
|
+
`--db-uri` *URI*
|
21
|
+
: The explicit database URI to connect to.
|
22
|
+
|
23
|
+
* **sqlite3**: `sqlite3:relative/path.db` or `sqlite3:///absolute/path.db`
|
24
|
+
* **mysql**: `mysql://user:password@host/database`
|
25
|
+
* **postgres**: `postgres://user:password@host/database`
|
26
|
+
|
27
|
+
`--db-file` *PATH*
|
28
|
+
: The sqlite3 database file to use.
|
29
|
+
|
30
|
+
`-v`, `--verbose`
|
31
|
+
: Enable verbose output.
|
32
|
+
|
33
|
+
`-t`, `--with-type` `lfi`\|`rfi`\|`sqli`\|`ssti`\|`open-redirect`\|`reflected-xss`\|`command-injection`
|
34
|
+
: Searches for all web vulnerabilities of the given type.
|
35
|
+
|
36
|
+
`-H`, `--for-host` *HOST*
|
37
|
+
: Searches for web vulnerabilities effecting the host.
|
38
|
+
|
39
|
+
`-d`, `--for-domain` *DOMAIN*
|
40
|
+
: Searches for web vulnerabilities effecting the domain.
|
41
|
+
|
42
|
+
`-p`, `--for-path` *PATH*
|
43
|
+
: Searches for web vulnerabilities effecting the given URL's path.
|
44
|
+
|
45
|
+
`-q`, `--with-query-param` *NAME*
|
46
|
+
: Searches for web vulnerabilities effecting the query param name.
|
47
|
+
|
48
|
+
`--with-header-name` *NAME*
|
49
|
+
: Searches for web vulnerabilities effecting the HTTP header name.
|
50
|
+
|
51
|
+
`-c`, `--with-cookie-param` *NAME*
|
52
|
+
: Searches for web vulnerabilities effecting the cookie param name.
|
53
|
+
|
54
|
+
`-f`, `--with-form-param` *NAME*
|
55
|
+
: Searches for web vulnerabilities effecting the form param name.
|
56
|
+
|
57
|
+
`-M`, `--with-request-method` *HTTP_METHOD*
|
58
|
+
: Searches for all web vulnerabilities with the HTTP request method.
|
59
|
+
|
60
|
+
`-h`, `--help`
|
61
|
+
: Print help information.
|
62
|
+
|
63
|
+
## ENVIRONMENT
|
64
|
+
|
65
|
+
*HOME*
|
66
|
+
: Alternate location for the user's home directory.
|
67
|
+
|
68
|
+
*XDG_CONFIG_HOME*
|
69
|
+
: Alternate location for the `~/.config` directory.
|
70
|
+
|
71
|
+
*XDG_DATA_HOME*
|
72
|
+
: Alternate location for the `~/.local/share` directory.
|
73
|
+
|
74
|
+
## FILES
|
75
|
+
|
76
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
77
|
+
: The default sqlite3 database file.
|
78
|
+
|
79
|
+
`~/.config/ronin-db/database.yml`
|
80
|
+
: Optional database configuration.
|
81
|
+
|
82
|
+
## AUTHOR
|
83
|
+
|
84
|
+
Postmodern <postmodern.mod3@gmail.com>
|
85
|
+
|
data/man/ronin-db.1
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
.\" Generated by kramdown-man 1.0.1
|
2
|
+
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
+
.TH ronin-db 1 "2023-02-01" Ronin DB "User Manuals"
|
4
|
+
.SH NAME
|
5
|
+
.PP
|
6
|
+
ronin\-db \- manages ronin\[cq]s database(s)
|
7
|
+
.SH SYNOPSIS
|
8
|
+
.PP
|
9
|
+
\fBronin\-db\fR \[lB]\fIoptions\fP\[rB] \[lB]\fICOMMAND\fP\[rB]
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.PP
|
12
|
+
The \fBronin\-db\fR provides commands for adding, removing, listing, databases,
|
13
|
+
and querying, inserting, or deleting data from the various tables within a
|
14
|
+
database\.
|
15
|
+
.SH OPTIONS
|
16
|
+
.TP
|
17
|
+
\fB\-h\fR, \fB\-\-help\fR
|
18
|
+
Prints help information\.
|
19
|
+
.SH COMMANDS
|
20
|
+
.TP
|
21
|
+
\fBadd\fR
|
22
|
+
Adds a pre\-existing database to ronin\-db\.
|
23
|
+
.TP
|
24
|
+
\fBasn\fR
|
25
|
+
Queries and updates ASNs\.
|
26
|
+
.TP
|
27
|
+
\fBcerts\fR
|
28
|
+
Queries or imports SSL\[sl]TLS certificates\.
|
29
|
+
.TP
|
30
|
+
\fBcompletion\fR
|
31
|
+
Manages shell completion rules for the \fBronin\-db\fR command\.
|
32
|
+
.TP
|
33
|
+
\fBcreds\fR
|
34
|
+
Manages all credentials in the database\.
|
35
|
+
.TP
|
36
|
+
\fBedit\fR
|
37
|
+
Manually edits the \fBdatabase\.yml\fR configuration file\.
|
38
|
+
.TP
|
39
|
+
\fBemails\fR
|
40
|
+
Manages all email addresses in the database\.
|
41
|
+
.TP
|
42
|
+
\fBhosts\fR
|
43
|
+
Manages all host names in the database\.
|
44
|
+
.TP
|
45
|
+
\fBips\fR
|
46
|
+
Manages IP addresses in the database\.
|
47
|
+
.TP
|
48
|
+
\fBirb\fR
|
49
|
+
Connects to a database and start an interactive Ruby shell\.
|
50
|
+
.TP
|
51
|
+
\fBlist\fR
|
52
|
+
List the configured database(s)\.
|
53
|
+
.TP
|
54
|
+
\fBmigrate\fR
|
55
|
+
Runs database migrations\.
|
56
|
+
.TP
|
57
|
+
\fBopen\-ports\fR
|
58
|
+
Queries open ports in the database\.
|
59
|
+
.TP
|
60
|
+
\fBoses\fR
|
61
|
+
Queries OSes in the database
|
62
|
+
.TP
|
63
|
+
\fBpasswords\fR
|
64
|
+
Manages all passwords in the database\.
|
65
|
+
.TP
|
66
|
+
\fBpeople\fR
|
67
|
+
Queries people in the database\.
|
68
|
+
.TP
|
69
|
+
\fBphone\-numbers\fR
|
70
|
+
Manages phone numbers in the database\.
|
71
|
+
.TP
|
72
|
+
\fBports\fR
|
73
|
+
Manages port numbers in the database\.
|
74
|
+
.TP
|
75
|
+
\fBremove\fR
|
76
|
+
Removes a database from the configuration file\.
|
77
|
+
.TP
|
78
|
+
\fBservices\fR
|
79
|
+
Manages services in the database\.
|
80
|
+
.TP
|
81
|
+
\fBsoftware\fR
|
82
|
+
Queries software in the database\.
|
83
|
+
.TP
|
84
|
+
\fBstreet\-addresses\fR
|
85
|
+
Queries street addresses in the database\.
|
86
|
+
.TP
|
87
|
+
\fBurls\fR
|
88
|
+
Manages URLs in the database\.
|
89
|
+
.SH AUTHOR
|
90
|
+
.PP
|
91
|
+
Postmodern
|
92
|
+
.MT postmodern\.mod3\[at]gmail\.com
|
93
|
+
.ME
|
94
|
+
.SH SEE ALSO
|
95
|
+
.PP
|
96
|
+
.BR ronin\-db\-add (1)
|
97
|
+
.BR ronin\-db\-asn (1)
|
98
|
+
.BR ronin\-db\-certs (1)
|
99
|
+
.BR ronin\-db\-completion (1)
|
100
|
+
.BR ronin\-db\-creds (1)
|
101
|
+
.BR ronin\-db\-edit (1)
|
102
|
+
.BR ronin\-db\-emails (1)
|
103
|
+
.BR ronin\-db\-hosts (1)
|
104
|
+
.BR ronin\-db\-ips (1)
|
105
|
+
.BR ronin\-db\-irb (1)
|
106
|
+
.BR ronin\-db\-list (1)
|
107
|
+
.BR ronin\-db\-migrate (1)
|
108
|
+
.BR ronin\-db\-open\-ports (1)
|
109
|
+
.BR ronin\-db\-oses (1)
|
110
|
+
.BR ronin\-db\-passwords (1)
|
111
|
+
.BR ronin\-db\-people (1)
|
112
|
+
.BR ronin\-db\-phone\-numbers (1)
|
113
|
+
.BR ronin\-db\-ports (1)
|
114
|
+
.BR ronin\-db\-remove (1)
|
115
|
+
.BR ronin\-db\-services (1)
|
116
|
+
.BR ronin\-db\-software (1)
|
117
|
+
.BR ronin\-db\-street\-addresses (1)
|
118
|
+
.BR ronin\-db\-urls (1)
|
data/man/ronin-db.1.md
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
# ronin-db 1 "2023-02-01" Ronin DB "User Manuals"
|
2
|
+
|
3
|
+
## NAME
|
4
|
+
|
5
|
+
ronin-db - manages ronin's database(s)
|
6
|
+
|
7
|
+
## SYNOPSIS
|
8
|
+
|
9
|
+
`ronin-db` [*options*] [*COMMAND*]
|
10
|
+
|
11
|
+
## DESCRIPTION
|
12
|
+
|
13
|
+
The `ronin-db` provides commands for adding, removing, listing, databases,
|
14
|
+
and querying, inserting, or deleting data from the various tables within a
|
15
|
+
database.
|
16
|
+
|
17
|
+
## OPTIONS
|
18
|
+
|
19
|
+
`-h`, `--help`
|
20
|
+
: Prints help information.
|
21
|
+
|
22
|
+
## COMMANDS
|
23
|
+
|
24
|
+
`add`
|
25
|
+
: Adds a pre-existing database to ronin-db.
|
26
|
+
|
27
|
+
`asn`
|
28
|
+
: Queries and updates ASNs.
|
29
|
+
|
30
|
+
`certs`
|
31
|
+
: Queries or imports SSL/TLS certificates.
|
32
|
+
|
33
|
+
`completion`
|
34
|
+
: Manages shell completion rules for the `ronin-db` command.
|
35
|
+
|
36
|
+
`creds`
|
37
|
+
: Manages all credentials in the database.
|
38
|
+
|
39
|
+
`edit`
|
40
|
+
: Manually edits the `database.yml` configuration file.
|
41
|
+
|
42
|
+
`emails`
|
43
|
+
: Manages all email addresses in the database.
|
44
|
+
|
45
|
+
`hosts`
|
46
|
+
: Manages all host names in the database.
|
47
|
+
|
48
|
+
`ips`
|
49
|
+
: Manages IP addresses in the database.
|
50
|
+
|
51
|
+
`irb`
|
52
|
+
: Connects to a database and start an interactive Ruby shell.
|
53
|
+
|
54
|
+
`list`
|
55
|
+
: List the configured database(s).
|
56
|
+
|
57
|
+
`migrate`
|
58
|
+
: Runs database migrations.
|
59
|
+
|
60
|
+
`open-ports`
|
61
|
+
: Queries open ports in the database.
|
62
|
+
|
63
|
+
`oses`
|
64
|
+
: Queries OSes in the database
|
65
|
+
|
66
|
+
`passwords`
|
67
|
+
: Manages all passwords in the database.
|
68
|
+
|
69
|
+
`people`
|
70
|
+
: Queries people in the database.
|
71
|
+
|
72
|
+
`phone-numbers`
|
73
|
+
: Manages phone numbers in the database.
|
74
|
+
|
75
|
+
`ports`
|
76
|
+
: Manages port numbers in the database.
|
77
|
+
|
78
|
+
`remove`
|
79
|
+
: Removes a database from the configuration file.
|
80
|
+
|
81
|
+
`services`
|
82
|
+
: Manages services in the database.
|
83
|
+
|
84
|
+
`software`
|
85
|
+
: Queries software in the database.
|
86
|
+
|
87
|
+
`street-addresses`
|
88
|
+
: Queries street addresses in the database.
|
89
|
+
|
90
|
+
`urls`
|
91
|
+
: Manages URLs in the database.
|
92
|
+
|
93
|
+
## AUTHOR
|
94
|
+
|
95
|
+
Postmodern <postmodern.mod3@gmail.com>
|
96
|
+
|
97
|
+
## SEE ALSO
|
98
|
+
|
99
|
+
[ronin-db-add](ronin-db-add.1.md) [ronin-db-asn](ronin-db-asn.1.md) [ronin-db-certs](ronin-db-certs.1.md) [ronin-db-completion](ronin-db-completion.1.md) [ronin-db-creds](ronin-db-creds.1.md) [ronin-db-edit](ronin-db-edit.1.md) [ronin-db-emails](ronin-db-emails.1.md) [ronin-db-hosts](ronin-db-hosts.1.md) [ronin-db-ips](ronin-db-ips.1.md) [ronin-db-irb](ronin-db-irb.1.md) [ronin-db-list](ronin-db-list.1.md) [ronin-db-migrate](ronin-db-migrate.1.md) [ronin-db-open-ports](ronin-db-open-ports.1.md) [ronin-db-oses](ronin-db-oses.1.md) [ronin-db-passwords](ronin-db-passwords.1.md) [ronin-db-people](ronin-db-people.1.md) [ronin-db-phone-numbers](ronin-db-phone-numbers.1.md) [ronin-db-ports](ronin-db-ports.1.md) [ronin-db-remove](ronin-db-remove.1.md) [ronin-db-services](ronin-db-services.1.md) [ronin-db-software](ronin-db-software.1.md) [ronin-db-street-addresses](ronin-db-street-addresses.1.md) [ronin-db-urls](ronin-db-urls.1.md)
|
data/scripts/setup
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
#
|
4
|
+
# Prints a log message.
|
5
|
+
#
|
6
|
+
function log()
|
7
|
+
{
|
8
|
+
if [[ -t 1 ]]; then
|
9
|
+
echo -e "\x1b[1m\x1b[32m>>>\x1b[0m \x1b[1m$1\x1b[0m"
|
10
|
+
else
|
11
|
+
echo ">>> $1"
|
12
|
+
fi
|
13
|
+
}
|
14
|
+
|
15
|
+
#
|
16
|
+
# Prints a warn message.
|
17
|
+
#
|
18
|
+
function warn()
|
19
|
+
{
|
20
|
+
if [[ -t 1 ]]; then
|
21
|
+
echo -e "\x1b[1m\x1b[33m***\x1b[0m \x1b[1m$1\x1b[0m" >&2
|
22
|
+
else
|
23
|
+
echo "*** $1" >&2
|
24
|
+
fi
|
25
|
+
}
|
26
|
+
|
27
|
+
#
|
28
|
+
# Prints an error message.
|
29
|
+
#
|
30
|
+
function error()
|
31
|
+
{
|
32
|
+
if [[ -t 1 ]]; then
|
33
|
+
echo -e "\x1b[1m\x1b[31m!!!\x1b[0m \x1b[1m$1\x1b[0m" >&2
|
34
|
+
else
|
35
|
+
echo "!!! $1" >&2
|
36
|
+
fi
|
37
|
+
}
|
38
|
+
|
39
|
+
#
|
40
|
+
# Prints an error message and exists with -1.
|
41
|
+
#
|
42
|
+
function fail()
|
43
|
+
{
|
44
|
+
error "$@"
|
45
|
+
exit -1
|
46
|
+
}
|
47
|
+
|
48
|
+
# default to installing gems into vendor/bundle
|
49
|
+
if [[ ! -f .bundle/config ]]; then
|
50
|
+
bundle config set --local path vendor/bundle >/dev/null || \
|
51
|
+
fail "Failed to run 'bundle config'"
|
52
|
+
fi
|
53
|
+
|
54
|
+
log "Installing gems ..."
|
55
|
+
bundle install || fail "Failed to run 'bundle install'!"
|
56
|
+
|
57
|
+
log "Setting up the project ..."
|
58
|
+
bundle exec rake setup || "Failed to run 'rake setup'!"
|