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