File tree Expand file tree Collapse file tree 4 files changed +42
-1
lines changed
Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 44* .dll
55* .so
66* .dylib
7+ * .elf
78
89# Test binary, built with `go test -c`
910* .test
Original file line number Diff line number Diff line change 11# log4j2-exp
22 * Check and exploit log4j2 vulnerability with single Go program.
33 * You don't need to install anything except develop it.
4- * It support ldaps and https server for other usage.
4+ * It supports ldaps and https server for other usage.
55
66## Run
77 ``` log4j2-exp.exe -host "VPS IP address" ```
Original file line number Diff line number Diff line change 1+ mkdir bin
2+ cd bin
3+
4+ set GOOS = windows
5+ set GOARCH = 386
6+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_386.exe ../cmd/main.go
7+
8+ set GOOS = windows
9+ set GOARCH = amd64
10+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_amd64.exe ../cmd/main.go
11+
12+ set GOOS = linux
13+ set GOARCH = 386
14+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_386.elf ../cmd/main.go
15+
16+ set GOOS = linux
17+ set GOARCH = amd64
18+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_amd64.elf ../cmd/main.go
19+
20+ cd ..
Original file line number Diff line number Diff line change 1+ mkdir bin
2+ cd bin
3+
4+ set GOOS=windows
5+ set GOARCH=386
6+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_386.exe ../cmd/main.go
7+
8+ set GOOS=windows
9+ set GOARCH=amd64
10+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_amd64.exe ../cmd/main.go
11+
12+ set GOOS=linux
13+ set GOARCH=386
14+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_386.elf ../cmd/main.go
15+
16+ set GOOS=linux
17+ set GOARCH=amd64
18+ go build -v -trimpath -ldflags " -s -w" -o log4j2-exp_amd64.elf ../cmd/main.go
19+
20+ cd ..
You can’t perform that action at this time.
0 commit comments