· 7 years ago · Dec 31, 2018, 01:10 AM
1import requests
2import time
3import datetime
4
5url = 'http://shaiyaravenhill.com/member/login.php' # url to send to
6counter = 1 # counter, ignore it
7
8print('Account name (pw will be same as the name): ') # ask for acc name (test will result in test1 test2 etc)
9main_name = str(input()) # account name
10main_email = '@gmail.com' # email to use
11print('Number of accounts to be created: ') # ask for # of accounts
12number_of_accounts = int(input()) # how many accounts to be created
13print('Delay between account creations? (Y/N): ') # ask if delay between account creation is wanted
14delay = str(input()) # if there should be delay between creating accounts
15
16if delay.lower() == 'y': # if delay is wanted,
17 print('Delay time in seconds: ') # ask for delay time
18 delay_time = int(input()) # delay time in seconds
19 while counter <= number_of_accounts:
20 timestamp2 = str(datetime.datetime.now()).split(maxsplit=11)[1].split('.')[0]
21 name_full = main_name + str(counter)
22 requests.post(url, {
23 'user': name_full,
24 'Password': name_full,
25 'confPassword': name_full,
26 'LocalEmail': name_full + main_email
27 })
28 print('[%s] Account %s has been created. Account number: %s' % (timestamp2, name_full, counter))
29 counter += 1
30 time.sleep(delay_time)
31
32else:
33 while counter <= number_of_accounts:
34 timestamp2 = str(datetime.datetime.now()).split(maxsplit=11)[1].split('.')[0]
35 name_full = main_name + str(counter)
36 requests.post(url, {
37 'user': name_full,
38 'Password': name_full,
39 'confPassword': name_full,
40 'LocalEmail': name_full + main_email
41 })
42 print('[%s] Account %s has been created. Account number: %s' % (timestamp2, name_full, counter))
43 counter += 1
44
45print('Number of accounts has been reached. Shutting down...')
46time.sleep(3)