This is a python3 script that automates the genereation of unique patterns and calculates offsets. It is designed for buffer overflow exploitation.
-m <mode>
Specify the mode-v <value>
Specify the value
pattern.py -m generate -v 100
Generates 100 bytes of unique pattern:
pattern.py -m offset -v b14b15b1
Calculates the offset between the start of the pattern and the value: