Is it possible to insert an image or document (in MB) as data in a package using scapy?
This is what I did to send the 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 as follows. In this example, the data will be encoded in ASCII.
>>> data = 'University of Texas at San Antonio' >>> a = IP(dst='129.132.2.21') / TCP() / Raw(load=data) >>> sendp(a)