small change

This commit is contained in:
Tristan Smith 2024-05-06 11:27:33 -04:00
parent a4f3336d7d
commit f7962edfa9
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@ from struct import pack
def send_arp_packet(): def send_arp_packet():
src_mac = b'\x00\x11\x22\x33\x44\x55' # Source MAC address src_mac = b'\x00\x11\x22\x33\x44\x55' # Source MAC address
dst_ip = "192.168.1.1" # Destination IP address dst_ip = "192.168.1.1" # Destination IP address
src_ip = "192.168.1.69"
# Craft the ARP request packet # Craft the ARP request packet
arp_packet = b'\xff\xff\xff\xff\xff\xff' # Destination MAC address (broadcast) arp_packet = b'\xff\xff\xff\xff\xff\xff' # Destination MAC address (broadcast)

View file

@ -27,4 +27,5 @@ def listen_for_packets():
if __name__ == "__main__": if __name__ == "__main__":
# Start listening for packets # Start listening for packets
print("Listening...")
listen_for_packets() listen_for_packets()