Skip to content

Commit eedf315

Browse files
committed
add build scripts, fix typo in README.md
1 parent 803930a commit eedf315

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.dll
55
*.so
66
*.dylib
7+
*.elf
78

89
# Test binary, built with `go test -c`
910
*.test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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"```

build.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 ..

build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 ..

0 commit comments

Comments
 (0)