Exploit databaseDownload repository ZIP
GH-6c91430c626922f484bf85fee5d0e649
297855/ctnm
Sources for CVE-2025-22870
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files25
297855/ctnmRevision 632266d34ed4
- .github/
- bridge/
- client/
- cmd/
- conf/
- docs/
- image/
- lib/
- server/
- web/
- .gitattributes
- .gitignore
- .travis.yml
- Dockerfile.npc
- Dockerfile.nps
- LICENSE
- Makefile
- README.md
- README_en.md
- build.assets.old.sh
- build.assets.sh
- build.sh
- entrypoint.nps.sh
- go.mod
- go.sum
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
build.assets.old.sh
Shell · 1,342 bytesexport GOPROXY=direct
sudo apt-get update
sudo apt-get install gcc-mingw-w64-i686 gcc-multilib
env GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go build -ldflags "-s -w -extldflags -static -extldflags -static" -buildmode=c-shared -o npc_sdk.dll cmd/npc/sdk.go
env GOOS=linux GOARCH=386 CGO_ENABLED=1 CC=gcc go build -ldflags "-s -w -extldflags -static -extldflags -static" -buildmode=c-shared -o npc_sdk.so cmd/npc/sdk.go
tar -czvf npc_sdk_old.tar.gz npc_sdk.dll npc_sdk.so npc_sdk.h
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
tar -czvf windows_386_client_old.tar.gz npc.exe conf/npc.conf conf/multi_account.conf
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
tar -czvf windows_amd64_client_old.tar.gz npc.exe conf/npc.conf conf/multi_account.conf
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
tar -czvf windows_amd64_server_old.tar.gz conf/nps.conf web/views web/static nps.exe
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
tar -czvf windows_386_server_old.tar.gz conf/nps.conf web/views web/static nps.exe