-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathspamed.py
75 lines (54 loc) · 2.94 KB
/
spamed.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# internal imports
import time
import random
from concurrent.futures import ThreadPoolExecutor, as_completed
# external imports
import requests
"""
Change 4 Fields (Compulspory) | 3 Fields are optional | Sample Video on where and how to find them is available in Readme.
URL: your form url # URL must be response URL, sample is provided
REFERER: Take by Filling a response
COOKIE: Take by filling a response
DATA: Fill a form and find it :)
PROXYS: You can provide proxies also.
MAX_WORKERS: Change this value to increase the speed of spam. Don't go beyond 500.
SPAM_COUNT: Change this to increase spam count
"""
MAX_WORKERS = 63 # Change this value to increase the speed of spam. Don't go beyond 500.
SPAM_COUNT = 100000 # Change this to increase spam count
URL = 'https://docs.google.com/forms/d/e/1FAIpQLSfoemQg90qTmA4ps9yh-YU46_9xDcMzBILr-wSnPpyXVr9BLA/formResponse'
DATA = 'entry.2005620554=kushal&entry.1045781291=kushal%40gmail.com&entry.1166974658=1234567890&fvv=1&partialResponse=%5Bnull%2Cnull%2C%224688203165610129769%22%5D&pageHistory=0&fbzx=4688203165610129769'
REFERER = 'https://docs.google.com/forms/d/e/1FAIpQLSfoemQg90qTmA4ps9yh-YU46_9xDcMzBILr-wSnPpyXVr9BLA/viewform?fbzx=4688203165610129769'
COOKIE = 'S=spreadsheet_forms=_MWW_iXuve4ymMWEWsadrXL3MQ9E2nZslrqG0IpKaOI; NID=511=r7jrQT0RP2pXBPytn9JdONT8-Ji7XGUoITz5bgqxO0oDdIRIIKUm2t9qU7u-ddviv-HnYzCf6ePo5I24kVq8ivmRbgThX-Bn5JQHwSSYGzmI5BwaVErPulCdnkiwF7cUOlXBtBHuKMtaYE-SRAWQ7IV80t0oi-hHubIQYcX1bbY'
HEADER = {
'Host': 'docs.google.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Content-Type': 'application/x-www-form-urlencoded',
'Origin': 'https://docs.google.com',
'Referer': REFERER,
'Cookie': COOKIE,
'Upgrade-Insecure-Requests':'1'
}
# After 4.8K+ requests google will ask you to fill a captcha if you are not using proxy.
PROXYS = []
# PROXYS = ['144.217.101.242:3129', '192.41.71.204:3128', '192.41.13.71:3128', '104.154.143.77:3128']
def trouble():
try:
if len(PROXYS) > 0: # Proxies are passed
proxy = PROXYS[random.choice([x for x in range(len(PROXYS))])]
r = requests.post(URL, proxies={'http':proxy, 'https':proxy}, data=DATA, headers=HEADER)
else:
r = requests.post(URL, data=DATA, headers=HEADER)
return r
except Exception as e:
raise Exception (e)
if __name__ == "__main__":
with ThreadPoolExecutor(max_workers=MAX_WORKERS) as executor:
future_calls = {executor.submit(trouble): count for count in range(SPAM_COUNT)}
for future in as_completed(future_calls):
try:
result = future.result()
print('[-] {}'.format(result.status_code))
except Exception as e:
print('[!] {}'.format(e))