Handle lorcon on windows better
git-svn-id: file:///home/svn/framework3/trunk@5341 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
3af853fa56
commit
1e2ec68913
|
@ -39,8 +39,17 @@ module Exploit::Lorcon
|
|||
|
||||
|
||||
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'
|
||||
@lorcon_loaded = true
|
||||
|
||||
rescue ::Exception => e
|
||||
@lorcon_loaded = false
|
||||
@lorcon_error = e
|
||||
|
|
Loading…
Reference in New Issue