Force the interface up when open_wifi is called

git-svn-id: file:///home/svn/framework3/trunk@4132 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-11-12 21:33:33 +00:00
parent 313fb089fb
commit 1fad9eef5c
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ module Exploit::Lorcon
raise RuntimeError, "Lorcon not available" raise RuntimeError, "Lorcon not available"
end end
# XXX: Force the interface to be up
system("ifconfig", datastore['INTERFACE'], "up")
self.wifi = ::Lorcon::Device.new(datastore['INTERFACE'], datastore['DRIVER'], datastore['CHANNEL']) self.wifi = ::Lorcon::Device.new(datastore['INTERFACE'], datastore['DRIVER'], datastore['CHANNEL'])
if (not self.wifi) if (not self.wifi)