mirror of
https://github.com/inspec/inspec
synced 2024-11-30 00:20:28 +00:00
add passwd extraction of passwords
This commit is contained in:
parent
8c17ab29a5
commit
dbbad50c09
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ module Serverspec
|
||||||
arr.length
|
arr.length
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def passwords
|
||||||
|
parsed = parse()
|
||||||
|
parsed.map {|x|
|
||||||
|
x.at(1)
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
def homedirs
|
def homedirs
|
||||||
parsed = parse()
|
parsed = parse()
|
||||||
parsed.map {|x|
|
parsed.map {|x|
|
||||||
|
|
Loading…
Reference in a new issue