This script was used to retrieve Hacker101 CTF Encrypted Pastebin 3rd flag by using Padding Oracle Attack.
Under __main__
function - change post
and url
values according to yours and run the script:
python padding-oracle-attack.py
⚠ It will take some time, so go make some coffee and wait.
Also check out Brian Holyfield's ready to use solution called PadBuster.
Give some ❤ to the original author of this script: Werner