A De Brujin sequence of order on an alphabet of size is a cyclic sequence with all possible length- string on . This can be useful in a stack buffer overflow attack as it can help determine the offset of the stored instruction pointer. Tools like pwntools (in particular, the cyclic
command/function) can generate De Brujin sequences.