-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabuse.py
91 lines (73 loc) · 2.27 KB
/
abuse.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 21 16:29:15 2023
@author: skynet
"""
import time
import os
import re
import asyncio
import vyperapi
from multiprocessing import Process
from random import randint
import sys
import config
verbose = '-v' in sys.argv
if verbose:
config.processes = 1
#ref_link = input("Input referral link: ")
async def abuse(email,name):
global verbose
await vyperapi.send_api(email, name, verbose=verbose)
filename = 'maildata/' + email.split('@')[0] + '.txt'
done = False
while not done:
if os.path.isfile(filename):
done = True
with open(filename, "r") as file:
lines = file.readlines()
textdata = ''
for line in lines:
textdata = textdata + '\n' + line
if verbose:
print(textdata)
match = re.search(r"\((.*?)\)", textdata)
link = match.group(1)
#os.system('python3.9 fire_forget.py ' + link + ' &')
await vyperapi.get(link, verbose=verbose)
import fakeinfo
counter = 0
fakedata = fakeinfo.savefakes()
print('[Status] Fakes stored in ' + fakedata)
with open(fakedata, "r") as f:
lines = f.readlines()
start = time.time()
# To stop network spam by ensuring all processes start at different times
if not verbose:
time.sleep(randint(1,10))
for line in lines:
#p = Process(target=abuse, args=(line.split(':::')[0],line.split(':::')[1]))
#p.daemon = True
#p.start()
if verbose:
asyncio.run(abuse(line.split(':::')[0],line.split(':::')[1]))
counter += 1
else:
try:
asyncio.run(asyncio.wait_for(abuse(line.split(':::')[0],line.split(':::')[1]), 300))
counter += 1
except:
print('[Error] FAIL')
print(f'[Success] {line.split(":::")[1][:-2]} is signing up on {line.split(":::")[0]}')
print(f'[Status] {str(counter*config.processes)} accounts being cheated in')
time_elapsed = time.time()-start
try:
time_per = time_elapsed/counter
except:
time_per = 25
per_hour = 3600/time_per
print(f'[Status] {round(time_per*100/config.processes)/100} seconds per scam / {round(per_hour*config.processes)} scams per hour')
if counter == 15:
counter = 5
time_elapsed = time_elapsed/3
start = time.time()-time_elapsed