&& instead of and

GSoC/Meterpreter_Web_Console
Tim W 2018-09-24 15:48:41 +08:00 committed by William Vu
parent 4adca52103
commit 896dd13bbe
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ module Msf::Post::File
#
# @param remote [String] Destination file name on the remote filesystem
def chmod_x_file(remote)
if session.type == "meterpreter" and session.commands.include?('stdapi_fs_chmod')
if session.type == "meterpreter" && session.commands.include?('stdapi_fs_chmod')
session.fs.file.chmod(remote, 0700)
else
cmd_exec("chmod 700 \"#{remote}\"")