Skip to content

mw866/padding-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Padding Oracle Attacks

Description: Python implementation of Padding Oracle Attack against CBC-mode block cipher.

Usage

  • Test: py.test -s --ignore=my-venv poattack.py

  • Debug: python -m gudb poattack.py

Installation

Reference

Troubleshooting

Mistakenly guessed P_prime[-1] to 'x\01' when actually it is 'x\0f'.

Solutions: Toggle P_prime[-2] by XOR C0_prime[-2] ^ 01, then see if it breaks the decrypt(). If it does, it means the P_prime[-1] is not actually x\01. See "Backtrack" in https://blog.skullsecurity.org/2013/padding-oracle-attacks-in-depth

Releases

No releases published

Packages

No packages published