ronin-db 0.1.0 → 0.1.1
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 +14 -0
- data/.rubocop.yml +16 -0
- data/ChangeLog.md +9 -1
- data/Gemfile +7 -3
- data/Rakefile +2 -3
- data/bin/ronin-db +6 -7
- data/lib/ronin/db/cli/command.rb +3 -0
- data/lib/ronin/db/cli/commands/asn.rb +1 -1
- data/lib/ronin/db/cli/commands/migrate.rb +1 -1
- data/lib/ronin/db/cli/commands/urls.rb +6 -6
- data/lib/ronin/db/cli/resources_command.rb +0 -2
- data/lib/ronin/db/cli/uri_methods.rb +8 -3
- data/lib/ronin/db/cli.rb +5 -0
- data/lib/ronin/db/config_file.rb +2 -1
- data/lib/ronin/db/version.rb +1 -1
- data/lib/ronin/db.rb +3 -0
- data/man/ronin-db-add.1 +43 -12
- data/man/ronin-db-add.1.md +30 -10
- data/man/ronin-db-asn.1 +25 -1
- data/man/ronin-db-asn.1.md +20 -1
- data/man/ronin-db-creds.1 +20 -14
- data/man/ronin-db-creds.1.md +19 -14
- data/man/ronin-db-edit.1 +19 -12
- data/man/ronin-db-edit.1.md +15 -10
- data/man/ronin-db-emails.1 +21 -15
- data/man/ronin-db-emails.1.md +20 -15
- data/man/ronin-db-hosts.1 +18 -12
- data/man/ronin-db-hosts.1.md +17 -12
- data/man/ronin-db-ips.1 +21 -15
- data/man/ronin-db-ips.1.md +20 -15
- data/man/ronin-db-irb.1 +19 -12
- data/man/ronin-db-irb.1.md +15 -10
- data/man/ronin-db-list.1 +19 -12
- data/man/ronin-db-list.1.md +15 -10
- data/man/ronin-db-migrate.1 +25 -1
- data/man/ronin-db-migrate.1.md +20 -1
- data/man/ronin-db-remove.1 +19 -12
- data/man/ronin-db-remove.1.md +15 -10
- data/man/ronin-db-urls.1 +21 -15
- data/man/ronin-db-urls.1.md +20 -15
- data/ronin-db.gemspec +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d310dd9211968ccd20e1f7f7962673217fac978bb9d1698a443db713196be894
|
4
|
+
data.tar.gz: a279d215f78d2e40d04a2ff6519537ed275be707d1adeba2450bbe805a688009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73778356b09c0ec1f7ff37f7faba38c64c46d23d5b44aeed49a78248bd5c72794e2057a690c1bacdced48d522f2cdec4dc65b628e64580dc0a9d640d5a6968c6
|
7
|
+
data.tar.gz: 18edf72f11d0748f17b4a8f18541fdcdc45b541053231cbf3b75c40f5dbb68a8a943e19654b8081a28b5d3348c9772304ead95f38810825fc448e5ed6ceb442b
|
data/.github/workflows/ruby.yml
CHANGED
@@ -30,3 +30,17 @@ jobs:
|
|
30
30
|
run: bundle install --jobs 4 --retry 3
|
31
31
|
- name: Run tests
|
32
32
|
run: bundle exec rake test
|
33
|
+
|
34
|
+
# rubocop linting
|
35
|
+
rubocop:
|
36
|
+
runs-on: ubuntu-latest
|
37
|
+
steps:
|
38
|
+
- uses: actions/checkout@v2
|
39
|
+
- name: Set up Ruby
|
40
|
+
uses: ruby/setup-ruby@v1
|
41
|
+
with:
|
42
|
+
ruby-version: 3.0
|
43
|
+
- name: Install dependencies
|
44
|
+
run: bundle install --jobs 4 --retry 3
|
45
|
+
- name: Run rubocop
|
46
|
+
run: bundle exec rubocop --parallel
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
SuggestExtensions: false
|
4
|
+
TargetRubyVersion: 3.1
|
5
|
+
|
6
|
+
inherit_gem:
|
7
|
+
rubocop-ronin: rubocop.yml
|
8
|
+
|
9
|
+
#
|
10
|
+
# ronin-db specific exceptions
|
11
|
+
#
|
12
|
+
|
13
|
+
# This looks like a rubocop bug.
|
14
|
+
Lint/ShadowingOuterLocalVariable:
|
15
|
+
Exclude:
|
16
|
+
- 'lib/ronin/db/cli/commands/list.rb'
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
### 0.1.
|
1
|
+
### 0.1.1 / 2023-06-09
|
2
|
+
|
3
|
+
#### CLI
|
4
|
+
|
5
|
+
* Fixed typos in the `ronin-db add` man-page.
|
6
|
+
* Fixed typos in the `ronin-db creds` man-page.
|
7
|
+
* Fixed formatting of man-pages.
|
8
|
+
|
9
|
+
### 0.1.0 / 2023-02-01
|
2
10
|
|
3
11
|
* Initial release:
|
4
12
|
* Uses a [sqlite] database by default.
|
data/Gemfile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
gemspec
|
@@ -8,11 +10,11 @@ gem 'jruby-openssl', '~> 0.7', platform: :jruby
|
|
8
10
|
# branch: 'main'
|
9
11
|
|
10
12
|
# Library dependencies
|
11
|
-
# gem 'ronin-db-activerecord', '~> 0.1', github:
|
13
|
+
# gem 'ronin-db-activerecord', '~> 0.1', github: 'ronin-rb/ronin-db-activerecord',
|
12
14
|
# branch: 'main'
|
13
|
-
# gem 'ronin-support', '~> 1.0', github:
|
15
|
+
# gem 'ronin-support', '~> 1.0', github: 'ronin-rb/ronin-support',
|
14
16
|
# branch: '1.0.0'
|
15
|
-
# gem 'ronin-core', '~> 0.1', github:
|
17
|
+
# gem 'ronin-core', '~> 0.1', github: 'ronin-rb/ronin-core',
|
16
18
|
# branch: 'main'
|
17
19
|
|
18
20
|
group :development do
|
@@ -31,4 +33,6 @@ group :development do
|
|
31
33
|
gem 'dead_end', require: false
|
32
34
|
gem 'sord', require: false, platform: :mri
|
33
35
|
gem 'stackprof', require: false, platform: :mri
|
36
|
+
gem 'rubocop', require: false, platform: :mri
|
37
|
+
gem 'rubocop-ronin', require: false, platform: :mri
|
34
38
|
end
|
data/Rakefile
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
3
|
begin
|
4
4
|
require 'bundler'
|
5
5
|
rescue LoadError => e
|
6
6
|
warn e.message
|
7
7
|
warn "Run `gem install bundler` to install Bundler"
|
8
|
-
exit
|
8
|
+
exit(-1)
|
9
9
|
end
|
10
10
|
|
11
11
|
begin
|
@@ -35,7 +35,6 @@ task :docs => :yara
|
|
35
35
|
require 'kramdown/man/task'
|
36
36
|
Kramdown::Man::Task.new
|
37
37
|
|
38
|
-
|
39
38
|
directory 'db'
|
40
39
|
file 'db/dev.sqlite3' => %w[db db:migrate]
|
41
40
|
|
data/bin/ronin-db
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
#
|
3
4
|
# Copyright (c) 2021 Hal Brodigan (postmodern.mod3 at gmail.com)
|
4
5
|
#
|
@@ -21,13 +22,11 @@
|
|
21
22
|
root = File.expand_path(File.join(__dir__,'..'))
|
22
23
|
if File.file?(File.join(root,'Gemfile.lock'))
|
23
24
|
Dir.chdir(root) do
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
exit -1
|
30
|
-
end
|
25
|
+
require 'bundler/setup'
|
26
|
+
rescue LoadError => e
|
27
|
+
warn e.message
|
28
|
+
warn "Run `gem install bundler` to install Bundler"
|
29
|
+
exit(-1)
|
31
30
|
end
|
32
31
|
end
|
33
32
|
|
data/lib/ronin/db/cli/command.rb
CHANGED
@@ -122,7 +122,7 @@ module Ronin
|
|
122
122
|
option :query_string, short: '-q',
|
123
123
|
value: {
|
124
124
|
type: String,
|
125
|
-
usage: 'STRING'
|
125
|
+
usage: 'STRING'
|
126
126
|
},
|
127
127
|
desc: 'Searches for all URLs with the query string' do |string|
|
128
128
|
@query_method_calls << [:where, [], {query: string}]
|
@@ -136,11 +136,11 @@ module Ronin
|
|
136
136
|
desc: 'Searches for the associated query-param NAME(s)' do |string|
|
137
137
|
name, value = string.split('=',2)
|
138
138
|
|
139
|
-
if value
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
139
|
+
@query_method_calls << if value
|
140
|
+
[:with_query_param, [name, value]]
|
141
|
+
else
|
142
|
+
[:with_query_param_name, [name]]
|
143
|
+
end
|
144
144
|
end
|
145
145
|
|
146
146
|
option :with_query_param_name, value: {
|
@@ -24,6 +24,10 @@ require 'ronin/db'
|
|
24
24
|
module Ronin
|
25
25
|
module DB
|
26
26
|
class CLI
|
27
|
+
#
|
28
|
+
# Mixin which adds methods for parsing database URIs
|
29
|
+
# (ex: `sqlite3:path/to/db.sqlite3`).
|
30
|
+
#
|
27
31
|
module URIMethods
|
28
32
|
# Common database adapter names and their ActiveRecord equivalents.
|
29
33
|
ADAPTER_ALIASES = {
|
@@ -57,8 +61,8 @@ module Ronin
|
|
57
61
|
# The expanded path or `":memory:"` if the path was `":memory:"`.
|
58
62
|
#
|
59
63
|
def normalize_sqlite3_path(path)
|
60
|
-
if path== ':memory:' then path
|
61
|
-
else
|
64
|
+
if path == ':memory:' then path
|
65
|
+
else File.expand_path(path)
|
62
66
|
end
|
63
67
|
end
|
64
68
|
|
@@ -72,7 +76,7 @@ module Ronin
|
|
72
76
|
# The database configuration Hash.
|
73
77
|
#
|
74
78
|
def parse_uri(uri)
|
75
|
-
if (match = uri.match(/\Asqlite
|
79
|
+
if (match = uri.match(/\Asqlite(?:3)?:(.+)\z/))
|
76
80
|
{
|
77
81
|
adapter: 'sqlite3',
|
78
82
|
database: normalize_sqlite3_path(match[1])
|
@@ -82,6 +86,7 @@ module Ronin
|
|
82
86
|
adapter = normalize_adapter(uri.scheme)
|
83
87
|
|
84
88
|
hash = {adapter: adapter}
|
89
|
+
|
85
90
|
hash[:host] = uri.host if uri.host
|
86
91
|
hash[:port] = uri.port if uri.port
|
87
92
|
hash[:username] = uri.user if uri.user
|
data/lib/ronin/db/cli.rb
CHANGED
data/lib/ronin/db/config_file.rb
CHANGED
@@ -35,7 +35,8 @@ module Ronin
|
|
35
35
|
# Path to the `~/.config/ronin-db/databases.yml` configuration file.
|
36
36
|
PATH = File.join(DB::Home::CONFIG_DIR,'databases.yml')
|
37
37
|
|
38
|
-
# Path to the default sqlite3 database file
|
38
|
+
# Path to the default sqlite3 database file
|
39
|
+
# (`~/.local/share/ronin-db/default.sqlite3`).
|
39
40
|
DEFAULT_DB_FILE = File.join(DB::Home::LOCAL_SHARE_DIR,'default.sqlite3')
|
40
41
|
|
41
42
|
# Default database configuration.
|
data/lib/ronin/db/version.rb
CHANGED
data/lib/ronin/db.rb
CHANGED
data/man/ronin-db-add.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-add 1 "
|
3
|
+
.TH ronin-db-add 1 "2023-02-01" Ronin DB "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -10,7 +10,8 @@
|
|
10
10
|
.SH DESCRIPTION
|
11
11
|
.LP
|
12
12
|
.PP
|
13
|
-
|
13
|
+
Adds a pre\-existing database to the \fB~/.config/ronin-db/database.yml\fR
|
14
|
+
configuration file\.
|
14
15
|
.LP
|
15
16
|
.SH ARGUMENTS
|
16
17
|
.LP
|
@@ -69,22 +70,52 @@ may be given instead\.
|
|
69
70
|
\fB-h\fR, \fB--help\fR
|
70
71
|
Print help information\.
|
71
72
|
.LP
|
72
|
-
.SH
|
73
|
+
.SH EXAMPLES
|
73
74
|
.LP
|
74
|
-
.
|
75
|
-
|
76
|
-
The \fBronin-db\fR database(s) configuration file\.
|
75
|
+
.PP
|
76
|
+
Add a sqlite3 database file:
|
77
77
|
.LP
|
78
|
-
.
|
78
|
+
.nf
|
79
|
+
\[Do] ronin\-db add other\[ru]db \-\-sqlite3 path\[sl]to\[sl]db\.sqlite3
|
80
|
+
.fi
|
79
81
|
.LP
|
80
82
|
.PP
|
81
|
-
|
82
|
-
|
83
|
-
|
83
|
+
Add a PostgeSQL database:
|
84
|
+
.LP
|
85
|
+
.nf
|
86
|
+
\[Do] ronin\-db add other\[ru]db \-\-postgres \-\-host example\.com \-\-port 5432 \-\-username ronin \-\-password s3r3t \-\-database ronin\[ru]db
|
87
|
+
.fi
|
84
88
|
.LP
|
85
89
|
.PP
|
86
|
-
|
87
|
-
|
90
|
+
Add a MySQL database:
|
91
|
+
.LP
|
92
|
+
.nf
|
93
|
+
\[Do] ronin\-db add other\[ru]db \-\-mysql2 \-\-host example\.com \-\-port 3306 \-\-username ronin \-\-password s3r3t \-\-database ronin\[ru]db
|
94
|
+
.fi
|
95
|
+
.LP
|
96
|
+
.SH ENVIRONMENT
|
97
|
+
.LP
|
98
|
+
.TP
|
99
|
+
\fIHOME\fP
|
100
|
+
Alternate location for the user\[cq]s home directory\.
|
101
|
+
.LP
|
102
|
+
.TP
|
103
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
104
|
+
Alternate location for the \fB~/.config\fR directory\.
|
105
|
+
.LP
|
106
|
+
.TP
|
107
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
108
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
109
|
+
.LP
|
110
|
+
.SH FILES
|
111
|
+
.LP
|
112
|
+
.TP
|
113
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
114
|
+
The default sqlite3 database file\.
|
115
|
+
.LP
|
116
|
+
.TP
|
117
|
+
\fB~/.config/ronin-db/database.yml\fR
|
118
|
+
Optional database configuration\.
|
88
119
|
.LP
|
89
120
|
.SH AUTHOR
|
90
121
|
.LP
|
data/man/ronin-db-add.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-add 1 "
|
1
|
+
# ronin-db-add 1 "2023-02-01" Ronin DB "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -6,7 +6,8 @@
|
|
6
6
|
|
7
7
|
## DESCRIPTION
|
8
8
|
|
9
|
-
|
9
|
+
Adds a pre-existing database to the `~/.config/ronin-db/database.yml`
|
10
|
+
configuration file.
|
10
11
|
|
11
12
|
## ARGUMENTS
|
12
13
|
|
@@ -52,19 +53,38 @@ Lists entries in the `~/.config/ronin-db/database.yml` configuration file.
|
|
52
53
|
`-h`, `--help`
|
53
54
|
Print help information.
|
54
55
|
|
55
|
-
##
|
56
|
+
## EXAMPLES
|
57
|
+
|
58
|
+
Add a sqlite3 database file:
|
59
|
+
|
60
|
+
$ ronin-db add other_db --sqlite3 path/to/db.sqlite3
|
61
|
+
|
62
|
+
Add a PostgeSQL database:
|
63
|
+
|
64
|
+
$ ronin-db add other_db --postgres --host example.com --port 5432 --username ronin --password s3r3t --database ronin_db
|
65
|
+
|
66
|
+
Add a MySQL database:
|
56
67
|
|
57
|
-
|
58
|
-
The `ronin-db` database(s) configuration file.
|
68
|
+
$ ronin-db add other_db --mysql2 --host example.com --port 3306 --username ronin --password s3r3t --database ronin_db
|
59
69
|
|
60
70
|
## ENVIRONMENT
|
61
71
|
|
62
|
-
HOME
|
63
|
-
|
64
|
-
|
72
|
+
*HOME*
|
73
|
+
Alternate location for the user's home directory.
|
74
|
+
|
75
|
+
*XDG_CONFIG_HOME*
|
76
|
+
Alternate location for the `~/.config` directory.
|
77
|
+
|
78
|
+
*XDG_DATA_HOME*
|
79
|
+
Alternate location for the `~/.local/share` directory.
|
80
|
+
|
81
|
+
## FILES
|
82
|
+
|
83
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
84
|
+
The default sqlite3 database file.
|
65
85
|
|
66
|
-
|
67
|
-
|
86
|
+
`~/.config/ronin-db/database.yml`
|
87
|
+
Optional database configuration.
|
68
88
|
|
69
89
|
## AUTHOR
|
70
90
|
|
data/man/ronin-db-asn.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-asn 1 "
|
3
|
+
.TH ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -70,6 +70,30 @@ if not given\.
|
|
70
70
|
\fB-h\fR, \fB--help\fR
|
71
71
|
Print help information\.
|
72
72
|
.LP
|
73
|
+
.SH ENVIRONMENT
|
74
|
+
.LP
|
75
|
+
.TP
|
76
|
+
\fIHOME\fP
|
77
|
+
Alternate location for the user\[cq]s home directory\.
|
78
|
+
.LP
|
79
|
+
.TP
|
80
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
81
|
+
Alternate location for the \fB~/.config\fR directory\.
|
82
|
+
.LP
|
83
|
+
.TP
|
84
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
85
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
86
|
+
.LP
|
87
|
+
.SH FILES
|
88
|
+
.LP
|
89
|
+
.TP
|
90
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
91
|
+
The default sqlite3 database file\.
|
92
|
+
.LP
|
93
|
+
.TP
|
94
|
+
\fB~/.config/ronin-db/database.yml\fR
|
95
|
+
Optional database configuration\.
|
96
|
+
.LP
|
73
97
|
.SH AUTHOR
|
74
98
|
.LP
|
75
99
|
.PP
|
data/man/ronin-db-asn.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-asn 1 "
|
1
|
+
# ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -53,6 +53,25 @@ Queries or updates Autonomous System Numbers (ASNs) in the database.
|
|
53
53
|
`-h`, `--help`
|
54
54
|
Print help information.
|
55
55
|
|
56
|
+
## ENVIRONMENT
|
57
|
+
|
58
|
+
*HOME*
|
59
|
+
Alternate location for the user's home directory.
|
60
|
+
|
61
|
+
*XDG_CONFIG_HOME*
|
62
|
+
Alternate location for the `~/.config` directory.
|
63
|
+
|
64
|
+
*XDG_DATA_HOME*
|
65
|
+
Alternate location for the `~/.local/share` directory.
|
66
|
+
|
67
|
+
## FILES
|
68
|
+
|
69
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
70
|
+
The default sqlite3 database file.
|
71
|
+
|
72
|
+
`~/.config/ronin-db/database.yml`
|
73
|
+
Optional database configuration.
|
74
|
+
|
56
75
|
## AUTHOR
|
57
76
|
|
58
77
|
Postmodern <postmodern.mod3@gmail.com>
|
data/man/ronin-db-creds.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-creds 1 "
|
3
|
+
.TH ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -37,37 +37,43 @@ Imports the credentials from the given \fIFILE\fP\.
|
|
37
37
|
.LP
|
38
38
|
.TP
|
39
39
|
\fB--delete\fR \fIVALUE\fP
|
40
|
-
Deletes a value from the database\.
|
40
|
+
Deletes a credential value from the database\.
|
41
41
|
.LP
|
42
42
|
.TP
|
43
43
|
\fB--delete-all\fR
|
44
|
-
Deletes every
|
44
|
+
Deletes every credential from the database\.
|
45
45
|
.LP
|
46
46
|
.TP
|
47
47
|
\fB-u\fR, \fB--for-user\fR \fIUSER\fP
|
48
|
-
Searches for
|
48
|
+
Searches for credentials associated with the USER\.
|
49
49
|
.LP
|
50
50
|
.TP
|
51
51
|
\fB-p\fR, \fB--with-password\fR \fIPASSWORD\fP
|
52
|
-
Searches for
|
52
|
+
Searches for credentials that have the PASSWORD\.
|
53
53
|
.LP
|
54
|
-
.SH
|
54
|
+
.SH ENVIRONMENT
|
55
|
+
.LP
|
56
|
+
.TP
|
57
|
+
\fIHOME\fP
|
58
|
+
Alternate location for the user\[cq]s home directory\.
|
55
59
|
.LP
|
56
60
|
.TP
|
57
|
-
\
|
58
|
-
|
61
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
62
|
+
Alternate location for the \fB~/.config\fR directory\.
|
59
63
|
.LP
|
60
64
|
.TP
|
61
|
-
\
|
62
|
-
|
65
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
66
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
67
|
+
.LP
|
68
|
+
.SH FILES
|
63
69
|
.LP
|
64
70
|
.TP
|
65
|
-
\
|
66
|
-
The default sqlite3
|
71
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
72
|
+
The default sqlite3 database file\.
|
67
73
|
.LP
|
68
74
|
.TP
|
69
|
-
\
|
70
|
-
Optional
|
75
|
+
\fB~/.config/ronin-db/database.yml\fR
|
76
|
+
Optional database configuration\.
|
71
77
|
.LP
|
72
78
|
.SH AUTHOR
|
73
79
|
.LP
|
data/man/ronin-db-creds.1.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ronin-db-creds 1 "
|
1
|
+
# ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
|
2
2
|
|
3
3
|
## SYNOPSIS
|
4
4
|
|
@@ -27,30 +27,35 @@ Manages credentials.
|
|
27
27
|
Imports the credentials from the given *FILE*.
|
28
28
|
|
29
29
|
`--delete` *VALUE*
|
30
|
-
Deletes a value from the database.
|
30
|
+
Deletes a credential value from the database.
|
31
31
|
|
32
32
|
`--delete-all`
|
33
|
-
Deletes every
|
33
|
+
Deletes every credential from the database.
|
34
34
|
|
35
35
|
`-u`, `--for-user` *USER*
|
36
|
-
Searches for
|
36
|
+
Searches for credentials associated with the USER.
|
37
37
|
|
38
38
|
`-p`, `--with-password` *PASSWORD*
|
39
|
-
Searches for
|
39
|
+
Searches for credentials that have the PASSWORD.
|
40
40
|
|
41
|
-
##
|
41
|
+
## ENVIRONMENT
|
42
|
+
|
43
|
+
*HOME*
|
44
|
+
Alternate location for the user's home directory.
|
42
45
|
|
43
|
-
|
44
|
-
|
46
|
+
*XDG_CONFIG_HOME*
|
47
|
+
Alternate location for the `~/.config` directory.
|
45
48
|
|
46
|
-
|
47
|
-
|
49
|
+
*XDG_DATA_HOME*
|
50
|
+
Alternate location for the `~/.local/share` directory.
|
51
|
+
|
52
|
+
## FILES
|
48
53
|
|
49
|
-
|
50
|
-
|
54
|
+
`~/.local/share/ronin-db/database.sqlite3`
|
55
|
+
The default sqlite3 database file.
|
51
56
|
|
52
|
-
|
53
|
-
|
57
|
+
`~/.config/ronin-db/database.yml`
|
58
|
+
Optional database configuration.
|
54
59
|
|
55
60
|
## AUTHOR
|
56
61
|
|
data/man/ronin-db-edit.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Generated by kramdown-man 0.1.8
|
2
2
|
.\" https://github.com/postmodern/kramdown-man#readme
|
3
|
-
.TH ronin-db-edit 1 "
|
3
|
+
.TH ronin-db-edit 1 "2023-02-01" Ronin DB "User Manuals"
|
4
4
|
.LP
|
5
5
|
.SH SYNOPSIS
|
6
6
|
.LP
|
@@ -18,22 +18,29 @@ Manually edits the \fB~/.config/ronin-db/database.yml\fR configuration file\.
|
|
18
18
|
\fB-h\fR, \fB--help\fR
|
19
19
|
Print help information\.
|
20
20
|
.LP
|
21
|
-
.SH
|
21
|
+
.SH ENVIRONMENT
|
22
22
|
.LP
|
23
23
|
.TP
|
24
|
-
\
|
25
|
-
|
24
|
+
\fIHOME\fP
|
25
|
+
Alternate location for the user\[cq]s home directory\.
|
26
26
|
.LP
|
27
|
-
.
|
27
|
+
.TP
|
28
|
+
\fIXDG\[ru]CONFIG\[ru]HOME\fP
|
29
|
+
Alternate location for the \fB~/.config\fR directory\.
|
28
30
|
.LP
|
29
|
-
.
|
30
|
-
HOME
|
31
|
-
|
32
|
-
\fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
|
31
|
+
.TP
|
32
|
+
\fIXDG\[ru]DATA\[ru]HOME\fP
|
33
|
+
Alternate location for the \fB~/.local/share\fR directory\.
|
33
34
|
.LP
|
34
|
-
.
|
35
|
-
|
36
|
-
|
35
|
+
.SH FILES
|
36
|
+
.LP
|
37
|
+
.TP
|
38
|
+
\fB~/.local/share/ronin-db/database.sqlite3\fR
|
39
|
+
The default sqlite3 database file\.
|
40
|
+
.LP
|
41
|
+
.TP
|
42
|
+
\fB~/.config/ronin-db/database.yml\fR
|
43
|
+
Optional database configuration\.
|
37
44
|
.LP
|
38
45
|
.SH AUTHOR
|
39
46
|
.LP
|