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
unstable
HD Moore 2009-10-01 13:28:38 +00:00
parent f13bf727c8
commit e23925ed27
1 changed files with 1 additions and 4 deletions

View File

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