forked from pashayogi/sms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsms.py
More file actions
39 lines (32 loc) · 1.11 KB
/
sms.py
File metadata and controls
39 lines (32 loc) · 1.11 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
# MR.K7C8NG
from requests import Session
import re, sys
s = Session()
try:
print("\n\n * SMS Gratis by MR.K7C8NG\n * Gunakan kode negara (ex: 628xxxxx)\n")
no = int(input(" Nomor : "))
msg = input(" Pesan : ")
except:
print("\n\t* Cek nomermu atau pesanmu! *")
sys.exit()
headers = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36',
'Referer': 'http://sms.payuterus.biz/alpha/'
}
bypass = s.get("http://sms.payuterus.biz/alpha/?a=keluar", headers=headers).text
key = re.findall(r'value="(\d+)"', bypass)[0]
jml = re.findall(r'<span>(.*?) = </span>', bypass)[0]
captcha = eval(jml.replace("x", "*").replace(":", "/"))
data = {
'nohp':no,
'pesan':msg,
'captcha':captcha,
'key':key
}
send = s.post("http://sms.payuterus.biz/alpha/send.php", headers=headers, data=data).text
if 'SMS Gratis Telah Dikirim' in send:
print(f"\n [ Pengiriman sukses ]\n [ {no} : {msg} ]\n")
elif 'MAAF....!' in send:
print("\n [ Mohon tunggu 15 menit untuk mengirim pesan yg sama ]\n")
else:
print("\n [ Pengiriman gagal ]\n")