Wifi updates
git-svn-id: file:///home/svn/framework3/trunk@4129 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
cfb96be404
commit
f925120ddd
|
@ -59,6 +59,16 @@ module Exploit::Lorcon
|
|||
addr.split(':').map { |c| c.hex.chr }.join
|
||||
end
|
||||
|
||||
def channel
|
||||
self.wifi.channel
|
||||
end
|
||||
|
||||
def next_channel
|
||||
cur = self.wifi.channel
|
||||
nxt = (cur > 10) ? 1 : cur + 1
|
||||
self.wifi.channel = nxt
|
||||
end
|
||||
|
||||
attr_accessor :wifi
|
||||
|
||||
end
|
||||
|
|
|
@ -204,6 +204,7 @@ class SwitchBoard
|
|||
# Finds the best possible comm for the supplied target address.
|
||||
#
|
||||
def best_comm(addr)
|
||||
|
||||
addr_nbo = Socket.resolv_nbo_i(addr)
|
||||
comm = nil
|
||||
msb = 0
|
||||
|
@ -225,6 +226,7 @@ class SwitchBoard
|
|||
# Remove all routes that go through the supplied comm.
|
||||
#
|
||||
def remove_by_comm(comm)
|
||||
_init
|
||||
mutex.synchronize {
|
||||
routes.delete_if { |route|
|
||||
route.comm == comm
|
||||
|
|
|
@ -9,7 +9,7 @@ class Auxiliary::Dos::Wireless::APFlood < Msf::Auxiliary
|
|||
|
||||
def initialize(info = {})
|
||||
super(update_info(info,
|
||||
'Name' => 'Wireless Fake AP Beacon Flood',
|
||||
'Name' => 'Wireless Fake Access Point Beacon Flood',
|
||||
'Description' => %q{
|
||||
This module advertises thousands of fake access
|
||||
points, using random SIDs and BSSID addresses. Inspired
|
||||
|
@ -30,13 +30,9 @@ class Auxiliary::Dos::Wireless::APFlood < Msf::Auxiliary
|
|||
end
|
||||
end
|
||||
|
||||
def eton(addr)
|
||||
addr.split(':').map { |c| c.hex.chr }.join
|
||||
end
|
||||
|
||||
def create_frame
|
||||
|
||||
ssid = Rex::Text.rand_text_alpha(rand(32)+1)
|
||||
ssid = Rex::Text.rand_text_alpha(rand(31)+1)
|
||||
bssid = Rex::Text.rand_text(6)
|
||||
seq = [rand(255)].pack('n')
|
||||
|
||||
|
|
Loading…
Reference in New Issue