forked from imhamzaoui/sarhne_spam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.py
49 lines (36 loc) · 1.05 KB
/
bot.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
import requests
import threading
url = "https://www.sarhne.com/ajax/messages/send.html"
id = ""
def post(_msg):
#msg=this+test+all+opppp&show_my_info=on&img_code=&link=103961398130919630158&bad_words=false&i=null
myobj = {'msg': str(_msg), #this the msg
'show_my_info':'on',
'img_code':'',
'link':str(id), #id of user
'bad_words':'false',
'i':'null'
}
x = requests.post(url, data = myobj)
print(x.text)
def start(ddos,msg):
threads = []
for i in range(ddos):
t=threading.Thread(target=post(msg))
t.daemon = True
threads.append(t)
for i in range(ddos):
threads[i].start()
for i in range(ddos):
threads[i].join()
id = input('Enter ID : ')
mqn = int(input(" 1) String Message \n 2) Text File <msg.txt> \n>>"))
if (mqn==1):
msg = str(input('Enter String msg : '))
else:
print('[+]Reading msg.txt ..')
f = open("msg.txt", "r")
msg = f.read()
sp = int(input("Enter Spam Number : "))
print(f" ID : {id} , SPAM : {sp} , MSG : ({msg}) ")
start(sp,msg)