Skip to content

Instantly share code, notes, and snippets.

View ygorcb's full-sized avatar

Ygor Batista ygorcb

  • Belo Horizonte - Brazil
View GitHub Profile
@rafaelcbc
rafaelcbc / udphex
Last active January 18, 2023 17:04
Utility to send binary data represented in hexadecimal over UDP connection
#!/usr/bin/env python3
import socket
import sys
host, port = sys.argv[1].split(':')
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect((host, int(port)))