calebstewart / pwncat

Fancy reverse and bind shell handler
https://pwncat.readthedocs.io
MIT License
2.63k stars 258 forks source link

CryptographyDepricationWarning: Blowfish has been deprecated 'class' : algorithms.Blowfish #266

Open Dotwut opened 1 year ago

Dotwut commented 1 year ago

image

Seemingly, an easy fix is to comment out:

    #"blowfish-cbc": {
    #    "class": algorithms.Blowfish,
    #    "mode": modes.CBC,
    #    "block-size": 8,
    #    "key-size": 16,
    #},

in paramiko/transport.py

Dxaz commented 1 year ago

If you installed with a virtual enviornment as recommended you can also just run the following in the venv:

pip uninstall -y cryptography && pip install cryptography==36.0.2

This issue was addressed here: https://github.com/paramiko/paramiko/issues/2038