I'm trying to generate all possible hex bytes and set them to a byte string. This is,
I have this:
iv = b"\x14\x42\x31\xB5\xFE\x52\xA3\x32\x3E\xEA\xA4\x30\x00\x11\x23\xFE"
And for instance, I want to try all possible values for byte 7:
b"\x14\x42\x31\xB5\xFE\x52\xA3\ + x00\ + x3E\xEA\xA4\x30\x00\x11\x23\xFE"
b"\x14\x42\x31\xB5\xFE\x52\xA3\ + x01\ + x3E\xEA\xA4\x30\x00\x11\x23\xFE"
b"\x14\x42\x31\xB5\xFE\x52\xA3\ + x02\ + x3E\xEA\xA4\x30\x00\x11\x23\xFE"
(...)
b"\x14\x42\x31\xB5\xFE\x52\xA3\ + xFF\ + x3E\xEA\xA4\x30\x00\x11\x23\xFE"
How can I iterate and manipulate these structures in python?
Thank you for your time