From 85bda0fa27396321d0894f467baeec0a163fbe5d Mon Sep 17 00:00:00 2001 From: devdesk Date: Sun, 7 Jan 2024 02:02:52 +0200 Subject: [PATCH] replay file --- replay.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 replay.py diff --git a/replay.py b/replay.py new file mode 100644 index 0000000..f664c23 --- /dev/null +++ b/replay.py @@ -0,0 +1,19 @@ +#replay the "trigger" packet. +#this packets will start the source broadcasting its packets. + +import base64 +from scapy.all import * + +# Base64 encoded packet data +encoded_packet = "////////AAFsWfAKCABFAAA4KB0AAIARkEfAqAABwKgA/x+bH5wA2QAAASABgBtAACAAAAAAAAAADwAAAAEAAAEAACArAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////////////////////////////////AAAAAAAAAAIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + + +# Decode the Base64 encoded packet +decoded_packet = base64.b64decode(encoded_packet) + +# Load packet with Scapy +packet = Ether(decoded_packet) +#print(packet.show(dump=True)) + +# (packet) +sendp(packet, iface="enp1s0f0") \ No newline at end of file