EONRaider / blackhat-python3

Source code for the book "Black Hat Python" by Justin Seitz. The code has been fully converted to Python 3, reformatted to comply with PEP8 standards and refactored to eliminate dependency issues involving the implementation of deprecated libraries.
2.02k stars 414 forks source link

Fixed Multiple Encoding Issues #2

Closed ghost closed 4 years ago

ghost commented 4 years ago

Running the script as is throws errors due to the handling of the plaintext variable which can appear as a string or as a binary string when handed over to the encrypt_string function. Additionally, use of the base64 library is corrected.

EONRaider commented 4 years ago

Outstanding work. Have you tested it? Does it work alright? If so I can surely merge.

ghost commented 4 years ago

Hey EONR, This fixes the encrypt_string function certainly based on my tests, but I've made no effort at this stage to address issues in this script with logging in to tumblr. The script at this stage assumes a login and password field appear simultaneously on the login page, but unfortunately this is no longer the case. Hope it helps!

EONRaider commented 4 years ago

I understand. I'll merge it anyway. Eventually I or someone else will validate this script when it comes to interacting with Tumblr. I'll add your contribution to the README.md too.