Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
220 views
ubuntu2004
1
from colorama import Fore, Style
2
from time import sleep
3
from os import system
4
from requests import get
5
r = get("https://raw.githubusercontent.com/tingirifistik/Enough/main/sms.py").text
6
with open("sms.py", "r", encoding="utf-8") as f:
7
read = f.read()
8
if read == r:
9
pass
10
else:
11
print(Fore.RED + "Güncelleme yapılıyor...")
12
with open("sms.py", "w", encoding="utf-8") as f:
13
f.write(r)
14
from sms import SendSms
15
r = get("https://raw.githubusercontent.com/tingirifistik/Enough/main/call.py").text
16
with open("call.py", "r", encoding="utf-8") as f:
17
read = f.read()
18
if read == r:
19
pass
20
else:
21
print(Fore.RED + "Güncelleme yapılıyor...")
22
with open("call.py", "w", encoding="utf-8") as f:
23
f.write(r)
24
from call import SendCall
25
26
servisler_call = []
27
for attribute in dir(SendCall):
28
attribute_value = getattr(SendCall, attribute)
29
if callable(attribute_value):
30
if attribute.startswith('__') == False:
31
servisler_call.append(attribute)
32
servisler_sms = []
33
for attribute in dir(SendSms):
34
attribute_value = getattr(SendSms, attribute)
35
if callable(attribute_value):
36
if attribute.startswith('__') == False:
37
servisler_sms.append(attribute)
38
39
while 1:
40
system("cls||clear")
41
print("""{}
42
______ _
43
| ____| | |
44
| |__ _ __ ___ _ _ __ _| |__
45
| __| | '_ \ / _ \| | | |/ _` | '_ \
46
| |____| | | | (_) | |_| | (_| | | | |
47
|______|_| |_|\___/ \__,_|\__, |_| |_|
48
__/ |
49
|___/
50
Sms: {}
51
Ara: {} {}by {}@tingirifistik\n
52
""".format(Fore.LIGHTCYAN_EX, len(servisler_sms), len(servisler_call), Style.RESET_ALL, Fore.LIGHTRED_EX))
53
try:
54
menu = (input(Fore.LIGHTMAGENTA_EX + " 1- SMS Gönder\n 2- Ara\n 3- Katkıda Bulunanlar\n 4- Çıkış\n\n" + Fore.LIGHTYELLOW_EX + " Seçim: "))
55
if menu == "":
56
continue
57
menu = int(menu)
58
except ValueError:
59
system("cls||clear")
60
print(Fore.LIGHTRED_EX + "Hatalı giriş yaptın. Tekrar deneyiniz.")
61
sleep(3)
62
continue
63
if menu == 1:
64
system("cls||clear")
65
print(Fore.LIGHTYELLOW_EX + "Telefon numarasını başında '+90' olmadan yazınız (Birden çoksa 'enter' tuşuna basınız): "+ Fore.LIGHTGREEN_EX, end="")
66
tel_no = input()
67
tel_liste = []
68
if tel_no == "":
69
system("cls||clear")
70
print(Fore.LIGHTYELLOW_EX + "Telefon numaralarının kayıtlı olduğu dosyanın dizinini yazınız: "+ Fore.LIGHTGREEN_EX, end="")
71
dizin = input()
72
try:
73
with open(dizin, "r", encoding="utf-8") as f:
74
for i in f.read().strip().split("\n"):
75
if len(i) == 10:
76
tel_liste.append(i)
77
sonsuz = ""
78
except FileNotFoundError:
79
system("cls||clear")
80
print(Fore.LIGHTRED_EX + "Hatalı dosya dizini. Tekrar deneyiniz.")
81
sleep(3)
82
continue
83
else:
84
try:
85
int(tel_no)
86
if len(tel_no) != 10:
87
raise ValueError
88
tel_liste.append(tel_no)
89
sonsuz = "(Sonsuz ise 'enter' tuşuna basınız)"
90
except ValueError:
91
system("cls||clear")
92
print(Fore.LIGHTRED_EX + "Hatalı telefon numarası. Tekrar deneyiniz.")
93
sleep(3)
94
continue
95
system("cls||clear")
96
try:
97
print(Fore.LIGHTYELLOW_EX + "Mail adresi (Bilmiyorsanız 'enter' tuşuna basın): "+ Fore.LIGHTGREEN_EX, end="")
98
mail = input()
99
if ("@" not in mail or ".com" not in mail) and mail != "":
100
raise
101
except:
102
system("cls||clear")
103
print(Fore.LIGHTRED_EX + "Hatalı mail adresi. Tekrar deneyiniz.")
104
sleep(3)
105
continue
106
system("cls||clear")
107
try:
108
print(Fore.LIGHTYELLOW_EX + f"Kaç adet SMS göndermek istiyorsun {sonsuz}: "+ Fore.LIGHTGREEN_EX, end="")
109
kere = input()
110
if kere:
111
kere = int(kere)
112
else:
113
kere = None
114
except ValueError:
115
system("cls||clear")
116
print(Fore.LIGHTRED_EX + "Hatalı giriş yaptın. Tekrar deneyiniz.")
117
sleep(3)
118
continue
119
system("cls||clear")
120
try:
121
print(Fore.LIGHTYELLOW_EX + "Kaç saniye aralıkla göndermek istiyorsun: "+ Fore.LIGHTGREEN_EX, end="")
122
aralik = int(input())
123
except ValueError:
124
system("cls||clear")
125
print(Fore.LIGHTRED_EX + "Hatalı giriş yaptın. Tekrar deneyiniz.")
126
sleep(3)
127
continue
128
system("cls||clear")
129
if kere is None:
130
sms = SendSms(tel_no, mail)
131
while True:
132
for attribute in dir(SendSms):
133
attribute_value = getattr(SendSms, attribute)
134
if callable(attribute_value):
135
if attribute.startswith('__') == False:
136
exec("sms."+attribute+"()")
137
sleep(aralik)
138
for i in tel_liste:
139
sms = SendSms(i, mail)
140
if isinstance(kere, int):
141
while sms.adet < kere:
142
for attribute in dir(SendSms):
143
attribute_value = getattr(SendSms, attribute)
144
if callable(attribute_value):
145
if attribute.startswith('__') == False:
146
if sms.adet == kere:
147
break
148
exec("sms."+attribute+"()")
149
sleep(aralik)
150
print(Fore.LIGHTRED_EX + "\nMenüye dönmek için 'enter' tuşuna basınız..")
151
input()
152
elif menu == 2:
153
system("cls||clear")
154
try:
155
print(Fore.LIGHTYELLOW_EX + "Telefon numarasını başında '+90' olmadan yazınız: "+ Fore.LIGHTGREEN_EX, end="")
156
tel_no = int(input())
157
if len(str(tel_no)) != 10:
158
raise ValueError
159
except ValueError:
160
system("cls||clear")
161
print(Fore.LIGHTRED_EX + "Hatalı telefon numarası. Tekrar deneyiniz.")
162
sleep(3)
163
continue
164
system("cls||clear")
165
try:
166
print(Fore.LIGHTYELLOW_EX + "Mail adresi (Bilmiyorsanız 'enter' tuşuna basın): "+ Fore.LIGHTGREEN_EX, end="")
167
mail = input()
168
if ("@" not in mail or ".com" not in mail) and mail != "":
169
raise
170
except:
171
system("cls||clear")
172
print(Fore.LIGHTRED_EX + "Hatalı mail adresi. Tekrar deneyiniz.")
173
sleep(3)
174
continue
175
system("cls||clear")
176
try:
177
print(Fore.LIGHTYELLOW_EX + f"Kaç kere aransın (max: {len(servisler_call)}): "+ Fore.LIGHTGREEN_EX, end="")
178
kere = int(input())
179
if kere > len(servisler_call):
180
raise ValueError
181
except ValueError:
182
system("cls||clear")
183
print(Fore.LIGHTRED_EX + "Hatalı giriş yaptın. Tekrar deneyiniz.")
184
sleep(3)
185
continue
186
system("cls||clear")
187
call = SendCall(tel_no, mail)
188
while call.adet < kere:
189
for attribute in dir(SendCall):
190
attribute_value = getattr(SendCall, attribute)
191
if callable(attribute_value):
192
if attribute.startswith('__') == False:
193
if call.adet == kere:
194
break
195
exec("call."+attribute+"()")
196
print(Fore.LIGHTRED_EX + "\nMenüye dönmek için 'enter' tuşuna basınız..")
197
input()
198
elif menu == 3:
199
system("cls||clear")
200
print(Fore.LIGHTWHITE_EX + " tingirifistik\n Bora185")
201
sleep(12)
202
elif menu == 4:
203
system("cls||clear")
204
print(Fore.LIGHTRED_EX + "Çıkış yapılıyor...")
205
break
206
207