Skip to content

Instantly share code, notes, and snippets.

@spekode
spekode / q3master.py
Created January 25, 2012 20:13
send q3 clients silly lists! HAR HAR
#!/usr/bin/python
from socket import *
import struct
# SEE: http://www.gnu-darwin.org/www001/src/ports/games/masterserver/work/masterserver-0.4.1/docs/PROTOCOLS
# Request: \xFF\xFF\xFF\xFFgetservers Quake3Arena 68 full empty
# Reply: \xFF\xFF\xFF\xFFgetserversResponse\\x0A\x0B\x0C\x0D\xY\xZ\[repeat]\EOT
# Reply: Max 112 servers per reply. Enforced? \EOT denotes the end of reply packets (only sent in last packet)