From e23925ed27c3d6b1fa863b334eea93d750d2b744 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 1 Oct 2009 13:28:38 +0000 Subject: [PATCH] Updated the path check to use the Rex method designed for this. Eventually we need to switch this to use zip/filesystem (under lib/) git-svn-id: file:///home/svn/framework3/trunk@7104 4d416f70-5f16-0410-b530-b9f4589650da --- modules/exploits/osx/browser/safari_metadata_archive.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/exploits/osx/browser/safari_metadata_archive.rb b/modules/exploits/osx/browser/safari_metadata_archive.rb index ac211dfd20..cf2de5a8dc 100644 --- a/modules/exploits/osx/browser/safari_metadata_archive.rb +++ b/modules/exploits/osx/browser/safari_metadata_archive.rb @@ -75,10 +75,7 @@ class Metasploit3 < Msf::Exploit::Remote end def check_dependencies - p "Checking" - ENV["PATH"].split(":").each { |f| - return true if File.exist?(File.join(f, 'zip')) - } + return if Rex::FileUtils::find_full_path('zip') raise RuntimeError, "This exploit requires the zip command to be installed in your path" end