项目作者: mw866

项目描述 :
Padding Oracle Attacks for CBC mode
高级语言: Python
项目地址: git://github.com/mw866/padding-oracle.git
创建时间: 2017-03-11T00:17:44Z
项目社区:https://github.com/mw866/padding-oracle

开源协议:

下载


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