Compare commits

..

2 Commits

Author SHA1 Message Date
devdesk
82d11e868f Merge branch 'main' of git.telavivmakers.space:tami/thermalcam_decoder 2024-01-07 02:03:45 +02:00
devdesk
85bda0fa27 replay file 2024-01-07 02:02:52 +02:00

19
replay.py Normal file
View File

@ -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")