Fix word splitting problem

bug/bundler_fix
William Vu 2014-09-12 06:50:53 -05:00
parent 8a6a205e39
commit 60b29cbd5e
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