fix for target_idx bug

git-svn-id: file:///home/svn/incoming/trunk@3203 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-12-13 02:40:35 +00:00
parent e591af64bd
commit 70a565a4e9
2 changed files with 1 additions and 5 deletions

View File

@ -72,7 +72,7 @@ class VncInject
self.class.type
end
def _interact
def _interact # :nodoc:
raise EOFError if (self.conn_eof == true)
sleep(1)

View File

@ -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