msfd fixes

git-svn-id: file:///home/svn/incoming/trunk@3150 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-11-28 20:41:11 +00:00
parent dd871eae5c
commit 5a42b1d86b
5 changed files with 11 additions and 11 deletions

View File

@ -68,6 +68,7 @@ class Logging
# Starts logging for a given session.
#
def self.start_session_log(session)
if (log_source_registered?(session.log_source) == false)
f = Rex::Logging::Sinks::Flatfile.new(
Msf::Config.session_log_directory + File::SEPARATOR + "#{session.log_file_name}.log")
@ -75,6 +76,7 @@ class Logging
rlog("\n[*] Logging started: #{Time.now}\n\n", session.log_source)
end
end
#
# Stops logging for a given session.

View File

@ -553,7 +553,7 @@ class Core
print_status("Starting interaction with #{session.name}...\n") if (quiet == false)
# Set the session's input and output handles
session.init_ui(driver.input, driver.output)
session.init_ui(driver.input.dup, driver.output)
# Interact
session.interact()

View File

@ -33,8 +33,6 @@ module FrameworkEventManager
if (Msf::Logging.session_logging_enabled? == true)
Msf::Logging.start_session_log(session)
output.print_status("Started logging session interaction.")
end
end