pass-station 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/pass-station +2 -1
- data/lib/pass_station/output.rb +1 -1
- data/lib/pass_station/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a4f6772dda7e58c017bc50b135c4e719e036042d23b5d27baf9bc18285646fd
|
|
4
|
+
data.tar.gz: 33e421103a9e47ee6b8721c9099ef9b45bcf70bed524a28060245fe8ce15d8f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c89c75b1e5f0bbe0398ecedeb73faa24ed583239dce52b4f16830c952e07f514da7662b2b664de79abf7a051105859c875b0f35736520005d58f40adcdb12069
|
|
7
|
+
data.tar.gz: 7fc7b9b25353d197913ef7997e996a3acea25aeaf248f0c23b0816bb1b5af4688b2e65eeda632781fc63b5fe7ff60ee305034b97fb7317d5ad0cbe7a9e835787
|
data/bin/pass-station
CHANGED
|
@@ -28,7 +28,7 @@ doc = <<~DOCOPT
|
|
|
28
28
|
|
|
29
29
|
Search options:
|
|
30
30
|
--field <col> Search in column: productvendor | username | password | all [default: productvendor]
|
|
31
|
-
--sensitive
|
|
31
|
+
--sensitive Search is case sensitive (case insensitive by default)
|
|
32
32
|
|
|
33
33
|
Update options: update the password database (replace Pass Station DB with upstream DB, use with care)
|
|
34
34
|
-f, --force Bypass hash checking
|
|
@@ -72,6 +72,7 @@ begin
|
|
|
72
72
|
ps.parse(args['--sort'].to_sym)
|
|
73
73
|
ps.search(args['<term>'], args['--field'].to_sym, sensitive: args['--sensitive'])
|
|
74
74
|
output = ps.output_search(args['--output'])
|
|
75
|
+
puts '[-] No result' if output.empty?
|
|
75
76
|
puts ps.highlight_found(args['<term>'], output, args['--sensitive'])
|
|
76
77
|
end
|
|
77
78
|
rescue Docopt::Exit => e
|
data/lib/pass_station/output.rb
CHANGED
|
@@ -32,7 +32,7 @@ module PassStation
|
|
|
32
32
|
# @param formatter [String] Engine to use to format the data: +table+, +'pretty-table'+, +JSON+, +CSV+, +YAML+
|
|
33
33
|
# @return [Array<String>] formatted output
|
|
34
34
|
def output_search(formatter)
|
|
35
|
-
return
|
|
35
|
+
return [] if @search_result.empty?
|
|
36
36
|
|
|
37
37
|
output(formatter, @search_result)
|
|
38
38
|
end
|
data/lib/pass_station/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pass-station
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandre ZANNI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docopt
|
|
@@ -196,14 +196,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: 2.6.0
|
|
197
197
|
- - "<"
|
|
198
198
|
- !ruby/object:Gem::Version
|
|
199
|
-
version: '3.
|
|
199
|
+
version: '3.1'
|
|
200
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
requirements:
|
|
202
202
|
- - ">="
|
|
203
203
|
- !ruby/object:Gem::Version
|
|
204
204
|
version: '0'
|
|
205
205
|
requirements: []
|
|
206
|
-
rubygems_version: 3.
|
|
206
|
+
rubygems_version: 3.2.15
|
|
207
207
|
signing_key:
|
|
208
208
|
specification_version: 4
|
|
209
209
|
summary: CLI & library to search for default credentials among thousands of Products
|