Skip to content

Commit bc32e5f

Browse files
committed
Add upper() to cipher
1 parent 4cd79ba commit bc32e5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exploit.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def hex_xor(s1,s2):
7070
return hexlify(''.join(chr(ord(c1) ^ ord(c2)) for c1, c2 in zip(unhexlify(s1), cycle(unhexlify(s2)))))
7171

7272
def run(cipher,size_block,host,url,cookie,method,post,iv,error):
73+
cipher = cipher.upper()
7374
found = False
7475
valide_value = []
7576
result = []
@@ -146,7 +147,7 @@ def run(cipher,size_block,host,url,cookie,method,post,iv,error):
146147

147148
if __name__ == '__main__':
148149

149-
parser = argparse.ArgumentParser(description='Poc of BEAST attack')
150+
parser = argparse.ArgumentParser(description='Exploit of Padding Oracle Attack')
150151
parser.add_argument('-c', "--cipher", required=True, help='cipher you want to decrypt')
151152
parser.add_argument('-l', '--length_block_cipher', required=True, type=int, help='lenght of a block cipher: 8,16')
152153
parser.add_argument("--host", required=True, help='url example: /page=')

0 commit comments

Comments
 (0)