Added packet output
This commit is contained in:
+5
-1
@@ -28,6 +28,10 @@ def beacon_raw(SSID=b"PrincessPiNet", reported_length=13, interval_seconds=0.25)
|
|||||||
# print info
|
# print info
|
||||||
print(f"FIRIN MY LAZORRRRRR\n\tSSID: {SSID}\n\treported length: {reported_length}\n\tinterval seconds: {interval_seconds}\n\tsender bssid/mac: {sender_bssid_mac}\n")
|
print(f"FIRIN MY LAZORRRRRR\n\tSSID: {SSID}\n\treported length: {reported_length}\n\tinterval seconds: {interval_seconds}\n\tsender bssid/mac: {sender_bssid_mac}\n")
|
||||||
|
|
||||||
|
# print packet
|
||||||
|
print("Packet to be sent:")
|
||||||
|
hexdump(frame)
|
||||||
|
|
||||||
# send it
|
# send it
|
||||||
sendp(frame, iface=iface, inter=interval_seconds, loop=1) # send on loop
|
sendp(frame, iface=iface, inter=interval_seconds, loop=1) # send on loop
|
||||||
|
|
||||||
@@ -35,5 +39,5 @@ def beacon_raw(SSID=b"PrincessPiNet", reported_length=13, interval_seconds=0.25)
|
|||||||
ssid_binary = 0b0101 # a few random bits to send as the SSID
|
ssid_binary = 0b0101 # a few random bits to send as the SSID
|
||||||
|
|
||||||
# please be careful with this, it can crash or damage your local wifi devices
|
# please be careful with this, it can crash or damage your local wifi devices
|
||||||
# beacon_raw(ssid_binary) # send it! USE WITH EXTREME CARE
|
# beacon_raw(SSID=ssid_binary, reported_length=255) # send it! USE WITH EXTREME CARE
|
||||||
# beacon_raw() # send dummy normal beacon for testing
|
# beacon_raw() # send dummy normal beacon for testing
|
||||||
|
|||||||
Reference in New Issue
Block a user