Boot2Root / Command Mistakes & Recovery
Reverse shell dies when pressing Ctrl+C
1. Error or symptom
The entire shell session terminates instead of just interrupting the foreground command.
2. Likely cause
Raw netcat shell has no real TTY allocated.
3. How to verify
tty # 'not a tty' confirms the issue.
4. Correct command
python3 -c "import pty; pty.spawn('/bin/bash')"5. Recovery procedure
Re-catch the shell if it already died, then stabilize immediately this time before running anything else.
6. How to avoid repeating it
Stabilize the TTY as the very first action after catching any raw shell.