Skip to content

Conversation

@TIMBER2024
Copy link

Proposal

@TIMBER2024 TIMBER2024 changed the base branch from master to backrunning October 14, 2024 12:17
@TIMBER2024 TIMBER2024 changed the base branch from backrunning to circle-ci October 14, 2024 16:33
@TIMBER2024 TIMBER2024 changed the base branch from circle-ci to dependabot/pip/websockets-9.1 October 14, 2024 16:34
Copy link
Author

@TIMBER2024 TIMBER2024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TIMBER2024 TIMBER2024 changed the base branch from dependabot/pip/websockets-9.1 to circle-ci October 16, 2024 15:50
@TIMBER2024
Copy link
Author

from scapy.all import *

Function to spoof IP

def spoof_ip_packet(source_ip, destination_ip, data="Hello, this is a spoofed packet"):
# Construct the IP packet with spoofed source IP
packet = IP(src=source_ip, dst=destination_ip) / ICMP() / data
# Send the packet
send(packet, verbose=0) # verbose=0 to not print each packet sent

if name == "main":
# Example usage:
source_ip = "192.168.1.100" # Spoofed source IP
destination_ip = "192.168.1.255" # Broadcast or specific IP within your network
spoof_ip_packet(source_ip, destination_ip)
print("A spoofed packet has been sent.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants