Skip to content
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

cmd/unix/reverse_awk spins CPU after user exit #14510

Closed
egypt opened this issue Dec 14, 2020 · 2 comments · Fixed by #14515
Closed

cmd/unix/reverse_awk spins CPU after user exit #14510

egypt opened this issue Dec 14, 2020 · 2 comments · Fixed by #14515
Assignees
Labels

Comments

@egypt
Copy link
Contributor

egypt commented Dec 14, 2020

While testing payloads for #14509 I noticed cmd/unix/reverse_awk spins CPU after user exit.

Steps to reproduce

  • use payload/cmd/unix/reverse_awk
  • generate -f raw
  • copy the command
  • to_handler
  • paste the command into a terminal somewhere
  • interact with the session: sessions -1
  • id or something to make sure it's real
  • exit or ctrl-c
  • see the session close

Expected behavior

clean exit

Current behavior

If you exit, the payload continues to call back. If you ctrl-c, it doesn't call back anymore but the process is still there. Either way, my fan spins up

Metasploit version

Tested in #14509 as mentioned. Verified that the same issue exists on current master, 7b31d33

@egypt egypt added the bug label Dec 14, 2020
@bcoles
Copy link
Contributor

bcoles commented Dec 14, 2020

Welp. Likely introduced by #10035 to fix #9750. Context: #9750 (comment)

@timwr
Copy link
Contributor

timwr commented Dec 14, 2020

I can grab this, looks straightforward

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants