-
-
Save invokethreatguy/200fc7cf625e6fb62dc8242514967b85 to your computer and use it in GitHub Desktop.
Sending spoofed raw packets with scapy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import * | |
import time | |
ip = IP(dst='192.168.1.1', src='192.168.1.1') | |
udp = UDP(sport=1234,dport=1234) | |
payload = '\x01\x0f' | |
packet = ip/udp/payload | |
while(True): | |
send(packet) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment