What I do:
- Use scapy to send/receive a UDP-Datagram from a server (192.168.1.2)
- The server replies with a UDP-Datagram to the source port of the received UDP-Datagram
This works fine, however, the client always sends a ICMP "Destination unreachable (Port unreachable))" after the datagram was successfully received. Scapy command run on the client:
pkt = IP(dst='192.168.1.2')/UDP(sport=49000, dport=50991)/Raw(udp_command_bytes)
rec = sr1(pkt)
I have a POXIS based application using sockets that does the same thing and there is no ICMP response sent. What is the problem with the above scapy command? Shouldn't it listen on port 49000 for the response?
Ether()/IP()....
thensendp()
instead ofsend()
– Cukic0d