Topic: Scapy – transfered data change
Hi, looking for help. By program Scapy I’m trying to interrupt the communication connection found by protocol SIP. I am able to catch the packet SIP INVITE:
>>> x=sniff(filter="udp and port 5060",count=1)
>>> x[0].show()
###[ Ethernet ]###
dst = 00:04:e2:f3:b0:00
……
……
……
###[ UDP ]###
sport = 5060
dport = 5060
len = 740
chksum = 0x12f7
###[ Raw ]###
load = ‘INVITE sip:[email protected] SIP/2.0rnVia: SIP/2.0/UDP 81.19.15.37:61497;rport;branch=z9hG4bK5AF5AB611197454B8EFBDB4329A4F000rnFrom:vomacka<sip:[email protected]>;
tag=1739627153rnTo:<sip:[email protected]>rnContact:<sip:[email protected]:61497………………
In the field Raw I need to change INVITE into BYE, but I don’t know how to do it by scapy.