Fix word splitting problem

bug/bundler_fix
William Vu 2014-09-12 06:51:57 -05:00
parent 131401f024
commit 18e99589a5
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class Metasploit3 < Msf::Post
'Columns' => ['AccessPoint-Name', 'PSK'],
'Indent' => 1,
})
files = cmd_exec("/bin/ls #{dir}").chomp.split
files = cmd_exec("/bin/ls -1 #{dir}").chomp.split("\n")
files.each do |f|
file = "#{dir}#{f}"
# TODO: find better (ruby) way