mirage.libs.wifi_utils package¶
Submodules¶
mirage.libs.wifi_utils.constants module¶
This module contains some constants that are used by the WiFi stack.
mirage.libs.wifi_utils.packets module¶
-
class
mirage.libs.wifi_utils.packets.
WifiBeacon
(channel=None, destMac='', srcMac='', emitMac='', SSID='???', cypher='OPN')¶ Bases:
mirage.libs.wifi_utils.packets.WifiPacket
Mirage WiFi Packet - Beacon (Management frame)
- Parameters
channel (int) – wifi channel in use
destMac (str) – destination MAC address
srcMac (str) – source MAC address
emitMac (str) – emitter MAC address
SSID (str) – SSID contained in the Beacon frame
cypher (str) – cypher mode in use (‘OPN’,’WPA’,’WPA2’,’WEP’)
-
toString
()¶ This method allows to explicitely define how a packet is displayed if it is converted as a string.
- If this method is not overloaded, the packet is displayed as :
<< name >> if no additional informations are linked to this packet
[ additionalInformations ] << name >> if some additional informations are linked to this packet
-
class
mirage.libs.wifi_utils.packets.
WifiDeauth
(channel=None, destMac='', srcMac='', emitMac='', reason=7)¶ Bases:
mirage.libs.wifi_utils.packets.WifiPacket
Mirage WiFi Packet - Deauthentication (Management frame)
- Parameters
channel (int) – wifi channel in use
destMac (str) – destination MAC address
srcMac (str) – source MAC address
emitMac (str) – emitter MAC address
reason (int) – deauthentication reason
-
class
mirage.libs.wifi_utils.packets.
WifiDisas
(channel=None, destMac='', srcMac='', emitMac='', reason=7)¶ Bases:
mirage.libs.wifi_utils.packets.WifiPacket
Mirage WiFi Packet - Disassociation (Management frame)
- Parameters
channel (int) – wifi channel in use
destMac (str) – destination MAC address
srcMac (str) – source MAC address
emitMac (str) – emitter MAC address
reason (int) – disassociation reason
-
class
mirage.libs.wifi_utils.packets.
WifiPacket
(channel=None, destMac='', srcMac='', emitMac='', type=0, subType=0)¶ Bases:
mirage.libs.wireless_utils.packets.Packet
Mirage WiFi Packet
- Parameters
channel (int) – wifi channel in use
destMac (str) – destination MAC address
srcMac (str) – source MAC address
emitMac (str) – emitter MAC address
type (int) – type of the current frame
subType (int) – subtype of the current frame
-
class
mirage.libs.wifi_utils.packets.
WifiProbeRequest
(channel=None, destMac='', srcMac='', emitMac='', SSID='???')¶ Bases:
mirage.libs.wifi_utils.packets.WifiPacket
Mirage WiFi Packet - Probe Request (Management frame)
- Parameters
channel (int) – wifi channel in use
destMac (str) – destination MAC address
srcMac (str) – source MAC address
emitMac (str) – emitter MAC address
SSID (str) – SSID contained in the Beacon frame
-
toString
()¶ This method allows to explicitely define how a packet is displayed if it is converted as a string.
- If this method is not overloaded, the packet is displayed as :
<< name >> if no additional informations are linked to this packet
[ additionalInformations ] << name >> if some additional informations are linked to this packet
-
class
mirage.libs.wifi_utils.packets.
WifiProbeResponse
(channel=None, destMac='', srcMac='', emitMac='', SSID='???', cypher='OPN', beaconInterval=100)¶ Bases:
mirage.libs.wifi_utils.packets.WifiPacket
Mirage WiFi Packet - Probe Response (Management frame)
- Parameters
channel (int) – wifi channel in use
destMac (str) – destination MAC address
srcMac (str) – source MAC address
emitMac (str) – emitter MAC address
SSID (str) – SSID contained in the Beacon frame
cypher (str) – cypher mode in use (‘OPN’,’WPA’,’WPA2’,’WEP’)
beaconInterval (int) – interval between two consecutive beacon frames
-
toString
()¶ This method allows to explicitely define how a packet is displayed if it is converted as a string.
- If this method is not overloaded, the packet is displayed as :
<< name >> if no additional informations are linked to this packet
[ additionalInformations ] << name >> if some additional informations are linked to this packet