msfd fixes
git-svn-id: file:///home/svn/incoming/trunk@3150 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
dd871eae5c
commit
5a42b1d86b
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue