Remove unused parameter

GSoC/Meterpreter_Web_Console
Jacob Robles 2018-12-14 09:10:29 -06:00
parent 48ad8e8038
commit 5fd7b82f7a
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
1 changed files with 3 additions and 9 deletions

View File

@ -152,7 +152,7 @@ class MetasploitModule < Msf::Exploit::Local
# Function for creating log folder and returning log path
#-------------------------------------------------------------------------------
def log_file(log_path = nil)
def log_file
# Get hostname
host = session.sys.config.sysinfo["Computer"]
@ -160,18 +160,12 @@ class MetasploitModule < Msf::Exploit::Local
filenameinfo = "_" + ::Time.now.strftime("%Y%m%d.%M%S")
# Create a directory for the logs
logs = if log_path
::File.join(log_path, 'logs', 'persistence', Rex::FileUtils.clean_path(host + filenameinfo))
else
::File.join(Msf::Config.log_directory, 'persistence', Rex::FileUtils.clean_path(host + filenameinfo))
end
logs = ::File.join(Msf::Config.log_directory, 'persistence', Rex::FileUtils.clean_path(host + filenameinfo))
# Create the log directory
::FileUtils.mkdir_p(logs)
# logfile name
logfile = logs + ::File::Separator + Rex::FileUtils.clean_path(host + filenameinfo) + ".rc"
logfile
logs + ::File::Separator + Rex::FileUtils.clean_path(host + filenameinfo) + ".rc"
end
# Function to install payload as a service