exec >/www/snap/B.txt 2>&1 echo "== 403 body sit-mss full ==" curl -s -m 6 "https://sit-mss.xlsmart.co.id/" | tr -d '\n' | head -c 500; echo echo "== 403 body jupiter-cms full ==" curl -s -m 6 "https://jupiter-cms.xlsmart.co.id/" | tr -d '\n' | head -c 300; echo echo "== tools ==" for t in bash nc telnet mysql; do p=$(command -v $t 2>/dev/null); echo "$t=${p:-NONE}"; done echo "== ipv6 =="; ip -6 addr 2>&1 | head -5 echo "== internal tcp via curl time_connect ==" tp() { curl -s -m 5 -o /dev/null -w "$1:$2 connect=%{time_connect} code=%{http_code}\n" "http://$1:$2/"; } tp 100.0.14.208 3306 tp 100.0.14.204 3306 tp 100.0.14.208 80 tp 10.51.97.104 9200 tp 10.51.97.104 80 tp 10.51.97.104 443 tp 10.51.97.104 8080 echo "== ES/MySQL raw ==" curl -s -m 4 "http://10.51.97.104:9200/" | head -c 200; echo echo "== DNS for xlsmart internal ==" getent hosts addonapps.xlsmart.co.id 2>&1 | head -2 echo "== DONE =="