Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.69k stars 1.67k forks source link

Fix access of undefined `ssh._tried_sftp` in `raw` mode #2396

Closed peace-maker closed 1 month ago

peace-maker commented 2 months ago

The ssh._tried_sftp attribute was never set when setting ssh(raw=True) which caused the code to run ssh.__getattr__ which raised an AttributeError due to _tried_sftp starting with an _ blocking execution on Python 3.12.