Skip to main content

Threaded padding oracle automation.

Project description

Extremely fast threaded padding oracle automation script for Python 3.


Installing from PyPI:

pip3 install -U padding_oracle

Or, installing from GitHub:

pip3 install -U git+


Tested on [0x09] Cathub Party from EDU-CTF:

Request Threads Execution Time
1 17m 43s
4 5m 23s
16 1m 20s
64 56s


All you need is defining the oracle function to check whether the given cipher is correctly decrypted.

from padding_oracle import *

import requests
sess = requests.Session()

def oracle(cipher):
    r ='', data={'cipher': base64_encode(cipher)})
    assert 'SUCCESS' in r.text or 'FAILED' in r.text
    return 'SUCCESS' in r.text

cipher = b'[      IV      ][    Block 1   ][    Block 2   ]'
plaintext = padding_oracle(cipher,  # cipher bytes      (required)
                           16,      # block size        (required)
                           oracle,  # oracle function   (required)
                           64)      # number of threads

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for padding-oracle, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size padding_oracle-0.1.5-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size padding_oracle-0.1.5.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page