Skip to content

Instantly share code, notes, and snippets.

@tunelko
Created September 21, 2018 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tunelko/6fb69807c95a6baf708cc151212ec9ab to your computer and use it in GitHub Desktop.
Save tunelko/6fb69807c95a6baf708cc151212ec9ab to your computer and use it in GitHub Desktop.
import socket
TCP_IP = '127.0.0.1'
TCP_PORT = 9999
BUFFER_SIZE = 1024
data = b"\x68\x16\x16\x68\x08\x00\x65\x81\x65\x00\x64\x00\x01\x01\x00\x1a\xb5\x13\x8b\x57\x07\x12\x00\x00\x00\x00\x96\x16"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
s.send(data)
s.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment