From 24c916ca1f24490eab6bc5a34e49548afa864c92 Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Thu, 12 Jan 2023 12:57:39 -0500 Subject: [PATCH] Update and rename basic_scapy_packet.py to basic_ipv4_scapy_packet.py --- .../{basic_scapy_packet.py => basic_ipv4_scapy_packet.py} | 3 +++ 1 file changed, 3 insertions(+) rename programming_and_scripting_for_cybersecurity/exploitation/{basic_scapy_packet.py => basic_ipv4_scapy_packet.py} (52%) diff --git a/programming_and_scripting_for_cybersecurity/exploitation/basic_scapy_packet.py b/programming_and_scripting_for_cybersecurity/exploitation/basic_ipv4_scapy_packet.py similarity index 52% rename from programming_and_scripting_for_cybersecurity/exploitation/basic_scapy_packet.py rename to programming_and_scripting_for_cybersecurity/exploitation/basic_ipv4_scapy_packet.py index 768fb70..243444f 100644 --- a/programming_and_scripting_for_cybersecurity/exploitation/basic_scapy_packet.py +++ b/programming_and_scripting_for_cybersecurity/exploitation/basic_ipv4_scapy_packet.py @@ -5,3 +5,6 @@ packet = IP(src="10.1.1.2", dst="10.3.2.88")/TCP(dport=445) # send the packet send(packet) + +# You can also use sr() function for sending and receiving packet at the same time. +# ans, unans = sr(packet, timeout=2)