From f7f0f03a4af936eb84177691a673a2eaf400d532 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Thu, 25 Mar 2010 01:38:47 +0000 Subject: [PATCH] handle the user hitting ^D while interacting properly git-svn-id: file:///home/svn/framework3/trunk@8911 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/base/sessions/command_shell.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/msf/base/sessions/command_shell.rb b/lib/msf/base/sessions/command_shell.rb index 5bed8c0bdc..1ec9a292f2 100644 --- a/lib/msf/base/sessions/command_shell.rb +++ b/lib/msf/base/sessions/command_shell.rb @@ -204,6 +204,8 @@ class CommandShell # Writes to the command shell. # def shell_write(buf) + return if not buf + begin framework.events.on_session_command(self, buf.strip) rstream.write(buf)