Prevent duplicate error messages from appearing

git-svn-id: file:///home/svn/framework3/trunk@5359 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-01-26 22:46:49 +00:00
parent 31d121da82
commit e17f43b9d5
1 changed files with 0 additions and 3 deletions

View File

@ -124,10 +124,7 @@ class Exploit
'LocalInput' => driver.input,
'LocalOutput' => driver.output,
'RunAsJob' => jobify)
rescue EOFError
print_error("Exploit failed: The remote connection closed.")
rescue
print_error("Exploit failed: #{$!}")
return false
end