Force the interface up when open_wifi is called
git-svn-id: file:///home/svn/framework3/trunk@4132 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
313fb089fb
commit
1fad9eef5c
|
@ -45,6 +45,9 @@ module Exploit::Lorcon
|
|||
raise RuntimeError, "Lorcon not available"
|
||||
end
|
||||
|
||||
# XXX: Force the interface to be up
|
||||
system("ifconfig", datastore['INTERFACE'], "up")
|
||||
|
||||
self.wifi = ::Lorcon::Device.new(datastore['INTERFACE'], datastore['DRIVER'], datastore['CHANNEL'])
|
||||
|
||||
if (not self.wifi)
|
||||
|
|
Loading…
Reference in New Issue