Skip to content

Instantly share code, notes, and snippets.

View drunkirishcoder's full-sized avatar

Daniel Jin drunkirishcoder

  • dfns
  • Philadelphia
View GitHub Profile
import socket
import sys
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ('localhost', 8080)
print >>sys.stderr, 'starting up on %s port %s' % server_address
sock.bind(server_address)
while True:
sudo tcpdump -A -s0 -ilo0 port 12345