Created
February 3, 2019 10:18
-
-
Save bastibl/1152a52d271bcc96879dd3d6585aa35d to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env python | |
import time | |
import socket | |
from scapy.all import * | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
frame = Dot15d4FCS()\ | |
/Dot15d4Data(dest_panid=0x4242, dest_addr=0x2323)\ | |
/"Hello World!" | |
while True: | |
sock.sendto(bytes(frame), ("127.0.0.1", 52001)) | |
frame.show2() | |
time.sleep(0.2) | |
#frame = fuzz(Dot15d4FCS()\ | |
# /Dot15d4Data(dest_panid=0x4242, dest_addr=0x2323)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment