Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, re, random, time, win_inet_pton, os
- import tempmail
- from stem import Signal
- from stem.control import Controller
- wordList = requests.get('http://splasho.com/upgoer5/phpspellcheck/dictionaries/1000.dicin').content.replace('\'', '').splitlines()
- def newIdentity():
- proxy = 'socks5://127.0.0.1:9150'
- with Controller.from_port(port = 9151) as controller:
- controller.authenticate()
- controller.signal(Signal.NEWNYM)
- return {'http': proxy, 'https': proxy}
- proxy = newIdentity()
- def generateString(length = 20):
- ustr = ''
- for i in range(1, length):
- word = random.randint(3, len(wordList) - 2)
- word = wordList[word]
- ustr = ustr + word
- return ustr[:length].lower()
- def generateDate():
- return str(random.randint(1985, 1999)) + '-12-12'
- def validateUsername(username):
- validateUrl = 'https://m.roblox.com/Account/ValidateUserNameForSignUp?UserName='
- validateRequest = requests.get(validateUrl + username)
- if ('true' in validateRequest.content):
- return True
- else:
- return False
- def verifyAccount(session, password):
- tm = tempmail.TempMail()
- address = tm.get_email_address()
- maxAttempts = 30
- currentAttempts = 0
- xsrfRequest = session.get('https://www.roblox.com/my/account#!/info', proxies = proxy)
- xsrfFind = re.search('setToken\(\'(.+)\'\);', xsrfRequest.content)
- if (xsrfFind != None):
- xsrf = xsrfFind.group(1)
- verifyRequest = session.post('https://www.roblox.com/account/changeemail', data = {
- 'emailAddress': address,
- 'password': password
- }, headers = {
- 'X-CSRF-TOKEN': xsrf
- }, proxies = proxy)
- if ('Message' in verifyRequest.content) and (verifyRequest.json()['Message'] == 'Email Added'):
- # Confirmation email sent.
- while (maxAttempts > currentAttempts):
- currentAttempts += 1
- box = tm.get_mailbox(address)
- linkAttempt = re.search('Ticket=(....................................)', str(box))
- if (linkAttempt != None):
- currentAttempts = (maxAttempts + 10)
- ticketUrl = 'http://www.roblox.com/RobloxVerify.aspx?Mode=emailOnly&Ticket=' + linkAttempt.group(1)
- verifyyRequest = session.get(ticketUrl, proxies = proxy)
- if ('has been' in verifyyRequest.content.lower()):
- return (True)
- time.sleep(2)
- raw_input()
- return (False)
- def accountCallback(session, password):
- return True
- def register(username, password, birthdate, gender, proxies = {}):
- imageCacheUrl = 'https://m.roblox.com/timg/rbx'
- registerUrl = 'https://m.roblox.com/Account/SignUp'
- accountSession = requests.Session()
- preloadRequest = accountSession.get(registerUrl, proxies=proxies)
- accountSession.get(imageCacheUrl, proxies=proxies)
- requestVerificationToken = re.search(
- 'value=\"(.*)\" /></form>',
- preloadRequest.content
- )
- if (requestVerificationToken != None):
- registerData = {
- 'UserName': username,
- 'Password': password,
- 'ConfirmPassword': password,
- 'Gender': gender,
- 'Birthday': birthdate,
- '__RequestVerificationToken': requestVerificationToken.group(1)
- }
- registerRequest = accountSession.post(registerUrl, data=registerData, proxies=proxies)
- if ('Update Status' in registerRequest.content):
- if (accountCallback(accountSession, password) == True):
- verifyAccount(accountCallback, password)
- return (True)
- return (False)
- while True:
- try:
- username = ''
- while username == '':
- strr = generateString()
- if (validateUsername(strr) == True):
- username = strr
- password = generateString() + '123'
- registerAttempt = register(username, password, generateDate(), random.randint(2, 3), proxy)
- if registerAttempt == True:
- print(username + ':' + password)
- verifyAccount(
- fname = 'Accounts\\' + username + '.rbxacc'
- file = open(fname, 'w+')
- file.write((username + ':' + password))
- file.close()
- else:
- print 'Captcha detected, switching identity.'
- proxy = newIdentity()
- except:
- pass
- raw_input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement