Skip to content

Commit 60b29cb

Browse files
committed
Fix word splitting problem
1 parent 8a6a205 commit 60b29cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/linux/gather/enum_psk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def extract_all_creds
5757
'Columns' => ['AccessPoint-Name', 'PSK'],
5858
'Indent' => 1,
5959
})
60-
files = cmd_exec("/bin/ls #{dir}").chomp.split
60+
files = cmd_exec("/bin/ls -1 #{dir}").chomp.split("\n")
6161
files.each do |f|
6262
file = "#{dir}#{f}"
6363
# TODO: find better (ruby) way

0 commit comments

Comments
 (0)