Wifi updates

git-svn-id: file:///home/svn/framework3/trunk@4129 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-11-11 21:45:28 +00:00
parent cfb96be404
commit f925120ddd
3 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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
@ -29,14 +29,10 @@ class Auxiliary::Dos::Wireless::APFlood < Msf::Auxiliary
wifi.write(create_frame())
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')