I am conducting a Padding Oracle Attack for my Information Security course. Without getting into the details of the attack, I need to have a for loop that loops through all possible 1 byte hex values.
Pseudo-code of what I need to do:
for x in range('\x00', '\xFF'):
replace last byte of ciphertext with byte
perform padding check
I cannot figure out how to accomplish this. Any ideas?