Can I insert image or document (in MBs) as a data in packet using scapy?
This is what I did to send data.
data = "University of texas at San Antonio"
a = IP(dst="129.132.2.21")/TCP()/data
send(a)
Can I insert image or document (in MBs) as a data in packet using scapy?
This is what I did to send data.
data = "University of texas at San Antonio"
a = IP(dst="129.132.2.21")/TCP()/data
send(a)
Yes, you can send raw data like this. In this example, data will be ASCII encoded.
>>> data = 'University of Texas at San Antonio'
>>> a = IP(dst='129.132.2.21') / TCP() / Raw(load=data)
>>> send(a)
© 2022 - 2024 — McMap. All rights reserved.
scapy
– Punctual