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-b9f4589650daunstable
parent
f13bf727c8
commit
e23925ed27
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue