-
Notifications
You must be signed in to change notification settings - Fork 97
/
GmailExploit2.py
53 lines (46 loc) · 1.83 KB
/
GmailExploit2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import requests
import time
import random
import re
import string as String
EMAIL = "[email protected]" # Your Gmail address
REFERRAL_CODE = "" #5-6character reservation ID
# Works but runs through same address in same order every run
def dotify(address):
return dotify_(address.split("@")[0].replace(".","") + "@" + address.split("@")[1])
def dotify_(string):
if len(string) == 1:
yield string
return
for rest in dotify_(string[1:]):
yield string[0] + rest
yield string[0] + "." + rest
# Seems to be patched. Does not work
def plusify(address):
while True:
string = ''.join(random.choice(String.ascii_uppercase + String.digits) for _ in range(32))
yield re.sub('@', '+'+string+'@', address)
# Randomly place dot with following criteria:
# - Not at start or end
# - Atleast two characters inbetween the dot (Seems like only one character seperation is usually rejected)
# High success rate as of 2015/08/08
def random_dotify(address, separator=2):
split = address.split('@')
while True:
account = split[0]
index = 1
while index < len(account)-1:
if random.random() < 0.5:
account = account[:index] + "." + account[index:]
index += separator
index += 1
yield account + '@' + split[1]
for email in random_dotify(EMAIL):
requestURL = "https://invites.oneplus.net/index.php?r=share/signup&success_jsonpCallback=success_jsonpCallback&email={0}&koid={1}&_=1438677876942".format(email.replace("@", "%40"), REFERRAL_CODE)
print("Sending invite to " + email)
res = requests.get(requestURL)
while res.status_code != 200:
print("Request failed. "+str(res.status_code))
time.sleep(5)
res = requests.get(requestURL)
print("Successfully retrieved response")