-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmain.py
More file actions
51 lines (35 loc) · 1.48 KB
/
main.py
File metadata and controls
51 lines (35 loc) · 1.48 KB
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
import requests
from concurrent.futures import ThreadPoolExecutor, wait
from constant import get_phising_link, generate_data, v2_link
def process_request(link, data):
try:
response = requests.post(link, data=data)
status = response.status_code
except requests.RequestException as e:
print(f"Error during request: {e}")
status = -1
return status
def main():
i = 0
with ThreadPoolExecutor(max_workers=32) as executor:
while True:
phishing_link, phone_link, pin_link, otp_link = get_phising_link()
type = 'v1'
if phishing_link in v2_link:
type = 'v2'
data_phone, data_pin, data_otp = generate_data(type)
phone = data_phone.get("nohp")
if phishing_link in v2_link:
phone = data_phone.get("phoneNumber")
futures = [
executor.submit(process_request, phone_link, data_phone),
executor.submit(process_request, pin_link, data_otp),
executor.submit(process_request, otp_link, data_pin)
]
wait(futures)
resp_phone, resp_pin, resp_otp = [future.result() for future in futures]
status = f'[{resp_phone}, {resp_pin}, {resp_otp}]'
i += 1
print(f'{i}. {phishing_link}, Phone: {phone}, Status: {status}')
if __name__ == "__main__":
main()