Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by bhack ( 8 years ago )
from paddingoracle import BadPaddingException, PaddingOracle
def check_paddind_error(data):
...
class PadBuster(PaddingOracle):
def __init__(self, **kwargs):
super(PadBuster, self).__init__(**kwargs)
def oracle(self, data, **kwargs):
if check_paddind_error(data):
raise BadPaddingException
if __name__ == '__main__':
padbuster = PadBuster()
cleantext = padbuster.decrypt(encrypted_cookie, block_size=8, iv=bytearray(8))
print "Cleantext: {}".format(cleantext)
Revise this Paste