Fix word splitting problem
parent
8a6a205e39
commit
60b29cbd5e
|
@ -57,7 +57,7 @@ class Metasploit3 < Msf::Post
|
||||||
'Columns' => ['AccessPoint-Name', 'PSK'],
|
'Columns' => ['AccessPoint-Name', 'PSK'],
|
||||||
'Indent' => 1,
|
'Indent' => 1,
|
||||||
})
|
})
|
||||||
files = cmd_exec("/bin/ls #{dir}").chomp.split
|
files = cmd_exec("/bin/ls -1 #{dir}").chomp.split("\n")
|
||||||
files.each do |f|
|
files.each do |f|
|
||||||
file = "#{dir}#{f}"
|
file = "#{dir}#{f}"
|
||||||
# TODO: find better (ruby) way
|
# TODO: find better (ruby) way
|
||||||
|
|
Loading…
Reference in New Issue