bqm 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{bqm.rb → bin/bqm} +4 -4
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 348a96aed509a774a1848651efa6a17d52aac51e47b2e229daeba4fb933771a6
|
4
|
+
data.tar.gz: b2262ae4e6b24773b97cd4e19e2f4ba4bcf9e1f2dc8d4af6da2653d30b02e56a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc21de90441bfc6add73d79b01c52ce5e530b28c94c62560913dea39805cb2615139a41da329ebba966d8aa964262ff6aaefc352b3c8246c43a2f9dc43465e5
|
7
|
+
data.tar.gz: ca1d114fdb1d024d4565d061ef669ecedaf89ecfe89be730658c8823b739a40ce2d9cadce380a47c6ed9079587b302c5b7ebb2773e9f7a2208e3040790a3866a
|
data/{bqm.rb → bin/bqm}
RENAMED
@@ -6,7 +6,7 @@ require 'net/http'
|
|
6
6
|
|
7
7
|
def find_dataset
|
8
8
|
source_file = 'query-sets.json'
|
9
|
-
source_file_paths = ['./data', '/usr/share/bqm/data', '~/.local/share/bqm/data']
|
9
|
+
source_file_paths = ['./data', "#{__dir__}/../data", '/usr/share/bqm/data', '~/.local/share/bqm/data']
|
10
10
|
source_file_paths.each do |path|
|
11
11
|
candidate = "#{path}/#{source_file}"
|
12
12
|
return candidate if File.file?(candidate) && File.readable?(candidate)
|
@@ -54,11 +54,11 @@ if __FILE__ == $PROGRAM_NAME
|
|
54
54
|
require 'optparse'
|
55
55
|
options = {}
|
56
56
|
OptionParser.new do |parser|
|
57
|
-
parser.banner = 'Usage: bqm
|
57
|
+
parser.banner = 'Usage: bqm [options]'
|
58
58
|
|
59
59
|
parser.on('-o', '--output-path PATH', 'Path where to store the query file')
|
60
60
|
parser.separator ''
|
61
|
-
parser.separator 'Example: bqm
|
61
|
+
parser.separator 'Example: bqm -o ~/.config/bloodhound/customqueries.json'
|
62
62
|
end.parse!(into: options)
|
63
63
|
|
64
64
|
out = options[:'output-path']
|
@@ -68,6 +68,6 @@ if __FILE__ == $PROGRAM_NAME
|
|
68
68
|
file.write(json)
|
69
69
|
end
|
70
70
|
else
|
71
|
-
puts 'Help: bqm
|
71
|
+
puts 'Help: bqm -h'
|
72
72
|
end
|
73
73
|
end
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bqm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre ZANNI
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
@@ -14,13 +14,12 @@ description: Deduplicate custom BloudHound queries from different datasets and m
|
|
14
14
|
them in one customqueries.json file.
|
15
15
|
email: alexandre.zanni@europe.com
|
16
16
|
executables:
|
17
|
-
- bqm
|
17
|
+
- bqm
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- "./bqm.rb"
|
22
21
|
- LICENSE
|
23
|
-
- bqm
|
22
|
+
- bin/bqm
|
24
23
|
- data/query-sets.json
|
25
24
|
homepage: https://github.com/Acceis/bqm
|
26
25
|
licenses:
|