/*
* xklock - FreeBSD 351 & 42 ports package local root exploit
*
* The X key lock program contain several exploitable buffer overflows
* in command line arguments aswell as the 'JNAME' environment variable
* xklock is installed setuid root by default
* This POC exploit (ab)uses the -bg arg, brute force offset if required
*
* Usa ...