Handle lorcon on windows better

git-svn-id: file:///home/svn/framework3/trunk@5341 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-01-24 05:49:48 +00:00
parent 3af853fa56
commit 1e2ec68913
1 changed files with 9 additions and 0 deletions

View File

@ -39,8 +39,17 @@ module Exploit::Lorcon
begin begin
if(Rex::Compat.is_windows())
airpcap = Rex::FileUtils.find_full_path("airpcap.dll")
if (not airpcap)
raise RuntimeError, "The airpcap.dll library must be installed"
end
end
require 'Lorcon' require 'Lorcon'
@lorcon_loaded = true @lorcon_loaded = true
rescue ::Exception => e rescue ::Exception => e
@lorcon_loaded = false @lorcon_loaded = false
@lorcon_error = e @lorcon_error = e