-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug in hangup #28
Comments
Example:
In this case I was not in over SSH, but over another PTY spawning backdoor - this also begs the question of why I am only targeting SSH connections - there are times when we might want to kill a user who is accessing via telnet or another remote access tool which allocates a PTY, for example. |
MESS WITH THE BEST |
I have added some checks in the hangup function in the pull request #30. |
In pull request #31 special arguments were added: |
Appears to work fine on Debian/Ubuntu hosts I've been testing on. I'll probably have to add CentOS and such to my set of VM's though going forward as per your notes in #21 |
I accidentally introduced a bug in the
hangup
function. If you run it without arguments, it kills everyone elses session on the box.This is great and all, but not exactly what I intended to do.
I should probably rewrite this function to work better.
The text was updated successfully, but these errors were encountered: