From ee6cbb7c87aba3dac4d02086fa9e7e16dac94247 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Tue, 12 Jul 2011 23:07:51 +0000 Subject: [PATCH] See #4868, reverts r13103 git-svn-id: file:///home/svn/framework3/trunk@13158 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/exploit/ftp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/exploit/ftp.rb b/lib/msf/core/exploit/ftp.rb index dbdd920be0..a674c8466d 100644 --- a/lib/msf/core/exploit/ftp.rb +++ b/lib/msf/core/exploit/ftp.rb @@ -72,7 +72,7 @@ module Exploit::Remote::Ftp end # force datasocket to renegotiate - self.datasocket.close if self.datasocket != nil + self.datasocket.shutdown if self.datasocket != nil res = send_cmd(['PASV'], true, nsock) return nil if not res =~ /^227/ @@ -91,7 +91,7 @@ module Exploit::Remote::Ftp # This method handles disconnecting our data channel # def data_disconnect - self.datasocket.close + self.datasocket.shutdown self.datasocket = nil end