is there a certain device, or do i need to code it myself
There is a device.
Start with CTF tutorial: Capture the Flag