Gallopsled/pwntools

Use ssh with proxy_sock has some problem

Open

#1.988 geöffnet am 29. Okt. 2021

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (11.127 Stars) (1.684 Forks)batch import
buggood first issue

Beschreibung

When I use ssh with proxy_sock and proxy_sock is unix domain socket, getsockname will return '', and sockname[0] will cause an Exception

https://github.com/Gallopsled/pwntools/blob/7e03bfd5a659afeaa165094b39e0ecec90c547c4/pwnlib/tubes/ssh.py#L459-L461

Contributor Guide