informativec2026/ping_of_death/build.sh
2026-02-12 00:50:01 +01:00

34 lines
No EOL
1,006 B
Bash
Executable file

#!/bin/bash
echo "🔥 Building NetAttack Lab..."
echo "=============================="
# Clean previous builds
rm -f netattack-lab*
# Build for different platforms with embedded resources
echo "📦 Building for Linux (amd64)..."
GOOS=linux GOARCH=amd64 go build -o netattack-lab-linux-amd64 .
echo "📦 Building for Windows (amd64)..."
GOOS=windows GOARCH=amd64 go build -o netattack-lab-windows-amd64.exe .
echo "📦 Building for macOS (amd64)..."
GOOS=darwin GOARCH=amd64 go build -o netattack-lab-darwin-amd64 .
echo "📦 Building for macOS (ARM64/M1)..."
GOOS=darwin GOARCH=arm64 go build -o netattack-lab-darwin-arm64 .
echo ""
echo "✅ Build completed! Generated executables:"
ls -la netattack-lab*
echo ""
echo "🚀 To run the application:"
echo "Linux: ./netattack-lab-linux-amd64"
echo "Windows: netattack-lab-windows-amd64.exe"
echo "macOS: ./netattack-lab-darwin-amd64"
echo ""
echo "⚠️ EDUCATIONAL USE ONLY - Use responsibly!"
echo "🌐 Access: http://localhost:8090"