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

Update bhnet.py #15

Closed TokyoEnigma closed 1 year ago

TokyoEnigma commented 1 year ago

Updating line 87 to decode the client response before running the command. This solved an issue I ran into where my Win 10 host (running as netcat server on Python 3.9) raised the following type error: TypeError('bytes args is not allowed on Windows')