ronin-db 0.1.3 → 0.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/.gitignore +1 -0
  4. data/ChangeLog.md +28 -0
  5. data/Gemfile +6 -4
  6. data/README.md +17 -5
  7. data/Rakefile +13 -35
  8. data/data/completions/ronin-db +271 -0
  9. data/gemspec.yml +17 -2
  10. data/lib/ronin/db/cli/command.rb +1 -1
  11. data/lib/ronin/db/cli/commands/add.rb +1 -1
  12. data/lib/ronin/db/cli/commands/asn.rb +12 -2
  13. data/lib/ronin/db/cli/commands/certs.rb +322 -0
  14. data/lib/ronin/db/cli/commands/completion.rb +63 -0
  15. data/lib/ronin/db/cli/commands/creds.rb +2 -1
  16. data/lib/ronin/db/cli/commands/edit.rb +1 -1
  17. data/lib/ronin/db/cli/commands/emails.rb +22 -1
  18. data/lib/ronin/db/cli/commands/hosts.rb +2 -1
  19. data/lib/ronin/db/cli/commands/ips.rb +2 -1
  20. data/lib/ronin/db/cli/commands/irb.rb +8 -4
  21. data/lib/ronin/db/cli/commands/list.rb +1 -1
  22. data/lib/ronin/db/cli/commands/migrate.rb +12 -8
  23. data/lib/ronin/db/cli/commands/open_ports.rb +102 -0
  24. data/lib/ronin/db/cli/commands/oses.rb +95 -0
  25. data/lib/ronin/db/cli/commands/passwords.rb +83 -0
  26. data/lib/ronin/db/cli/commands/people.rb +185 -0
  27. data/lib/ronin/db/cli/commands/phone_numbers.rb +136 -0
  28. data/lib/ronin/db/cli/commands/ports.rb +103 -0
  29. data/lib/ronin/db/cli/commands/remove.rb +1 -1
  30. data/lib/ronin/db/cli/commands/services.rb +102 -0
  31. data/lib/ronin/db/cli/commands/software.rb +95 -0
  32. data/lib/ronin/db/cli/commands/street_addresses.rb +129 -0
  33. data/lib/ronin/db/cli/commands/urls.rb +2 -1
  34. data/lib/ronin/db/cli/commands/web_vulns.rb +235 -0
  35. data/lib/ronin/db/cli/database_options.rb +87 -0
  36. data/lib/ronin/db/cli/deletable.rb +85 -0
  37. data/lib/ronin/db/cli/importable.rb +108 -0
  38. data/lib/ronin/db/cli/model_command.rb +8 -6
  39. data/lib/ronin/db/cli/modifiable.rb +12 -104
  40. data/lib/ronin/db/cli/printing.rb +58 -0
  41. data/lib/ronin/db/cli/ruby_shell.rb +1 -1
  42. data/lib/ronin/db/cli/uri_methods.rb +1 -1
  43. data/lib/ronin/db/cli.rb +3 -1
  44. data/lib/ronin/db/config_file.rb +1 -1
  45. data/lib/ronin/db/exceptions.rb +1 -1
  46. data/lib/ronin/db/home.rb +1 -1
  47. data/lib/ronin/db/root.rb +1 -1
  48. data/lib/ronin/db/tasks.rb +87 -0
  49. data/lib/ronin/db/version.rb +2 -2
  50. data/lib/ronin/db.rb +15 -7
  51. data/man/ronin-db-add.1 +47 -69
  52. data/man/ronin-db-add.1.md +26 -22
  53. data/man/ronin-db-asn.1 +36 -54
  54. data/man/ronin-db-asn.1.md +29 -19
  55. data/man/ronin-db-certs.1 +108 -0
  56. data/man/ronin-db-certs.1.md +106 -0
  57. data/man/ronin-db-completion.1 +76 -0
  58. data/man/ronin-db-completion.1.md +78 -0
  59. data/man/ronin-db-creds.1 +28 -46
  60. data/man/ronin-db-creds.1.md +23 -16
  61. data/man/ronin-db-edit.1 +15 -26
  62. data/man/ronin-db-edit.1.md +11 -7
  63. data/man/ronin-db-emails.1 +36 -49
  64. data/man/ronin-db-emails.1.md +30 -17
  65. data/man/ronin-db-hosts.1 +31 -51
  66. data/man/ronin-db-hosts.1.md +25 -18
  67. data/man/ronin-db-ips.1 +31 -52
  68. data/man/ronin-db-ips.1.md +26 -19
  69. data/man/ronin-db-irb.1 +22 -35
  70. data/man/ronin-db-irb.1.md +17 -10
  71. data/man/ronin-db-list.1 +16 -30
  72. data/man/ronin-db-list.1.md +13 -9
  73. data/man/ronin-db-migrate.1 +22 -35
  74. data/man/ronin-db-migrate.1.md +17 -10
  75. data/man/ronin-db-open-ports.1 +72 -0
  76. data/man/ronin-db-open-ports.1.md +70 -0
  77. data/man/ronin-db-oses.1 +72 -0
  78. data/man/ronin-db-oses.1.md +70 -0
  79. data/man/ronin-db-passwords.1 +75 -0
  80. data/man/ronin-db-passwords.1.md +73 -0
  81. data/man/ronin-db-people.1 +96 -0
  82. data/man/ronin-db-people.1.md +94 -0
  83. data/man/ronin-db-phone-numbers.1 +93 -0
  84. data/man/ronin-db-phone-numbers.1.md +91 -0
  85. data/man/ronin-db-ports.1 +87 -0
  86. data/man/ronin-db-ports.1.md +85 -0
  87. data/man/ronin-db-remove.1 +15 -28
  88. data/man/ronin-db-remove.1.md +12 -8
  89. data/man/ronin-db-services.1 +84 -0
  90. data/man/ronin-db-services.1.md +82 -0
  91. data/man/ronin-db-software.1 +72 -0
  92. data/man/ronin-db-software.1.md +70 -0
  93. data/man/ronin-db-street-addresses.1 +81 -0
  94. data/man/ronin-db-street-addresses.1.md +79 -0
  95. data/man/ronin-db-urls.1 +37 -60
  96. data/man/ronin-db-urls.1.md +28 -21
  97. data/man/ronin-db-web-vulns.1 +87 -0
  98. data/man/ronin-db-web-vulns.1.md +85 -0
  99. data/man/ronin-db.1 +118 -0
  100. data/man/ronin-db.1.md +99 -0
  101. data/scripts/setup +58 -0
  102. metadata +52 -9
  103. data/lib/ronin/db/cli/database_command.rb +0 -71
  104. data/lib/ronin/db/cli/resources_command.rb +0 -118
@@ -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
- The database to connect to. Defaults to `default` if not given.
18
+ : The database to connect to. Defaults to `default` if not given.
15
19
 
16
20
  `--db-uri` *URI*
17
- The explicit database URI to connect to.
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
- Enable verbose output.
31
+ : Enable verbose output.
25
32
 
26
33
  `--add` *VALUE*
27
- Adds the URL to the database.
34
+ : Adds the URL to the database.
28
35
 
29
36
  `--import` *FILE*
30
- Imports the URLs from the given *FILE*.
37
+ : Imports the URLs from the given *FILE*.
31
38
 
32
39
  `--delete` *VALUE*
33
- Deletes the URL from the database.
40
+ : Deletes the URL from the database.
34
41
 
35
42
  `--delete-all`
36
- Deletes every URL from the database.
43
+ : Deletes every URL from the database.
37
44
 
38
45
  `--http`
39
- Searches for `http://` URLs.
46
+ : Searches for `http://` URLs.
40
47
 
41
48
  `--https`
42
- Searches for `https://` URLs.
49
+ : Searches for `https://` URLs.
43
50
 
44
51
  `-H`, `--host` *HOST*
45
- Searches for URLs with the given *HOST*.
52
+ : Searches for URLs with the given *HOST*.
46
53
 
47
54
  `-p`, `--with-port` *PORT*
48
- Searches for URLs associated with the *PORT*.
55
+ : Searches for URLs associated with the *PORT*.
49
56
 
50
57
  `-d`, `--directory` *DIRECTORY*
51
- Searches for URLs sharing the DIRECTORY.
58
+ : Searches for URLs sharing the DIRECTORY.
52
59
 
53
60
  `-q`, `--with-query-param` *NAME* [...]
54
- Searches for URLs containing the query-param NAME.
61
+ : Searches for URLs containing the query-param NAME.
55
62
 
56
63
  `-Q`, `--with-query-value` *VALUE* [...]
57
- Searches for URLs containing the query-param VALUE.
64
+ : Searches for URLs containing the query-param VALUE.
58
65
 
59
66
  `-h`, `--help`
60
- Print help information.
67
+ : Print help information.
61
68
 
62
69
  ## ENVIRONMENT
63
70
 
64
71
  *HOME*
65
- Alternate location for the user's home directory.
72
+ : Alternate location for the user's home directory.
66
73
 
67
74
  *XDG_CONFIG_HOME*
68
- Alternate location for the `~/.config` directory.
75
+ : Alternate location for the `~/.config` directory.
69
76
 
70
77
  *XDG_DATA_HOME*
71
- Alternate location for the `~/.local/share` directory.
78
+ : Alternate location for the `~/.local/share` directory.
72
79
 
73
80
  ## FILES
74
81
 
75
82
  `~/.local/share/ronin-db/database.sqlite3`
76
- The default sqlite3 database file.
83
+ : The default sqlite3 database file.
77
84
 
78
85
  `~/.config/ronin-db/database.yml`
79
- Optional database configuration.
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'!"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-14 00:00:00.000000000 Z
11
+ date: 2024-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.1'
33
+ version: 0.2.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.1'
40
+ version: 0.2.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ronin-support
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.1'
61
+ version: 0.2.0.rc1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.1'
68
+ version: 0.2.0.rc1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,12 +108,15 @@ files:
108
108
  - README.md
109
109
  - Rakefile
110
110
  - bin/ronin-db
111
+ - data/completions/ronin-db
111
112
  - gemspec.yml
112
113
  - lib/ronin/db.rb
113
114
  - lib/ronin/db/cli.rb
114
115
  - lib/ronin/db/cli/command.rb
115
116
  - lib/ronin/db/cli/commands/add.rb
116
117
  - lib/ronin/db/cli/commands/asn.rb
118
+ - lib/ronin/db/cli/commands/certs.rb
119
+ - lib/ronin/db/cli/commands/completion.rb
117
120
  - lib/ronin/db/cli/commands/creds.rb
118
121
  - lib/ronin/db/cli/commands/edit.rb
119
122
  - lib/ronin/db/cli/commands/emails.rb
@@ -122,23 +125,40 @@ files:
122
125
  - lib/ronin/db/cli/commands/irb.rb
123
126
  - lib/ronin/db/cli/commands/list.rb
124
127
  - lib/ronin/db/cli/commands/migrate.rb
128
+ - lib/ronin/db/cli/commands/open_ports.rb
129
+ - lib/ronin/db/cli/commands/oses.rb
130
+ - lib/ronin/db/cli/commands/passwords.rb
131
+ - lib/ronin/db/cli/commands/people.rb
132
+ - lib/ronin/db/cli/commands/phone_numbers.rb
133
+ - lib/ronin/db/cli/commands/ports.rb
125
134
  - lib/ronin/db/cli/commands/remove.rb
135
+ - lib/ronin/db/cli/commands/services.rb
136
+ - lib/ronin/db/cli/commands/software.rb
137
+ - lib/ronin/db/cli/commands/street_addresses.rb
126
138
  - lib/ronin/db/cli/commands/urls.rb
127
- - lib/ronin/db/cli/database_command.rb
139
+ - lib/ronin/db/cli/commands/web_vulns.rb
140
+ - lib/ronin/db/cli/database_options.rb
141
+ - lib/ronin/db/cli/deletable.rb
142
+ - lib/ronin/db/cli/importable.rb
128
143
  - lib/ronin/db/cli/model_command.rb
129
144
  - lib/ronin/db/cli/modifiable.rb
130
- - lib/ronin/db/cli/resources_command.rb
145
+ - lib/ronin/db/cli/printing.rb
131
146
  - lib/ronin/db/cli/ruby_shell.rb
132
147
  - lib/ronin/db/cli/uri_methods.rb
133
148
  - lib/ronin/db/config_file.rb
134
149
  - lib/ronin/db/exceptions.rb
135
150
  - lib/ronin/db/home.rb
136
151
  - lib/ronin/db/root.rb
152
+ - lib/ronin/db/tasks.rb
137
153
  - lib/ronin/db/version.rb
138
154
  - man/ronin-db-add.1
139
155
  - man/ronin-db-add.1.md
140
156
  - man/ronin-db-asn.1
141
157
  - man/ronin-db-asn.1.md
158
+ - man/ronin-db-certs.1
159
+ - man/ronin-db-certs.1.md
160
+ - man/ronin-db-completion.1
161
+ - man/ronin-db-completion.1.md
142
162
  - man/ronin-db-creds.1
143
163
  - man/ronin-db-creds.1.md
144
164
  - man/ronin-db-edit.1
@@ -155,11 +175,34 @@ files:
155
175
  - man/ronin-db-list.1.md
156
176
  - man/ronin-db-migrate.1
157
177
  - man/ronin-db-migrate.1.md
178
+ - man/ronin-db-open-ports.1
179
+ - man/ronin-db-open-ports.1.md
180
+ - man/ronin-db-oses.1
181
+ - man/ronin-db-oses.1.md
182
+ - man/ronin-db-passwords.1
183
+ - man/ronin-db-passwords.1.md
184
+ - man/ronin-db-people.1
185
+ - man/ronin-db-people.1.md
186
+ - man/ronin-db-phone-numbers.1
187
+ - man/ronin-db-phone-numbers.1.md
188
+ - man/ronin-db-ports.1
189
+ - man/ronin-db-ports.1.md
158
190
  - man/ronin-db-remove.1
159
191
  - man/ronin-db-remove.1.md
192
+ - man/ronin-db-services.1
193
+ - man/ronin-db-services.1.md
194
+ - man/ronin-db-software.1
195
+ - man/ronin-db-software.1.md
196
+ - man/ronin-db-street-addresses.1
197
+ - man/ronin-db-street-addresses.1.md
160
198
  - man/ronin-db-urls.1
161
199
  - man/ronin-db-urls.1.md
200
+ - man/ronin-db-web-vulns.1
201
+ - man/ronin-db-web-vulns.1.md
202
+ - man/ronin-db.1
203
+ - man/ronin-db.1.md
162
204
  - ronin-db.gemspec
205
+ - scripts/setup
163
206
  homepage: https://ronin-rb.dev
164
207
  licenses:
165
208
  - LGPL-3.0
@@ -184,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
227
  - !ruby/object:Gem::Version
185
228
  version: '0'
186
229
  requirements: []
187
- rubygems_version: 3.3.26
230
+ rubygems_version: 3.3.27
188
231
  signing_key:
189
232
  specification_version: 4
190
233
  summary: A common database library for managing and querying security data