Skip to content

Instantly share code, notes, and snippets.

View ygorcb's full-sized avatar

Ygor Batista ygorcb

  • Belo Horizonte - Brazil
View GitHub Profile
@ygorcb
ygorcb / tcphex
Created April 18, 2022 19:23
Utility to send binary data represented in hexadecimal over TCP connection
#!/usr/bin/env python3
import socket
import sys
host, port = sys.argv[1].split(':')
s = socket.socket()
s.connect((host, int(port)))