emptymonkey / revsh

A reverse shell with terminal support, data tunneling, and advanced pivoting capabilities.
MIT License
458 stars 90 forks source link

Connect back keep-alive mode, "Bad file descriptor" after reconnect. #6

Closed emptymonkey closed 7 years ago

emptymonkey commented 7 years ago

c9woxv-umaapjsx jpg large

Reported by twitter user @alzzac.

I've been unable to reproduce this yet. I'll audit the keep-alive code and see if I can find any issues there.

emptymonkey commented 7 years ago

Unable to reproduce so far. More info needed. I would like to know:

Thanks.

alzzac commented 7 years ago
              Control                    Target

OS | ubuntu-14.04.5-desktop-amd64 | kali-linux-2017.1 OpenSSL | 1.0.1f Makefile | default
Command | revsh -c | revsh -k IP Changes | #define RETRY "6,12"

The error message will shown only when I use reverse shell mode.

In bind shell mode, everything works fine.

emptymonkey commented 7 years ago

Fixed in devel branch.