Metasploit's pattern tools in Python
$ python pattern_create.py -h
Usage: python pattern_create.py <length> [set a] [set b] [set c]
Example: python pattern_create.py 50 ABC def 123
Ad1Ad2Ad3Ae1Ae2Ae3Af1Af2Af3Bd1Bd2Bd3Be1Be2Be3Bf1Bf
$ python pattern_offset.py -h
Usage: python pattern_offset.py <query> [set_a] [set_b] [set_c]
Example: python pattern_offset.py 0x37614136
[*] Exact match at offset 20