PixelFlut BruCON 2023
From Ko-Lab Wiki
For BruCON 2023, we host a PixelFlut server projecting it's display in the hardware hacking area.
- Server is available internall on the BruCON Guest Network on 10.66.66.100:10108
 - Game Documentation: with example client: https://wiki.cccgoe.de/wiki/Pixelflut
 - Supported Commands:
- PX $x $y $color
 - SIZE
 
 
Example client code in python:
import socket
import random
import time
HOST = 'localhost'
PORT = 10108
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((HOST, PORT))
def pixel(x, y, r, g, b, a=255):
    if a == 255:
        data = 'PX %d %d %02x%02x%02x\n' % (x, y, r, g, b)
    else:
        data = 'PX %d %d %02x%02x%02x%02x\n' % (x, y, r, g, b, a)
    sock.send(data.encode('utf-8'))
def worm(x, y, n, r, g, b):
    while n:
        pixel(x, y, r, g, b, 25)
        x += random.randint(0, 2) - 1
        y += random.randint(0, 2) - 1
        n -= 1
try:
    worm(random.randint(0, 1024),
         random.randint(0, 1024),
         random.randint(1, 100000),
         random.randint(0, 255), random.randint(0, 255), random.randint(0, 255))
    print('worm done')
except Exception as e:
    print('worm error')
    print(e)
    sock.close()
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock.connect((HOST, PORT))
References
- Demo Client Code: https://github.com/ko-lab/led_pixelflut/blob/master/example_client_python/client3.py
 
Project gestart: 2023-09-28
| Projectnaam | PixelFlut | 
| Project tagline::Custom PixelFlut setup | |
| Status | active | 
| Project gestopt: 2023-09-29 | |
| leden | FrancisD |