-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanon-sms
71 lines (52 loc) · 2.44 KB
/
anon-sms
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
import os ,requests,sys,bs4
r=requests.request("POST",'https://sms.sellaite.com/index_smssend.php')
if r.status_code !=200:
print("network Error")
exit()
e=int(sys.argv[1])
num=int(sys.argv[2])
msg=str(sys.argv[3])
if msg=='' or msg.isspace()==True:
exit()
else:
message=msg
os.system('bash tempmail.sh -g > file.txt')
kk=open('file.txt','r')
k=kk.read().strip()
headers={"User-Agent ":"Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0","Accept-Language":" en,hi;q=0.5","Accept-Encoding":" gzip, deflate","Referer":"https://sms.sellaite.com/index_smssend.php",'Content-type': 'application/x-www-form-urlencoded',"Origin":" https://sms.sellaite.com","Sec-Fetch-Dest": "document","Sec-Fetch-Site":" same-origin","Sec-Fetch-Mode":" navigate"}
print(k)
head={"User-Agent ":"Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0"}
#form_email=pirofoc370%40abudat.com&form_countrycodenumber=91&form_ccode=91&form_phonenumber=7742114180&form_message=n&element_6_1=1&submitID=1&submitInfo=
h={"User-Agent ":"Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0"}
sellaite=requests.request("POST",'https://sms.sellaite.com/index_smssend.php',data={"form_email":k,"form_countrycodenumber":e,"form_ccode":e,"form_phonenumber":num,"form_message":message,"element_6_1":1,"submitID":1,"submitInfo":' '})
# print(sellaite.content)
## trans id trans num find
s=bs4.BeautifulSoup(sellaite.content,'html.parser')
try:
ki=str(s.find_all(id='trans_id')).split('value="')[1].rstrip('"/>]')
kkk=str(s.find_all(id='trans_num')).split('value="')[1].rstrip('"/>]')
print(ki,'\n',kkk)
tid=ki.strip()
tn=kkk.strip()
except:
os.system('echo "try again \n failed " >zx.txt')
exit()
#os.system("bash tempmail.sh -l| tail -n 1 > otp.txt")
#s.system("awk -F 'CODE: ' '{print $2}' otp.txt > verify.txt")
def func():
os.system("bash tempmail.sh -l| tail -n 1 > otp.txt")
os.system("awk -F 'CODE: ' '{print $2}' otp.txt > verify.txt")
global otp
o=open('verify.txt','r')
otp=o.read().strip(r' \n ')
return otp
import time
time.sleep(2)
func()
while str(otp)=='' or str(otp).isspace()==True:
func()
otp=int(otp)
cook=sellaite.cookies.get_dict()
sellaite=requests.post("https://sms.sellaite.com/index_smssend.php",cookies=cook,data={"form_code":otp,"submitID":2,"trans_num":tn,"trans_id":tid,"uk":' '})
if sellaite.status_code==200:
os.system('echo "success" >>zx.txt')