You are using sendp()
directly with IP
packets, which is wrong.
Use either sendp(Ether()/IP()/...)
or send(IP()/...)
.
By the way, you don't need to add Raw(load=...)
, as Scapy treats str
as Raw
.
So try this:
data = "University of texas at San Antonio"
a = IP(dst="129.132.2.21")/TCP()/data
send(a)