Padding Oracle Attack (POA) on CBC_MODE, which can encrypt any message that you want.
poa.py
is the main function to create ciphertext.
python poa.py
VulServer.py
is a POA vulnerable server.
python VulServer.py
poa.py
contains two classes POACommunication
and POAAnyEncrypt
. You can override corresponding method to make it work in different applications.