From 70a565a4e9445ed4a656efbfef49063bdcd57d18 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 13 Dec 2005 02:40:35 +0000 Subject: [PATCH] fix for target_idx bug git-svn-id: file:///home/svn/incoming/trunk@3203 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/base/sessions/vncinject.rb | 2 +- lib/msf/base/simple/exploit.rb | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/msf/base/sessions/vncinject.rb b/lib/msf/base/sessions/vncinject.rb index 75f9b9359a..a2af64e960 100644 --- a/lib/msf/base/sessions/vncinject.rb +++ b/lib/msf/base/sessions/vncinject.rb @@ -72,7 +72,7 @@ class VncInject self.class.type end - def _interact + def _interact # :nodoc: raise EOFError if (self.conn_eof == true) sleep(1) diff --git a/lib/msf/base/simple/exploit.rb b/lib/msf/base/simple/exploit.rb index b081e8ebeb..a4202b8baf 100644 --- a/lib/msf/base/simple/exploit.rb +++ b/lib/msf/base/simple/exploit.rb @@ -81,10 +81,6 @@ module Exploit # If we still have no target index, try to use the datastore's index target_idx = opts['Target'] || exploit.default_target - if (target_idx == nil) - driver.exploit.target_idx = exploit.datastore['TARGET'] - end - # Convert it to an integer if it's valid if (target_idx) target_idx = target_idx.to_i