Add WSL case for Spawn TTY Shell in shell-reverse-cheatsheet.md

pull/11/head
Eneru 2024-05-04 11:55:58 +02:00 committed by GitHub
parent 348be5931c
commit ed918fa9cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -555,6 +555,20 @@ export TERM=xterm-256color
stty rows <num> columns <cols>
```
:warning: With Windows Terminal + WSL container, `[CTRL] + [Z]` can get you out of / freeze the container.
To overcome this issue, run `nc` in a `tmux`, and send a `SIGTSTP` signal to the `nc` process.
```bash
# Create a new window in tmux
## <ctrl+b> then <c>
# Find the PID of the nc process (column PID)
ps aux # | grep -i nc | grep -vi grep
# Send a SIGTSTP (ctrl+z) signal to the process
kill -s TSTP <PID>
```
or use `socat` binary to get a fully tty reverse shell
```bash